Skip to content

Commit 77247ff

Browse files
authored
feat: update chart docs (#1623)
1 parent 3d165a1 commit 77247ff

File tree

1,291 files changed

+8390
-8708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,291 files changed

+8390
-8708
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ packages/theme/src/theme/*-theme/component.js
6262
pnpm-lock.yaml
6363
gulp/bundle.json
6464

65+
# 屏蔽测试用例报告相关文件
66+
allure-report
67+
allure-results
68+
test-results
69+
6570
# 本地构建的saas相关资源文件
6671
examples/sites/public/tiny-vue*.js
6772
examples/sites/public/tiny-vue*.mjs

examples/docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"sortablejs": "1.15.0"
1919
},
2020
"devDependencies": {
21-
"@playwright/test": "^1.40.1"
21+
"@playwright/test": "~1.42.0"
2222
},
2323
"files": [
2424
"resources"
2525
]
26-
}
26+
}

examples/sites/demos/apis/dialog-box.js

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ export default {
161161
{
162162
name: 'resize',
163163
type: 'boolean',
164-
defaultValue: 'true',
164+
defaultValue: 'false',
165165
desc: {
166-
'zh-CN': '实现窗口最大化',
167-
'en-US': 'Maximize windows'
166+
'zh-CN': '弹窗是否能切换全屏',
167+
'en-US': 'Whether the pop-up window can be switched to full screen'
168168
},
169169
mode: ['pc'],
170170
pcDemo: 'form-in-dialog'
@@ -245,6 +245,17 @@ export default {
245245
},
246246
mode: ['pc'],
247247
pcDemo: 'dialog-width'
248+
},
249+
{
250+
name: 'dialog-transition',
251+
type: 'string',
252+
defaultValue: ``,
253+
desc: {
254+
'zh-CN': '启动弹出动效由小变大',
255+
'en-US': 'Startup pop-up effect from small to large'
256+
},
257+
mode: ['pc'],
258+
pcDemo: 'transition-effect'
248259
}
249260
],
250261
events: [
@@ -335,6 +346,18 @@ export default {
335346
},
336347
mode: ['pc'],
337348
pcDemo: 'open-close-events'
349+
},
350+
{
351+
name: 'resize',
352+
typeAnchorName: 'IResizeEvent',
353+
type: '(ev: IResizeEvent) => void',
354+
defaultValue: '',
355+
desc: {
356+
'zh-CN': '弹窗大小变化时的事件,比如切换全屏状态时',
357+
'en-US': 'Event when the pop-up window size changes, for example, when the full-screen mode is switched.'
358+
},
359+
mode: ['pc'],
360+
pcDemo: 'fullscreen'
338361
}
339362
],
340363
methods: [],
@@ -343,7 +366,7 @@ export default {
343366
name: 'default',
344367
defaultValue: '',
345368
desc: {
346-
'zh-CN': 'Dialog 的内容',
369+
'zh-CN': 'Dialog 的内容插槽',
347370
'en-US': 'Dialog content'
348371
},
349372
mode: ['pc'],
@@ -353,7 +376,7 @@ export default {
353376
name: 'footer',
354377
defaultValue: '',
355378
desc: {
356-
'zh-CN': 'Dialog 按钮操作区的内容',
379+
'zh-CN': 'Dialog 按钮操作区的内容插槽',
357380
'en-US': 'Dialog button operation area content'
358381
},
359382
mode: ['pc'],
@@ -363,13 +386,27 @@ export default {
363386
name: 'title',
364387
defaultValue: '',
365388
desc: {
366-
'zh-CN': 'Dialog 标题区的内容',
389+
'zh-CN': 'Dialog 标题区的内容插槽',
367390
'en-US': 'Dialog content in the title area'
368391
},
369392
mode: ['pc'],
370393
pcDemo: 'custom-dialog-title'
371394
}
372395
]
373396
}
397+
],
398+
types: [
399+
{
400+
name: 'IResizeEvent',
401+
type: 'interface',
402+
code: `
403+
interface IResizeEvent {
404+
// 当前的全屏状态
405+
fullscreen: boolean
406+
// 弹窗的元素
407+
dialog: HTMLElement
408+
}
409+
`
410+
}
374411
]
375412
}

examples/sites/demos/apis/dialog-select.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,18 @@ export default {
362362
},
363363
mode: ['pc'],
364364
pcDemo: 'nest-grid-multi'
365+
},
366+
{
367+
name: 'resize',
368+
typeAnchorName: 'IResizeEvent',
369+
type: '(ev: IResizeEvent) => void',
370+
defaultValue: '',
371+
desc: {
372+
'zh-CN': '弹窗大小变化时的事件,比如切换全屏状态时',
373+
'en-US': 'Event when the pop-up window size changes, for example, when the full-screen mode is switched.'
374+
},
375+
mode: ['pc'],
376+
pcDemo: ''
365377
}
366378
],
367379
methods: [
@@ -637,6 +649,18 @@ newPageSize: number // 变更后分页大小
637649
currentPage: number // 当前所在页
638650
currentPageSize: number // 当前分页大小
639651
}`
652+
},
653+
{
654+
name: 'IResizeEvent',
655+
type: 'interface',
656+
code: `
657+
interface IResizeEvent {
658+
// 当前的全屏状态
659+
fullscreen: boolean
660+
// 弹窗的元素
661+
dialog: HTMLElement
662+
}
663+
`
640664
}
641665
]
642666
}

examples/sites/demos/apis/dialogbox.js

Lines changed: 0 additions & 145 deletions
This file was deleted.

examples/sites/demos/apis/file-upload.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,18 @@ export default {
327327
mode: ['mobile-first'],
328328
mfDemo: ''
329329
},
330+
{
331+
name: 'image-bg-color',
332+
type: 'string',
333+
defaultValue: '',
334+
desc: {
335+
'zh-CN': '配置 `list-type` 等于 `picture-single` 或 `picture-card` 模式下图片的背景色。',
336+
'en-US':
337+
'Configure the background color of the image when `list-type` is set to `picture-single` or `picture-card`.'
338+
},
339+
mode: ['mobile-first'],
340+
mfDemo: ''
341+
},
330342
{
331343
name: 'is-folder-title',
332344
type: 'Boolean',
@@ -1067,7 +1079,7 @@ interface IHeaders {
10671079
name: 'IListType',
10681080
type: 'type',
10691081
code: `
1070-
type IListType = 'text' | 'picture' | 'picture-card' | 'thumb' | 'saas'
1082+
type IListType = 'text' | 'picture' | 'picture-card' | 'thumb' | 'saas' // saas为3.14.0版本新增
10711083
`
10721084
},
10731085
{

examples/sites/demos/apis/form.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,16 @@ export default {
602602
},
603603
mode: ['pc'],
604604
pcDemo: 'error-label'
605+
},
606+
{
607+
name: 'prompt',
608+
defaultValue: '',
609+
desc: {
610+
'zh-CN': '强提示插槽',
611+
'en-US': 'Prompt slot'
612+
},
613+
mode: ['mobile-first'],
614+
mfDemo: 'prompt-slot'
605615
}
606616
]
607617
}

examples/sites/demos/apis/popover.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ interface IPopperOption {
374374
bubbling: boolean // 是否监听元素所有上级有滚动元素的scroll事件,监听到则更新popper的位置。用于解决某些弹出层位置在页面滚动时,位置不正确的场景,默认false
375375
followReferenceHide: boolean // 当触发源隐藏时,自动隐藏弹出层,默认true
376376
removeOnDestroy: boolean // 弹出层消失后,是否移除弹出层的DOM元素,布尔false
377+
updateHiddenPopperOnScroll: boolean // 滚动过程中是否更新隐藏的弹出层位置
378+
boundariesElement: 'viewport' | 'body' | HTMLElement // 滚动过程中,弹出层的碰撞边界。 默认值为: 'viewport'
377379
}
378380
`
379381
},

0 commit comments

Comments
 (0)