@opentinyvue/vue-docs 3.29.3 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/demos/apis/action-menu.js +22 -0
  2. package/demos/apis/alert.js +19 -22
  3. package/demos/apis/calendar-view.js +5 -5
  4. package/demos/apis/cascader-view.js +5 -5
  5. package/demos/apis/dialog-box.js +39 -38
  6. package/demos/apis/drawer.js +15 -0
  7. package/demos/apis/fluent-editor.js +30 -0
  8. package/demos/apis/fullscreen.js +10 -11
  9. package/demos/apis/grid.js +99 -16
  10. package/demos/apis/link.js +11 -0
  11. package/demos/apis/modal.js +32 -30
  12. package/demos/apis/notify.js +13 -13
  13. package/demos/apis/select.js +14 -2
  14. package/demos/apis/tree.js +23 -23
  15. package/demos/mobile-first/app/calendar-view/webdoc/calendar-view.js +5 -4
  16. package/demos/pc/app/button-group/display-mode-composition-api.vue +23 -0
  17. package/demos/pc/app/button-group/display-mode.vue +13 -13
  18. package/demos/pc/app/button-group/sup-composition-api.vue +1 -0
  19. package/demos/pc/app/button-group/sup.vue +1 -0
  20. package/demos/pc/app/calendar-view/custom-day-bg-color.vue +10 -0
  21. package/demos/pc/app/calendar-view/webdoc/calendar-view.js +4 -4
  22. package/demos/pc/app/checkbox/checked-composition-api.vue +3 -3
  23. package/demos/pc/app/checkbox/checked.vue +3 -3
  24. package/demos/pc/app/drawer/basic-usage.spec.ts +4 -3
  25. package/demos/pc/app/drawer/placement.spec.ts +4 -4
  26. package/demos/pc/app/drawer/show-header.spec.ts +3 -2
  27. package/demos/pc/app/dropdown/show-icon-composition-api.vue +1 -1
  28. package/demos/pc/app/dropdown/show-icon.vue +1 -1
  29. package/demos/pc/app/form/group-form-composition-api.vue +2 -2
  30. package/demos/pc/app/form/group-form.vue +2 -2
  31. package/demos/pc/app/grid/filter/advanced-filter-composition-api.vue +1 -1
  32. package/demos/pc/app/grid/filter/advanced-filter.spec.js +1 -0
  33. package/demos/pc/app/grid/filter/advanced-filter.vue +1 -1
  34. package/demos/pc/app/grid/filter/custom-filter-composition-api.vue +46 -23
  35. package/demos/pc/app/grid/filter/custom-filter.spec.js +1 -1
  36. package/demos/pc/app/grid/filter/custom-filter.vue +47 -24
  37. package/demos/pc/app/grid/filter/default-filter.spec.ts +1 -0
  38. package/demos/pc/app/grid/filter/filter-label-value-composition-api.vue +71 -0
  39. package/demos/pc/app/grid/filter/filter-label-value.spec.ts +27 -0
  40. package/demos/pc/app/grid/filter/filter-label-value.vue +78 -0
  41. package/demos/pc/app/grid/filter/input-filter-custom-component-composition-api.vue +116 -0
  42. package/demos/pc/app/grid/filter/input-filter-custom-component.spec.ts +20 -0
  43. package/demos/pc/app/grid/filter/input-filter-custom-component.vue +126 -0
  44. package/demos/pc/app/grid/filter/layout-order-filter-composition-api.vue +114 -0
  45. package/demos/pc/app/grid/filter/layout-order-filter.spec.ts +31 -0
  46. package/demos/pc/app/grid/filter/layout-order-filter.vue +123 -0
  47. package/demos/pc/app/grid/webdoc/grid-filter.js +89 -41
  48. package/demos/pc/app/link/custom-icon-composition-api.vue +1 -1
  49. package/demos/pc/app/link/custom-icon.vue +1 -1
  50. package/demos/pc/app/link/target-composition-api.vue +24 -0
  51. package/demos/pc/app/link/target.spec.ts +41 -0
  52. package/demos/pc/app/link/target.vue +30 -0
  53. package/demos/pc/app/link/webdoc/link.js +14 -0
  54. package/demos/pc/app/select-wrapper/copy-multi.spec.ts +2 -1
  55. package/demos/pc/app/tabs/tabs-events-close-composition-api.vue +8 -2
  56. package/demos/pc/app/tabs/tabs-events-close.vue +8 -2
  57. package/demos/pc/menus.js +3 -3
  58. package/demos/pc/webdoc/changelog-en.md +121 -86
  59. package/demos/pc/webdoc/changelog.md +121 -86
  60. package/demos/pc/webdoc/develop-demo-en.md +13 -13
  61. package/demos/pc/webdoc/import-components.md +1 -1
  62. package/demos/pc/webdoc/skills-en.md +107 -0
  63. package/demos/pc/webdoc/skills.md +107 -0
  64. package/demos/pc/webdoc/theme-en.md +82 -79
  65. package/demos/saas/menus.js +1 -0
  66. package/package.json +19 -20
  67. package/src/i18n/index.js +1 -2
  68. package/src/main.js +8 -5
  69. package/src/views/components-doc/common.vue +0 -25
  70. package/demos/pc/app/grid/webdoc/grid-ai-agent.js +0 -23
  71. package/demos/pc/webdoc/mcp-en.md +0 -101
  72. package/demos/pc/webdoc/mcp.md +0 -101
  73. package/src/components/mcp-docs.vue +0 -33
  74. package/src/composable/useTinyRemoter.ts +0 -176
@@ -852,8 +852,8 @@ export default {
852
852
  type: '',
853
853
  defaultValue: '',
854
854
  desc: {
855
- 'zh-CN': '选项默认插槽',
856
- 'en-US': 'Option default slot'
855
+ 'zh-CN': '选项默认插槽。接收 <code>item</code> 的参数',
856
+ 'en-US': 'Option default slot. Receives <code>item</code> as a parameter'
857
857
  },
858
858
  mode: ['pc', 'mobile-first'],
859
859
  pcDemo: 'slot-default',
@@ -894,6 +894,18 @@ export default {
894
894
  mode: ['pc', 'mobile-first'],
895
895
  pcDemo: 'slot-header-footer'
896
896
  },
897
+ {
898
+ name: 'label',
899
+ type: '',
900
+ defaultValue: '',
901
+ desc: {
902
+ 'zh-CN': '多选模式时,标签的自定义插槽。接收 <code>item</code> 的参数',
903
+ 'en-US': 'Custom label slot for multiple choice mode. Receives <code>item</code> as a parameter'
904
+ },
905
+ mode: ['pc', 'mobile-first'],
906
+ pcDemo: 'slot-label',
907
+ mfDemo: 'slot-label'
908
+ },
897
909
  {
898
910
  name: 'prefix',
899
911
  type: '',
@@ -23,7 +23,7 @@ export default {
23
23
  desc: {
24
24
  'zh-CN': '禁止添加的节点 key 值列表,也可通过 setAddDisabledKeys 方法设置',
25
25
  'en-US':
26
- 'List of key values of nodes that cannot be added. You can also use the setAddDisabledKeys method to set the key values.'
26
+ 'List of key values of nodes that cannot be added. You can also use the setAddDisabledKeys method to set the key values'
27
27
  },
28
28
  mode: ['pc'],
29
29
  pcDemo: 'edit-control'
@@ -45,7 +45,7 @@ export default {
45
45
  defaultValue: '',
46
46
  desc: {
47
47
  'zh-CN': '判断节点能否被拖拽',
48
- 'en-US': 'Whether a node can be dragged.'
48
+ 'en-US': 'Whether a node can be dragged'
49
49
  },
50
50
  mode: ['pc'],
51
51
  pcDemo: 'drag'
@@ -58,7 +58,7 @@ export default {
58
58
  'zh-CN':
59
59
  "拖拽时判定目标节点能否被放置。type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后",
60
60
  'en-US':
61
- "Whether the target node can be placed during dragging. The type parameter has three situations: 'prev',' inner', and'next', which indicate that it is placed before the target node, inserted into the target node, and placed after the target node respectively"
61
+ "Whether the target node can be placed during dragging. The type parameter has three situations: 'prev', 'inner', and 'next', which indicate that it is placed before the target node, inserted into the target node, and placed after the target node respectively"
62
62
  },
63
63
  mode: ['pc'],
64
64
  pcDemo: 'drag'
@@ -137,7 +137,7 @@ export default {
137
137
  desc: {
138
138
  'zh-CN': '默认展开节点的keys。当属性变化时,会自动收起全部并重新展开指定的数据项。 ',
139
139
  'en-US':
140
- 'The keys of the node are expanded by default.When the property changes, it automatically collapses all and reexpands the specified data item.'
140
+ 'The keys of the node are expanded by default. When the property changes, it automatically collapses all and reexpands the specified data item'
141
141
  },
142
142
  mode: ['pc'],
143
143
  pcDemo: 'expand-control'
@@ -149,7 +149,7 @@ export default {
149
149
  desc: {
150
150
  'zh-CN': '禁止删除的节点 key 值列表,也可通过 setDeleteDisabledKeys 方法设置',
151
151
  'en-US':
152
- 'Indicates the list of key values of nodes that cannot be deleted. You can also use the setDeleteDisabledKeys method to set the key values.'
152
+ 'Indicates the list of key values of nodes that cannot be deleted. You can also use the setDeleteDisabledKeys method to set the key values'
153
153
  },
154
154
  mode: ['pc'],
155
155
  pcDemo: 'edit-control'
@@ -161,7 +161,7 @@ export default {
161
161
  desc: {
162
162
  'zh-CN': '删除节点的装置钩子函数,若返回 false 或者返回 Promise 且被 reject,则停止删除。 ',
163
163
  'en-US':
164
- 'Device hook function for deleting a node. If false is returned or Promise is returned and rejected, the deletion is stopped.'
164
+ 'Device hook function for deleting a node. If false is returned or Promise is returned and rejected, the deletion is stopped'
165
165
  },
166
166
  mode: ['pc'],
167
167
  pcDemo: 'edit-control'
@@ -184,7 +184,7 @@ export default {
184
184
  desc: {
185
185
  'zh-CN': '禁止编辑的节点 key 值列表,也可通过 setEditDisabledKeys 方法设置',
186
186
  'en-US':
187
- 'List of key values of nodes that cannot be edited. You can also use the setEditDisabledKeys method to set the key values.'
187
+ 'List of key values of nodes that cannot be edited. You can also use the setEditDisabledKeys method to set the key values'
188
188
  },
189
189
  mode: ['pc'],
190
190
  pcDemo: 'edit-control'
@@ -284,7 +284,7 @@ export default {
284
284
  defaultValue: '18',
285
285
  desc: {
286
286
  'zh-CN': '相邻级节点间的水平缩进,单位为像素',
287
- 'en-US': 'horizontal indentation between adjacent nodes, in pixels.'
287
+ 'en-US': 'horizontal indentation between adjacent nodes, in pixels'
288
288
  },
289
289
  mode: ['pc'],
290
290
  pcDemo: 'basic-usage'
@@ -308,7 +308,7 @@ export default {
308
308
  'zh-CN':
309
309
  '加载子树数据的方法。点击节点后,组件开始调用load方法,只有在load函数内调用resolve(data),才表示返回下级的数据成功。',
310
310
  'en-US':
311
- 'Method of loading subtree data. After the node is clicked, the component starts to call the load method. Only when resolve(data) is called in the load function, the data at the lower level is successfully returned.'
311
+ 'Method of loading subtree data. After the node is clicked, the component starts to call the load method. Only when resolve(data) is called in the load function, the data at the lower level is successfully returned'
312
312
  },
313
313
  mode: ['pc'],
314
314
  pcDemo: 'lazy'
@@ -387,7 +387,7 @@ export default {
387
387
  desc: {
388
388
  'zh-CN': '在严格模式时,是否显示勾选父节点时,自动勾选子节点的功能区域',
389
389
  'en-US':
390
- 'In strict mode, when the parent node is displayed, the function area of the child node is automatically selected.'
390
+ 'In strict mode, when the parent node is displayed, the function area of the child node is automatically selected'
391
391
  },
392
392
  mode: ['pc'],
393
393
  pcDemo: 'other'
@@ -453,7 +453,7 @@ export default {
453
453
  defaultValue: '',
454
454
  desc: {
455
455
  'zh-CN': '指示收缩的图标色',
456
- 'en-US': 'Icon indicating shrink color'
456
+ 'en-US': 'Icon indicating shrink color'
457
457
  },
458
458
  mode: ['pc'],
459
459
  pcDemo: 'icons'
@@ -488,7 +488,7 @@ export default {
488
488
  desc: {
489
489
  'zh-CN': '用于编辑模式下参数配置,指示新增节点的 id ,是否显示 id 重复的警告等',
490
490
  'en-US':
491
- 'Used for parameter configuration in editing mode, indicating the ID of a new node and whether to display a warning indicating duplicate IDs.'
491
+ 'Used for parameter configuration in editing mode, indicating the ID of a new node and whether to display a warning indicating duplicate IDs'
492
492
  },
493
493
  mode: ['pc'],
494
494
  pcDemo: 'edit'
@@ -499,7 +499,7 @@ export default {
499
499
  defaultValue: 'false',
500
500
  desc: {
501
501
  'zh-CN': '通过 <code> highlightQuery </code> 属性,是否在匹配的节点中,高亮搜索文字。',
502
- 'en-US': 'Indicates whether to highlight the search text in the matched node.'
502
+ 'en-US': 'Indicates whether to highlight the search text in the matched node'
503
503
  },
504
504
  mode: ['pc'],
505
505
  pcDemo: 'filter-view'
@@ -512,7 +512,7 @@ export default {
512
512
  'zh-CN':
513
513
  '通过设置 <code> showCheckedMark </code> 属性为true,且非多选模式时,可以在选中行的最右边显示 <code> √ </code> 号。',
514
514
  'en-US':
515
- 'By setting the <code> showCheckedMark </code> property to true, you can display the <code> √ </code> number on the far right when a line is selected.'
515
+ 'By setting the <code> showCheckedMark </code> property to true, you can display the <code> √ </code> number on the far right when a line is selected'
516
516
  },
517
517
  mode: ['pc'],
518
518
  pcDemo: ''
@@ -564,7 +564,7 @@ export default {
564
564
  'zh-CN':
565
565
  '平铺模式下,勾选或取消勾选节点的事件,需要设置show-checkbox为true才生效。<br>参数说明:{ plainNode: 被点击的节点数据, value: 复选框是否选中,取值true或false }',
566
566
  'en-US':
567
- 'In tile mode, select or deselect node events to take effect only when show-checkbox is set to true. <br> Parameter description: {plainNode: indicates the node data to be clicked. value: indicates whether the check box is selected. The value can be true or false.'
567
+ 'In tile mode, select or deselect node events to take effect only when show-checkbox is set to true. <br> Parameter description: {plainNode: indicates the node data to be clicked. value: indicates whether the check box is selected. The value can be true or false}'
568
568
  },
569
569
  mode: ['pc'],
570
570
  pcDemo: ''
@@ -874,7 +874,7 @@ export default {
874
874
  desc: {
875
875
  'zh-CN': '返回目前被选中的节点的 key 所组成的数组。当参数:leafOnly 为true时,只返回被选中的叶子节点。',
876
876
  'en-US':
877
- 'Returns an array of keys for the currently selected node. If the parameter: leafOnly is true, only the selected leaf nodes are returned.'
877
+ 'Returns an array of keys for the currently selected node. If the parameter: leafOnly is true, only the selected leaf nodes are returned'
878
878
  },
879
879
  mode: ['pc'],
880
880
  pcDemo: 'check-op'
@@ -929,7 +929,7 @@ export default {
929
929
  defaultValue: '',
930
930
  desc: {
931
931
  'zh-CN': '返回目前半选中的节点所组成的数组',
932
- 'en-US': 'Returns an array of currently half-selected nodes.'
932
+ 'en-US': 'Returns an array of currently half-selected nodes'
933
933
  },
934
934
  mode: ['pc'],
935
935
  pcDemo: 'check-op'
@@ -984,7 +984,7 @@ export default {
984
984
  defaultValue: '',
985
985
  desc: {
986
986
  'zh-CN': '在一个节点的前面增加一个节点',
987
- 'en-US': 'Add a node before a tree node.'
987
+ 'en-US': 'Add a node before a tree node'
988
988
  },
989
989
  mode: ['pc'],
990
990
  pcDemo: 'node-op'
@@ -1007,7 +1007,7 @@ export default {
1007
1007
  desc: {
1008
1008
  'zh-CN': '删除节点。当参数:isSaveChildNode为true时,当前节点的子元素上移至删除节点的父节点中去。',
1009
1009
  'en-US':
1010
- 'Delete a node. When isSaveChildNode is true, the child elements of the current node are moved up to the parent node of the deleted node.'
1010
+ 'Delete a node. When isSaveChildNode is true, the child elements of the current node are moved up to the parent node of the deleted node'
1011
1011
  },
1012
1012
  mode: ['pc'],
1013
1013
  pcDemo: 'node-op'
@@ -1040,7 +1040,7 @@ export default {
1040
1040
  defaultValue: '',
1041
1041
  desc: {
1042
1042
  'zh-CN': '设置禁止添加的节点 key 值列表',
1043
- 'en-US': 'Sets the list of key values of nodes that cannot be added.'
1043
+ 'en-US': 'Sets the list of key values of nodes that cannot be added'
1044
1044
  },
1045
1045
  mode: ['pc'],
1046
1046
  pcDemo: 'edit-control'
@@ -1129,7 +1129,7 @@ export default {
1129
1129
  defaultValue: '',
1130
1130
  desc: {
1131
1131
  'zh-CN': '设置禁止删除的节点 key 值列表',
1132
- 'en-US': 'Sets the list of key values of nodes that cannot be delete.'
1132
+ 'en-US': 'Sets the list of key values of nodes that cannot be delete'
1133
1133
  },
1134
1134
  mode: ['pc'],
1135
1135
  pcDemo: 'edit-control'
@@ -1140,7 +1140,7 @@ export default {
1140
1140
  defaultValue: '',
1141
1141
  desc: {
1142
1142
  'zh-CN': '设置禁止编辑的节点 key 值列表',
1143
- 'en-US': 'Sets the list of key values of nodes that cannot be edit.'
1143
+ 'en-US': 'Sets the list of key values of nodes that cannot be edit'
1144
1144
  },
1145
1145
  mode: ['pc'],
1146
1146
  pcDemo: 'edit-control'
@@ -1224,7 +1224,7 @@ export default {
1224
1224
  desc: {
1225
1225
  'zh-CN': '在严格模式显示自动勾选子节点的功能时,自定义开关右侧的内容',
1226
1226
  'en-US':
1227
- 'When the function of automatically selecting subnodes is displayed in strict mode, the content on the right of the customized switch is displayed.'
1227
+ 'When the function of automatically selecting subnodes is displayed in strict mode, the content on the right of the customized switch is displayed'
1228
1228
  },
1229
1229
  mode: ['pc'],
1230
1230
  pcDemo: 'other'
@@ -71,7 +71,7 @@ export default {
71
71
  'en-US': ''
72
72
  },
73
73
  desc: {
74
- 'zh-CN': '<p>通过dayTimes属性配置时间线模式下所展示的时间范围,默认为[8,18],可配范围[0,23]。</p>\n',
74
+ 'zh-CN': '<p>通过 dayTimes 属性配置时间线模式下所展示的时间范围,默认为 [8,18],可配范围 [0,23]。</p>\n',
75
75
  'en-US': '<p></p>\n'
76
76
  },
77
77
  codeFiles: ['calendar-timeline-range.vue']
@@ -96,7 +96,7 @@ export default {
96
96
  },
97
97
  desc: {
98
98
  'zh-CN':
99
- '<p>通过showMark回调函数来标记某些日期,markColor属性设置标记的颜色,此功能只在时间线模式和日程模式生效。markColor可选颜色同 theme</p>\n',
99
+ '<p>通过 showMark 回调函数来标记某些日期,markColor 属性设置标记的颜色,此功能只在时间线模式和日程模式生效。markColor 可选颜色同 theme</p>\n',
100
100
  'en-US': '<p></p>\n'
101
101
  },
102
102
  codeFiles: ['calendar-day-mark.vue']
@@ -133,8 +133,9 @@ export default {
133
133
  },
134
134
  desc: {
135
135
  'zh-CN':
136
- '<p>自定义日期单元格背景色。</p>\n<p>目前只支持预置的颜色,可选颜色blue、green、red、yellow、purple、cyan、grey</p>\n',
137
- 'en-US': '<p></p>\n'
136
+ '<p>自定义日期单元格背景色。</p>\n<p>目前支持预置的颜色,可选颜色 blue、green、red、yellow、purple、cyan、grey 和使用十六进制、rgb、rgba 的是自定义颜色</p>\n',
137
+ 'en-US':
138
+ '<p>Customize the background color of date cells.</p>\n<p>Currently supports both preset colors (options include blue, green, red, yellow, purple, cyan, and grey) and custom colors defined using hexadecimal, RGB, or RGBA values.</p>'
138
139
  },
139
140
  codeFiles: ['custom-day-bg-color.vue']
140
141
  },
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <div>
3
+ <!-- 默认模式 -->
4
+ <tiny-button-group :data="groupData" v-model="checkedVal" />
5
+ <br />
6
+ <br />
7
+
8
+ <!-- 圆角合并模式 -->
9
+ <tiny-button-group :data="groupData" v-model="checkedVal" display-mode="merged" />
10
+ </div>
11
+ </template>
12
+
13
+ <script setup>
14
+ import { ref } from 'vue'
15
+ import { TinyButtonGroup } from '@opentiny/vue'
16
+
17
+ const checkedVal = ref('Button1')
18
+ const groupData = ref([
19
+ { text: 'Button1', value: 'Button1' },
20
+ { text: 'Button2', value: 'Button2' },
21
+ { text: 'Button3', value: 'Button3' }
22
+ ])
23
+ </script>
@@ -2,30 +2,30 @@
2
2
  <div>
3
3
  <!-- 默认模式 -->
4
4
  <tiny-button-group :data="groupData" v-model="checkedVal" />
5
- <br>
6
- <br>
7
-
5
+ <br />
6
+ <br />
7
+
8
8
  <!-- 圆角合并模式 -->
9
9
  <tiny-button-group :data="groupData" v-model="checkedVal" display-mode="merged" />
10
10
  </div>
11
11
  </template>
12
12
 
13
13
  <script>
14
- import { TinyButtonGroup } from "@opentiny/vue";
14
+ import { TinyButtonGroup } from '@opentiny/vue'
15
15
 
16
16
  export default {
17
17
  components: {
18
- TinyButtonGroup,
18
+ TinyButtonGroup
19
19
  },
20
20
  data() {
21
21
  return {
22
- checkedVal: "Button1",
22
+ checkedVal: 'Button1',
23
23
  groupData: [
24
- { text: "Button1", value: "Button1" },
25
- { text: "Button2", value: "Button2" },
26
- { text: "Button3", value: "Button3" },
27
- ],
28
- };
29
- },
30
- };
24
+ { text: 'Button1', value: 'Button1' },
25
+ { text: 'Button2', value: 'Button2' },
26
+ { text: 'Button3', value: 'Button3' }
27
+ ]
28
+ }
29
+ }
30
+ }
31
31
  </script>
@@ -105,6 +105,7 @@ const groupDataTag = ref([
105
105
  }
106
106
 
107
107
  .tiny-button-group :deep(.sup-slot) {
108
+ display: flex;
108
109
  line-height: 1;
109
110
  padding: 0 4px;
110
111
  border-top-left-radius: 4px;
@@ -115,6 +115,7 @@ export default {
115
115
  }
116
116
 
117
117
  .tiny-button-group :deep(.sup-slot) {
118
+ display: flex;
118
119
  line-height: 1;
119
120
  padding: 0 4px;
120
121
  border-top-left-radius: 4px;
@@ -19,6 +19,16 @@ export default {
19
19
  setDayBgColor(date) {
20
20
  if (date.split('-')[2] === '10') {
21
21
  return 'red'
22
+ }else if (date.split('-')[2] === '15') {
23
+ return '#00FF00'
24
+ } else if (date.split('-')[2] === '20') {
25
+ return 'rgb(0,0,255)'
26
+ }else if (date.split('-')[2] === '25') {
27
+ return 'rgba(255,0,0,0.5)'
28
+ }else if( date.split('-')[2] === '5'){
29
+ return 'yellow'
30
+ }else if ( date.split('-')[2] === '8'){
31
+ return 'green'
22
32
  }
23
33
  return ''
24
34
  }
@@ -139,9 +139,9 @@ export default {
139
139
  },
140
140
  desc: {
141
141
  'zh-CN':
142
- '<p>自定义日期单元格背景色。</p>\n<p>目前只支持预置的颜色,可选颜色 blue、green、red、yellow、purple、cyan、grey</p>\n',
142
+ '<p>自定义日期单元格背景色。</p>\n<p>目前支持预置的颜色,可选颜色 blue、green、red、yellow、purple、cyan、grey 和使用十六进制、rgb、rgba 的是自定义颜色</p>\n',
143
143
  'en-US':
144
- '<p>Customize the background color of the date cell. </p>\n<p>Currently, only preset colors are supported. The options are blue, green, red, yellow, purple, cyan, and grey.</p>'
144
+ '<p>Customize the background color of date cells.</p>\n<p>Currently supports both preset colors (options include blue, green, red, yellow, purple, cyan, and grey) and custom colors defined using hexadecimal, RGB, or RGBA values.</p>'
145
145
  },
146
146
  codeFiles: ['custom-day-bg-color.vue']
147
147
  },
@@ -178,7 +178,7 @@ export default {
178
178
  '<p>mode-change:模式切换事件</p>',
179
179
  'en-US':
180
180
  '<p>Calendar throws the following events:</p>\n' +
181
- '<p>date-click:日期点击事件: Date click event</p>\n' +
181
+ '<p>date-click:日期点击事件:Date click event</p>\n' +
182
182
  '<p>new-schedule: Add a schedule button click event</p>\n' +
183
183
  '<p>selected-date-change: selected date change event</p>\n' +
184
184
  '<p>prev-week-click: button click event of the last week</p>\n' +
@@ -346,7 +346,7 @@ export default {
346
346
  value: true
347
347
  },
348
348
  description:
349
- '自定义日期单元格背景色,目前只支持预置的颜色,可选颜色 blue、green、red、yellow、purple、cyan、grey',
349
+ '自定义日期单元格背景色,目前支持预置的颜色,可选颜色 blue、green、red、yellow、purple、cyan、grey 和使用十六进制、rgb、rgba 的是自定义颜色。',
350
350
  cloud: {
351
351
  value: false
352
352
  },
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <tiny-checkbox-group v-model="checkedData">
3
- <tiny-checkbox label="复选框 1" name="name1"></tiny-checkbox>
4
- <tiny-checkbox label="复选框 2" name="name2" checked></tiny-checkbox>
5
- <tiny-checkbox label="复选框 3" name="name3"></tiny-checkbox>
3
+ <tiny-checkbox label="复选框 1" name="name1" style="margin-bottom: 8px"></tiny-checkbox>
4
+ <tiny-checkbox label="复选框 2" name="name2" checked style="margin-bottom: 8px"></tiny-checkbox>
5
+ <tiny-checkbox label="复选框 3" name="name3" style="margin-bottom: 8px"></tiny-checkbox>
6
6
  </tiny-checkbox-group>
7
7
  </template>
8
8
 
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <tiny-checkbox-group v-model="checkedData">
3
- <tiny-checkbox label="复选框 1" name="name1"></tiny-checkbox>
4
- <tiny-checkbox label="复选框 2" name="name2" checked></tiny-checkbox>
5
- <tiny-checkbox label="复选框 3" name="name3"></tiny-checkbox>
3
+ <tiny-checkbox label="复选框 1" name="name1" style="margin-bottom: 8px"></tiny-checkbox>
4
+ <tiny-checkbox label="复选框 2" name="name2" checked style="margin-bottom: 8px"></tiny-checkbox>
5
+ <tiny-checkbox label="复选框 3" name="name3" style="margin-bottom: 8px"></tiny-checkbox>
6
6
  </tiny-checkbox-group>
7
7
  </template>
8
8
 
@@ -3,12 +3,13 @@ import { test, expect } from '@playwright/test'
3
3
  test('基本用法', async ({ page }) => {
4
4
  page.on('pageerror', (exception) => expect(exception).toBeNull())
5
5
  await page.goto('drawer#basic-usage')
6
+ const demo = page.locator('#basic-usage')
6
7
 
7
- const drawer = page.locator('.tiny-drawer__main')
8
- await page.getByRole('button', { name: '抽屉组件' }).click()
8
+ const drawer = demo.locator('.tiny-drawer__main')
9
+ await demo.getByRole('button', { name: '抽屉组件' }).click()
9
10
  await expect(drawer).toBeVisible()
10
11
  await expect(drawer.locator('.tiny-drawer__header')).toHaveText('标题')
11
12
  await expect(drawer.locator('.tiny-drawer__body')).toHaveText('内容区域')
12
13
  await drawer.getByRole('button', { name: 'Close' }).click()
13
- await expect(page.locator('.tiny-drawer__main')).not.toBeVisible()
14
+ await expect(demo.locator('.tiny-drawer__main')).not.toBeVisible()
14
15
  })
@@ -8,17 +8,17 @@ test('抽屉方向', async ({ page }) => {
8
8
 
9
9
  await demo.getByRole('button', { name: 'left' }).click()
10
10
  await expect(drawer).toHaveCSS('left', '0px')
11
- await page.locator('.tiny-drawer__headerbtn').click()
11
+ await page.locator('.tiny-drawer__mask').click()
12
12
 
13
13
  await demo.getByRole('button', { name: 'right' }).click()
14
14
  await expect(drawer).toHaveCSS('right', '0px')
15
- await page.locator('.tiny-drawer__headerbtn').click()
15
+ await page.locator('.tiny-drawer__mask').click()
16
16
 
17
17
  await demo.getByRole('button', { name: 'top' }).click()
18
18
  await expect(drawer).toHaveCSS('top', '0px')
19
- await page.locator('.tiny-drawer__headerbtn').click()
19
+ await page.locator('.tiny-drawer__mask').click()
20
20
 
21
21
  await demo.getByRole('button', { name: 'bottom' }).click()
22
22
  await expect(drawer).toHaveCSS('bottom', '0px')
23
- await page.locator('.tiny-drawer__headerbtn').click()
23
+ await page.locator('.tiny-drawer__mask').click()
24
24
  })
@@ -4,8 +4,9 @@ test('头部显示', async ({ page }) => {
4
4
  page.on('pageerror', (exception) => expect(exception).toBeNull())
5
5
  await page.goto('drawer#show-header')
6
6
 
7
- const drawerHeader = page.locator('.tiny-drawer__header')
7
+ const demo = page.locator('#show-header')
8
+ const drawerHeader = demo.locator('.tiny-drawer__header')
8
9
 
9
- await page.getByRole('button', { name: '隐藏头部' }).click()
10
+ await demo.getByRole('button', { name: '隐藏头部' }).click()
10
11
  await expect(drawerHeader).not.toBeVisible()
11
12
  })
@@ -64,7 +64,7 @@ p {
64
64
  .tiny-svg {
65
65
  fill: var(--tv-color-icon-control);
66
66
  &:hover {
67
- fill: var(--tv-color-icon-control);
67
+ fill: var(--tv-color-info-icon);
68
68
  }
69
69
  }
70
70
  }
@@ -74,7 +74,7 @@ p {
74
74
  .tiny-svg {
75
75
  fill: var(--tv-color-icon-control);
76
76
  &:hover {
77
- fill: var(--tv-color-icon-control);
77
+ fill: var(--tv-color-info-icon);
78
78
  }
79
79
  }
80
80
  }
@@ -85,7 +85,7 @@ function resetForm() {
85
85
  width: 380px;
86
86
  }
87
87
  .group-form-title {
88
- margin-bottom: 24px;
88
+ margin-top: 24px;
89
89
  font-size: 16px;
90
90
  color: #191919;
91
91
  font-weight: bold;
@@ -94,7 +94,7 @@ function resetForm() {
94
94
  padding-top: 8px;
95
95
  }
96
96
  .second-title {
97
- margin-top: 8px;
97
+ margin-bottom: 8px;
98
98
  }
99
99
  .address {
100
100
  position: relative;
@@ -92,7 +92,7 @@ export default {
92
92
  width: 380px;
93
93
  }
94
94
  .group-form-title {
95
- margin-bottom: 24px;
95
+ margin-top: 24px;
96
96
  font-size: 16px;
97
97
  color: #191919;
98
98
  font-weight: bold;
@@ -101,7 +101,7 @@ export default {
101
101
  padding-top: 8px;
102
102
  }
103
103
  .second-title {
104
- margin-top: 8px;
104
+ margin-bottom: 8px;
105
105
  }
106
106
  .address {
107
107
  position: relative;
@@ -97,7 +97,7 @@ const employeesFilter = ref({
97
97
  layout: 'input,enum,default,extends,base',
98
98
  inputFilter: {
99
99
  component: TinyNumeric,
100
- attrs: { format: 'yyyy/MM/dd hh:mm:ss' },
100
+ attrs: { min: 0, max: 10000 },
101
101
  relations: [
102
102
  {
103
103
  label: '小于',
@@ -3,6 +3,7 @@ import { test, expect } from '@playwright/test'
3
3
  test('过滤高级设置', async ({ page }) => {
4
4
  page.on('pageerror', (exception) => expect(exception).toBeNull())
5
5
  await page.goto('grid-filter#filter-default-filter')
6
+ await page.setViewportSize({ width: 1920, height: 1980 })
6
7
  await page
7
8
  .getByRole('cell', { name: '公司名称鼠标移入可以动态提示 tooltip,公司名称鼠标移入可以动态提示 tooltip' })
8
9
  .getByRole('img')
@@ -103,7 +103,7 @@ export default {
103
103
  layout: 'input,enum,default,extends,base',
104
104
  inputFilter: {
105
105
  component: TinyNumeric,
106
- attrs: { format: 'yyyy/MM/dd hh:mm:ss' },
106
+ attrs: { min: 0, max: 10000 },
107
107
  relations: [
108
108
  {
109
109
  label: '小于',