@sdata/web-vue 1.11.1 → 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
|
@@ -12,48 +12,102 @@ import { computed, createVNode, defineComponent, mergeProps, reactive, ref, toRe
|
|
|
12
12
|
var pagination_default = /* @__PURE__ */ defineComponent({
|
|
13
13
|
name: "Pagination",
|
|
14
14
|
props: {
|
|
15
|
+
/**
|
|
16
|
+
* @zh 数据总数
|
|
17
|
+
* @en Total number of data
|
|
18
|
+
*/
|
|
15
19
|
total: {
|
|
16
20
|
type: Number,
|
|
17
21
|
required: true
|
|
18
22
|
},
|
|
23
|
+
/**
|
|
24
|
+
* @zh 当前的页数
|
|
25
|
+
* @en Current page number
|
|
26
|
+
* @vModel
|
|
27
|
+
*/
|
|
19
28
|
current: Number,
|
|
29
|
+
/**
|
|
30
|
+
* @zh 默认的页数(非受控状态)
|
|
31
|
+
* @en The default number of pages (uncontrolled state)
|
|
32
|
+
*/
|
|
20
33
|
defaultCurrent: {
|
|
21
34
|
type: Number,
|
|
22
35
|
default: 1
|
|
23
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @zh 每页展示的数据条数
|
|
39
|
+
* @en Number of data items displayed per page
|
|
40
|
+
* @vModel
|
|
41
|
+
*/
|
|
24
42
|
pageSize: Number,
|
|
43
|
+
/**
|
|
44
|
+
* @zh 默认每页展示的数据条数(非受控状态)
|
|
45
|
+
* @en The number of data items displayed per page by default (uncontrolled state)
|
|
46
|
+
*/
|
|
25
47
|
defaultPageSize: {
|
|
26
48
|
type: Number,
|
|
27
49
|
default: 10
|
|
28
50
|
},
|
|
51
|
+
/**
|
|
52
|
+
* @zh 是否禁用
|
|
53
|
+
* @en Whether to disable
|
|
54
|
+
*/
|
|
29
55
|
disabled: {
|
|
30
56
|
type: Boolean,
|
|
31
57
|
default: false
|
|
32
58
|
},
|
|
59
|
+
/**
|
|
60
|
+
* @zh 单页时是否隐藏分页
|
|
61
|
+
* @en Whether to hide pagination when single page
|
|
62
|
+
*/
|
|
33
63
|
hideOnSinglePage: {
|
|
34
64
|
type: Boolean,
|
|
35
65
|
default: false
|
|
36
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* @zh 是否为简单模式
|
|
69
|
+
* @en Whether it is simple mode
|
|
70
|
+
*/
|
|
37
71
|
simple: {
|
|
38
72
|
type: Boolean,
|
|
39
73
|
default: false
|
|
40
74
|
},
|
|
75
|
+
/**
|
|
76
|
+
* @zh 是否显示数据总数
|
|
77
|
+
* @en Whether to display the total number of data
|
|
78
|
+
*/
|
|
41
79
|
showTotal: {
|
|
42
80
|
type: Boolean,
|
|
43
81
|
default: false
|
|
44
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* @zh 是否显示更多按钮
|
|
85
|
+
* @en Whether to show more buttons
|
|
86
|
+
*/
|
|
45
87
|
showMore: {
|
|
46
88
|
type: Boolean,
|
|
47
89
|
default: false
|
|
48
90
|
},
|
|
91
|
+
/**
|
|
92
|
+
* @zh 是否显示跳转
|
|
93
|
+
* @en Whether to show jump
|
|
94
|
+
*/
|
|
49
95
|
showJumper: {
|
|
50
96
|
type: Boolean,
|
|
51
97
|
default: false
|
|
52
98
|
},
|
|
99
|
+
/**
|
|
100
|
+
* @zh 是否显示数据条数选择器
|
|
101
|
+
* @en Whether to display the data number selector
|
|
102
|
+
*/
|
|
53
103
|
showPageSize: {
|
|
54
104
|
type: Boolean,
|
|
55
105
|
default: false
|
|
56
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* @zh 数据条数选择器的选项列表
|
|
109
|
+
* @en Selection list of data number selector
|
|
110
|
+
*/
|
|
57
111
|
pageSizeOptions: {
|
|
58
112
|
type: Array,
|
|
59
113
|
default: () => [
|
|
@@ -64,18 +118,49 @@ var pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
64
118
|
50
|
|
65
119
|
]
|
|
66
120
|
},
|
|
121
|
+
/**
|
|
122
|
+
* @zh 数据条数选择器的Props
|
|
123
|
+
* @en Props of data number selector
|
|
124
|
+
*/
|
|
67
125
|
pageSizeProps: { type: Object },
|
|
126
|
+
/**
|
|
127
|
+
* @zh 分页选择器的大小
|
|
128
|
+
* @en The size of the page selector
|
|
129
|
+
* @values 'mini', 'small', 'medium', 'large'
|
|
130
|
+
* @defaultValue 'medium'
|
|
131
|
+
*/
|
|
68
132
|
size: { type: String },
|
|
133
|
+
/**
|
|
134
|
+
* @zh 分页按钮的样式
|
|
135
|
+
* @en The style of the paging button
|
|
136
|
+
*/
|
|
69
137
|
pageItemStyle: { type: Object },
|
|
138
|
+
/**
|
|
139
|
+
* @zh 当前分页按钮的样式
|
|
140
|
+
* @en The style of the current paging button
|
|
141
|
+
*/
|
|
70
142
|
activePageItemStyle: { type: Object },
|
|
143
|
+
/**
|
|
144
|
+
* @zh 计算显示省略的基础个数。显示省略的个数为 `baseSize + 2 * bufferSize`
|
|
145
|
+
* @en Calculate and display the number of omitted bases. Display the omitted number as `baseSize + 2 * bufferSize`
|
|
146
|
+
*/
|
|
71
147
|
baseSize: {
|
|
72
148
|
type: Number,
|
|
73
149
|
default: 6
|
|
74
150
|
},
|
|
151
|
+
/**
|
|
152
|
+
* @zh 显示省略号时,当前页码左右显示的页码个数
|
|
153
|
+
* @en When the ellipsis is displayed, the number of page numbers displayed on the left and right of the current page number
|
|
154
|
+
*/
|
|
75
155
|
bufferSize: {
|
|
76
156
|
type: Number,
|
|
77
157
|
default: 2
|
|
78
158
|
},
|
|
159
|
+
/**
|
|
160
|
+
* @zh 是否在改变数据条数时调整页码
|
|
161
|
+
* @en Whether to adjust the page number when changing the number of data
|
|
162
|
+
* @version 2.34.0
|
|
163
|
+
*/
|
|
79
164
|
autoAdjust: {
|
|
80
165
|
type: Boolean,
|
|
81
166
|
default: true
|
|
@@ -84,9 +169,46 @@ var pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
84
169
|
emits: {
|
|
85
170
|
"update:current": (_current) => true,
|
|
86
171
|
"update:pageSize": (_pageSize) => true,
|
|
172
|
+
/**
|
|
173
|
+
* @zh 页码改变时触发
|
|
174
|
+
* @en Triggered when page number changes
|
|
175
|
+
* @param {number} current
|
|
176
|
+
*/
|
|
87
177
|
"change": (_current) => true,
|
|
178
|
+
/**
|
|
179
|
+
* @zh 数据条数改变时触发
|
|
180
|
+
* @en Triggered when the number of data items changes
|
|
181
|
+
* @param {number} pageSize
|
|
182
|
+
*/
|
|
88
183
|
"pageSizeChange": (_pageSize) => true
|
|
89
184
|
},
|
|
185
|
+
/**
|
|
186
|
+
* @zh 分页按钮
|
|
187
|
+
* @en Page item
|
|
188
|
+
* @version 2.9.0
|
|
189
|
+
* @slot page-item
|
|
190
|
+
* @binding {number} page The page number of the paging button
|
|
191
|
+
*/
|
|
192
|
+
/**
|
|
193
|
+
* @zh 分页按钮(步)
|
|
194
|
+
* @en Page item (step)
|
|
195
|
+
* @version 2.9.0
|
|
196
|
+
* @slot page-item-step
|
|
197
|
+
* @binding {'previous'|'next'} type The type of page item step
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
* @zh 分页按钮(省略)
|
|
201
|
+
* @en Page item (ellipsis)
|
|
202
|
+
* @version 2.9.0
|
|
203
|
+
* @slot page-item-ellipsis
|
|
204
|
+
*/
|
|
205
|
+
/**
|
|
206
|
+
* @zh 总数
|
|
207
|
+
* @en Total
|
|
208
|
+
* @version 2.9.0
|
|
209
|
+
* @slot total
|
|
210
|
+
* @binding {number} total
|
|
211
|
+
*/
|
|
90
212
|
setup(props, { emit, slots }) {
|
|
91
213
|
const prefixCls = getPrefixCls("pagination");
|
|
92
214
|
const { t } = useI18n();
|
|
@@ -4,7 +4,7 @@ import IconCheckCircleFill from "../icon/icon-check-circle-fill/index.js";
|
|
|
4
4
|
import IconCloseCircleFill from "../icon/icon-close-circle-fill/index.js";
|
|
5
5
|
import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
|
|
6
6
|
import IconInfoCircleFill from "../icon/icon-info-circle-fill/index.js";
|
|
7
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
7
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
8
8
|
import Button from "../button/index.js";
|
|
9
9
|
import { useI18n } from "../locale/index.js";
|
|
10
10
|
import Trigger from "../trigger/index.js";
|
|
@@ -21,53 +21,147 @@ var popconfirm_vue_vue_type_script_lang_default = defineComponent({
|
|
|
21
21
|
IconCloseCircleFill
|
|
22
22
|
},
|
|
23
23
|
props: {
|
|
24
|
+
/**
|
|
25
|
+
* @zh 内容
|
|
26
|
+
* @en Content
|
|
27
|
+
*/
|
|
24
28
|
content: String,
|
|
29
|
+
/**
|
|
30
|
+
* @zh 弹出位置
|
|
31
|
+
* @en Popup position
|
|
32
|
+
* @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
|
|
33
|
+
*/
|
|
25
34
|
position: {
|
|
26
35
|
type: String,
|
|
27
36
|
default: "top"
|
|
28
37
|
},
|
|
38
|
+
/**
|
|
39
|
+
* @zh 气泡确认框是否可见
|
|
40
|
+
* @en Whether the popconfirm is visible
|
|
41
|
+
* @vModel
|
|
42
|
+
*/
|
|
29
43
|
popupVisible: {
|
|
30
44
|
type: Boolean,
|
|
31
45
|
default: void 0
|
|
32
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* @zh 气泡确认框默认是否可见(非受控模式)
|
|
49
|
+
* @en Whether the popconfirm is visible by default (uncontrolled mode)
|
|
50
|
+
*/
|
|
33
51
|
defaultPopupVisible: {
|
|
34
52
|
type: Boolean,
|
|
35
53
|
default: false
|
|
36
54
|
},
|
|
55
|
+
/**
|
|
56
|
+
* @zh 气泡确认框的类型
|
|
57
|
+
* @en Types of the popconfirm
|
|
58
|
+
* @values 'info','success','warning','error'
|
|
59
|
+
*/
|
|
37
60
|
type: {
|
|
38
61
|
type: String,
|
|
39
62
|
default: "info"
|
|
40
63
|
},
|
|
64
|
+
/**
|
|
65
|
+
* @zh 确认按钮的内容
|
|
66
|
+
* @en The content of the ok button
|
|
67
|
+
*/
|
|
41
68
|
okText: String,
|
|
69
|
+
/**
|
|
70
|
+
* @zh 取消按钮的内容
|
|
71
|
+
* @en The content of the cancel button
|
|
72
|
+
*/
|
|
42
73
|
cancelText: String,
|
|
74
|
+
/**
|
|
75
|
+
* @zh 确认按钮是否为加载中状态
|
|
76
|
+
* @en Whether the ok button is in the loading state
|
|
77
|
+
*/
|
|
43
78
|
okLoading: {
|
|
44
79
|
type: Boolean,
|
|
45
80
|
default: false
|
|
46
81
|
},
|
|
82
|
+
/**
|
|
83
|
+
* @zh 确认按钮的Props
|
|
84
|
+
* @en Props of ok button
|
|
85
|
+
*/
|
|
47
86
|
okButtonProps: { type: Object },
|
|
87
|
+
/**
|
|
88
|
+
* @zh 取消按钮的Props
|
|
89
|
+
* @en Props of cancel button
|
|
90
|
+
*/
|
|
48
91
|
cancelButtonProps: { type: Object },
|
|
92
|
+
/**
|
|
93
|
+
* @zh 弹出框内容的类名
|
|
94
|
+
* @en The class name of the popup content
|
|
95
|
+
*/
|
|
49
96
|
contentClass: { type: [
|
|
50
97
|
String,
|
|
51
98
|
Array,
|
|
52
99
|
Object
|
|
53
100
|
] },
|
|
101
|
+
/**
|
|
102
|
+
* @zh 弹出框内容的样式
|
|
103
|
+
* @en The style of the popup content
|
|
104
|
+
*/
|
|
54
105
|
contentStyle: { type: Object },
|
|
106
|
+
/**
|
|
107
|
+
* @zh 弹出框箭头的类名
|
|
108
|
+
* @en The class name of the popup arrow
|
|
109
|
+
*/
|
|
55
110
|
arrowClass: { type: [
|
|
56
111
|
String,
|
|
57
112
|
Array,
|
|
58
113
|
Object
|
|
59
114
|
] },
|
|
115
|
+
/**
|
|
116
|
+
* @zh 弹出框箭头的样式
|
|
117
|
+
* @en The style of the popup arrow
|
|
118
|
+
*/
|
|
60
119
|
arrowStyle: { type: Object },
|
|
120
|
+
/**
|
|
121
|
+
* @zh 弹出框的挂载点
|
|
122
|
+
* @en Mount container for popup
|
|
123
|
+
*/
|
|
61
124
|
popupContainer: { type: [String, Object] },
|
|
125
|
+
/**
|
|
126
|
+
* @zh 触发 ok 事件前的回调函数。如果返回 false 则不会触发后续事件,也可使用 done 进行异步关闭。
|
|
127
|
+
* @en The callback function before the ok event is triggered. If false is returned, subsequent events will not be triggered, and done can also be used to close asynchronously.
|
|
128
|
+
*/
|
|
62
129
|
onBeforeOk: { type: Function },
|
|
130
|
+
/**
|
|
131
|
+
* @zh 触发 cancel 事件前的回调函数。如果返回 false 则不会触发后续事件。
|
|
132
|
+
* @en The callback function before the cancel event is triggered. If it returns false, no subsequent events will be triggered.
|
|
133
|
+
*/
|
|
63
134
|
onBeforeCancel: { type: Function }
|
|
64
135
|
},
|
|
65
136
|
emits: {
|
|
66
137
|
"update:popupVisible": (_visible) => true,
|
|
138
|
+
/**
|
|
139
|
+
* @zh 气泡确认框的显隐状态改变时触发
|
|
140
|
+
* @en Triggered when the visible or hidden state of the bubble confirmation box changes
|
|
141
|
+
* @param {boolean} visible
|
|
142
|
+
*/
|
|
67
143
|
"popupVisibleChange": (_visible) => true,
|
|
144
|
+
/**
|
|
145
|
+
* @zh 点击确认按钮时触发
|
|
146
|
+
* @en Triggered when the confirm button is clicked
|
|
147
|
+
*/
|
|
68
148
|
"ok": () => true,
|
|
149
|
+
/**
|
|
150
|
+
* @zh 点击取消按钮时触发
|
|
151
|
+
* @en Triggered when the cancel button is clicked
|
|
152
|
+
*/
|
|
69
153
|
"cancel": () => true
|
|
70
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* @zh 内容
|
|
157
|
+
* @en Content
|
|
158
|
+
* @slot content
|
|
159
|
+
*/
|
|
160
|
+
/**
|
|
161
|
+
* @zh 图标
|
|
162
|
+
* @en Icon
|
|
163
|
+
* @slot icon
|
|
164
|
+
*/
|
|
71
165
|
setup(props, { emit }) {
|
|
72
166
|
const prefixCls = getPrefixCls("popconfirm");
|
|
73
167
|
const { t } = useI18n();
|
|
@@ -6,42 +6,104 @@ var popover_vue_vue_type_script_lang_default = defineComponent({
|
|
|
6
6
|
name: "Popover",
|
|
7
7
|
components: { Trigger },
|
|
8
8
|
props: {
|
|
9
|
+
/**
|
|
10
|
+
* @zh 文字气泡是否可见
|
|
11
|
+
* @en Whether the popover is visible
|
|
12
|
+
* @vModel
|
|
13
|
+
*/
|
|
9
14
|
popupVisible: {
|
|
10
15
|
type: Boolean,
|
|
11
16
|
default: void 0
|
|
12
17
|
},
|
|
18
|
+
/**
|
|
19
|
+
* @zh 文字气泡默认是否可见(非受控模式)
|
|
20
|
+
* @en Whether the popover is visible by default (uncontrolled mode)
|
|
21
|
+
*/
|
|
13
22
|
defaultPopupVisible: {
|
|
14
23
|
type: Boolean,
|
|
15
24
|
default: false
|
|
16
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* @zh 标题
|
|
28
|
+
* @en Title
|
|
29
|
+
*/
|
|
17
30
|
title: String,
|
|
31
|
+
/**
|
|
32
|
+
* @zh 内容
|
|
33
|
+
* @en Content
|
|
34
|
+
*/
|
|
18
35
|
content: String,
|
|
36
|
+
/**
|
|
37
|
+
* @zh 触发方式
|
|
38
|
+
* @en Trigger method
|
|
39
|
+
* @values 'hover','click','focus','contextMenu'
|
|
40
|
+
*/
|
|
19
41
|
trigger: {
|
|
20
42
|
type: [String, Array],
|
|
21
43
|
default: "hover"
|
|
22
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* @zh 弹出位置
|
|
47
|
+
* @en Pop-up position
|
|
48
|
+
* @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
|
|
49
|
+
*/
|
|
23
50
|
position: {
|
|
24
51
|
type: String,
|
|
25
52
|
default: "top"
|
|
26
53
|
},
|
|
54
|
+
/**
|
|
55
|
+
* @zh 弹出框内容的类名
|
|
56
|
+
* @en The class name of the popup content
|
|
57
|
+
*/
|
|
27
58
|
contentClass: { type: [
|
|
28
59
|
String,
|
|
29
60
|
Array,
|
|
30
61
|
Object
|
|
31
62
|
] },
|
|
63
|
+
/**
|
|
64
|
+
* @zh 弹出框内容的样式
|
|
65
|
+
* @en The style of the popup content
|
|
66
|
+
*/
|
|
32
67
|
contentStyle: { type: Object },
|
|
68
|
+
/**
|
|
69
|
+
* @zh 弹出框箭头的类名
|
|
70
|
+
* @en The class name of the popup arrow
|
|
71
|
+
*/
|
|
33
72
|
arrowClass: { type: [
|
|
34
73
|
String,
|
|
35
74
|
Array,
|
|
36
75
|
Object
|
|
37
76
|
] },
|
|
77
|
+
/**
|
|
78
|
+
* @zh 弹出框箭头的样式
|
|
79
|
+
* @en The style of the popup arrow
|
|
80
|
+
*/
|
|
38
81
|
arrowStyle: { type: Object },
|
|
82
|
+
/**
|
|
83
|
+
* @zh 弹出框的挂载容器
|
|
84
|
+
* @en Mount container for pop-up box
|
|
85
|
+
*/
|
|
39
86
|
popupContainer: { type: [String, Object] }
|
|
40
87
|
},
|
|
41
88
|
emits: {
|
|
42
89
|
"update:popupVisible": (_visible) => true,
|
|
90
|
+
/**
|
|
91
|
+
* @zh 文字气泡显示状态改变时触发
|
|
92
|
+
* @en Triggered when the text bubble display status changes
|
|
93
|
+
* @param {boolean} visible
|
|
94
|
+
*/
|
|
43
95
|
"popupVisibleChange": (_visible) => true
|
|
44
96
|
},
|
|
97
|
+
/**
|
|
98
|
+
* @zh 标题
|
|
99
|
+
* @en Title
|
|
100
|
+
* @slot title
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @zh 内容
|
|
104
|
+
* @en Content
|
|
105
|
+
* @slot content
|
|
106
|
+
*/
|
|
45
107
|
setup(props, { emit }) {
|
|
46
108
|
const prefixCls = getPrefixCls("popover");
|
|
47
109
|
const _popupVisible = ref(props.defaultPopupVisible);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isObject } from "../_utils/is.js";
|
|
4
4
|
import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
|
|
@@ -13,32 +13,80 @@ var progress_vue_vue_type_script_lang_default = defineComponent({
|
|
|
13
13
|
ProgressSteps: steps_default
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
|
+
/**
|
|
17
|
+
* @zh 进度条的类型
|
|
18
|
+
* @en The type of progress bar
|
|
19
|
+
* @values 'line', 'circle'
|
|
20
|
+
*/
|
|
16
21
|
type: {
|
|
17
22
|
type: String,
|
|
18
23
|
default: "line"
|
|
19
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* @zh 进度条的大小
|
|
27
|
+
* @en The size of the progress bar
|
|
28
|
+
* @values 'mini','small','medium','large'
|
|
29
|
+
* @defaultValue 'medium'
|
|
30
|
+
*/
|
|
20
31
|
size: { type: String },
|
|
32
|
+
/**
|
|
33
|
+
* @zh 进度条当前的百分比
|
|
34
|
+
* @en The current percentage of the progress bar
|
|
35
|
+
*/
|
|
21
36
|
percent: {
|
|
22
37
|
type: Number,
|
|
23
38
|
default: 0
|
|
24
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @zh 开启步骤条模式,并设置步骤数
|
|
42
|
+
* @en Turn on the step bar mode and set the number of steps
|
|
43
|
+
*/
|
|
25
44
|
steps: {
|
|
26
45
|
type: Number,
|
|
27
46
|
default: 0
|
|
28
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* @zh 是否开启过渡动画
|
|
50
|
+
* @en Whether to turn on the transition animation
|
|
51
|
+
*/
|
|
29
52
|
animation: {
|
|
30
53
|
type: Boolean,
|
|
31
54
|
default: false
|
|
32
55
|
},
|
|
56
|
+
/**
|
|
57
|
+
* @zh 进度条的线宽
|
|
58
|
+
* @en The line width of the progress bar
|
|
59
|
+
*/
|
|
33
60
|
strokeWidth: { type: Number },
|
|
61
|
+
/**
|
|
62
|
+
* @zh 进度条的长度
|
|
63
|
+
* @en The width of the progress bar
|
|
64
|
+
*/
|
|
34
65
|
width: { type: [Number, String] },
|
|
66
|
+
/**
|
|
67
|
+
* @zh 进度条的颜色
|
|
68
|
+
* @en The color of the progress bar
|
|
69
|
+
*/
|
|
35
70
|
color: { type: [String, Object] },
|
|
71
|
+
/**
|
|
72
|
+
* @zh 进度条的轨道颜色
|
|
73
|
+
* @en The color of the progress track
|
|
74
|
+
*/
|
|
36
75
|
trackColor: String,
|
|
37
76
|
bufferColor: { type: [String, Object] },
|
|
77
|
+
/**
|
|
78
|
+
* @zh 是否显示文字
|
|
79
|
+
* @en Whether to display text
|
|
80
|
+
*/
|
|
38
81
|
showText: {
|
|
39
82
|
type: Boolean,
|
|
40
83
|
default: true
|
|
41
84
|
},
|
|
85
|
+
/**
|
|
86
|
+
* @zh 进度条状态
|
|
87
|
+
* @en Progress bar status
|
|
88
|
+
* @values 'normal', 'success', 'warning', 'danger'
|
|
89
|
+
*/
|
|
42
90
|
status: { type: String }
|
|
43
91
|
},
|
|
44
92
|
setup(props) {
|
package/es/radio/radio-group.js
CHANGED
|
@@ -9,6 +9,11 @@ import { computed, createVNode, defineComponent, provide, reactive, ref, toRefs,
|
|
|
9
9
|
var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
10
10
|
name: "RadioGroup",
|
|
11
11
|
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @zh 绑定值
|
|
14
|
+
* @en Value
|
|
15
|
+
* @vModel
|
|
16
|
+
*/
|
|
12
17
|
modelValue: {
|
|
13
18
|
type: [
|
|
14
19
|
String,
|
|
@@ -17,6 +22,10 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
17
22
|
],
|
|
18
23
|
default: void 0
|
|
19
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* @zh 默认值(非受控状态)
|
|
27
|
+
* @en Default value (uncontrolled state)
|
|
28
|
+
*/
|
|
20
29
|
defaultValue: {
|
|
21
30
|
type: [
|
|
22
31
|
String,
|
|
@@ -25,16 +34,40 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
25
34
|
],
|
|
26
35
|
default: ""
|
|
27
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @zh 单选框组的类型
|
|
39
|
+
* @en Types of radio group
|
|
40
|
+
* @values 'radio', 'button'
|
|
41
|
+
*/
|
|
28
42
|
type: {
|
|
29
43
|
type: String,
|
|
30
44
|
default: "radio"
|
|
31
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @zh 单选框组的尺寸
|
|
48
|
+
* @en The size of the radio group
|
|
49
|
+
* @values 'mini','small','medium','large'
|
|
50
|
+
*/
|
|
32
51
|
size: { type: String },
|
|
52
|
+
/**
|
|
53
|
+
* @zh 选项
|
|
54
|
+
* @en Options
|
|
55
|
+
* @version 2.27.0
|
|
56
|
+
*/
|
|
33
57
|
options: { type: Array },
|
|
58
|
+
/**
|
|
59
|
+
* @zh 单选框组的方向
|
|
60
|
+
* @en The direction of the radio group
|
|
61
|
+
* @values 'horizontal', 'vertical'
|
|
62
|
+
*/
|
|
34
63
|
direction: {
|
|
35
64
|
type: String,
|
|
36
65
|
default: "horizontal"
|
|
37
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* @zh 是否禁用
|
|
69
|
+
* @en Whether to disable
|
|
70
|
+
*/
|
|
38
71
|
disabled: {
|
|
39
72
|
type: Boolean,
|
|
40
73
|
default: false
|
|
@@ -42,8 +75,28 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
42
75
|
},
|
|
43
76
|
emits: {
|
|
44
77
|
"update:modelValue": (_value) => true,
|
|
78
|
+
/**
|
|
79
|
+
* @zh 值改变时触发
|
|
80
|
+
* @en Trigger when the value changes
|
|
81
|
+
* @property { string | number | boolean } value
|
|
82
|
+
*/
|
|
45
83
|
"change": (_value, _ev) => true
|
|
46
84
|
},
|
|
85
|
+
/**
|
|
86
|
+
* @zh radio 文案内容
|
|
87
|
+
* @en radio label content
|
|
88
|
+
* @slot label
|
|
89
|
+
* @binding {RadioOption} data
|
|
90
|
+
* @version 2.27.0
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* @zh 自定义单选框
|
|
94
|
+
* @en Custom radio
|
|
95
|
+
* @slot radio
|
|
96
|
+
* @binding {boolean} checked
|
|
97
|
+
* @binding {boolean} disabled
|
|
98
|
+
* @version 2.27.0
|
|
99
|
+
*/
|
|
47
100
|
setup(props, { emit, slots }) {
|
|
48
101
|
const prefixCls = getPrefixCls("radio-group");
|
|
49
102
|
const { size, type, disabled, modelValue } = toRefs(props);
|
package/es/radio/radio.js
CHANGED
|
@@ -9,6 +9,11 @@ var radio_default = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
name: "Radio",
|
|
10
10
|
components: { IconHover: icon_hover_default },
|
|
11
11
|
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @zh 绑定值
|
|
14
|
+
* @en Value
|
|
15
|
+
* @vModel
|
|
16
|
+
*/
|
|
12
17
|
modelValue: {
|
|
13
18
|
type: [
|
|
14
19
|
String,
|
|
@@ -17,10 +22,18 @@ var radio_default = /* @__PURE__ */ defineComponent({
|
|
|
17
22
|
],
|
|
18
23
|
default: void 0
|
|
19
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* @zh 默认是否选中(非受控状态)
|
|
27
|
+
* @en Whether checked by default (uncontrolled state)
|
|
28
|
+
*/
|
|
20
29
|
defaultChecked: {
|
|
21
30
|
type: Boolean,
|
|
22
31
|
default: false
|
|
23
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* @zh 选项的 `value`
|
|
35
|
+
* @en The `value` of the option
|
|
36
|
+
*/
|
|
24
37
|
value: {
|
|
25
38
|
type: [
|
|
26
39
|
String,
|
|
@@ -29,10 +42,19 @@ var radio_default = /* @__PURE__ */ defineComponent({
|
|
|
29
42
|
],
|
|
30
43
|
default: true
|
|
31
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* @zh 单选的类型
|
|
47
|
+
* @en Radio type
|
|
48
|
+
* @values 'radio', 'button'
|
|
49
|
+
*/
|
|
32
50
|
type: {
|
|
33
51
|
type: String,
|
|
34
52
|
default: "radio"
|
|
35
53
|
},
|
|
54
|
+
/**
|
|
55
|
+
* @zh 是否禁用
|
|
56
|
+
* @en Whether to disable
|
|
57
|
+
*/
|
|
36
58
|
disabled: {
|
|
37
59
|
type: Boolean,
|
|
38
60
|
default: false
|
|
@@ -44,8 +66,22 @@ var radio_default = /* @__PURE__ */ defineComponent({
|
|
|
44
66
|
},
|
|
45
67
|
emits: {
|
|
46
68
|
"update:modelValue": (_value) => true,
|
|
69
|
+
/**
|
|
70
|
+
* @zh 值改变时触发
|
|
71
|
+
* @en Trigger when the value changes
|
|
72
|
+
* @param { string | number | boolean } value
|
|
73
|
+
* @param {Event} ev
|
|
74
|
+
*/
|
|
47
75
|
"change": (_value, _ev) => true
|
|
48
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* @zh 自定义单选框
|
|
79
|
+
* @en Custom radio
|
|
80
|
+
* @slot radio
|
|
81
|
+
* @binding {boolean} checked
|
|
82
|
+
* @binding {boolean} disabled
|
|
83
|
+
* @version 2.18.0
|
|
84
|
+
*/
|
|
49
85
|
setup(props, { emit, slots }) {
|
|
50
86
|
const prefixCls = getPrefixCls("radio");
|
|
51
87
|
const { modelValue } = toRefs(props);
|