diff --git a/examples/sites/demos/pc/app/anchor/webdoc/anchor.js b/examples/sites/demos/pc/app/anchor/webdoc/anchor.js index 61f43642c..03a67ebbe 100644 --- a/examples/sites/demos/pc/app/anchor/webdoc/anchor.js +++ b/examples/sites/demos/pc/app/anchor/webdoc/anchor.js @@ -89,7 +89,7 @@ export default { { 'name': 'type', 'type': '"line" | "dot"', - 'defaultValue': '"line"', + 'defaultValue': `'line'`, 'desc': { 'zh-CN': '锚点类型', 'en-US': 'Anchor type' diff --git a/examples/sites/demos/pc/app/file-upload/multiple-file.spec.ts b/examples/sites/demos/pc/app/file-upload/multiple-file.spec.ts index 6aa6d1deb..c43778108 100644 --- a/examples/sites/demos/pc/app/file-upload/multiple-file.spec.ts +++ b/examples/sites/demos/pc/app/file-upload/multiple-file.spec.ts @@ -16,6 +16,8 @@ test('文件多选', async ({ page }) => { await expect(fileChooser.isMultiple()).toBe(true) await fileChooser.setFiles([path1, path2, path3]) - await expect(lists).toHaveCount(3) + await lists.getByText('测试.jpg').isVisible() + await lists.getByText('测试.svg').isVisible() + await lists.getByText('测试.png').isVisible() await expect(input).toHaveAttribute('multiple', '') }) diff --git a/examples/sites/demos/pc/app/file-upload/webdoc/file-upload.js b/examples/sites/demos/pc/app/file-upload/webdoc/file-upload.js index 4a4af0d3c..4a6ab16f2 100644 --- a/examples/sites/demos/pc/app/file-upload/webdoc/file-upload.js +++ b/examples/sites/demos/pc/app/file-upload/webdoc/file-upload.js @@ -420,7 +420,7 @@ export default { 'name': 'list-type', 'type': 'IListType', 'typeAnchorName': 'IListType', - 'defaultValue': 'text', + 'defaultValue': `'text'`, 'desc': { 'zh-CN': '文件列表的类型', 'en-US': 'File list type' @@ -459,7 +459,7 @@ export default { { 'name': 'name', 'type': 'string', - 'defaultValue': 'file', + 'defaultValue': `'file'`, 'desc': { 'zh-CN': '上传的文件字段名', 'en-US': 'Field name of the uploaded file' }, 'demoId': 'upload-file-list-slot' }, diff --git a/examples/sites/demos/pc/app/milestone/webdoc/milestone.js b/examples/sites/demos/pc/app/milestone/webdoc/milestone.js index 408de49d3..26e1ec47b 100644 --- a/examples/sites/demos/pc/app/milestone/webdoc/milestone.js +++ b/examples/sites/demos/pc/app/milestone/webdoc/milestone.js @@ -135,7 +135,7 @@ export default { { 'name': 'completed-field', 'type': 'string', - 'defaultValue': 'completed', + 'defaultValue': `'completed'`, 'desc': { 'zh-CN': '设置节点完成状态对应的键值', 'en-US': 'Set the key values corresponding to the node completion status' @@ -167,7 +167,7 @@ export default { { 'name': 'flag-content-field', 'type': 'string', - 'defaultValue': 'content', + 'defaultValue': `'content'`, 'desc': { 'zh-CN': '设置旗子内容描述部分对应的键名', 'en-US': 'Set the key name corresponding to the flag content description section' @@ -177,7 +177,7 @@ export default { { 'name': 'flag-field', 'type': 'string', - 'defaultValue': 'flags', + 'defaultValue': `'flags'`, 'desc': { 'zh-CN': '设置旗子信息数组对应的键名', 'en-US': 'Set the key name corresponding to the flag information array' @@ -187,7 +187,7 @@ export default { { 'name': 'flag-name-field', 'type': 'string', - 'defaultValue': 'name', + 'defaultValue': `'name'`, 'desc': { 'zh-CN': '设置旗子标题对应的键名', 'en-US': 'Set the key name corresponding to the flag title' @@ -197,7 +197,7 @@ export default { { 'name': 'flag-status-field', 'type': 'string', - 'defaultValue': 'status', + 'defaultValue': `'status'`, 'desc': { 'zh-CN': '设置旗子状态对应的键名', 'en-US': 'Set the key name corresponding to the flag state' @@ -206,7 +206,7 @@ export default { }, { 'name': 'line-style', - 'type': 'number | string', + 'type': `'number' | 'string'`, 'defaultValue': '1', 'desc': { 'zh-CN': `线条颜色取值模式为数字时,只有1和2可选;如果为字符串则需传入 16 进制颜色值
@@ -235,7 +235,7 @@ export default { { 'name': 'name-field', 'type': 'string', - 'defaultValue': 'name', + 'defaultValue': `'name'`, 'desc': { 'zh-CN': '设置节点名称对应的键名', 'en-US': 'Set the key name corresponding to the node name' @@ -285,7 +285,7 @@ export default { { 'name': 'status-field', 'type': 'string', - 'defaultValue': 'status', + 'defaultValue': `'status'`, 'desc': { 'zh-CN': '设置节点状态对应的键名', 'en-US': 'Set the key name corresponding to the node state' @@ -295,7 +295,7 @@ export default { { 'name': 'time-field', 'type': 'string', - 'defaultValue': 'time', + 'defaultValue': `'time'`, 'desc': { 'zh-CN': '设置节点时间信息对应的键名', 'en-US': 'Set the key name corresponding to node time information' diff --git a/examples/sites/demos/pc/app/pop-upload/webdoc/pop-upload.js b/examples/sites/demos/pc/app/pop-upload/webdoc/pop-upload.js index d3a68aa64..b887aa61d 100644 --- a/examples/sites/demos/pc/app/pop-upload/webdoc/pop-upload.js +++ b/examples/sites/demos/pc/app/pop-upload/webdoc/pop-upload.js @@ -258,7 +258,7 @@ export default { { 'name': 'upload-button-text', 'type': 'string', - 'defaultValue': "'选择文件'", + 'defaultValue': `'选择文件'`, 'desc': { 'zh-CN': '打开弹出框的按钮的文本配置属性', 'en-US': 'Text configuration attribute of the button for opening a dialog box' @@ -278,7 +278,7 @@ export default { { 'name': 'upload-name', 'type': 'string', - 'defaultValue': "'file'", + 'defaultValue': `'file'`, 'desc': { 'zh-CN': '上传的文件字段名', 'en-US': 'Field name of the uploaded file' }, 'demoId': 'basic-usage' }, diff --git a/examples/sites/demos/pc/app/progress/webdoc/progress.js b/examples/sites/demos/pc/app/progress/webdoc/progress.js index 6e4765ae5..c34c2fa24 100644 --- a/examples/sites/demos/pc/app/progress/webdoc/progress.js +++ b/examples/sites/demos/pc/app/progress/webdoc/progress.js @@ -148,7 +148,7 @@ export default { { 'name': 'type', 'type': 'string', - 'defaultValue': 'line', + 'defaultValue': `'line'`, 'desc': { 'zh-CN': '进度条类型;该属性的可选值为 line / circle / dashboard', 'en-US': 'Progress bar type; The value of this attribute can be line, circle, or dashboard' diff --git a/examples/sites/demos/pc/app/tabs/webdoc/tabs.js b/examples/sites/demos/pc/app/tabs/webdoc/tabs.js index aa80e9641..c12570d63 100644 --- a/examples/sites/demos/pc/app/tabs/webdoc/tabs.js +++ b/examples/sites/demos/pc/app/tabs/webdoc/tabs.js @@ -258,7 +258,7 @@ export default { 'name': 'position', 'type': 'IPosition', 'typeAnchorName': 'IPosition', - 'defaultValue': 'top', + 'defaultValue': `'top'`, 'desc': { 'zh-CN': '设置页签栏所在位置; 默认为 top', 'en-US': 'Set the location of the label bar; Default to top' diff --git a/examples/sites/demos/pc/app/tag/webdoc/tag.js b/examples/sites/demos/pc/app/tag/webdoc/tag.js index 5ac2631e8..b5676ed9d 100644 --- a/examples/sites/demos/pc/app/tag/webdoc/tag.js +++ b/examples/sites/demos/pc/app/tag/webdoc/tag.js @@ -131,7 +131,7 @@ export default { 'name': 'effect', 'type': 'IEffect', 'typeAnchorName': 'IEffect', - 'defaultValue': 'light', + 'defaultValue': `'light'`, 'desc': { 'zh-CN': '主题', 'en-US': 'Subject'