@sdata/web-vue 1.11.0 → 1.12.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 +177 -6
- package/dist/sd.min.css +1 -1
- package/es/_components/select-view/style/index.css +13 -6
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
- package/es/_hooks/use-allow-search.d.ts +10 -0
- package/es/_hooks/use-allow-search.js +31 -0
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.js +7 -1
- package/es/_utils/dom.js +1 -1
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_utils/vue-utils.js +4 -18
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
- package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
- package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
- package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
- package/es/auto-complete/auto-complete.js +102 -0
- package/es/avatar/avatar-group.js +31 -0
- package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
- package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
- package/es/badge/badge.js +34 -1
- package/es/breadcrumb/breadcrumb-item.js +27 -0
- package/es/breadcrumb/breadcrumb.js +39 -0
- package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
- package/es/button/button.vue_vue_type_script_lang.js +58 -1
- package/es/calendar/calendar.js +47 -0
- package/es/calendar/month.js +1 -1
- package/es/calendar/year.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
- package/es/card/card-meta.js +23 -0
- package/es/card/card.js +54 -0
- package/es/carousel/carousel.js +68 -1
- package/es/cascader/cascader-panel.js +2 -28
- package/es/cascader/cascader-panel.vue.d.ts +24 -306
- package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
- package/es/cascader/cascader.js +2 -145
- package/es/cascader/cascader.vue.d.ts +53 -1289
- package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +236 -172
- package/es/cascader/index.d.ts +4 -2986
- package/es/cascader/types.d.ts +79 -0
- package/es/checkbox/checkbox-group.js +48 -0
- package/es/checkbox/checkbox.js +35 -0
- package/es/collapse/collapse-item.js +36 -0
- package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
- package/es/color-picker/color-picker.js +90 -1
- package/es/color-picker/panel.js +5 -2
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.js +47 -1
- package/es/components.d.ts +132 -127
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +72 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +15 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.js +5 -0
- package/es/copy/copy.vue.d.ts +15 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/copy/index.d.ts +15 -0
- package/es/copy/index.js +10 -0
- package/es/copy/style/css.js +2 -0
- package/es/copy/style/index.css +25 -0
- package/es/copy/style/index.d.ts +2 -0
- package/es/copy/style/index.js +2 -0
- package/es/copy/style/index.scss +15 -0
- package/es/copy/style/token.scss +3 -0
- package/es/copy/types.d.ts +21 -0
- package/es/cropper/cropper.js +5 -0
- package/es/cropper/cropper.vue.d.ts +45 -0
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
- package/es/cropper/index.d.ts +130 -0
- package/es/cropper/index.js +10 -0
- package/es/cropper/interface.d.ts +59 -0
- package/es/cropper/style/css.js +2 -0
- package/es/cropper/style/index.css +51 -0
- package/es/cropper/style/index.d.ts +2 -0
- package/es/cropper/style/index.js +2 -0
- package/es/cropper/style/index.scss +43 -0
- package/es/cropper/style/token.scss +8 -0
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +54 -576
- package/es/date-picker/panels/date/index.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/footer.vue.d.ts +55 -577
- package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/month/index.js +1 -1
- package/es/date-picker/panels/quarter/index.js +1 -1
- package/es/date-picker/panels/year/index.js +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +54 -576
- package/es/date-picker/picker.js +1 -1
- package/es/date-picker/picker.vue.d.ts +54 -576
- package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
- package/es/date-picker/pickers/date-picker.js +42 -0
- package/es/date-picker/pickers/month-picker.js +12 -0
- package/es/date-picker/pickers/quarter-picker.js +17 -0
- package/es/date-picker/pickers/week-picker.js +23 -0
- package/es/date-picker/pickers/year-picker.js +12 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +54 -576
- package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +54 -576
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
- package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
- package/es/descriptions/descriptions.js +65 -1
- package/es/divider/divider.js +24 -0
- package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
- package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
- package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
- package/es/empty/empty.js +18 -0
- package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
- package/es/form/form.vue_vue_type_script_lang.js +108 -0
- package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
- package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
- package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
- package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
- package/es/icon.js +5 -5
- package/es/image/image.js +1 -1
- package/es/image/image.vue_vue_type_script_lang.js +82 -0
- package/es/image/preview-action.js +8 -0
- package/es/image/preview-group.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
- package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
- package/es/image/preview.vue_vue_type_script_lang.js +56 -1
- package/es/index.css +177 -6
- package/es/index.d.ts +9 -1
- package/es/index.js +6 -2
- package/es/index.scss +4 -0
- package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
- package/es/input/input-search.js +35 -1
- package/es/input/input.js +129 -1
- package/es/input-number/index.d.ts +35 -23
- package/es/input-number/input-number.d.ts +19 -10
- package/es/input-number/input-number.js +205 -23
- package/es/input-tag/input-tag.js +137 -1
- package/es/input-tag/style/index.css +13 -6
- package/es/input-tag/utils.js +1 -1
- package/es/layout/content.js +5 -0
- package/es/layout/footer.js +5 -0
- package/es/layout/header.js +5 -0
- package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
- package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
- package/es/link/index.d.ts +44 -564
- package/es/link/interface.d.ts +15 -0
- package/es/link/link.js +2 -17
- package/es/link/link.vue.d.ts +31 -286
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
- package/es/link/style/index.css +6 -0
- package/es/link/style/index.scss +10 -0
- package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
- package/es/list/list-item.js +21 -1
- package/es/list/list.js +104 -2
- package/es/mention/mention.js +87 -1
- package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
- package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +13 -2
- package/es/menu/menu.js +2 -1
- package/es/menu/sub-menu-pop.vue.d.ts +1 -1
- package/es/menu/sub-menu.js +40 -1
- package/es/message/index.js +1 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
- package/es/notification/index.js +1 -1
- package/es/overflow-list/overflow-list.js +25 -1
- package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
- package/es/pagination/page-jumper.vue.d.ts +35 -22
- package/es/pagination/pagination.js +122 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
- package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
- package/es/progress/line.vue_vue_type_script_lang.js +1 -1
- package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
- package/es/radio/radio-group.js +53 -0
- package/es/radio/radio.js +36 -0
- package/es/rate/rate.js +54 -0
- package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
- package/es/result/result.vue_vue_type_script_lang.js +40 -0
- package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
- package/es/sd-vue.js +10 -2
- package/es/secret/index.d.ts +48 -0
- package/es/secret/index.js +10 -0
- package/es/secret/secret.js +5 -0
- package/es/secret/secret.vue.d.ts +17 -0
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
- package/es/secret/style/css.js +2 -0
- package/es/secret/style/index.css +54 -0
- package/es/secret/style/index.d.ts +2 -0
- package/es/secret/style/index.js +2 -0
- package/es/secret/style/index.scss +48 -0
- package/es/secret/style/token.scss +9 -0
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
- package/es/select/option.vue_vue_type_script_lang.js +27 -0
- package/es/select/select.js +8 -6
- package/es/select/utils.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
- package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
- package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
- package/es/slider/index.d.ts +66 -42
- package/es/slider/slider-input.vue.d.ts +33 -21
- package/es/slider/slider.vue.d.ts +33 -21
- package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
- package/es/space/space.js +27 -0
- package/es/spin/spin.js +35 -0
- package/es/split/split.vue_vue_type_script_lang.js +62 -1
- package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
- package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
- package/es/steps/step.vue_vue_type_script_lang.js +36 -0
- package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
- package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
- package/es/table/table-column.js +115 -0
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +1 -1
- package/es/table/table.js +442 -3
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
- package/es/tabs/tabs.js +104 -0
- package/es/tag/index.d.ts +29237 -74
- package/es/tag/interface.d.ts +9 -1
- package/es/tag/style/index.css +13 -6
- package/es/tag/style/index.scss +16 -4
- package/es/tag/tag.js +26 -5
- package/es/tag/tag.vue.d.ts +11688 -7
- package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
- package/es/tag-group/index.d.ts +64 -0
- package/es/tag-group/index.js +10 -0
- package/es/tag-group/interface.d.ts +18 -0
- package/es/tag-group/style/css.js +2 -0
- package/es/tag-group/style/index.css +92 -0
- package/es/tag-group/style/index.d.ts +2 -0
- package/es/tag-group/style/index.js +2 -0
- package/es/tag-group/style/index.scss +108 -0
- package/es/tag-group/style/token.scss +6 -0
- package/es/tag-group/tag-group.js +5 -0
- package/es/tag-group/tag-group.vue.d.ts +46 -0
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
- package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
- package/es/time-picker/range-panel.js +1 -1
- package/es/time-picker/time-picker.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
- package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
- package/es/timeline/timeline.js +28 -0
- package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
- package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
- package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
- package/es/tree/node.js +1 -1
- package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.js +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +281 -8
- package/es/trigger/trigger.js +161 -1
- package/es/trigger/utils.js +1 -1
- package/es/typography/base.d.ts +7 -0
- package/es/typography/base.js +127 -3
- package/es/typography/interface.d.ts +2 -0
- package/es/typography/operations.js +30 -0
- package/es/typography/paragraph.js +8 -0
- package/es/typography/title.js +6 -1
- package/es/upload/upload.js +279 -2
- package/es/verification-code/verification-code.js +59 -0
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/watermark.js +58 -1
- package/es/web-vue.css +24 -24
- package/json/vetur-attributes.json +134 -218
- package/json/vetur-tags.json +58 -67
- package/json/web-types.json +304 -493
- package/package.json +9 -7
- package/es/_utils/clipboard.d.ts +0 -1
- package/es/_utils/clipboard.js +0 -35
- package/es/link/link.vue_vue_type_script_lang.js +0 -56
|
@@ -15,30 +15,73 @@ var dropdown_button_vue_vue_type_script_lang_default = defineComponent({
|
|
|
15
15
|
Dropdown: dropdown_default
|
|
16
16
|
},
|
|
17
17
|
props: {
|
|
18
|
+
/**
|
|
19
|
+
* @zh 弹出框是否可见
|
|
20
|
+
* @en Whether the popup is visible
|
|
21
|
+
* @vModel
|
|
22
|
+
*/
|
|
18
23
|
popupVisible: {
|
|
19
24
|
type: Boolean,
|
|
20
25
|
default: void 0
|
|
21
26
|
},
|
|
27
|
+
/**
|
|
28
|
+
* @zh 弹出框默认是否可见(非受控模式)
|
|
29
|
+
* @en Whether the popup is visible by default (uncontrolled mode)
|
|
30
|
+
*/
|
|
22
31
|
defaultPopupVisible: {
|
|
23
32
|
type: Boolean,
|
|
24
33
|
default: false
|
|
25
34
|
},
|
|
35
|
+
/**
|
|
36
|
+
* @zh 触发方式
|
|
37
|
+
* @en Trigger method
|
|
38
|
+
* @values 'hover','click','focus','contextMenu'
|
|
39
|
+
*/
|
|
26
40
|
trigger: {
|
|
27
41
|
type: [String, Array],
|
|
28
42
|
default: "click"
|
|
29
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* @zh 弹出位置
|
|
46
|
+
* @en Popup position
|
|
47
|
+
* @values 'top','tl','tr','bottom','bl','br'
|
|
48
|
+
*/
|
|
30
49
|
position: {
|
|
31
50
|
type: String,
|
|
32
51
|
default: "br"
|
|
33
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @zh 弹出框的挂载容器
|
|
55
|
+
* @en Mount container for popup
|
|
56
|
+
*/
|
|
34
57
|
popupContainer: { type: [String, Object] },
|
|
58
|
+
/**
|
|
59
|
+
* @zh 是否禁用
|
|
60
|
+
* @en Whether to disable
|
|
61
|
+
*/
|
|
35
62
|
disabled: {
|
|
36
63
|
type: Boolean,
|
|
37
64
|
default: false
|
|
38
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* @zh 按钮类型
|
|
68
|
+
* @en Button type
|
|
69
|
+
*/
|
|
39
70
|
type: { type: String },
|
|
71
|
+
/**
|
|
72
|
+
* @zh 按钮大小
|
|
73
|
+
* @en Button size
|
|
74
|
+
*/
|
|
40
75
|
size: { type: String },
|
|
76
|
+
/**
|
|
77
|
+
* @zh 按钮属性
|
|
78
|
+
* @en Button props
|
|
79
|
+
*/
|
|
41
80
|
buttonProps: { type: Object },
|
|
81
|
+
/**
|
|
82
|
+
* @zh 是否在用户选择后隐藏弹出框
|
|
83
|
+
* @en Whether to hide popup when the user selects
|
|
84
|
+
*/
|
|
42
85
|
hideOnSelect: {
|
|
43
86
|
type: Boolean,
|
|
44
87
|
default: true
|
|
@@ -46,10 +89,37 @@ var dropdown_button_vue_vue_type_script_lang_default = defineComponent({
|
|
|
46
89
|
},
|
|
47
90
|
emits: {
|
|
48
91
|
"update:popupVisible": (_visible) => true,
|
|
92
|
+
/**
|
|
93
|
+
* @zh 下拉框显示状态发生改变时触发
|
|
94
|
+
* @en Triggered when the display status of the drop-down box changes
|
|
95
|
+
* @param {boolean} visible
|
|
96
|
+
*/
|
|
49
97
|
"popupVisibleChange": (_visible) => true,
|
|
98
|
+
/**
|
|
99
|
+
* @zh 点击按钮时触发
|
|
100
|
+
* @en Emitted when the button is clicked
|
|
101
|
+
* @param {MouseEvent} ev
|
|
102
|
+
*/
|
|
50
103
|
"click": (_ev) => true,
|
|
104
|
+
/**
|
|
105
|
+
* @zh 用户选择时触发
|
|
106
|
+
* @en Triggered when the user selects
|
|
107
|
+
* @param {string | number | Record<string, any> | undefined} value
|
|
108
|
+
* @param {Event} ev
|
|
109
|
+
*/
|
|
51
110
|
"select": (_value, _ev) => true
|
|
52
111
|
},
|
|
112
|
+
/**
|
|
113
|
+
* @zh 内容
|
|
114
|
+
* @en Content
|
|
115
|
+
* @slot content
|
|
116
|
+
*/
|
|
117
|
+
/**
|
|
118
|
+
* @zh 按钮图标
|
|
119
|
+
* @en Button icon
|
|
120
|
+
* @slot icon
|
|
121
|
+
* @binding {boolean} popupVisible
|
|
122
|
+
*/
|
|
53
123
|
setup(props, { emit }) {
|
|
54
124
|
const { defaultPopupVisible, popupVisible } = toRefs(props);
|
|
55
125
|
const prefixCls = getPrefixCls("dropdown");
|
|
@@ -3,7 +3,18 @@ import { defineComponent } from "vue";
|
|
|
3
3
|
//#region components/dropdown/dropdown-group.vue?vue&type=script&lang.ts
|
|
4
4
|
var dropdown_group_vue_vue_type_script_lang_default = defineComponent({
|
|
5
5
|
name: "Dgroup",
|
|
6
|
-
props: {
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* @zh 分组标题
|
|
9
|
+
* @en Group title
|
|
10
|
+
*/
|
|
11
|
+
title: String },
|
|
12
|
+
/**
|
|
13
|
+
* @zh 分组标题
|
|
14
|
+
* @en Group title
|
|
15
|
+
* @slot title
|
|
16
|
+
* @version 2.10.0
|
|
17
|
+
*/
|
|
7
18
|
setup() {
|
|
8
19
|
return { prefixCls: getPrefixCls("dropdown-group") };
|
|
9
20
|
}
|
|
@@ -5,11 +5,19 @@ import { computed, defineComponent, inject, ref } from "vue";
|
|
|
5
5
|
var dropdown_option_vue_vue_type_script_lang_default = defineComponent({
|
|
6
6
|
name: "Doption",
|
|
7
7
|
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 选项值
|
|
10
|
+
* @en Value
|
|
11
|
+
*/
|
|
8
12
|
value: { type: [
|
|
9
13
|
String,
|
|
10
14
|
Number,
|
|
11
15
|
Object
|
|
12
16
|
] },
|
|
17
|
+
/**
|
|
18
|
+
* @zh 是否禁用
|
|
19
|
+
* @en Whether to disable
|
|
20
|
+
*/
|
|
13
21
|
disabled: {
|
|
14
22
|
type: Boolean,
|
|
15
23
|
default: false
|
|
@@ -17,7 +25,18 @@ var dropdown_option_vue_vue_type_script_lang_default = defineComponent({
|
|
|
17
25
|
active: Boolean,
|
|
18
26
|
uninjectContext: Boolean
|
|
19
27
|
},
|
|
20
|
-
emits: {
|
|
28
|
+
emits: {
|
|
29
|
+
/**
|
|
30
|
+
* @zh 点击按钮时触发
|
|
31
|
+
* @en Emitted when the button is clicked
|
|
32
|
+
* @param {MouseEvent} ev
|
|
33
|
+
*/
|
|
34
|
+
click: (_ev) => true },
|
|
35
|
+
/**
|
|
36
|
+
* @zh 图标
|
|
37
|
+
* @en Icon
|
|
38
|
+
* @slot icon
|
|
39
|
+
*/
|
|
21
40
|
setup(props, { emit }) {
|
|
22
41
|
const prefixCls = getPrefixCls("dropdown-option");
|
|
23
42
|
const liRef = ref();
|
|
@@ -15,33 +15,90 @@ var dropdown_submenu_vue_vue_type_script_lang_default = defineComponent({
|
|
|
15
15
|
IconRight
|
|
16
16
|
},
|
|
17
17
|
props: {
|
|
18
|
+
/**
|
|
19
|
+
* @zh 选项值(2.16.0 版本后暂无用处)
|
|
20
|
+
* @en Value (Not useful after version 2.16.0)
|
|
21
|
+
*/
|
|
18
22
|
value: { type: [String, Number] },
|
|
23
|
+
/**
|
|
24
|
+
* @zh 是否禁用
|
|
25
|
+
* @en Whether to disable
|
|
26
|
+
* @version 2.10.0
|
|
27
|
+
*/
|
|
19
28
|
disabled: {
|
|
20
29
|
type: Boolean,
|
|
21
30
|
default: false
|
|
22
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* @zh 触发方式
|
|
34
|
+
* @en Trigger method
|
|
35
|
+
* @values 'hover','click'
|
|
36
|
+
* @version 2.10.0
|
|
37
|
+
*/
|
|
23
38
|
trigger: {
|
|
24
39
|
type: [String, Array],
|
|
25
40
|
default: "click"
|
|
26
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @zh 弹出位置
|
|
44
|
+
* @en Popup position
|
|
45
|
+
* @values 'rt','lt'
|
|
46
|
+
* @version 2.10.0
|
|
47
|
+
*/
|
|
27
48
|
position: {
|
|
28
49
|
type: String,
|
|
29
50
|
default: "rt"
|
|
30
51
|
},
|
|
52
|
+
/**
|
|
53
|
+
* @zh 弹出框是否可见
|
|
54
|
+
* @en Whether the popup is visible
|
|
55
|
+
* @vModel
|
|
56
|
+
*/
|
|
31
57
|
popupVisible: {
|
|
32
58
|
type: Boolean,
|
|
33
59
|
default: void 0
|
|
34
60
|
},
|
|
61
|
+
/**
|
|
62
|
+
* @zh 弹出框默认是否可见(非受控模式)
|
|
63
|
+
* @en Whether the popup is visible by default (uncontrolled mode)
|
|
64
|
+
*/
|
|
35
65
|
defaultPopupVisible: {
|
|
36
66
|
type: Boolean,
|
|
37
67
|
default: false
|
|
38
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* @zh 自定义选项属性
|
|
71
|
+
* @en Custom option properties
|
|
72
|
+
* @version 2.29.0
|
|
73
|
+
*/
|
|
39
74
|
optionProps: { type: Object }
|
|
40
75
|
},
|
|
41
76
|
emits: {
|
|
42
77
|
"update:popupVisible": (_visible) => true,
|
|
78
|
+
/**
|
|
79
|
+
* @zh 下拉框显示状态发生改变时触发
|
|
80
|
+
* @en Triggered when the display status of the drop-down box changes
|
|
81
|
+
* @property {boolean} visible
|
|
82
|
+
*/
|
|
43
83
|
"popupVisibleChange": (_visible) => true
|
|
44
84
|
},
|
|
85
|
+
/**
|
|
86
|
+
* @zh 子菜单内容
|
|
87
|
+
* @en Submenu content
|
|
88
|
+
* @slot content
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* @zh 页脚
|
|
92
|
+
* @en Footer
|
|
93
|
+
* @slot footer
|
|
94
|
+
* @version 2.10.0
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* @zh 图标
|
|
98
|
+
* @en Icon
|
|
99
|
+
* @slot icon
|
|
100
|
+
* @version 2.29.0
|
|
101
|
+
*/
|
|
45
102
|
setup(props, { emit }) {
|
|
46
103
|
const { defaultPopupVisible, popupVisible } = toRefs(props);
|
|
47
104
|
const prefixCls = getPrefixCls("dropdown");
|
|
@@ -12,27 +12,60 @@ var dropdown_vue_vue_type_script_lang_default = defineComponent({
|
|
|
12
12
|
DropdownPanel: dropdown_panel_default
|
|
13
13
|
},
|
|
14
14
|
props: {
|
|
15
|
+
/**
|
|
16
|
+
* @zh 弹出框是否可见
|
|
17
|
+
* @en Whether the popup is visible
|
|
18
|
+
* @vModel
|
|
19
|
+
*/
|
|
15
20
|
popupVisible: {
|
|
16
21
|
type: Boolean,
|
|
17
22
|
default: void 0
|
|
18
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* @zh 弹出框默认是否可见(非受控模式)
|
|
26
|
+
* @en Whether the popup is visible by default (uncontrolled mode)
|
|
27
|
+
*/
|
|
19
28
|
defaultPopupVisible: {
|
|
20
29
|
type: Boolean,
|
|
21
30
|
default: false
|
|
22
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* @zh 触发方式
|
|
34
|
+
* @en Trigger method
|
|
35
|
+
* @values 'hover','click','focus','contextMenu'
|
|
36
|
+
*/
|
|
23
37
|
trigger: {
|
|
24
38
|
type: [String, Array],
|
|
25
39
|
default: "click"
|
|
26
40
|
},
|
|
41
|
+
/**
|
|
42
|
+
* @zh 弹出位置
|
|
43
|
+
* @en Popup position
|
|
44
|
+
* @values 'top','tl','tr','bottom','bl','br'
|
|
45
|
+
*/
|
|
27
46
|
position: {
|
|
28
47
|
type: String,
|
|
29
48
|
default: "bottom"
|
|
30
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* @zh 弹出框的挂载容器
|
|
52
|
+
* @en Mount container for popup
|
|
53
|
+
*/
|
|
31
54
|
popupContainer: { type: [String, Object] },
|
|
55
|
+
/**
|
|
56
|
+
* @zh 弹出框最大高度
|
|
57
|
+
* @en Maximum height of the popup
|
|
58
|
+
* @version 2.29.0
|
|
59
|
+
*/
|
|
32
60
|
popupMaxHeight: {
|
|
33
61
|
type: [Boolean, Number],
|
|
34
62
|
default: true
|
|
35
63
|
},
|
|
64
|
+
/**
|
|
65
|
+
* @zh 是否在用户选择后隐藏弹出框
|
|
66
|
+
* @en Whether to hide popup when the user selects
|
|
67
|
+
* @version 2.43.0
|
|
68
|
+
*/
|
|
36
69
|
hideOnSelect: {
|
|
37
70
|
type: Boolean,
|
|
38
71
|
default: true
|
|
@@ -40,9 +73,31 @@ var dropdown_vue_vue_type_script_lang_default = defineComponent({
|
|
|
40
73
|
},
|
|
41
74
|
emits: {
|
|
42
75
|
"update:popupVisible": (_visible) => true,
|
|
76
|
+
/**
|
|
77
|
+
* @zh 下拉框显示状态发生改变时触发
|
|
78
|
+
* @en Triggered when the display status of the drop-down box changes
|
|
79
|
+
* @param {boolean} visible
|
|
80
|
+
*/
|
|
43
81
|
"popupVisibleChange": (_visible) => true,
|
|
82
|
+
/**
|
|
83
|
+
* @zh 用户选择时触发
|
|
84
|
+
* @en Triggered when the user selects
|
|
85
|
+
* @param {string | number | Record<string, any> | undefined } value
|
|
86
|
+
* @param {Event} ev
|
|
87
|
+
*/
|
|
44
88
|
"select": (_value, _ev) => true
|
|
45
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* @zh 内容
|
|
92
|
+
* @en Content
|
|
93
|
+
* @slot content
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* @zh 页脚
|
|
97
|
+
* @en Footer
|
|
98
|
+
* @slot footer
|
|
99
|
+
* @version 2.10.0
|
|
100
|
+
*/
|
|
46
101
|
setup(props, { emit }) {
|
|
47
102
|
const { defaultPopupVisible, popupVisible, popupMaxHeight } = toRefs(props);
|
|
48
103
|
const prefixCls = getPrefixCls("dropdown");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
2
|
import { isObject } from "../_utils/is.js";
|
|
3
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
4
4
|
import resize_observer_v2_default from "../_components/resize-observer-v2.js";
|
|
5
5
|
import Tooltip from "../tooltip/index.js";
|
|
6
|
-
import { _objectWithoutProperties } from "../_virtual/_@oxc-project_runtime@0.
|
|
6
|
+
import { _objectWithoutProperties } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectWithoutProperties.js";
|
|
7
7
|
import { computed, defineComponent, nextTick, onMounted, onUpdated, ref, watch } from "vue";
|
|
8
8
|
//#region components/ellipsis/ellipsis.vue?vue&type=script&lang.ts
|
|
9
9
|
var _excluded = ["disabled"];
|
|
@@ -15,19 +15,42 @@ var ellipsis_vue_vue_type_script_lang_default = defineComponent({
|
|
|
15
15
|
},
|
|
16
16
|
inheritAttrs: false,
|
|
17
17
|
props: {
|
|
18
|
+
/**
|
|
19
|
+
* @zh 最大显示行数。不传时为单行省略。
|
|
20
|
+
* @en Maximum number of displayed lines. Single-line ellipsis is used by default.
|
|
21
|
+
*/
|
|
18
22
|
lineClamp: {
|
|
19
23
|
type: [Number, String],
|
|
20
24
|
default: void 0
|
|
21
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* @zh 展开的触发方式
|
|
28
|
+
* @en Trigger mode for expansion
|
|
29
|
+
* @values 'click'
|
|
30
|
+
*/
|
|
22
31
|
expandTrigger: {
|
|
23
32
|
type: String,
|
|
24
33
|
default: void 0
|
|
25
34
|
},
|
|
35
|
+
/**
|
|
36
|
+
* @zh 省略时是否展示提示。可传入 Tooltip 属性。
|
|
37
|
+
* @en Whether to show a tooltip when ellipsis is active. Tooltip props are supported.
|
|
38
|
+
*/
|
|
26
39
|
tooltip: {
|
|
27
40
|
type: [Boolean, Object],
|
|
28
41
|
default: true
|
|
29
42
|
}
|
|
30
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* @zh 默认内容
|
|
46
|
+
* @en Default content
|
|
47
|
+
* @slot default
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* @zh 自定义提示内容
|
|
51
|
+
* @en Custom tooltip content
|
|
52
|
+
* @slot tooltip
|
|
53
|
+
*/
|
|
31
54
|
setup(props) {
|
|
32
55
|
const prefixCls = getPrefixCls("ellipsis");
|
|
33
56
|
const triggerRef = ref();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
3
3
|
import ellipsis_default from "./ellipsis.js";
|
|
4
4
|
import { computed, defineComponent, nextTick, ref } from "vue";
|
|
5
5
|
//#region components/ellipsis/performant-ellipsis.vue?vue&type=script&lang.ts
|
|
@@ -8,19 +8,42 @@ var performant_ellipsis_vue_vue_type_script_lang_default = defineComponent({
|
|
|
8
8
|
components: { Ellipsis: ellipsis_default },
|
|
9
9
|
inheritAttrs: false,
|
|
10
10
|
props: {
|
|
11
|
+
/**
|
|
12
|
+
* @zh 最大显示行数。不传时为单行省略。
|
|
13
|
+
* @en Maximum number of displayed lines. Single-line ellipsis is used by default.
|
|
14
|
+
*/
|
|
11
15
|
lineClamp: {
|
|
12
16
|
type: [Number, String],
|
|
13
17
|
default: void 0
|
|
14
18
|
},
|
|
19
|
+
/**
|
|
20
|
+
* @zh 展开的触发方式
|
|
21
|
+
* @en Trigger mode for expansion
|
|
22
|
+
* @values 'click'
|
|
23
|
+
*/
|
|
15
24
|
expandTrigger: {
|
|
16
25
|
type: String,
|
|
17
26
|
default: void 0
|
|
18
27
|
},
|
|
28
|
+
/**
|
|
29
|
+
* @zh 省略时是否展示提示。可传入 Tooltip 属性。
|
|
30
|
+
* @en Whether to show a tooltip when ellipsis is active. Tooltip props are supported.
|
|
31
|
+
*/
|
|
19
32
|
tooltip: {
|
|
20
33
|
type: [Boolean, Object],
|
|
21
34
|
default: true
|
|
22
35
|
}
|
|
23
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @zh 默认内容
|
|
39
|
+
* @en Default content
|
|
40
|
+
* @slot default
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* @zh 自定义提示内容
|
|
44
|
+
* @en Custom tooltip content
|
|
45
|
+
* @slot tooltip
|
|
46
|
+
*/
|
|
24
47
|
setup(props) {
|
|
25
48
|
const prefixCls = getPrefixCls("ellipsis");
|
|
26
49
|
const activated = ref(false);
|
package/es/empty/empty.js
CHANGED
|
@@ -8,13 +8,31 @@ var empty_default = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
name: "Empty",
|
|
9
9
|
inheritAttrs: false,
|
|
10
10
|
props: {
|
|
11
|
+
/**
|
|
12
|
+
* @zh 描述内容
|
|
13
|
+
* @en Description
|
|
14
|
+
*/
|
|
11
15
|
description: String,
|
|
16
|
+
/**
|
|
17
|
+
* @zh 自定义图片的地址
|
|
18
|
+
* @en The src of the Custom Image
|
|
19
|
+
*/
|
|
12
20
|
imgSrc: String,
|
|
21
|
+
/**
|
|
22
|
+
* @zh 是否在 ConfigProvider 中使用
|
|
23
|
+
* @en Whether to use in ConfigProvider
|
|
24
|
+
* @version 2.47.0
|
|
25
|
+
*/
|
|
13
26
|
inConfigProvider: {
|
|
14
27
|
type: Boolean,
|
|
15
28
|
default: false
|
|
16
29
|
}
|
|
17
30
|
},
|
|
31
|
+
/**
|
|
32
|
+
* @zh 图片/图标
|
|
33
|
+
* @en Image/Icon
|
|
34
|
+
* @slot image
|
|
35
|
+
*/
|
|
18
36
|
setup(props, { slots, attrs }) {
|
|
19
37
|
const prefixCls = getPrefixCls("empty");
|
|
20
38
|
const { t } = useI18n();
|