@sdata/web-vue 3.12.0 → 3.14.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.
- package/dist/sd.css +288 -126
- package/dist/sd.min.css +43 -1
- package/es/_components/input-label/input-label.d.ts +2 -0
- package/es/_components/input-label/input-label.js +4 -2
- package/es/_components/input-label/style/index.css +2 -2
- package/es/_components/picker/input-range.vue.d.ts +6 -7
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +63 -46
- package/es/_components/picker/input.vue.d.ts +5 -6
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +52 -35
- package/es/_components/picker/style/index.scss +8 -2
- package/es/_components/resize-observer.js +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +9 -2
- package/es/_components/select-view/select-view.d.ts +2 -0
- package/es/_components/select-view/select-view.js +5 -1
- package/es/_components/select-view/style/index.css +5 -5
- package/es/_hooks/use-focus-trap.d.ts +10 -0
- package/es/_hooks/use-focus-trap.js +115 -0
- package/es/_hooks/use-readonly-tip.d.ts +11 -0
- package/es/_hooks/use-readonly-tip.js +66 -0
- package/es/_utils/dom.js +1 -10
- package/es/_utils/keyboard.d.ts +4 -0
- package/es/_utils/keyboard.js +21 -2
- package/es/alert/alert.vue.d.ts +2 -2
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +12 -3
- package/es/alert/index.d.ts +5 -5
- package/es/alert/style/index.css +1 -1
- package/es/alert/style/index.scss +1 -1
- package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +2 -0
- package/es/anchor/style/index.css +1 -1
- package/es/anchor/style/index.scss +3 -1
- package/es/auto-complete/auto-complete.d.ts +9 -0
- package/es/auto-complete/auto-complete.js +19 -1
- package/es/auto-complete/index.d.ts +15 -0
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/avatar/style/index.css +2 -2
- package/es/avatar/style/index.scss +2 -2
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/back-top/style/index.css +1 -1
- package/es/back-top/style/index.scss +2 -1
- package/es/badge/badge.js +4 -1
- package/es/badge/style/index.css +3 -3
- package/es/badge/style/index.scss +3 -3
- package/es/breadcrumb/breadcrumb.js +1 -0
- package/es/button/button.vue.d.ts +16 -7
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +62 -31
- package/es/button/index.d.ts +11 -0
- package/es/button/interface.d.ts +2 -0
- package/es/button/style/index.css +15 -6
- package/es/button/style/index.scss +25 -7
- package/es/calendar/style/event.scss +2 -2
- package/es/calendar/style/index.css +2 -2
- package/es/card/card.d.ts +312 -0
- package/es/card/card.js +39 -7
- package/es/card/index.d.ts +616 -0
- package/es/card/style/index.css +26 -3
- package/es/card/style/index.scss +34 -3
- package/es/carousel/carousel-arrow.vue.d.ts +4 -4
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +20 -4
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +23 -4
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +8 -1
- package/es/carousel/carousel.js +18 -1
- package/es/carousel/style/index.css +1 -1
- package/es/carousel/style/index.scss +1 -1
- package/es/cascader/cascader.vue.d.ts +9 -8
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +158 -128
- package/es/cascader/style/index.css +2 -2
- package/es/cascader/style/index.scss +3 -1
- package/es/cascader/types.d.ts +1 -0
- package/es/checkbox/checkbox-group.js +4 -1
- package/es/checkbox/checkbox.d.ts +9 -0
- package/es/checkbox/checkbox.js +14 -0
- package/es/checkbox/index.d.ts +15 -0
- package/es/checkbox/style/index.css +1 -1
- package/es/checkbox/style/index.scss +1 -1
- package/es/collapse/collapse-item.js +21 -3
- package/es/collapse/context.d.ts +1 -1
- package/es/color-picker/color-picker.d.ts +9 -0
- package/es/color-picker/color-picker.js +39 -11
- package/es/color-picker/index.d.ts +15 -0
- package/es/config-provider/context.d.ts +9 -9
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/date-picker/index.d.ts +3 -6
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +14 -1
- package/es/date-picker/picker.vue.d.ts +2 -3
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +6 -5
- package/es/date-picker/range-picker.vue.d.ts +2 -3
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/date-picker/style/index.css +5 -5
- package/es/date-picker/style/index.scss +4 -3
- package/es/drawer/drawer.vue.d.ts +1 -1
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +30 -9
- package/es/drawer/index.d.ts +3 -3
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/dropdown/dropdown-panel.vue.d.ts +9 -0
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +75 -2
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/dropdown/style/index.css +1 -1
- package/es/dropdown/style/index.scss +3 -1
- package/es/empty/empty.js +1 -1
- package/es/file-previewer/file-previewer.vue.d.ts +1 -1
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/file-previewer/index.d.ts +3 -3
- package/es/form/context.d.ts +1 -0
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/form/style/index.css +2 -2
- package/es/form/style/index.scss +2 -2
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-action.d.ts +7 -127
- package/es/image/preview.vue.d.ts +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/index.css +288 -126
- package/es/index.js +3 -3
- package/es/input/index.d.ts +6 -6
- package/es/input/input.d.ts +3 -3
- package/es/input/input.js +34 -8
- package/es/input/style/index.css +2 -2
- package/es/input/style/input.scss +4 -4
- package/es/input-number/index.d.ts +9 -9
- package/es/input-number/input-number.d.ts +5 -5
- package/es/input-number/input-number.js +13 -9
- package/es/input-number/style/index.css +3 -3
- package/es/input-number/style/index.scss +5 -1
- package/es/input-tag/index.d.ts +9 -6
- package/es/input-tag/input-tag.d.ts +5 -3
- package/es/input-tag/input-tag.js +49 -36
- package/es/input-tag/style/index.css +8 -8
- package/es/input-tag/style/index.scss +11 -5
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +31 -6
- package/es/layout/style/index.css +2 -2
- package/es/layout/style/index.scss +4 -2
- package/es/link/style/index.css +1 -1
- package/es/link/style/index.scss +3 -1
- package/es/locale/interface.d.ts +1 -0
- package/es/locale/lang/en-us.js +1 -0
- package/es/locale/lang/zh-cn.js +1 -0
- package/es/locale/lang/zh-tw.js +1 -0
- package/es/mention/index.d.ts +15 -0
- package/es/mention/mention.d.ts +9 -0
- package/es/mention/mention.js +20 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +30 -4
- package/es/menu/item.js +14 -1
- package/es/menu/style/index.css +6 -6
- package/es/menu/style/index.scss +5 -3
- package/es/message/style/index.css +3 -3
- package/es/message/style/index.scss +5 -3
- package/es/modal/index.d.ts +3 -3
- package/es/modal/modal.vue.d.ts +1 -1
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +30 -15
- package/es/modal/style/index.css +2 -2
- package/es/modal/style/index.scss +3 -2
- package/es/notification/style/index.css +3 -3
- package/es/notification/style/index.scss +11 -3
- package/es/page-header/page-header.vue.d.ts +6 -6
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +12 -1
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +12 -2
- package/es/pagination/page-item-step.vue.d.ts +2 -2
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +19 -2
- package/es/pagination/page-item.vue.d.ts +2 -2
- package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +21 -3
- package/es/pagination/pagination.js +6 -2
- package/es/pagination/style/index.css +6 -1
- package/es/pagination/style/index.scss +9 -3
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/progress/style/index.css +2 -2
- package/es/progress/style/index.scss +5 -3
- package/es/qr-code/qr-code-status.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +11 -6
- package/es/radio/context.d.ts +1 -0
- package/es/radio/radio-group.js +6 -2
- package/es/radio/radio.js +1 -0
- package/es/radio/style/index.css +2 -2
- package/es/radio/style/index.scss +4 -2
- package/es/rate/index.d.ts +6 -6
- package/es/rate/rate.d.ts +3 -3
- package/es/rate/rate.js +42 -8
- package/es/resize-box/resize-box.vue.d.ts +4 -4
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +30 -1
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +7 -4
- package/es/scrollbar/style/index.css +57 -15
- package/es/scrollbar/style/index.scss +63 -15
- package/es/sd-vue.js +3 -3
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/index.d.ts +139 -0
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/select/select.d.ts +71 -0
- package/es/select/select.js +45 -6
- package/es/select/style/index.css +1 -1
- package/es/select/style/index.scss +3 -1
- package/es/selectable-card/style/index.css +2 -2
- package/es/selectable-card/style/index.scss +5 -5
- package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/slider/slider-button.vue.d.ts +2 -0
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +23 -2
- package/es/slider/style/index.css +1 -1
- package/es/slider/style/index.scss +3 -1
- package/es/spin/spin.js +7 -2
- package/es/spin/style/index.css +1 -1
- package/es/spin/style/index.scss +1 -1
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +27 -3
- package/es/steps/context.d.ts +1 -0
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +15 -2
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/steps/style/index.css +1 -1
- package/es/steps/style/index.scss +1 -1
- package/es/style/animation/index.scss +1 -0
- package/es/style/animation/reduced-motion.scss +22 -0
- package/es/style/animation/zoom.scss +7 -6
- package/es/style/icon.scss +9 -1
- package/es/style/normalize.scss +68 -0
- package/es/switch/style/index.css +1 -1
- package/es/switch/style/index.scss +4 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/table/style/index.css +8 -8
- package/es/table/style/index.scss +11 -8
- package/es/table/table-operation-td.d.ts +15 -0
- package/es/table/table-tbody.js +4 -1
- package/es/table/table-td.js +2 -1
- package/es/table/table-th.js +6 -4
- package/es/table/table-thead.js +4 -1
- package/es/table/table-tr.js +4 -1
- package/es/table/table.js +6 -2
- package/es/tabs/context.d.ts +3 -0
- package/es/tabs/index.d.ts +32 -0
- package/es/tabs/style/index.css +34 -5
- package/es/tabs/style/index.scss +45 -7
- package/es/tabs/tab-pane.vue.d.ts +4 -2
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +39 -4
- package/es/tabs/tabs-nav.js +34 -1
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +27 -4
- package/es/tabs/tabs.d.ts +19 -0
- package/es/tabs/tabs.js +25 -2
- package/es/tag/index.d.ts +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/tag/style/index.scss +3 -1
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +19 -2
- package/es/textarea/index.d.ts +15 -0
- package/es/textarea/style/index.css +2 -2
- package/es/textarea/textarea.vue.d.ts +11 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +84 -47
- package/es/time-picker/index.d.ts +3 -6
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/time-picker/time-picker.vue.d.ts +2 -3
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +12 -6
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tooltip/index.d.ts +8 -127
- package/es/tooltip/interface.d.ts +17 -0
- package/es/tooltip/tooltip.vue.d.ts +5 -88
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +9 -69
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/style/index.css +1 -1
- package/es/transfer/style/index.scss +1 -1
- package/es/transfer/transfer-list-item.js +16 -2
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +27 -7
- package/es/tree/context.d.ts +2 -0
- package/es/tree/style/index.css +1 -1
- package/es/tree/style/index.scss +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +82 -3
- package/es/tree-select/tree-select.vue.d.ts +16 -10
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +165 -133
- package/es/trigger/index.d.ts +45 -0
- package/es/trigger/trigger.d.ts +27 -0
- package/es/trigger/trigger.js +47 -5
- package/es/typography/base.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +11 -8
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +38 -6
- package/es/typography/style/index.css +2 -2
- package/es/typography/style/index.scss +2 -2
- package/es/upload/style/index.css +9 -9
- package/es/upload/style/index.scss +15 -9
- package/es/upload/upload-button.js +1 -1
- package/es/upload/upload-list-item.js +18 -5
- package/es/upload/upload-picture-item.js +25 -3
- package/es/verification-code/index.d.ts +15 -6
- package/es/verification-code/verification-code.d.ts +9 -3
- package/es/verification-code/verification-code.js +10 -2
- package/json/vetur-attributes.json +63 -7
- package/json/vetur-tags.json +23 -7
- package/json/web-types.json +131 -10
- package/package.json +1 -1
- package/es/style/base.scss +0 -18
|
@@ -49,7 +49,10 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
* @zh 只读
|
|
50
50
|
* @en Readonly
|
|
51
51
|
*/
|
|
52
|
-
readonly:
|
|
52
|
+
readonly: {
|
|
53
|
+
type: [Boolean, String],
|
|
54
|
+
default: false
|
|
55
|
+
},
|
|
53
56
|
/**
|
|
54
57
|
* @zh 是否为错误状态
|
|
55
58
|
* @en Whether it is an error state
|
|
@@ -181,7 +184,11 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
|
|
|
181
184
|
updateValue();
|
|
182
185
|
};
|
|
183
186
|
return () => {
|
|
184
|
-
return createVNode("div", {
|
|
187
|
+
return createVNode("div", {
|
|
188
|
+
"class": prefixCls,
|
|
189
|
+
"role": "group",
|
|
190
|
+
"aria-label": "Verification code"
|
|
191
|
+
}, [innerValue.value.map((c, i) => {
|
|
185
192
|
var _props$separator;
|
|
186
193
|
return createVNode(Fragment, null, [createVNode(Input, mergeProps({
|
|
187
194
|
"key": i,
|
|
@@ -193,6 +200,7 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
|
|
|
193
200
|
"error": props.error,
|
|
194
201
|
"disabled": props.disabled,
|
|
195
202
|
"readonly": props.readonly,
|
|
203
|
+
"inputAttrs": { "aria-label": `Character ${i + 1} of ${props.length}` },
|
|
196
204
|
"onFocus": () => focusFirstEmptyInput(i),
|
|
197
205
|
"onInput": (v, e) => handleInput(i, v, e)
|
|
198
206
|
}, {
|
|
@@ -129,6 +129,10 @@
|
|
|
129
129
|
"description": "Whether to disable",
|
|
130
130
|
"type": "boolean"
|
|
131
131
|
},
|
|
132
|
+
"sd-auto-complete/readonly": {
|
|
133
|
+
"description": "Whether it is read-only",
|
|
134
|
+
"type": "boolean|string"
|
|
135
|
+
},
|
|
132
136
|
"sd-auto-complete/data": {
|
|
133
137
|
"description": "Data used for auto-complete"
|
|
134
138
|
},
|
|
@@ -336,6 +340,9 @@
|
|
|
336
340
|
"description": "Set up a jump link. When this property is set, the button is rendered as `<a>`",
|
|
337
341
|
"type": "string"
|
|
338
342
|
},
|
|
343
|
+
"sd-button/tooltip": {
|
|
344
|
+
"description": "Tooltip configuration for the button. A string is used as the tooltip content; an object inherits all Tooltip props."
|
|
345
|
+
},
|
|
339
346
|
"sd-card/bordered": {
|
|
340
347
|
"description": "Whether to render the border",
|
|
341
348
|
"type": "boolean"
|
|
@@ -366,6 +373,13 @@
|
|
|
366
373
|
"description": "Content to render in the top-right corner of the card",
|
|
367
374
|
"type": "string"
|
|
368
375
|
},
|
|
376
|
+
"sd-card/full-height": {
|
|
377
|
+
"description": "Whether to fill the height of the parent container (the content area scrolls automatically, only effective when the parent container has a determinate height)",
|
|
378
|
+
"type": "boolean"
|
|
379
|
+
},
|
|
380
|
+
"sd-card/scrollbar": {
|
|
381
|
+
"description": "Whether the content area uses the Scrollbar component for scrolling, an object can be passed to customize the scrollbar. When false, native overflow scrolling is used. Only effective when `full-height` is true"
|
|
382
|
+
},
|
|
369
383
|
"sd-card-grid/hoverable": {
|
|
370
384
|
"description": "Whether to hover",
|
|
371
385
|
"type": "boolean"
|
|
@@ -449,6 +463,10 @@
|
|
|
449
463
|
"description": "Whether it is half-selected",
|
|
450
464
|
"type": "boolean"
|
|
451
465
|
},
|
|
466
|
+
"sd-checkbox/tabindex": {
|
|
467
|
+
"description": "tabindex for the native input (omitted by default so the input stays natively focusable; pass -1 in tree nodes to remove the checkbox from the Tab order and operate it via the treeitem)",
|
|
468
|
+
"type": "number|string"
|
|
469
|
+
},
|
|
452
470
|
"sd-checkbox-group/change": {
|
|
453
471
|
"description": "Trigger when the value changes"
|
|
454
472
|
},
|
|
@@ -560,6 +578,10 @@
|
|
|
560
578
|
"description": "Disabled",
|
|
561
579
|
"type": "boolean"
|
|
562
580
|
},
|
|
581
|
+
"sd-color-picker/readonly": {
|
|
582
|
+
"description": "Whether it is read-only",
|
|
583
|
+
"type": "boolean|string"
|
|
584
|
+
},
|
|
563
585
|
"sd-color-picker/hide-trigger": {
|
|
564
586
|
"description": "Render panel inline",
|
|
565
587
|
"type": "boolean"
|
|
@@ -1678,9 +1700,9 @@
|
|
|
1678
1700
|
"description": "Trigger event for `v-model`",
|
|
1679
1701
|
"type": "string"
|
|
1680
1702
|
},
|
|
1681
|
-
"sd-input-number/
|
|
1703
|
+
"sd-input-number/readonly": {
|
|
1682
1704
|
"description": "Readonly",
|
|
1683
|
-
"type": "boolean"
|
|
1705
|
+
"type": "boolean|string"
|
|
1684
1706
|
},
|
|
1685
1707
|
"sd-input-number/input-attrs": {
|
|
1686
1708
|
"description": "Attributes of inner input elements",
|
|
@@ -1735,7 +1757,7 @@
|
|
|
1735
1757
|
},
|
|
1736
1758
|
"sd-input-tag/readonly": {
|
|
1737
1759
|
"description": "Whether it is read-only mode",
|
|
1738
|
-
"type": "boolean"
|
|
1760
|
+
"type": "boolean|string"
|
|
1739
1761
|
},
|
|
1740
1762
|
"sd-input-tag/allow-clear": {
|
|
1741
1763
|
"description": "Whether to allow clear",
|
|
@@ -1803,7 +1825,7 @@
|
|
|
1803
1825
|
},
|
|
1804
1826
|
"sd-input/readonly": {
|
|
1805
1827
|
"description": "Whether it is read-only",
|
|
1806
|
-
"type": "boolean"
|
|
1828
|
+
"type": "boolean|string"
|
|
1807
1829
|
},
|
|
1808
1830
|
"sd-input/error": {
|
|
1809
1831
|
"description": "Whether it is an error state",
|
|
@@ -2099,6 +2121,10 @@
|
|
|
2099
2121
|
"description": "Whether to disable",
|
|
2100
2122
|
"type": "boolean"
|
|
2101
2123
|
},
|
|
2124
|
+
"sd-mention/readonly": {
|
|
2125
|
+
"description": "Whether it is read-only",
|
|
2126
|
+
"type": "boolean|string"
|
|
2127
|
+
},
|
|
2102
2128
|
"sd-mention/allow-clear": {
|
|
2103
2129
|
"description": "Whether to allow the input to be cleared",
|
|
2104
2130
|
"type": "boolean"
|
|
@@ -2665,7 +2691,7 @@
|
|
|
2665
2691
|
},
|
|
2666
2692
|
"sd-rate/readonly": {
|
|
2667
2693
|
"description": "Whether it is readonly",
|
|
2668
|
-
"type": "boolean"
|
|
2694
|
+
"type": "boolean|string"
|
|
2669
2695
|
},
|
|
2670
2696
|
"sd-rate/disabled": {
|
|
2671
2697
|
"description": "Whether to disable",
|
|
@@ -2756,6 +2782,10 @@
|
|
|
2756
2782
|
"description": "Whether to show the copy button",
|
|
2757
2783
|
"type": "boolean"
|
|
2758
2784
|
},
|
|
2785
|
+
"sd-select/readonly": {
|
|
2786
|
+
"description": "Whether it is read-only",
|
|
2787
|
+
"type": "boolean|string"
|
|
2788
|
+
},
|
|
2759
2789
|
"sd-line/rows": {
|
|
2760
2790
|
"description": "Number of rows displayed",
|
|
2761
2791
|
"type": "number"
|
|
@@ -3427,6 +3457,13 @@
|
|
|
3427
3457
|
"sd-tabs/scroll-position": {
|
|
3428
3458
|
"description": "The scroll position of the selected tab, the default auto will scroll the activeTab to the visible area, but will not adjust the position intentionally"
|
|
3429
3459
|
},
|
|
3460
|
+
"sd-tabs/full-height": {
|
|
3461
|
+
"description": "Whether to fill the height of the parent container (only effective in horizontal direction, the content area scrolls automatically)",
|
|
3462
|
+
"type": "boolean"
|
|
3463
|
+
},
|
|
3464
|
+
"sd-tabs/scrollbar": {
|
|
3465
|
+
"description": "Whether the content area uses the Scrollbar component for scrolling, an object can be passed to customize the scrollbar. When false, native overflow scrolling is used. Only effective when `full-height` is true"
|
|
3466
|
+
},
|
|
3430
3467
|
"sd-tag-group/max-count": {
|
|
3431
3468
|
"description": "Maximum number of visible items. Use `responsive` to collapse by container width."
|
|
3432
3469
|
},
|
|
@@ -3543,6 +3580,10 @@
|
|
|
3543
3580
|
"description": "Whether to disable",
|
|
3544
3581
|
"type": "boolean"
|
|
3545
3582
|
},
|
|
3583
|
+
"sd-textarea/readonly": {
|
|
3584
|
+
"description": "Whether it is read-only",
|
|
3585
|
+
"type": "boolean|string"
|
|
3586
|
+
},
|
|
3546
3587
|
"sd-textarea/error": {
|
|
3547
3588
|
"description": "Whether it is an error state",
|
|
3548
3589
|
"type": "boolean"
|
|
@@ -3602,7 +3643,7 @@
|
|
|
3602
3643
|
},
|
|
3603
3644
|
"sd-time-picker/readonly": {
|
|
3604
3645
|
"description": "Whether it is read-only mode",
|
|
3605
|
-
"type": "boolean"
|
|
3646
|
+
"type": "boolean|string"
|
|
3606
3647
|
},
|
|
3607
3648
|
"sd-time-picker/error": {
|
|
3608
3649
|
"description": "Whether it is an error state",
|
|
@@ -3889,6 +3930,10 @@
|
|
|
3889
3930
|
"description": "Whether to disable",
|
|
3890
3931
|
"type": "boolean"
|
|
3891
3932
|
},
|
|
3933
|
+
"sd-tree-select/readonly": {
|
|
3934
|
+
"description": "Whether it is read-only",
|
|
3935
|
+
"type": "boolean|string"
|
|
3936
|
+
},
|
|
3892
3937
|
"sd-tree-select/loading": {
|
|
3893
3938
|
"description": "Whether it is loading state",
|
|
3894
3939
|
"type": "boolean"
|
|
@@ -4312,6 +4357,17 @@
|
|
|
4312
4357
|
"description": "Scroll threshold, trigger close when the scroll distance exceeds this value",
|
|
4313
4358
|
"type": "number"
|
|
4314
4359
|
},
|
|
4360
|
+
"sd-trigger/esc-to-close": {
|
|
4361
|
+
"description": "Whether to close the popup with the ESC key",
|
|
4362
|
+
"type": "boolean"
|
|
4363
|
+
},
|
|
4364
|
+
"sd-trigger/aria-has-popup": {
|
|
4365
|
+
"description": "Popup type for the trigger's `aria-haspopup`. When set, the trigger automatically gets `aria-haspopup` / `aria-expanded` / `aria-controls`, and the popup gets an id."
|
|
4366
|
+
},
|
|
4367
|
+
"sd-trigger/aria-describedby-popup": {
|
|
4368
|
+
"description": "Whether to add `aria-describedby` on the trigger pointing to the popup (tooltip pattern). Only applied while the popup is visible.",
|
|
4369
|
+
"type": "boolean"
|
|
4370
|
+
},
|
|
4315
4371
|
"sd-typography-paragraph/blockquote": {
|
|
4316
4372
|
"description": "Whether enable blockquote",
|
|
4317
4373
|
"type": "boolean"
|
|
@@ -4487,7 +4543,7 @@
|
|
|
4487
4543
|
},
|
|
4488
4544
|
"sd-verification-code/readonly": {
|
|
4489
4545
|
"description": "Readonly",
|
|
4490
|
-
"type": "boolean"
|
|
4546
|
+
"type": "boolean|string"
|
|
4491
4547
|
},
|
|
4492
4548
|
"sd-verification-code/error": {
|
|
4493
4549
|
"description": "Whether it is an error state",
|
package/json/vetur-tags.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"model-value",
|
|
55
55
|
"default-value",
|
|
56
56
|
"disabled",
|
|
57
|
+
"readonly",
|
|
57
58
|
"data",
|
|
58
59
|
"popup-container",
|
|
59
60
|
"strict",
|
|
@@ -148,7 +149,8 @@
|
|
|
148
149
|
"disabled",
|
|
149
150
|
"html-type",
|
|
150
151
|
"autofocus",
|
|
151
|
-
"href"
|
|
152
|
+
"href",
|
|
153
|
+
"tooltip"
|
|
152
154
|
]
|
|
153
155
|
},
|
|
154
156
|
"sd-components": {
|
|
@@ -163,7 +165,9 @@
|
|
|
163
165
|
"header-style",
|
|
164
166
|
"body-style",
|
|
165
167
|
"title",
|
|
166
|
-
"extra"
|
|
168
|
+
"extra",
|
|
169
|
+
"full-height",
|
|
170
|
+
"scrollbar"
|
|
167
171
|
]
|
|
168
172
|
},
|
|
169
173
|
"sd-card-grid": {
|
|
@@ -211,7 +215,8 @@
|
|
|
211
215
|
"default-checked",
|
|
212
216
|
"value",
|
|
213
217
|
"disabled",
|
|
214
|
-
"indeterminate"
|
|
218
|
+
"indeterminate",
|
|
219
|
+
"tabindex"
|
|
215
220
|
]
|
|
216
221
|
},
|
|
217
222
|
"sd-checkbox-group": {
|
|
@@ -260,6 +265,7 @@
|
|
|
260
265
|
"default-recent-colors",
|
|
261
266
|
"swatch-colors",
|
|
262
267
|
"disabled",
|
|
268
|
+
"readonly",
|
|
263
269
|
"hide-trigger",
|
|
264
270
|
"trigger-props"
|
|
265
271
|
]
|
|
@@ -693,7 +699,7 @@
|
|
|
693
699
|
"size",
|
|
694
700
|
"allow-clear",
|
|
695
701
|
"model-event",
|
|
696
|
-
"
|
|
702
|
+
"readonly",
|
|
697
703
|
"input-attrs"
|
|
698
704
|
]
|
|
699
705
|
},
|
|
@@ -871,6 +877,7 @@
|
|
|
871
877
|
"split",
|
|
872
878
|
"type",
|
|
873
879
|
"disabled",
|
|
880
|
+
"readonly",
|
|
874
881
|
"allow-clear"
|
|
875
882
|
]
|
|
876
883
|
},
|
|
@@ -1134,7 +1141,9 @@
|
|
|
1134
1141
|
]
|
|
1135
1142
|
},
|
|
1136
1143
|
"sd-select": {
|
|
1137
|
-
"attributes": [
|
|
1144
|
+
"attributes": [
|
|
1145
|
+
"readonly"
|
|
1146
|
+
]
|
|
1138
1147
|
},
|
|
1139
1148
|
"sd-selectable-card": {
|
|
1140
1149
|
"attributes": []
|
|
@@ -1404,7 +1413,9 @@
|
|
|
1404
1413
|
"auto-switch",
|
|
1405
1414
|
"hide-content",
|
|
1406
1415
|
"trigger",
|
|
1407
|
-
"scroll-position"
|
|
1416
|
+
"scroll-position",
|
|
1417
|
+
"full-height",
|
|
1418
|
+
"scrollbar"
|
|
1408
1419
|
]
|
|
1409
1420
|
},
|
|
1410
1421
|
"sd-tag-group": {
|
|
@@ -1449,6 +1460,7 @@
|
|
|
1449
1460
|
"default-value",
|
|
1450
1461
|
"placeholder",
|
|
1451
1462
|
"disabled",
|
|
1463
|
+
"readonly",
|
|
1452
1464
|
"error",
|
|
1453
1465
|
"max-length",
|
|
1454
1466
|
"show-word-limit",
|
|
@@ -1582,6 +1594,7 @@
|
|
|
1582
1594
|
"clear",
|
|
1583
1595
|
"input-value-change",
|
|
1584
1596
|
"disabled",
|
|
1597
|
+
"readonly",
|
|
1585
1598
|
"loading",
|
|
1586
1599
|
"error",
|
|
1587
1600
|
"size",
|
|
@@ -1709,7 +1722,10 @@
|
|
|
1709
1722
|
"render-to-body",
|
|
1710
1723
|
"prevent-focus",
|
|
1711
1724
|
"scroll-to-close",
|
|
1712
|
-
"scroll-to-close-distance"
|
|
1725
|
+
"scroll-to-close-distance",
|
|
1726
|
+
"esc-to-close",
|
|
1727
|
+
"aria-has-popup",
|
|
1728
|
+
"aria-describedby-popup"
|
|
1713
1729
|
]
|
|
1714
1730
|
},
|
|
1715
1731
|
"sd-typography-paragraph": {
|
package/json/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@sdata/web-vue",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.13.0",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -270,6 +270,14 @@
|
|
|
270
270
|
"kind": "expression"
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
|
+
{
|
|
274
|
+
"name": "readonly",
|
|
275
|
+
"description": "Whether it is read-only",
|
|
276
|
+
"value": {
|
|
277
|
+
"type": "boolean|string",
|
|
278
|
+
"kind": "expression"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
273
281
|
{
|
|
274
282
|
"name": "data",
|
|
275
283
|
"description": "Data used for auto-complete",
|
|
@@ -856,6 +864,14 @@
|
|
|
856
864
|
"type": "string",
|
|
857
865
|
"kind": "expression"
|
|
858
866
|
}
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "tooltip",
|
|
870
|
+
"description": "Tooltip configuration for the button. A string is used as the tooltip content; an object inherits all Tooltip props.",
|
|
871
|
+
"value": {
|
|
872
|
+
"type": "string | TooltipProps",
|
|
873
|
+
"kind": "expression"
|
|
874
|
+
}
|
|
859
875
|
}
|
|
860
876
|
],
|
|
861
877
|
"events": [
|
|
@@ -938,6 +954,22 @@
|
|
|
938
954
|
"type": "string",
|
|
939
955
|
"kind": "expression"
|
|
940
956
|
}
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "full-height",
|
|
960
|
+
"description": "Whether to fill the height of the parent container (the content area scrolls automatically, only effective when the parent container has a determinate height)",
|
|
961
|
+
"value": {
|
|
962
|
+
"type": "boolean",
|
|
963
|
+
"kind": "expression"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"name": "scrollbar",
|
|
968
|
+
"description": "Whether the content area uses the Scrollbar component for scrolling, an object can be passed to customize the scrollbar. When false, native overflow scrolling is used. Only effective when `full-height` is true",
|
|
969
|
+
"value": {
|
|
970
|
+
"type": "boolean | ScrollbarProps",
|
|
971
|
+
"kind": "expression"
|
|
972
|
+
}
|
|
941
973
|
}
|
|
942
974
|
],
|
|
943
975
|
"events": [],
|
|
@@ -1187,6 +1219,14 @@
|
|
|
1187
1219
|
"type": "boolean",
|
|
1188
1220
|
"kind": "expression"
|
|
1189
1221
|
}
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "tabindex",
|
|
1225
|
+
"description": "tabindex for the native input (omitted by default so the input stays natively focusable; pass -1 in tree nodes to remove the checkbox from the Tab order and operate it via the treeitem)",
|
|
1226
|
+
"value": {
|
|
1227
|
+
"type": "number|string",
|
|
1228
|
+
"kind": "expression"
|
|
1229
|
+
}
|
|
1190
1230
|
}
|
|
1191
1231
|
],
|
|
1192
1232
|
"events": [
|
|
@@ -1482,6 +1522,14 @@
|
|
|
1482
1522
|
"kind": "expression"
|
|
1483
1523
|
}
|
|
1484
1524
|
},
|
|
1525
|
+
{
|
|
1526
|
+
"name": "readonly",
|
|
1527
|
+
"description": "Whether it is read-only",
|
|
1528
|
+
"value": {
|
|
1529
|
+
"type": "boolean|string",
|
|
1530
|
+
"kind": "expression"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1485
1533
|
{
|
|
1486
1534
|
"name": "hide-trigger",
|
|
1487
1535
|
"description": "Render panel inline",
|
|
@@ -4051,10 +4099,10 @@
|
|
|
4051
4099
|
}
|
|
4052
4100
|
},
|
|
4053
4101
|
{
|
|
4054
|
-
"name": "
|
|
4102
|
+
"name": "readonly",
|
|
4055
4103
|
"description": "Readonly",
|
|
4056
4104
|
"value": {
|
|
4057
|
-
"type": "boolean",
|
|
4105
|
+
"type": "boolean|string",
|
|
4058
4106
|
"kind": "expression"
|
|
4059
4107
|
}
|
|
4060
4108
|
},
|
|
@@ -4183,7 +4231,7 @@
|
|
|
4183
4231
|
"name": "readonly",
|
|
4184
4232
|
"description": "Whether it is read-only mode",
|
|
4185
4233
|
"value": {
|
|
4186
|
-
"type": "boolean",
|
|
4234
|
+
"type": "boolean|string",
|
|
4187
4235
|
"kind": "expression"
|
|
4188
4236
|
}
|
|
4189
4237
|
},
|
|
@@ -4344,7 +4392,7 @@
|
|
|
4344
4392
|
"name": "readonly",
|
|
4345
4393
|
"description": "Whether it is read-only",
|
|
4346
4394
|
"value": {
|
|
4347
|
-
"type": "boolean",
|
|
4395
|
+
"type": "boolean|string",
|
|
4348
4396
|
"kind": "expression"
|
|
4349
4397
|
}
|
|
4350
4398
|
},
|
|
@@ -5102,6 +5150,14 @@
|
|
|
5102
5150
|
"kind": "expression"
|
|
5103
5151
|
}
|
|
5104
5152
|
},
|
|
5153
|
+
{
|
|
5154
|
+
"name": "readonly",
|
|
5155
|
+
"description": "Whether it is read-only",
|
|
5156
|
+
"value": {
|
|
5157
|
+
"type": "boolean|string",
|
|
5158
|
+
"kind": "expression"
|
|
5159
|
+
}
|
|
5160
|
+
},
|
|
5105
5161
|
{
|
|
5106
5162
|
"name": "allow-clear",
|
|
5107
5163
|
"description": "Whether to allow the input to be cleared",
|
|
@@ -6490,7 +6546,7 @@
|
|
|
6490
6546
|
"name": "readonly",
|
|
6491
6547
|
"description": "Whether it is readonly",
|
|
6492
6548
|
"value": {
|
|
6493
|
-
"type": "boolean",
|
|
6549
|
+
"type": "boolean|string",
|
|
6494
6550
|
"kind": "expression"
|
|
6495
6551
|
}
|
|
6496
6552
|
},
|
|
@@ -6736,7 +6792,16 @@
|
|
|
6736
6792
|
},
|
|
6737
6793
|
{
|
|
6738
6794
|
"name": "sd-select",
|
|
6739
|
-
"attributes": [
|
|
6795
|
+
"attributes": [
|
|
6796
|
+
{
|
|
6797
|
+
"name": "readonly",
|
|
6798
|
+
"description": "Whether it is read-only",
|
|
6799
|
+
"value": {
|
|
6800
|
+
"type": "boolean|string",
|
|
6801
|
+
"kind": "expression"
|
|
6802
|
+
}
|
|
6803
|
+
}
|
|
6804
|
+
],
|
|
6740
6805
|
"events": [],
|
|
6741
6806
|
"slots": []
|
|
6742
6807
|
},
|
|
@@ -8356,6 +8421,22 @@
|
|
|
8356
8421
|
"type": "ScrollPosition",
|
|
8357
8422
|
"kind": "expression"
|
|
8358
8423
|
}
|
|
8424
|
+
},
|
|
8425
|
+
{
|
|
8426
|
+
"name": "full-height",
|
|
8427
|
+
"description": "Whether to fill the height of the parent container (only effective in horizontal direction, the content area scrolls automatically)",
|
|
8428
|
+
"value": {
|
|
8429
|
+
"type": "boolean",
|
|
8430
|
+
"kind": "expression"
|
|
8431
|
+
}
|
|
8432
|
+
},
|
|
8433
|
+
{
|
|
8434
|
+
"name": "scrollbar",
|
|
8435
|
+
"description": "Whether the content area uses the Scrollbar component for scrolling, an object can be passed to customize the scrollbar. When false, native overflow scrolling is used. Only effective when `full-height` is true",
|
|
8436
|
+
"value": {
|
|
8437
|
+
"type": "boolean | ScrollbarProps",
|
|
8438
|
+
"kind": "expression"
|
|
8439
|
+
}
|
|
8359
8440
|
}
|
|
8360
8441
|
],
|
|
8361
8442
|
"events": [
|
|
@@ -8609,6 +8690,14 @@
|
|
|
8609
8690
|
"kind": "expression"
|
|
8610
8691
|
}
|
|
8611
8692
|
},
|
|
8693
|
+
{
|
|
8694
|
+
"name": "readonly",
|
|
8695
|
+
"description": "Whether it is read-only",
|
|
8696
|
+
"value": {
|
|
8697
|
+
"type": "boolean|string",
|
|
8698
|
+
"kind": "expression"
|
|
8699
|
+
}
|
|
8700
|
+
},
|
|
8612
8701
|
{
|
|
8613
8702
|
"name": "error",
|
|
8614
8703
|
"description": "Whether it is an error state",
|
|
@@ -8751,7 +8840,7 @@
|
|
|
8751
8840
|
"name": "readonly",
|
|
8752
8841
|
"description": "Whether it is read-only mode",
|
|
8753
8842
|
"value": {
|
|
8754
|
-
"type": "boolean",
|
|
8843
|
+
"type": "boolean|string",
|
|
8755
8844
|
"kind": "expression"
|
|
8756
8845
|
}
|
|
8757
8846
|
},
|
|
@@ -9258,7 +9347,7 @@
|
|
|
9258
9347
|
"name": "popup-container",
|
|
9259
9348
|
"description": "Mount container for popup",
|
|
9260
9349
|
"value": {
|
|
9261
|
-
"type": "
|
|
9350
|
+
"type": "union",
|
|
9262
9351
|
"kind": "expression"
|
|
9263
9352
|
}
|
|
9264
9353
|
}
|
|
@@ -9412,6 +9501,14 @@
|
|
|
9412
9501
|
"kind": "expression"
|
|
9413
9502
|
}
|
|
9414
9503
|
},
|
|
9504
|
+
{
|
|
9505
|
+
"name": "readonly",
|
|
9506
|
+
"description": "Whether it is read-only",
|
|
9507
|
+
"value": {
|
|
9508
|
+
"type": "boolean|string",
|
|
9509
|
+
"kind": "expression"
|
|
9510
|
+
}
|
|
9511
|
+
},
|
|
9415
9512
|
{
|
|
9416
9513
|
"name": "loading",
|
|
9417
9514
|
"description": "Whether it is loading state",
|
|
@@ -10339,6 +10436,30 @@
|
|
|
10339
10436
|
"type": "number",
|
|
10340
10437
|
"kind": "expression"
|
|
10341
10438
|
}
|
|
10439
|
+
},
|
|
10440
|
+
{
|
|
10441
|
+
"name": "esc-to-close",
|
|
10442
|
+
"description": "Whether to close the popup with the ESC key",
|
|
10443
|
+
"value": {
|
|
10444
|
+
"type": "boolean",
|
|
10445
|
+
"kind": "expression"
|
|
10446
|
+
}
|
|
10447
|
+
},
|
|
10448
|
+
{
|
|
10449
|
+
"name": "aria-has-popup",
|
|
10450
|
+
"description": "Popup type for the trigger's `aria-haspopup`. When set, the trigger automatically gets `aria-haspopup` / `aria-expanded` / `aria-controls`, and the popup gets an id.",
|
|
10451
|
+
"value": {
|
|
10452
|
+
"type": "boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'",
|
|
10453
|
+
"kind": "expression"
|
|
10454
|
+
}
|
|
10455
|
+
},
|
|
10456
|
+
{
|
|
10457
|
+
"name": "aria-describedby-popup",
|
|
10458
|
+
"description": "Whether to add `aria-describedby` on the trigger pointing to the popup (tooltip pattern). Only applied while the popup is visible.",
|
|
10459
|
+
"value": {
|
|
10460
|
+
"type": "boolean",
|
|
10461
|
+
"kind": "expression"
|
|
10462
|
+
}
|
|
10342
10463
|
}
|
|
10343
10464
|
],
|
|
10344
10465
|
"events": [
|
|
@@ -10800,7 +10921,7 @@
|
|
|
10800
10921
|
"name": "readonly",
|
|
10801
10922
|
"description": "Readonly",
|
|
10802
10923
|
"value": {
|
|
10803
|
-
"type": "boolean",
|
|
10924
|
+
"type": "boolean|string",
|
|
10804
10925
|
"kind": "expression"
|
|
10805
10926
|
}
|
|
10806
10927
|
},
|
package/package.json
CHANGED
package/es/style/base.scss
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@use './theme/tokens.scss' as theme;
|
|
2
|
-
|
|
3
|
-
body {
|
|
4
|
-
color: rgb(#{theme.$sd-color-primary-6});
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
font-family:
|
|
7
|
-
Inter,
|
|
8
|
-
-apple-system,
|
|
9
|
-
BlinkMacSystemFont,
|
|
10
|
-
'PingFang SC',
|
|
11
|
-
'Hiragino Sans GB',
|
|
12
|
-
'noto sans',
|
|
13
|
-
'Microsoft YaHei',
|
|
14
|
-
'Helvetica Neue',
|
|
15
|
-
Helvetica,
|
|
16
|
-
Arial,
|
|
17
|
-
sans-serif;
|
|
18
|
-
}
|