Skip to content

fix(vue-renderless): [user,user-account,user-contact,user-head,user-link,virtual-scroll-box,virtual-tree,watermark,wizard] fix site: Optimize site documentation typesetting #2732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0d99213
feat(site):Optimize the typography of CJK characters, mix Chinese and…
dufu1991 Dec 21, 2024
0b4be1b
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 25, 2024
de5ae7c
feat(site):Optimize the typography of CJK characters, mix Chinese and…
dufu1991 Dec 25, 2024
5236677
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 25, 2024
93c55c9
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 25, 2024
add7ed0
fix(vue-renderless): [amount, anchor, area, autocomplete] fix site: O…
dufu1991 Dec 25, 2024
e4797cf
fix(vue-renderless): [base-select] fix site: Optimize site documentat…
dufu1991 Dec 25, 2024
b57dc9e
fix(vue-renderless): [base-select] fix site: Optimize site documentat…
dufu1991 Dec 25, 2024
a085874
fix(vue-renderless): [base-select] fix site: Optimize site documentat…
dufu1991 Dec 26, 2024
5525a60
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 26, 2024
bb2ada5
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 27, 2024
c15edf5
fix(vue-renderless): [breadcrumb, bulletin-board, button, button-grou…
dufu1991 Dec 27, 2024
5be8e63
fix(vue-renderless): [calendar, calendar-view, card, carousel, cascad…
dufu1991 Dec 27, 2024
4338e78
fix(vue-renderless): [checkbox, collapse, color-picker, color-select-…
dufu1991 Dec 27, 2024
e85129a
fix(vue-renderless): [breadcrumb, bulletin-board, button, button-grou…
dufu1991 Dec 27, 2024
d1afe7f
fix(vue-renderless): [date-picker,dept,dialog-box,dialog-select,direc…
dufu1991 Dec 27, 2024
80a89b7
fix(vue-renderless): [espace,fall-menu,file-upload,filter-panel,float…
dufu1991 Dec 27, 2024
c1aaad3
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 28, 2024
ccc6cea
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 28, 2024
be4f1d8
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 28, 2024
17b6680
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 28, 2024
47b602d
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 30, 2024
7477fe4
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 30, 2024
48cadbe
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 30, 2024
30d6112
fix(vue-renderless): [grid] fix site: Optimize site documentation typ…
dufu1991 Dec 30, 2024
d7a79c6
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Dec 31, 2024
97939fb
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Dec 31, 2024
a9260f9
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Dec 31, 2024
0a4c7cf
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
c68e069
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
9fb4f48
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
d838e8f
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
3099e62
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
7439b13
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
e7f80eb
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Jan 2, 2025
c4a7a1a
fix(vue-renderless): [grid-select,guide,hrapprover,hrapprover,icon,ic…
dufu1991 Jan 2, 2025
fbbcde8
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Jan 3, 2025
1c6da5a
fix(vue-renderless): [radio,rate,rich-text-editor,roles,scroll-text,s…
dufu1991 Jan 3, 2025
f902ae3
fix(vue-renderless): [radio,rate,rich-text-editor,roles,scroll-text,s…
dufu1991 Jan 3, 2025
a1f6746
fix(vue-renderless): [radio,rate,rich-text-editor,roles,scroll-text,s…
dufu1991 Jan 3, 2025
4e946ad
fix(vue-renderless): [radio,rate,rich-text-editor,roles,scroll-text,s…
dufu1991 Jan 3, 2025
94b1332
fix(vue-renderless): [radio,rate,rich-text-editor,roles,scroll-text,s…
dufu1991 Jan 3, 2025
1732171
Merge branch 'opentiny:dev' into dufu1991/feat-site-ptimize-typesetting
dufu1991 Jan 3, 2025
b569f06
fix(vue-renderless): [user,user-account,user-contact,user-head,user-l…
dufu1991 Jan 3, 2025
fde695f
fix(vue-renderless): [user,user-account,user-contact,user-head,user-l…
dufu1991 Jan 3, 2025
8b1133c
fix(vue-renderless): [user,user-account,user-contact,user-head,user-l…
dufu1991 Jan 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getLangData() {

function getLogoutUrl() {
return new Promise((resolve, reject) => {
/* 自定义注销逻辑,返回注销完成后的重定向url */
/* 自定义注销逻辑,返回注销完成后的重定向 url */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the comment accurately reflects the logic implemented in the code. This comment is for documentation purposes and should be clear and precise.

setTimeout(() => {
window.localStorage.setItem('isLogin', false)
const url = '/pc/user-account/custom-service'
Expand All @@ -51,7 +51,7 @@ function getLogoutUrl() {
}

function isGuestUser() {
/* 此处为用户自定义获取当前登录状态,未登录为访客,返回true,已登录返回false */
/* 此处为用户自定义获取当前登录状态,未登录为访客,返回 true,已登录返回 false */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the comment accurately reflects the logic implemented in the code. This comment is for documentation purposes and should be clear and precise.

isLogin.value = window.localStorage.getItem('isLogin') === 'true'

return !isLogin.value
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/user-account/custom-service.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
},
getLogoutUrl() {
return new Promise((resolve, reject) => {
/* 自定义注销逻辑,返回注销完成后的重定向url */
/* 自定义注销逻辑,返回注销完成后的重定向 url */
setTimeout(() => {
window.localStorage.setItem('isLogin', false)
const url = '/pc/user-account/custom-service'
Expand All @@ -54,7 +54,7 @@ export default {
})
},
isGuestUser() {
/* 此处为用户自定义获取当前登录状态,未登录为访客,返回true,已登录返回false */
/* 此处为用户自定义获取当前登录状态,未登录为访客,返回 true,已登录返回 false */
this.isLogin = window.localStorage.getItem('isLogin') === 'true'

return !this.isLogin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
},
desc: {
'zh-CN':
'<p>通过 <code>:data</code> 设置数据源, <code>imgUrl</code> 表示的是图片路径, <code>userName</code> 表示的是姓名, <code>userDescription</code> 表示的是用户描述。</p>\n',
'<p>通过 <code>:data</code> 设置数据源<code>imgUrl</code> 表示的是图片路径<code>userName</code> 表示的是姓名<code>userDescription</code> 表示的是用户描述。</p>\n',
'en-US':
'<p>Set the data source through<code>: data</code>. <code>imgUrl</code> indicates the image path, and <code>userName</code> indicates the name. <code>userDescription</code> indicates the user description. </p>\n'
},
Expand All @@ -38,7 +38,7 @@ export default {
},
desc: {
'zh-CN':
'<p>通过设置<code>show-img</code> 是否显示头像,<code>show-name</code> 是否显示名字,<code>show-number</code> 是否显示用户账号,默认值为<code>true</code>。</p>',
'<p>通过设置<code>show-img</code> 是否显示头像,<code>show-name</code> 是否显示名字<code>show-number</code> 是否显示用户账号默认值为<code>true</code>。</p>',
'en-US':
'<p>By setting<code>show img</code>to display avatars,<code>show name</code>to display names, and<code>show number</code>to display user accounts, the default value is<code>true</code>.</p> '
},
Expand All @@ -59,7 +59,7 @@ export default {
{
demoId: 'contact-espace',
name: {
'zh-CN': '连接eSpace',
'zh-CN': '连接 eSpace',
'en-US': 'Connecting to the eSpace'
},
desc: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,63 +28,63 @@ import { TinyGrid, TinyGridColumn, TinyUserHead } from '@opentiny/vue'
const mockData = [
{
id: '1',
name: 'GFD科技YX公司',
name: 'GFD 科技 YX 公司',
city: '福州',
employees: 800,
createdDate: '2014-04-30 00:56:00',
boole: false
},
{
id: '2',
name: 'WWW科技YX公司',
name: 'WWW 科技 YX 公司',
city: '深圳',
employees: 300,
createdDate: '2016-07-08 12:36:22',
boole: true
},
{
id: '3',
name: 'RFV有限责任公司',
name: 'RFV 有限责任公司',
city: '中山',
employees: 1300,
createdDate: '2014-02-14 14:14:14',
boole: false
},
{
id: '4',
name: 'TGB科技YX公司',
name: 'TGB 科技 YX 公司',
city: '龙岩',
employees: 360,
createdDate: '2013-01-13 13:13:13',
boole: true
},
{
id: '5',
name: 'YHN科技YX公司',
name: 'YHN 科技 YX 公司',
city: '韶关',
employees: 810,
createdDate: '2012-12-12 12:12:12',
boole: true
},
{
id: '6',
name: 'WSX科技YX公司',
name: 'WSX 科技 YX 公司',
city: '黄冈',
employees: 800,
createdDate: '2011-11-11 11:11:11',
boole: true
},
{
id: '7',
name: 'KBG物业YX公司',
name: 'KBG 物业 YX 公司',
city: '赤壁',
employees: 400,
createdDate: '2016-04-30 23:56:00',
boole: false
},
{
id: '8',
name: '深圳市福德宝网络技术YX公司',
name: '深圳市福德宝网络技术 YX 公司',
boole: true,
city: '厦门',
createdDate: '2016-06-03 13:53:25',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { test, expect } from '@playwright/test'
test('Grid 单元格展示头像', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('user-head#render-user-head-in-grid')
const iconBox = page.getByRole('cell', { name: '800 GFD科技YX公司' }).locator('svg')
const iconBox = page.getByRole('cell', { name: '800 GFD 科技 YX 公司' }).locator('svg')
await expect(iconBox).toBeVisible()
const iconBox1 = page.getByRole('cell', { name: '300 WWW科技YX公司' }).locator('svg')
const iconBox1 = page.getByRole('cell', { name: '300 WWW 科技 YX 公司' }).locator('svg')
await expect(iconBox1).toBeVisible()
})
Original file line number Diff line number Diff line change
Expand Up @@ -33,63 +33,63 @@ export default {
const mockData = [
{
id: '1',
name: 'GFD科技YX公司',
name: 'GFD 科技 YX 公司',
city: '福州',
employees: 800,
createdDate: '2014-04-30 00:56:00',
boole: false
},
{
id: '2',
name: 'WWW科技YX公司',
name: 'WWW 科技 YX 公司',
city: '深圳',
employees: 300,
createdDate: '2016-07-08 12:36:22',
boole: true
},
{
id: '3',
name: 'RFV有限责任公司',
name: 'RFV 有限责任公司',
city: '中山',
employees: 1300,
createdDate: '2014-02-14 14:14:14',
boole: false
},
{
id: '4',
name: 'TGB科技YX公司',
name: 'TGB 科技 YX 公司',
city: '龙岩',
employees: 360,
createdDate: '2013-01-13 13:13:13',
boole: true
},
{
id: '5',
name: 'YHN科技YX公司',
name: 'YHN 科技 YX 公司',
city: '韶关',
employees: 810,
createdDate: '2012-12-12 12:12:12',
boole: true
},
{
id: '6',
name: 'WSX科技YX公司',
name: 'WSX 科技 YX 公司',
city: '黄冈',
employees: 800,
createdDate: '2011-11-11 11:11:11',
boole: true
},
{
id: '7',
name: 'KBG物业YX公司',
name: 'KBG 物业 YX 公司',
city: '赤壁',
employees: 400,
createdDate: '2016-04-30 23:56:00',
boole: false
},
{
id: '8',
name: '深圳市福德宝网络技术YX公司',
name: '深圳市福德宝网络技术 YX 公司',
boole: true,
city: '厦门',
createdDate: '2016-06-03 13:53:25',
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/user-head/webdoc/user-head.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
},
desc: {
'zh-CN':
'<p>可通过<code>color</code>属性设置自定义颜色,图标或文字类型(type属性值为 icon 或 label )的情况下,设置字体颜色和背景色。</p>\n',
'<p>可通过<code>color</code>属性设置自定义颜色,图标或文字类型(type 属性值为 icon 或 label)的情况下,设置字体颜色和背景色。</p>\n',
'en-US':
'<p>You can use <code>color</code> to customize the color. If the icon or text type is set to icon or label, set the font color and background color. </p>\n'
},
Expand Down Expand Up @@ -155,7 +155,7 @@ export default {
'en-US': 'Avatar Displayed in Grid Cells'
},
desc: {
'zh-CN': '可通过Grid单元格<code>renderer</code>属性设置传入封装用户头像组件(HTML格式)。',
'zh-CN': '可通过 Grid 单元格<code>renderer</code>属性设置传入封装用户头像组件(HTML 格式)。',
'en-US':
'Pass in the encapsulated user avatar component (in HTML format) through the Grid cell attribute<code>renderer</code>.'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function fetchUser() {
return new Promise((resolve, reject) => {
const result = {
sex: 'M',
l0_Name: 'SZ技术',
l0_Name: 'SZ 技术',
effective_Start_Date: '2011/10/14 00:00:00',
l3_Dept_Code: '038384',
person_Notes_Cn: 'test1 12345678',
Expand All @@ -61,7 +61,7 @@ function fetchUser() {
person_Mail: '',
name: '公共技术测试数据部门',
location_second_area: 'Shenzhen',
upper_Name: 'IT技术架构与测试数据部',
upper_Name: 'IT 技术架构与测试数据部',
coa_Combination: '0021.000.0001.038759',
l4_Name: '公共技术测试数据部门',
english_Name: 'zhang san',
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/user-link/custom-service.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default {
return new Promise((resolve, reject) => {
const result = {
sex: 'M',
l0_Name: 'SZ技术',
l0_Name: 'SZ 技术',
effective_Start_Date: '2011/10/14 00:00:00',
l3_Dept_Code: '038384',
person_Notes_Cn: 'test1 12345678',
Expand All @@ -73,7 +73,7 @@ export default {
person_Mail: '',
name: '公共技术测试数据部门',
location_second_area: 'Shenzhen',
upper_Name: 'IT技术架构与测试数据部',
upper_Name: 'IT 技术架构与测试数据部',
coa_Combination: '0021.000.0001.038759',
l4_Name: '公共技术测试数据部门',
english_Name: 'zhang san',
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/user-link/webdoc/user-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
desc: {
'zh-CN':
'<p>通过 text-field 设置显示字段信息,默认是 userCN\n注意 UserLink 组件请求的是 mock 数据,其他用户查询不了,开发时请用真实服务。</p>\n',
'<p>通过 text-field 设置显示字段信息默认是 userCN\n注意 UserLink 组件请求的是 mock 数据,其他用户查询不了,开发时请用真实服务。</p>\n',
'en-US':
'<p>Use text-field to set the displayed field information. The default value is userCN.\nNote that the UserLink component requests mock data, which cannot be queried by other users. Use the real service during development. </p>\n'
},
Expand All @@ -37,7 +37,7 @@ export default {
},
desc: {
'zh-CN':
"<p>通过 text-split 自定义文本分隔符,默认是 ','\n注意 UserLink 组件请求的是 mock 数据,其他用户查询不了,开发时请用真实服务。</p>\n",
"<p>通过 text-split 自定义文本分隔符默认是 ','\n注意 UserLink 组件请求的是 mock 数据,其他用户查询不了,开发时请用真实服务。</p>\n",
'en-US':
"<p>Use text-split to customize the text separator. The default value is ','\nNote that the UserLink component requests mock data, which cannot be queried by other users. Use the real service during development. </p>\n"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ function getSuggestUser(userCN) {
}

function fetchW3Accounts(userId) {
/* 此为初始化时,v-model值不为空时,根据默认值查询用户数据,数据返回格式如下 */
TinyModal.message(`v-model默认值为:${userId}`)
/* 此为初始化时,v-model 值不为空时,根据默认值查询用户数据,数据返回格式如下 */
TinyModal.message(`v-model 默认值为:${userId}`)

return new Promise((resolve) => {
const result = [
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/user/custom-service.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export default {
})
},
fetchW3Accounts(userId) {
/* 此为初始化时,v-model值不为空时,根据默认值查询用户数据,数据返回格式如下 */
TinyModal.message(`v-model默认值为:${userId}`)
/* 此为初始化时,v-model 值不为空时,根据默认值查询用户数据,数据返回格式如下 */
TinyModal.message(`v-model 默认值为:${userId}`)

return new Promise((resolve) => {
const result = [
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/user/custom-sort.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export default {
})
},
fetchW3Accounts(userId) {
/* 此为初始化时,v-model值不为空时,根据默认值查询用户数据,数据返回格式如下 */
TinyModal.message(`v-model默认值为:${userId}`)
/* 此为初始化时,v-model 值不为空时,根据默认值查询用户数据,数据返回格式如下 */
TinyModal.message(`v-model 默认值为:${userId}`)

return new Promise((resolve) => {
const result = [
Expand Down
12 changes: 6 additions & 6 deletions examples/sites/demos/pc/app/user/webdoc/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export default {
{
demoId: 'multiple-users-hover-expand',
name: {
'zh-CN': '折叠 Tag, hover 展开',
'zh-CN': '折叠 Tag,hover 展开',
'en-US': 'Collapse Tag'
},
desc: {
'zh-CN':
'<p>多选时通过设置 <code>hover-expand</code> 为 true ,默认折叠 tag, hover 时展示所有 tag。tag 超出隐藏并展示 tooltip。</p>\n',
'<p>多选时通过设置 <code>hover-expand</code> 为 true,默认折叠 tag, hover 时展示所有 tag。tag 超出隐藏并展示 tooltip。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['multiple-users-hover-expand.vue']
Expand Down Expand Up @@ -96,7 +96,7 @@ export default {
{
demoId: 'tag-copy-all',
name: {
'zh-CN': 'user选择器选项可一键复制',
'zh-CN': 'user 选择器选项可一键复制',
'en-US': 'User selector options can be copied'
},
desc: {
Expand Down Expand Up @@ -182,7 +182,7 @@ export default {
},
desc: {
'zh-CN':
'<p>通过 <code>cache</code> 属性指定用户数据是否缓存,默认为缓存。\n\n<code>cache-key</code> 属性可以自定义缓存的 key 值,默认为 tiny-user 。\n\n<code>cache-fields</code> 属性用于指定缓存哪些用户数据。</p>\n',
'<p>通过 <code>cache</code> 属性指定用户数据是否缓存,默认为缓存。\n\n<code>cache-key</code> 属性可以自定义缓存的 key 值,默认为 tiny-user。\n\n<code>cache-fields</code> 属性用于指定缓存哪些用户数据。</p>\n',
'en-US':
'<p>The <code>cache</code> attribute specifies whether user data is cached. The default value is cached. The \n\n<code>cache-key</code> attribute can be used to customize the cache key value. The default value is tiny-user. The \n\n<code>cache-fields</code> property is used to specify which user data is cached. </p>\n'
},
Expand Down Expand Up @@ -269,7 +269,7 @@ export default {
},
desc: {
'zh-CN':
'<p>通过 <code>service</code> 属性可自定义用户服务,当用户在文本框中输入准确的账号时,会在下拉菜单中出现此用户。\n通过 <code>sort-by-fetch-data</code> 联想时下拉框的数据顺序和接口返回的数据顺序一致</p>\n',
'<p>通过 <code>service</code> 属性可自定义用户服务当用户在文本框中输入准确的账号时会在下拉菜单中出现此用户。\n通过 <code>sort-by-fetch-data</code> 联想时下拉框的数据顺序和接口返回的数据顺序一致</p>\n',
'en-US':
'<p>You can customize the user service through the <code>service</code> attribute. When a user enters an accurate account in the text box, the user is displayed in the drop-down menu. \nThe data sequence in the drop-down list box during <code>sort-by-fetch-data</code> association is the same as that returned by the interface.</p>\n'
},
Expand Down Expand Up @@ -308,7 +308,7 @@ export default {
},
desc: {
'zh-CN':
'<p>设置 <code>show-tips</code> 属性可展示用户信息,默认展示。</p>\n<p>设置 <code>max-width</code> 属性可设置 tips 展示信息最大宽度,默认`200`。</p>\n',
'<p>设置 <code>show-tips</code> 属性可展示用户信息,默认展示。</p>\n<p>设置 <code>max-width</code> 属性可设置 tips 展示信息最大宽度,默认 `200`。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['hidden-tips-disable.vue']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const config = reactive({
spanConfig: [[]] // 没有合并
})
const treeData = ref([])
const treeExpandeds = ref([1, 21]) // 树默认展开项的id
const treeExpandeds = ref([1, 21]) // 树默认展开项的 id
const rowOffset = ref('')
const nodeKey = 'id'
const rowHeight = 36
Expand Down Expand Up @@ -112,7 +112,7 @@ const flattenTreeData = () => {
config.rowSizes = chart.map(() => rowHeight) // 树的每一项高度

// 这两项没有实际作用,只是为了保证组件正常工作
config.columns = ['c-1'] // 只有1列
config.columns = ['c-1'] // 只有 1 列
config.columnSizes = [config.width - 17] // 这个列的宽度为 `虚滚区域宽度` 减去 `垂直滚动条宽度`
}

Expand Down
Loading
Loading