element-plus 1.2.0-beta.2 → 1.2.0-beta.3
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +323 -335
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +310 -336
- package/es/components/alert/index.d.ts +5 -5
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +5 -5
- package/es/components/autocomplete/index.d.ts +12 -12
- package/es/components/autocomplete/src/index.vue.d.ts +6 -6
- package/es/components/avatar/index.d.ts +3 -3
- package/es/components/avatar/src/avatar.d.ts +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +3 -3
- package/es/components/backtop/index.d.ts +2 -2
- package/es/components/backtop/src/backtop.vue.d.ts +2 -2
- package/es/components/badge/index.d.ts +3 -3
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +3 -3
- package/es/components/button/index.d.ts +30 -30
- package/es/components/button/src/button-group.d.ts +2 -2
- package/es/components/button/src/button-group.vue.d.ts +6 -6
- package/es/components/button/src/button.d.ts +3 -3
- package/es/components/button/src/button.vue.d.ts +18 -18
- package/es/components/calendar/index.d.ts +8 -8
- package/es/components/calendar/src/date-table.vue.d.ts +1 -1
- package/es/components/calendar/src/index.vue.d.ts +3 -3
- package/es/components/cascader/index.d.ts +126 -126
- package/es/components/cascader/src/index.vue.d.ts +63 -63
- package/es/components/cascader-panel/index.d.ts +2 -2
- package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
- package/es/components/cascader-panel/src/node.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +46 -37
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +10 -7
- package/es/components/checkbox/src/checkbox-button.vue_vue&type=script&lang.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-button.vue_vue&type=template&id=f839a66c&lang.mjs +4 -2
- package/es/components/checkbox/src/checkbox-button.vue_vue&type=template&id=f839a66c&lang.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +7 -7
- package/es/components/checkbox/src/checkbox.vue.d.ts +12 -9
- package/es/components/checkbox/src/checkbox.vue_vue&type=script&lang.mjs +2 -1
- package/es/components/checkbox/src/checkbox.vue_vue&type=script&lang.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.vue_vue&type=template&id=2c9881e5&lang.mjs +4 -2
- package/es/components/checkbox/src/checkbox.vue_vue&type=template&id=2c9881e5&lang.mjs.map +1 -1
- package/es/components/checkbox/src/useCheckbox.d.ts +5 -4
- package/es/components/checkbox/src/useCheckbox.mjs +1 -0
- package/es/components/checkbox/src/useCheckbox.mjs.map +1 -1
- package/es/components/col/index.d.ts +2 -2
- package/es/components/col/src/col.d.ts +2 -2
- package/es/components/collapse/index.d.ts +9 -9
- package/es/components/collapse/src/collapse-item.vue.d.ts +4 -4
- package/es/components/collapse/src/collapse.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +4 -4
- package/es/components/color-picker/src/index.vue.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +12 -12
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +3 -3
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
- package/es/components/date-picker/src/date-picker.d.ts +6 -6
- package/es/components/descriptions/index.d.ts +14 -14
- package/es/components/descriptions/src/description-item.d.ts +6 -6
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +3 -3
- package/es/components/dialog/src/dialog.vue.d.ts +3 -3
- package/es/components/divider/index.d.ts +3 -3
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/divider/src/divider.vue.d.ts +3 -3
- package/es/components/drawer/index.d.ts +10 -10
- package/es/components/drawer/src/index.vue.d.ts +5 -5
- package/es/components/dropdown/index.d.ts +7 -7
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +5 -5
- package/es/components/empty/index.d.ts +2 -2
- package/es/components/empty/src/empty.vue.d.ts +2 -2
- package/es/components/form/index.d.ts +10 -10
- package/es/components/form/src/form-item.vue.d.ts +2 -2
- package/es/components/form/src/form.vue.d.ts +3 -3
- package/es/components/index.mjs +6 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +15 -15
- package/es/components/input/src/input.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +15 -15
- package/es/components/input-number/index.d.ts +36 -36
- package/es/components/input-number/src/input-number.d.ts +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +36 -36
- package/es/components/link/index.d.ts +7 -7
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/link/src/link.vue.d.ts +7 -7
- package/es/components/menu/index.d.ts +1 -1
- package/es/components/menu/src/menu.d.ts +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +11 -11
- package/es/components/message-box/src/index.vue.d.ts +1 -1
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +13 -13
- package/es/components/overlay/index.d.ts +1 -1
- package/es/components/overlay/src/overlay.d.ts +1 -1
- package/es/components/page-header/index.d.ts +2 -2
- package/es/components/page-header/src/page-header.vue.d.ts +2 -2
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/src/pagination.d.ts +2 -2
- package/es/components/popconfirm/index.d.ts +8 -8
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +8 -8
- package/es/components/popover/index.d.ts +24 -24
- package/es/components/popover/src/index.vue.d.ts +12 -12
- package/es/components/popper/index.d.ts +14 -14
- package/es/components/popper/src/index.vue.d.ts +7 -7
- package/es/components/radio/index.d.ts +124 -161
- package/es/components/radio/index.mjs +6 -4
- package/es/components/radio/index.mjs.map +1 -1
- package/es/components/radio/src/radio-button.d.ts +8 -0
- package/es/components/radio/src/radio-button.mjs +11 -5
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +19 -25
- package/es/components/radio/src/radio-button.vue_vue&type=script&lang.mjs +21 -40
- package/es/components/radio/src/radio-button.vue_vue&type=script&lang.mjs.map +1 -1
- package/es/components/radio/src/radio-button.vue_vue&type=template&id=14e266b0&lang.mjs +9 -9
- package/es/components/radio/src/radio-button.vue_vue&type=template&id=14e266b0&lang.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +7 -0
- package/es/components/radio/src/radio-button2.mjs.map +1 -0
- package/es/components/radio/src/radio-group.d.ts +14 -0
- package/es/components/radio/src/radio-group.mjs +22 -5
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +27 -37
- package/es/components/radio/src/radio-group.vue_vue&type=script&lang.mjs +24 -49
- package/es/components/radio/src/radio-group.vue_vue&type=script&lang.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue_vue&type=template&id=53ef81f9&lang.mjs +1 -1
- package/es/components/radio/src/radio-group.vue_vue&type=template&id=53ef81f9&lang.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +7 -0
- package/es/components/radio/src/radio-group2.mjs.map +1 -0
- package/es/components/radio/src/radio.d.ts +33 -0
- package/es/components/radio/src/radio.mjs +70 -5
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio.vue.d.ts +31 -42
- package/es/components/radio/src/radio.vue_vue&type=script&lang.mjs +12 -60
- package/es/components/radio/src/radio.vue_vue&type=script&lang.mjs.map +1 -1
- package/es/components/radio/src/radio.vue_vue&type=template&id=6aa3dfc7&lang.mjs +11 -11
- package/es/components/radio/src/radio.vue_vue&type=template&id=6aa3dfc7&lang.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +7 -0
- package/es/components/radio/src/radio2.mjs.map +1 -0
- package/es/components/rate/index.d.ts +69 -258
- package/es/components/rate/index.mjs +6 -8
- package/es/components/rate/index.mjs.map +1 -1
- package/es/components/rate/src/rate.d.ts +26 -0
- package/es/components/rate/src/rate.mjs +87 -0
- package/es/components/rate/src/rate.mjs.map +1 -0
- package/es/components/rate/src/rate.vue.d.ts +104 -0
- package/es/components/rate/src/{index.vue_vue&type=script&lang.mjs → rate.vue_vue&type=script&lang.mjs} +24 -93
- package/es/components/rate/src/rate.vue_vue&type=script&lang.mjs.map +1 -0
- package/es/components/rate/src/{index.vue_vue&type=template&id=55b4fa7d&lang.mjs → rate.vue_vue&type=template&id=38c42df6&lang.mjs} +1 -1
- package/es/components/rate/src/rate.vue_vue&type=template&id=38c42df6&lang.mjs.map +1 -0
- package/es/components/rate/src/rate2.mjs +7 -0
- package/es/components/rate/src/rate2.mjs.map +1 -0
- package/es/components/result/index.d.ts +13 -53
- package/es/components/result/index.mjs +6 -8
- package/es/components/result/index.mjs.map +1 -1
- package/es/components/result/src/result.d.ts +14 -0
- package/es/components/result/src/result.mjs +32 -0
- package/es/components/result/src/result.mjs.map +1 -0
- package/es/components/result/src/result.vue.d.ts +23 -0
- package/es/components/result/src/result.vue_vue&type=script&lang.mjs +24 -0
- package/es/components/result/src/result.vue_vue&type=script&lang.mjs.map +1 -0
- package/es/components/result/src/{index.vue_vue&type=template&id=4e01dfba&lang.mjs → result.vue_vue&type=template&id=263c10e5&lang.mjs} +1 -1
- package/es/components/result/src/result.vue_vue&type=template&id=263c10e5&lang.mjs.map +1 -0
- package/es/components/result/src/result2.mjs +7 -0
- package/es/components/result/src/result2.mjs.map +1 -0
- package/es/components/row/index.d.ts +16 -63
- package/es/components/row/index.mjs +4 -6
- package/es/components/row/index.mjs.map +1 -1
- package/es/components/row/src/row.d.ts +20 -24
- package/es/components/row/src/row.mjs +23 -19
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/scrollbar/index.d.ts +4 -4
- package/es/components/scrollbar/src/index.vue.d.ts +2 -2
- package/es/components/select/index.d.ts +15 -15
- package/es/components/select/src/option.vue.d.ts +2 -2
- package/es/components/select/src/select.vue.d.ts +11 -11
- package/es/components/select-v2/index.d.ts +16 -16
- package/es/components/select-v2/src/group-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/option-item.vue.d.ts +2 -2
- package/es/components/select-v2/src/select-dropdown.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +8 -8
- package/es/components/slider/src/button.vue.d.ts +2 -2
- package/es/components/space/index.d.ts +5 -5
- package/es/components/space/src/space.d.ts +6 -6
- package/es/components/steps/index.d.ts +5 -5
- package/es/components/steps/src/index.vue.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +19 -19
- package/es/components/table/src/table/defaults.d.ts +4 -4
- package/es/components/table/src/table-column/defaults.d.ts +2 -2
- package/es/components/table/src/table-column/index.d.ts +4 -4
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table.vue.d.ts +11 -11
- package/es/components/tabs/index.d.ts +14 -14
- package/es/components/tabs/src/tab-pane.vue.d.ts +4 -4
- package/es/components/tabs/src/tabs.d.ts +6 -6
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/tag/src/tag.vue.d.ts +6 -6
- package/es/components/teleport/index.d.ts +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +12 -12
- package/es/components/time-picker/src/common/picker.vue.d.ts +8 -8
- package/es/components/time-picker/src/time-picker-com/useTimePicker.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +6 -6
- package/es/components/time-select/index.d.ts +16 -16
- package/es/components/time-select/src/time-select.vue.d.ts +8 -8
- package/es/components/timeline/index.d.ts +4 -4
- package/es/components/timeline/src/item.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +20 -20
- package/es/components/tooltip/src/index.d.ts +10 -10
- package/es/components/transfer/index.d.ts +18 -18
- package/es/components/transfer/src/index.vue.d.ts +9 -9
- package/es/components/transfer/src/transfer-panel.vue.d.ts +2 -2
- package/es/components/tree/index.d.ts +6 -6
- package/es/components/tree/src/tree.vue.d.ts +3 -3
- package/es/components/tree-v2/index.d.ts +6 -6
- package/es/components/tree-v2/src/tree-node.vue.d.ts +2 -2
- package/es/components/tree-v2/src/tree.vue.d.ts +6 -6
- package/es/components/upload/index.d.ts +12 -12
- package/es/components/upload/src/index.vue.d.ts +6 -6
- package/es/components/upload/src/upload.vue.d.ts +6 -6
- package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/es/components/virtual-list/src/builders/build-list.d.ts +5 -5
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +5 -5
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +5 -5
- package/es/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/es/defaults.d.ts +1 -1
- package/es/hooks/use-form-item/index.d.ts +3 -1
- package/es/hooks/use-form-item/index.mjs +3 -1
- package/es/hooks/use-form-item/index.mjs.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +7 -0
- package/es/index.mjs.map +1 -1
- package/es/plugin.d.ts +3 -3
- package/es/tokens/index.d.ts +1 -0
- package/es/tokens/index.mjs +1 -0
- package/es/tokens/index.mjs.map +1 -1
- package/es/tokens/radio.d.ts +6 -0
- package/es/tokens/radio.mjs +4 -0
- package/es/tokens/radio.mjs.map +1 -0
- package/es/utils/util.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.d.ts +5 -5
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +5 -5
- package/lib/components/autocomplete/index.d.ts +12 -12
- package/lib/components/autocomplete/src/index.vue.d.ts +6 -6
- package/lib/components/avatar/index.d.ts +3 -3
- package/lib/components/avatar/src/avatar.d.ts +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +3 -3
- package/lib/components/backtop/index.d.ts +2 -2
- package/lib/components/backtop/src/backtop.vue.d.ts +2 -2
- package/lib/components/badge/index.d.ts +3 -3
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +3 -3
- package/lib/components/button/index.d.ts +30 -30
- package/lib/components/button/src/button-group.d.ts +2 -2
- package/lib/components/button/src/button-group.vue.d.ts +6 -6
- package/lib/components/button/src/button.d.ts +3 -3
- package/lib/components/button/src/button.vue.d.ts +18 -18
- package/lib/components/calendar/index.d.ts +8 -8
- package/lib/components/calendar/src/date-table.vue.d.ts +1 -1
- package/lib/components/calendar/src/index.vue.d.ts +3 -3
- package/lib/components/cascader/index.d.ts +126 -126
- package/lib/components/cascader/src/index.vue.d.ts +63 -63
- package/lib/components/cascader-panel/index.d.ts +2 -2
- package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
- package/lib/components/cascader-panel/src/node.js +1 -1
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +46 -37
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +10 -7
- package/lib/components/checkbox/src/checkbox-button.vue_vue&type=script&lang.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue_vue&type=template&id=f839a66c&lang.js +4 -2
- package/lib/components/checkbox/src/checkbox-button.vue_vue&type=template&id=f839a66c&lang.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +7 -7
- package/lib/components/checkbox/src/checkbox.vue.d.ts +12 -9
- package/lib/components/checkbox/src/checkbox.vue_vue&type=script&lang.js +2 -1
- package/lib/components/checkbox/src/checkbox.vue_vue&type=script&lang.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.vue_vue&type=template&id=2c9881e5&lang.js +4 -2
- package/lib/components/checkbox/src/checkbox.vue_vue&type=template&id=2c9881e5&lang.js.map +1 -1
- package/lib/components/checkbox/src/useCheckbox.d.ts +5 -4
- package/lib/components/checkbox/src/useCheckbox.js +1 -0
- package/lib/components/checkbox/src/useCheckbox.js.map +1 -1
- package/lib/components/col/index.d.ts +2 -2
- package/lib/components/col/src/col.d.ts +2 -2
- package/lib/components/collapse/index.d.ts +9 -9
- package/lib/components/collapse/src/collapse-item.vue.d.ts +4 -4
- package/lib/components/collapse/src/collapse.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +4 -4
- package/lib/components/color-picker/src/index.vue.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +12 -12
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +3 -3
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker.d.ts +6 -6
- package/lib/components/descriptions/index.d.ts +14 -14
- package/lib/components/descriptions/src/description-item.d.ts +6 -6
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +3 -3
- package/lib/components/dialog/src/dialog.vue.d.ts +3 -3
- package/lib/components/divider/index.d.ts +3 -3
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +3 -3
- package/lib/components/drawer/index.d.ts +10 -10
- package/lib/components/drawer/src/index.vue.d.ts +5 -5
- package/lib/components/dropdown/index.d.ts +7 -7
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +5 -5
- package/lib/components/empty/index.d.ts +2 -2
- package/lib/components/empty/src/empty.vue.d.ts +2 -2
- package/lib/components/form/index.d.ts +10 -10
- package/lib/components/form/src/form-item.vue.d.ts +2 -2
- package/lib/components/form/src/form.vue.d.ts +3 -3
- package/lib/components/index.js +19 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +15 -15
- package/lib/components/input/src/input.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +15 -15
- package/lib/components/input-number/index.d.ts +36 -36
- package/lib/components/input-number/src/input-number.d.ts +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +36 -36
- package/lib/components/link/index.d.ts +7 -7
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/link/src/link.vue.d.ts +7 -7
- package/lib/components/menu/index.d.ts +1 -1
- package/lib/components/menu/src/menu.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +11 -11
- package/lib/components/message-box/src/index.vue.d.ts +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +13 -13
- package/lib/components/overlay/index.d.ts +1 -1
- package/lib/components/overlay/src/overlay.d.ts +1 -1
- package/lib/components/page-header/index.d.ts +2 -2
- package/lib/components/page-header/src/page-header.vue.d.ts +2 -2
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/src/pagination.d.ts +2 -2
- package/lib/components/popconfirm/index.d.ts +8 -8
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +8 -8
- package/lib/components/popover/index.d.ts +24 -24
- package/lib/components/popover/src/index.vue.d.ts +12 -12
- package/lib/components/popper/index.d.ts +14 -14
- package/lib/components/popper/src/index.vue.d.ts +7 -7
- package/lib/components/radio/index.d.ts +124 -161
- package/lib/components/radio/index.js +13 -4
- package/lib/components/radio/index.js.map +1 -1
- package/lib/components/radio/src/radio-button.d.ts +8 -0
- package/lib/components/radio/src/radio-button.js +10 -5
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +19 -25
- package/lib/components/radio/src/radio-button.vue_vue&type=script&lang.js +20 -39
- package/lib/components/radio/src/radio-button.vue_vue&type=script&lang.js.map +1 -1
- package/lib/components/radio/src/radio-button.vue_vue&type=template&id=14e266b0&lang.js +9 -9
- package/lib/components/radio/src/radio-button.vue_vue&type=template&id=14e266b0&lang.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +12 -0
- package/lib/components/radio/src/radio-button2.js.map +1 -0
- package/lib/components/radio/src/radio-group.d.ts +14 -0
- package/lib/components/radio/src/radio-group.js +22 -5
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +27 -37
- package/lib/components/radio/src/radio-group.vue_vue&type=script&lang.js +23 -48
- package/lib/components/radio/src/radio-group.vue_vue&type=script&lang.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue_vue&type=template&id=53ef81f9&lang.js +1 -1
- package/lib/components/radio/src/radio-group.vue_vue&type=template&id=53ef81f9&lang.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +12 -0
- package/lib/components/radio/src/radio-group2.js.map +1 -0
- package/lib/components/radio/src/radio.d.ts +33 -0
- package/lib/components/radio/src/radio.js +72 -5
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +31 -42
- package/lib/components/radio/src/radio.vue_vue&type=script&lang.js +11 -59
- package/lib/components/radio/src/radio.vue_vue&type=script&lang.js.map +1 -1
- package/lib/components/radio/src/radio.vue_vue&type=template&id=6aa3dfc7&lang.js +11 -11
- package/lib/components/radio/src/radio.vue_vue&type=template&id=6aa3dfc7&lang.js.map +1 -1
- package/lib/components/radio/src/radio2.js +12 -0
- package/lib/components/radio/src/radio2.js.map +1 -0
- package/lib/components/rate/index.d.ts +69 -258
- package/lib/components/rate/index.js +8 -8
- package/lib/components/rate/index.js.map +1 -1
- package/lib/components/rate/src/rate.d.ts +26 -0
- package/lib/components/rate/src/rate.js +92 -0
- package/lib/components/rate/src/rate.js.map +1 -0
- package/lib/components/rate/src/rate.vue.d.ts +104 -0
- package/lib/components/rate/src/{index.vue_vue&type=script&lang.js → rate.vue_vue&type=script&lang.js} +24 -93
- package/lib/components/rate/src/rate.vue_vue&type=script&lang.js.map +1 -0
- package/lib/components/rate/src/{index.vue_vue&type=template&id=55b4fa7d&lang.js → rate.vue_vue&type=template&id=38c42df6&lang.js} +1 -1
- package/lib/components/rate/src/rate.vue_vue&type=template&id=38c42df6&lang.js.map +1 -0
- package/lib/components/rate/src/rate2.js +12 -0
- package/lib/components/rate/src/rate2.js.map +1 -0
- package/lib/components/result/index.d.ts +13 -53
- package/lib/components/result/index.js +9 -8
- package/lib/components/result/index.js.map +1 -1
- package/lib/components/result/src/result.d.ts +14 -0
- package/lib/components/result/src/result.js +38 -0
- package/lib/components/result/src/result.js.map +1 -0
- package/lib/components/result/src/result.vue.d.ts +23 -0
- package/lib/components/result/src/result.vue_vue&type=script&lang.js +28 -0
- package/lib/components/result/src/result.vue_vue&type=script&lang.js.map +1 -0
- package/lib/components/result/src/{index.vue_vue&type=template&id=4e01dfba&lang.js → result.vue_vue&type=template&id=263c10e5&lang.js} +1 -1
- package/lib/components/result/src/result.vue_vue&type=template&id=263c10e5&lang.js.map +1 -0
- package/lib/components/result/src/result2.js +12 -0
- package/lib/components/result/src/result2.js.map +1 -0
- package/lib/components/row/index.d.ts +16 -63
- package/lib/components/row/index.js +4 -6
- package/lib/components/row/index.js.map +1 -1
- package/lib/components/row/src/row.d.ts +20 -24
- package/lib/components/row/src/row.js +23 -18
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/scrollbar/index.d.ts +4 -4
- package/lib/components/scrollbar/src/index.vue.d.ts +2 -2
- package/lib/components/select/index.d.ts +15 -15
- package/lib/components/select/src/option.vue.d.ts +2 -2
- package/lib/components/select/src/select.vue.d.ts +11 -11
- package/lib/components/select-v2/index.d.ts +16 -16
- package/lib/components/select-v2/src/group-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/option-item.vue.d.ts +2 -2
- package/lib/components/select-v2/src/select-dropdown.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +8 -8
- package/lib/components/slider/src/button.vue.d.ts +2 -2
- package/lib/components/space/index.d.ts +5 -5
- package/lib/components/space/src/space.d.ts +6 -6
- package/lib/components/steps/index.d.ts +5 -5
- package/lib/components/steps/src/index.vue.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +19 -19
- package/lib/components/table/src/table/defaults.d.ts +4 -4
- package/lib/components/table/src/table-column/defaults.d.ts +2 -2
- package/lib/components/table/src/table-column/index.d.ts +4 -4
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table.vue.d.ts +11 -11
- package/lib/components/tabs/index.d.ts +14 -14
- package/lib/components/tabs/src/tab-pane.vue.d.ts +4 -4
- package/lib/components/tabs/src/tabs.d.ts +6 -6
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/tag/src/tag.vue.d.ts +6 -6
- package/lib/components/teleport/index.d.ts +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +1 -1
- package/lib/components/time-picker/index.d.ts +12 -12
- package/lib/components/time-picker/src/common/picker.vue.d.ts +8 -8
- package/lib/components/time-picker/src/time-picker-com/useTimePicker.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +6 -6
- package/lib/components/time-select/index.d.ts +16 -16
- package/lib/components/time-select/src/time-select.vue.d.ts +8 -8
- package/lib/components/timeline/index.d.ts +4 -4
- package/lib/components/timeline/src/item.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +20 -20
- package/lib/components/tooltip/src/index.d.ts +10 -10
- package/lib/components/transfer/index.d.ts +18 -18
- package/lib/components/transfer/src/index.vue.d.ts +9 -9
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +2 -2
- package/lib/components/tree/index.d.ts +6 -6
- package/lib/components/tree/src/tree.vue.d.ts +3 -3
- package/lib/components/tree-v2/index.d.ts +6 -6
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +2 -2
- package/lib/components/tree-v2/src/tree.vue.d.ts +6 -6
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/components/upload/src/index.vue.d.ts +6 -6
- package/lib/components/upload/src/upload.vue.d.ts +6 -6
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/builders/build-list.d.ts +5 -5
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +5 -5
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +5 -5
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/lib/defaults.d.ts +1 -1
- package/lib/hooks/use-form-item/index.d.ts +3 -1
- package/lib/hooks/use-form-item/index.js +3 -1
- package/lib/hooks/use-form-item/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +21 -0
- package/lib/index.js.map +1 -1
- package/lib/plugin.d.ts +3 -3
- package/lib/tokens/index.d.ts +1 -0
- package/lib/tokens/index.js +2 -0
- package/lib/tokens/index.js.map +1 -1
- package/lib/tokens/radio.d.ts +6 -0
- package/lib/tokens/radio.js +8 -0
- package/lib/tokens/radio.js.map +1 -0
- package/lib/utils/util.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +9 -4
- package/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/el-radio-group.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/menu.scss +10 -11
- package/theme-chalk/src/radio-group.scss +1 -0
- package/web-types.json +1 -1
- package/es/components/radio/src/token.d.ts +0 -15
- package/es/components/radio/src/token.mjs +0 -4
- package/es/components/radio/src/token.mjs.map +0 -1
- package/es/components/radio/src/useRadio.d.ts +0 -26
- package/es/components/radio/src/useRadio.mjs +0 -38
- package/es/components/radio/src/useRadio.mjs.map +0 -1
- package/es/components/rate/src/index.mjs +0 -7
- package/es/components/rate/src/index.mjs.map +0 -1
- package/es/components/rate/src/index.vue.d.ts +0 -148
- package/es/components/rate/src/index.vue_vue&type=script&lang.mjs.map +0 -1
- package/es/components/rate/src/index.vue_vue&type=template&id=55b4fa7d&lang.mjs.map +0 -1
- package/es/components/result/src/index.mjs +0 -7
- package/es/components/result/src/index.mjs.map +0 -1
- package/es/components/result/src/index.vue.d.ts +0 -33
- package/es/components/result/src/index.vue_vue&type=script&lang.mjs +0 -49
- package/es/components/result/src/index.vue_vue&type=script&lang.mjs.map +0 -1
- package/es/components/result/src/index.vue_vue&type=template&id=4e01dfba&lang.mjs.map +0 -1
- package/lib/components/radio/src/token.d.ts +0 -15
- package/lib/components/radio/src/token.js +0 -8
- package/lib/components/radio/src/token.js.map +0 -1
- package/lib/components/radio/src/useRadio.d.ts +0 -26
- package/lib/components/radio/src/useRadio.js +0 -43
- package/lib/components/radio/src/useRadio.js.map +0 -1
- package/lib/components/rate/src/index.js +0 -12
- package/lib/components/rate/src/index.js.map +0 -1
- package/lib/components/rate/src/index.vue.d.ts +0 -148
- package/lib/components/rate/src/index.vue_vue&type=script&lang.js.map +0 -1
- package/lib/components/rate/src/index.vue_vue&type=template&id=55b4fa7d&lang.js.map +0 -1
- package/lib/components/result/src/index.js +0 -12
- package/lib/components/result/src/index.js.map +0 -1
- package/lib/components/result/src/index.vue.d.ts +0 -33
- package/lib/components/result/src/index.vue_vue&type=script&lang.js +0 -53
- package/lib/components/result/src/index.vue_vue&type=script&lang.js.map +0 -1
- package/lib/components/result/src/index.vue_vue&type=template&id=4e01dfba&lang.js.map +0 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v1.2.0-beta.
|
|
1
|
+
/*! Element Plus v1.2.0-beta.3 */
|
|
2
2
|
|
|
3
3
|
import { getCurrentInstance, computed, watch, isRef, onUnmounted, onMounted, ref, h as h$1, Teleport, onBeforeUnmount, nextTick, openBlock, createBlock, createCommentVNode, isVNode, Fragment, Comment, camelize as camelize$1, toRef, Transition, renderSlot, toDisplayString, cloneVNode, withDirectives, unref, provide, inject, warn, getCurrentScope, onScopeDispose, defineComponent, shallowRef, reactive, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, mergeProps, createVNode, resolveComponent, withCtx, resolveDynamicComponent, createTextVNode, vShow, onUpdated, withModifiers, onActivated, onDeactivated, resolveDirective, withKeys, createSlots, renderList, Text, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, watchEffect, effectScope, toRaw, triggerRef, onBeforeMount, TransitionGroup, render as render$2s } from 'vue';
|
|
4
4
|
|
|
@@ -6039,6 +6039,8 @@ const elPaginationKey = Symbol("elPaginationKey");
|
|
|
6039
6039
|
|
|
6040
6040
|
const configProviderContextKey = Symbol();
|
|
6041
6041
|
|
|
6042
|
+
const radioGroupKey = Symbol("radioGroupKey");
|
|
6043
|
+
|
|
6042
6044
|
const sizes = ["", "large", "medium", "small", "mini"];
|
|
6043
6045
|
const useFormItemProps = buildProps({
|
|
6044
6046
|
size: {
|
|
@@ -6061,7 +6063,9 @@ const useFormItem = ({ size, disabled }) => {
|
|
|
6061
6063
|
}),
|
|
6062
6064
|
disabled: computed(() => {
|
|
6063
6065
|
return props.disabled === true || unref(disabled) || (form == null ? void 0 : form.disabled) || false;
|
|
6064
|
-
})
|
|
6066
|
+
}),
|
|
6067
|
+
form,
|
|
6068
|
+
formItem
|
|
6065
6069
|
};
|
|
6066
6070
|
};
|
|
6067
6071
|
|
|
@@ -6095,7 +6099,7 @@ const useGlobalConfig = () => {
|
|
|
6095
6099
|
return inject(configProviderContextKey, defaultConfig);
|
|
6096
6100
|
};
|
|
6097
6101
|
|
|
6098
|
-
const version$1 = "1.2.0-beta.
|
|
6102
|
+
const version$1 = "1.2.0-beta.3";
|
|
6099
6103
|
|
|
6100
6104
|
const makeInstaller = (components = []) => {
|
|
6101
6105
|
const apps = [];
|
|
@@ -13795,6 +13799,7 @@ const useCheckboxProps = {
|
|
|
13795
13799
|
type: [String, Number],
|
|
13796
13800
|
default: void 0
|
|
13797
13801
|
},
|
|
13802
|
+
tabindex: [String, Number],
|
|
13798
13803
|
size: String
|
|
13799
13804
|
};
|
|
13800
13805
|
const useCheckboxGroup = () => {
|
|
@@ -13982,7 +13987,8 @@ var script$1B = defineComponent({
|
|
|
13982
13987
|
size: {
|
|
13983
13988
|
type: String,
|
|
13984
13989
|
validator: isValidComponentSize
|
|
13985
|
-
}
|
|
13990
|
+
},
|
|
13991
|
+
tabindex: [String, Number]
|
|
13986
13992
|
},
|
|
13987
13993
|
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
13988
13994
|
setup(props) {
|
|
@@ -13993,8 +13999,8 @@ var script$1B = defineComponent({
|
|
|
13993
13999
|
const _hoisted_1$13 = ["id", "aria-controls"];
|
|
13994
14000
|
const _hoisted_2$N = ["tabindex", "role", "aria-checked"];
|
|
13995
14001
|
const _hoisted_3$E = /* @__PURE__ */ createElementVNode("span", { class: "el-checkbox__inner" }, null, -1);
|
|
13996
|
-
const _hoisted_4$t = ["aria-hidden", "name", "disabled", "true-value", "false-value"];
|
|
13997
|
-
const _hoisted_5$l = ["aria-hidden", "disabled", "value", "name"];
|
|
14002
|
+
const _hoisted_4$t = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
14003
|
+
const _hoisted_5$l = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
13998
14004
|
const _hoisted_6$f = {
|
|
13999
14005
|
key: 0,
|
|
14000
14006
|
class: "el-checkbox__label"
|
|
@@ -14029,6 +14035,7 @@ function render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14029
14035
|
type: "checkbox",
|
|
14030
14036
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
14031
14037
|
name: _ctx.name,
|
|
14038
|
+
tabindex: _ctx.tabindex,
|
|
14032
14039
|
disabled: _ctx.isDisabled,
|
|
14033
14040
|
"true-value": _ctx.trueLabel,
|
|
14034
14041
|
"false-value": _ctx.falseLabel,
|
|
@@ -14046,6 +14053,7 @@ function render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14046
14053
|
disabled: _ctx.isDisabled,
|
|
14047
14054
|
value: _ctx.label,
|
|
14048
14055
|
name: _ctx.name,
|
|
14056
|
+
tabindex: _ctx.tabindex,
|
|
14049
14057
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
14050
14058
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
14051
14059
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
@@ -14095,8 +14103,8 @@ var script$1A = defineComponent({
|
|
|
14095
14103
|
});
|
|
14096
14104
|
|
|
14097
14105
|
const _hoisted_1$12 = ["aria-checked", "aria-disabled"];
|
|
14098
|
-
const _hoisted_2$M = ["name", "disabled", "true-value", "false-value"];
|
|
14099
|
-
const _hoisted_3$D = ["name", "disabled", "value"];
|
|
14106
|
+
const _hoisted_2$M = ["name", "tabindex", "disabled", "true-value", "false-value"];
|
|
14107
|
+
const _hoisted_3$D = ["name", "tabindex", "disabled", "value"];
|
|
14100
14108
|
function render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14101
14109
|
return openBlock(), createElementBlock("label", {
|
|
14102
14110
|
class: normalizeClass(["el-checkbox-button", [
|
|
@@ -14115,6 +14123,7 @@ function render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14115
14123
|
class: "el-checkbox-button__original",
|
|
14116
14124
|
type: "checkbox",
|
|
14117
14125
|
name: _ctx.name,
|
|
14126
|
+
tabindex: _ctx.tabindex,
|
|
14118
14127
|
disabled: _ctx.isDisabled,
|
|
14119
14128
|
"true-value": _ctx.trueLabel,
|
|
14120
14129
|
"false-value": _ctx.falseLabel,
|
|
@@ -14129,6 +14138,7 @@ function render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14129
14138
|
class: "el-checkbox-button__original",
|
|
14130
14139
|
type: "checkbox",
|
|
14131
14140
|
name: _ctx.name,
|
|
14141
|
+
tabindex: _ctx.tabindex,
|
|
14132
14142
|
disabled: _ctx.isDisabled,
|
|
14133
14143
|
value: _ctx.label,
|
|
14134
14144
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
@@ -14234,103 +14244,84 @@ const ElCheckbox = withInstall(script$1B, {
|
|
|
14234
14244
|
const ElCheckboxButton = withNoopInstall(script$1A);
|
|
14235
14245
|
const ElCheckboxGroup$1 = withNoopInstall(script$1z);
|
|
14236
14246
|
|
|
14237
|
-
const
|
|
14238
|
-
|
|
14239
|
-
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14247
|
+
const radioPropsBase = buildProps({
|
|
14248
|
+
...useFormItemProps,
|
|
14249
|
+
label: {
|
|
14250
|
+
type: [String, Number, Boolean],
|
|
14251
|
+
default: ""
|
|
14252
|
+
}
|
|
14253
|
+
});
|
|
14254
|
+
const radioProps = buildProps({
|
|
14255
|
+
...radioPropsBase,
|
|
14256
|
+
modelValue: {
|
|
14257
|
+
type: [String, Number, Boolean],
|
|
14258
|
+
default: ""
|
|
14259
|
+
},
|
|
14260
|
+
name: {
|
|
14261
|
+
type: String,
|
|
14262
|
+
default: ""
|
|
14263
|
+
},
|
|
14264
|
+
border: Boolean
|
|
14265
|
+
});
|
|
14266
|
+
const radioEmits = {
|
|
14267
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBool(val),
|
|
14268
|
+
change: (val) => isString$1(val) || isNumber(val) || isBool(val)
|
|
14256
14269
|
};
|
|
14257
|
-
const
|
|
14258
|
-
const
|
|
14259
|
-
|
|
14270
|
+
const useRadio = (props, emit) => {
|
|
14271
|
+
const radioRef = ref();
|
|
14272
|
+
const radioGroup = inject(radioGroupKey, void 0);
|
|
14273
|
+
const isGroup = computed(() => !!radioGroup);
|
|
14274
|
+
const modelValue = computed({
|
|
14275
|
+
get() {
|
|
14276
|
+
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
14277
|
+
},
|
|
14278
|
+
set(val) {
|
|
14279
|
+
if (isGroup.value) {
|
|
14280
|
+
radioGroup.changeEvent(val);
|
|
14281
|
+
} else {
|
|
14282
|
+
emit(UPDATE_MODEL_EVENT, val);
|
|
14283
|
+
}
|
|
14284
|
+
radioRef.value.checked = props.modelValue === props.label;
|
|
14285
|
+
}
|
|
14286
|
+
});
|
|
14287
|
+
const { size, disabled } = useFormItem({
|
|
14288
|
+
size: computed(() => radioGroup == null ? void 0 : radioGroup.size),
|
|
14289
|
+
disabled: computed(() => radioGroup == null ? void 0 : radioGroup.disabled)
|
|
14260
14290
|
});
|
|
14291
|
+
const focus = ref(false);
|
|
14261
14292
|
const tabIndex = computed(() => {
|
|
14262
|
-
return
|
|
14293
|
+
return disabled.value || isGroup.value && modelValue.value !== props.label ? -1 : 0;
|
|
14263
14294
|
});
|
|
14264
14295
|
return {
|
|
14265
|
-
|
|
14266
|
-
|
|
14296
|
+
radioRef,
|
|
14297
|
+
isGroup,
|
|
14298
|
+
radioGroup,
|
|
14299
|
+
focus,
|
|
14300
|
+
size,
|
|
14301
|
+
disabled,
|
|
14302
|
+
tabIndex,
|
|
14303
|
+
modelValue
|
|
14267
14304
|
};
|
|
14268
14305
|
};
|
|
14269
14306
|
|
|
14270
14307
|
var script$1y = defineComponent({
|
|
14271
14308
|
name: "ElRadio",
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
default: ""
|
|
14277
|
-
},
|
|
14278
|
-
label: {
|
|
14279
|
-
type: [String, Number, Boolean],
|
|
14280
|
-
default: ""
|
|
14281
|
-
},
|
|
14282
|
-
disabled: Boolean,
|
|
14283
|
-
name: {
|
|
14284
|
-
type: String,
|
|
14285
|
-
default: ""
|
|
14286
|
-
},
|
|
14287
|
-
border: Boolean,
|
|
14288
|
-
size: {
|
|
14289
|
-
type: String,
|
|
14290
|
-
validator: isValidComponentSize
|
|
14291
|
-
}
|
|
14292
|
-
},
|
|
14293
|
-
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
14294
|
-
setup(props, ctx) {
|
|
14295
|
-
const { isGroup, radioGroup, elFormItemSize, ELEMENT, focus, elForm } = useRadio();
|
|
14296
|
-
const radioRef = ref();
|
|
14297
|
-
const model = computed({
|
|
14298
|
-
get() {
|
|
14299
|
-
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
14300
|
-
},
|
|
14301
|
-
set(val) {
|
|
14302
|
-
if (isGroup.value) {
|
|
14303
|
-
radioGroup.changeEvent(val);
|
|
14304
|
-
} else {
|
|
14305
|
-
ctx.emit(UPDATE_MODEL_EVENT, val);
|
|
14306
|
-
}
|
|
14307
|
-
radioRef.value.checked = props.modelValue === props.label;
|
|
14308
|
-
}
|
|
14309
|
-
});
|
|
14310
|
-
const { tabIndex, isDisabled } = useRadioAttrs(props, {
|
|
14311
|
-
isGroup,
|
|
14312
|
-
radioGroup,
|
|
14313
|
-
elForm,
|
|
14314
|
-
model
|
|
14315
|
-
});
|
|
14316
|
-
const radioSize = computed(() => {
|
|
14317
|
-
const temRadioSize = props.size || elFormItemSize.value || ELEMENT.size;
|
|
14318
|
-
return isGroup.value ? radioGroup.radioGroupSize || temRadioSize : temRadioSize;
|
|
14319
|
-
});
|
|
14309
|
+
props: radioProps,
|
|
14310
|
+
emits: radioEmits,
|
|
14311
|
+
setup(props, { emit }) {
|
|
14312
|
+
const { radioRef, isGroup, focus, size, disabled, tabIndex, modelValue } = useRadio(props, emit);
|
|
14320
14313
|
function handleChange() {
|
|
14321
|
-
nextTick(() =>
|
|
14322
|
-
ctx.emit("change", model.value);
|
|
14323
|
-
});
|
|
14314
|
+
nextTick(() => emit("change", modelValue.value));
|
|
14324
14315
|
}
|
|
14325
14316
|
return {
|
|
14326
14317
|
focus,
|
|
14327
14318
|
isGroup,
|
|
14328
|
-
|
|
14329
|
-
model,
|
|
14319
|
+
modelValue,
|
|
14330
14320
|
tabIndex,
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
radioRef
|
|
14321
|
+
size,
|
|
14322
|
+
disabled,
|
|
14323
|
+
radioRef,
|
|
14324
|
+
handleChange
|
|
14334
14325
|
};
|
|
14335
14326
|
}
|
|
14336
14327
|
});
|
|
@@ -14341,40 +14332,40 @@ const _hoisted_3$C = ["value", "name", "disabled"];
|
|
|
14341
14332
|
function render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14342
14333
|
return openBlock(), createElementBlock("label", {
|
|
14343
14334
|
class: normalizeClass(["el-radio", {
|
|
14344
|
-
[`el-radio--${_ctx.
|
|
14345
|
-
"is-disabled": _ctx.
|
|
14335
|
+
[`el-radio--${_ctx.size || ""}`]: _ctx.size,
|
|
14336
|
+
"is-disabled": _ctx.disabled,
|
|
14346
14337
|
"is-focus": _ctx.focus,
|
|
14347
14338
|
"is-bordered": _ctx.border,
|
|
14348
|
-
"is-checked": _ctx.
|
|
14339
|
+
"is-checked": _ctx.modelValue === _ctx.label
|
|
14349
14340
|
}]),
|
|
14350
14341
|
role: "radio",
|
|
14351
|
-
"aria-checked": _ctx.
|
|
14352
|
-
"aria-disabled": _ctx.
|
|
14342
|
+
"aria-checked": _ctx.modelValue === _ctx.label,
|
|
14343
|
+
"aria-disabled": _ctx.disabled,
|
|
14353
14344
|
tabindex: _ctx.tabIndex,
|
|
14354
|
-
onKeydown: _cache[5] || (_cache[5] = withKeys(withModifiers(($event) => _ctx.
|
|
14345
|
+
onKeydown: _cache[5] || (_cache[5] = withKeys(withModifiers(($event) => _ctx.modelValue = _ctx.disabled ? _ctx.modelValue : _ctx.label, ["stop", "prevent"]), ["space"]))
|
|
14355
14346
|
}, [
|
|
14356
14347
|
createElementVNode("span", {
|
|
14357
14348
|
class: normalizeClass(["el-radio__input", {
|
|
14358
|
-
"is-disabled": _ctx.
|
|
14359
|
-
"is-checked": _ctx.
|
|
14349
|
+
"is-disabled": _ctx.disabled,
|
|
14350
|
+
"is-checked": _ctx.modelValue === _ctx.label
|
|
14360
14351
|
}])
|
|
14361
14352
|
}, [
|
|
14362
14353
|
_hoisted_2$L,
|
|
14363
14354
|
withDirectives(createElementVNode("input", {
|
|
14364
14355
|
ref: "radioRef",
|
|
14365
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
14356
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.modelValue = $event),
|
|
14366
14357
|
class: "el-radio__original",
|
|
14367
14358
|
value: _ctx.label,
|
|
14368
14359
|
type: "radio",
|
|
14369
14360
|
"aria-hidden": "true",
|
|
14370
14361
|
name: _ctx.name,
|
|
14371
|
-
disabled: _ctx.
|
|
14362
|
+
disabled: _ctx.disabled,
|
|
14372
14363
|
tabindex: "-1",
|
|
14373
14364
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.focus = true),
|
|
14374
14365
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.focus = false),
|
|
14375
14366
|
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
|
|
14376
14367
|
}, null, 40, _hoisted_3$C), [
|
|
14377
|
-
[vModelRadio, _ctx.
|
|
14368
|
+
[vModelRadio, _ctx.modelValue]
|
|
14378
14369
|
])
|
|
14379
14370
|
], 2),
|
|
14380
14371
|
createElementVNode("span", {
|
|
@@ -14392,54 +14383,42 @@ function render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14392
14383
|
script$1y.render = render$1r;
|
|
14393
14384
|
script$1y.__file = "packages/components/radio/src/radio.vue";
|
|
14394
14385
|
|
|
14386
|
+
const radioButtonProps = buildProps({
|
|
14387
|
+
...radioPropsBase,
|
|
14388
|
+
name: {
|
|
14389
|
+
type: String,
|
|
14390
|
+
default: ""
|
|
14391
|
+
}
|
|
14392
|
+
});
|
|
14393
|
+
|
|
14395
14394
|
var script$1x = defineComponent({
|
|
14396
14395
|
name: "ElRadioButton",
|
|
14397
|
-
props:
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
const { isGroup, radioGroup, elFormItemSize, ELEMENT, focus, elForm } = useRadio();
|
|
14410
|
-
const size = computed(() => {
|
|
14411
|
-
return radioGroup.radioGroupSize || elFormItemSize.value || ELEMENT.size;
|
|
14412
|
-
});
|
|
14413
|
-
const radioRef = ref();
|
|
14414
|
-
const value = computed({
|
|
14415
|
-
get() {
|
|
14416
|
-
return radioGroup.modelValue;
|
|
14417
|
-
},
|
|
14418
|
-
set(value2) {
|
|
14419
|
-
radioGroup.changeEvent(value2);
|
|
14420
|
-
radioRef.value.checked = radioGroup.modelValue === props.label;
|
|
14421
|
-
}
|
|
14422
|
-
});
|
|
14423
|
-
const { isDisabled, tabIndex } = useRadioAttrs(props, {
|
|
14424
|
-
model: value,
|
|
14425
|
-
elForm,
|
|
14426
|
-
radioGroup,
|
|
14427
|
-
isGroup
|
|
14428
|
-
});
|
|
14396
|
+
props: radioButtonProps,
|
|
14397
|
+
setup(props, { emit }) {
|
|
14398
|
+
const {
|
|
14399
|
+
radioRef,
|
|
14400
|
+
isGroup,
|
|
14401
|
+
focus,
|
|
14402
|
+
size,
|
|
14403
|
+
disabled,
|
|
14404
|
+
tabIndex,
|
|
14405
|
+
modelValue,
|
|
14406
|
+
radioGroup
|
|
14407
|
+
} = useRadio(props, emit);
|
|
14429
14408
|
const activeStyle = computed(() => {
|
|
14430
14409
|
return {
|
|
14431
|
-
backgroundColor: radioGroup.fill || "",
|
|
14432
|
-
borderColor: radioGroup.fill || "",
|
|
14433
|
-
boxShadow: radioGroup.fill ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
14434
|
-
color: radioGroup.textColor || ""
|
|
14410
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
14411
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
14412
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
14413
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
14435
14414
|
};
|
|
14436
14415
|
});
|
|
14437
14416
|
return {
|
|
14438
14417
|
isGroup,
|
|
14439
14418
|
size,
|
|
14440
|
-
|
|
14419
|
+
disabled,
|
|
14441
14420
|
tabIndex,
|
|
14442
|
-
|
|
14421
|
+
modelValue,
|
|
14443
14422
|
focus,
|
|
14444
14423
|
activeStyle,
|
|
14445
14424
|
radioRef
|
|
@@ -14454,34 +14433,34 @@ function render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14454
14433
|
class: normalizeClass(["el-radio-button", [
|
|
14455
14434
|
_ctx.size ? "el-radio-button--" + _ctx.size : "",
|
|
14456
14435
|
{
|
|
14457
|
-
"is-active": _ctx.
|
|
14458
|
-
"is-disabled": _ctx.
|
|
14436
|
+
"is-active": _ctx.modelValue === _ctx.label,
|
|
14437
|
+
"is-disabled": _ctx.disabled,
|
|
14459
14438
|
"is-focus": _ctx.focus
|
|
14460
14439
|
}
|
|
14461
14440
|
]]),
|
|
14462
14441
|
role: "radio",
|
|
14463
|
-
"aria-checked": _ctx.
|
|
14464
|
-
"aria-disabled": _ctx.
|
|
14442
|
+
"aria-checked": _ctx.modelValue === _ctx.label,
|
|
14443
|
+
"aria-disabled": _ctx.disabled,
|
|
14465
14444
|
tabindex: _ctx.tabIndex,
|
|
14466
|
-
onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.
|
|
14445
|
+
onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.modelValue = _ctx.disabled ? _ctx.modelValue : _ctx.label, ["stop", "prevent"]), ["space"]))
|
|
14467
14446
|
}, [
|
|
14468
14447
|
withDirectives(createElementVNode("input", {
|
|
14469
14448
|
ref: "radioRef",
|
|
14470
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
14449
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.modelValue = $event),
|
|
14471
14450
|
class: "el-radio-button__original-radio",
|
|
14472
14451
|
value: _ctx.label,
|
|
14473
14452
|
type: "radio",
|
|
14474
14453
|
name: _ctx.name,
|
|
14475
|
-
disabled: _ctx.
|
|
14454
|
+
disabled: _ctx.disabled,
|
|
14476
14455
|
tabindex: "-1",
|
|
14477
14456
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.focus = true),
|
|
14478
14457
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.focus = false)
|
|
14479
14458
|
}, null, 40, _hoisted_2$K), [
|
|
14480
|
-
[vModelRadio, _ctx.
|
|
14459
|
+
[vModelRadio, _ctx.modelValue]
|
|
14481
14460
|
]),
|
|
14482
14461
|
createElementVNode("span", {
|
|
14483
14462
|
class: "el-radio-button__inner",
|
|
14484
|
-
style: normalizeStyle(_ctx.
|
|
14463
|
+
style: normalizeStyle(_ctx.modelValue === _ctx.label ? _ctx.activeStyle : {}),
|
|
14485
14464
|
onKeydown: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
14486
14465
|
}, ["stop"]))
|
|
14487
14466
|
}, [
|
|
@@ -14495,58 +14474,43 @@ function render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14495
14474
|
script$1x.render = render$1q;
|
|
14496
14475
|
script$1x.__file = "packages/components/radio/src/radio-button.vue";
|
|
14497
14476
|
|
|
14477
|
+
const radioGroupProps = buildProps({
|
|
14478
|
+
...useFormItemProps,
|
|
14479
|
+
modelValue: {
|
|
14480
|
+
type: [String, Number, Boolean],
|
|
14481
|
+
default: ""
|
|
14482
|
+
},
|
|
14483
|
+
fill: {
|
|
14484
|
+
type: String,
|
|
14485
|
+
default: ""
|
|
14486
|
+
},
|
|
14487
|
+
textColor: {
|
|
14488
|
+
type: String,
|
|
14489
|
+
default: ""
|
|
14490
|
+
}
|
|
14491
|
+
});
|
|
14492
|
+
const radioGroupEmits = radioEmits;
|
|
14493
|
+
|
|
14498
14494
|
var script$1w = defineComponent({
|
|
14499
14495
|
name: "ElRadioGroup",
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
modelValue: {
|
|
14503
|
-
type: [String, Number, Boolean],
|
|
14504
|
-
default: ""
|
|
14505
|
-
},
|
|
14506
|
-
size: {
|
|
14507
|
-
type: String,
|
|
14508
|
-
validator: isValidComponentSize
|
|
14509
|
-
},
|
|
14510
|
-
fill: {
|
|
14511
|
-
type: String,
|
|
14512
|
-
default: ""
|
|
14513
|
-
},
|
|
14514
|
-
textColor: {
|
|
14515
|
-
type: String,
|
|
14516
|
-
default: ""
|
|
14517
|
-
},
|
|
14518
|
-
disabled: Boolean
|
|
14519
|
-
},
|
|
14520
|
-
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
14496
|
+
props: radioGroupProps,
|
|
14497
|
+
emits: radioGroupEmits,
|
|
14521
14498
|
setup(props, ctx) {
|
|
14522
|
-
const
|
|
14523
|
-
const
|
|
14524
|
-
const radioGroupSize = computed(() => {
|
|
14525
|
-
return props.size || elFormItem.size;
|
|
14526
|
-
});
|
|
14499
|
+
const radioGroupRef = ref();
|
|
14500
|
+
const { size, disabled, formItem } = useFormItem({});
|
|
14527
14501
|
const changeEvent = (value) => {
|
|
14528
14502
|
ctx.emit(UPDATE_MODEL_EVENT, value);
|
|
14529
|
-
nextTick(() =>
|
|
14530
|
-
ctx.emit("change", value);
|
|
14531
|
-
});
|
|
14503
|
+
nextTick(() => ctx.emit("change", value));
|
|
14532
14504
|
};
|
|
14533
|
-
provide(radioGroupKey$1, reactive({
|
|
14534
|
-
name: "ElRadioGroup",
|
|
14535
|
-
...toRefs(props),
|
|
14536
|
-
radioGroupSize,
|
|
14537
|
-
changeEvent
|
|
14538
|
-
}));
|
|
14539
|
-
watch(() => props.modelValue, () => {
|
|
14540
|
-
var _a;
|
|
14541
|
-
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
14542
|
-
});
|
|
14543
14505
|
const handleKeydown = (e) => {
|
|
14506
|
+
if (!radioGroupRef.value)
|
|
14507
|
+
return;
|
|
14544
14508
|
const target = e.target;
|
|
14545
14509
|
const className = target.nodeName === "INPUT" ? "[type=radio]" : "[role=radio]";
|
|
14546
|
-
const radios =
|
|
14510
|
+
const radios = radioGroupRef.value.querySelectorAll(className);
|
|
14547
14511
|
const length = radios.length;
|
|
14548
14512
|
const index = Array.from(radios).indexOf(target);
|
|
14549
|
-
const roleRadios =
|
|
14513
|
+
const roleRadios = radioGroupRef.value.querySelectorAll("[role=radio]");
|
|
14550
14514
|
let nextIndex = null;
|
|
14551
14515
|
switch (e.code) {
|
|
14552
14516
|
case EVENT_CODE.left:
|
|
@@ -14568,23 +14532,29 @@ var script$1w = defineComponent({
|
|
|
14568
14532
|
roleRadios[nextIndex].focus();
|
|
14569
14533
|
};
|
|
14570
14534
|
onMounted(() => {
|
|
14571
|
-
const radios =
|
|
14535
|
+
const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
|
|
14572
14536
|
const firstLabel = radios[0];
|
|
14573
14537
|
if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
|
|
14574
14538
|
firstLabel.tabIndex = 0;
|
|
14575
14539
|
}
|
|
14576
14540
|
});
|
|
14541
|
+
provide(radioGroupKey, reactive({
|
|
14542
|
+
...toRefs(props),
|
|
14543
|
+
changeEvent
|
|
14544
|
+
}));
|
|
14545
|
+
watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
|
|
14577
14546
|
return {
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14547
|
+
size,
|
|
14548
|
+
disabled,
|
|
14549
|
+
radioGroupRef,
|
|
14550
|
+
handleKeydown
|
|
14581
14551
|
};
|
|
14582
14552
|
}
|
|
14583
14553
|
});
|
|
14584
14554
|
|
|
14585
14555
|
function render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14586
14556
|
return openBlock(), createElementBlock("div", {
|
|
14587
|
-
ref: "
|
|
14557
|
+
ref: "radioGroupRef",
|
|
14588
14558
|
class: "el-radio-group",
|
|
14589
14559
|
role: "radiogroup",
|
|
14590
14560
|
onKeydown: _cache[0] || (_cache[0] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
|
|
@@ -14976,7 +14946,7 @@ class Node$3 {
|
|
|
14976
14946
|
const { data, config, childrenData, loaded } = this;
|
|
14977
14947
|
const { lazy, leaf } = config;
|
|
14978
14948
|
const isLeaf = isFunction$3(leaf) ? leaf(data, this) : data[leaf];
|
|
14979
|
-
return isUndefined(isLeaf) ? lazy && !loaded ? false : !Array.isArray(childrenData) : !!isLeaf;
|
|
14949
|
+
return isUndefined(isLeaf) ? lazy && !loaded ? false : !(Array.isArray(childrenData) && childrenData.length) : !!isLeaf;
|
|
14980
14950
|
}
|
|
14981
14951
|
get valueByOption() {
|
|
14982
14952
|
return this.config.emitPath ? this.pathValues : this.value;
|
|
@@ -28725,89 +28695,111 @@ script$C.install = (app) => {
|
|
|
28725
28695
|
const _Progress = script$C;
|
|
28726
28696
|
const ElProgress = _Progress;
|
|
28727
28697
|
|
|
28698
|
+
const rateProps = buildProps({
|
|
28699
|
+
modelValue: {
|
|
28700
|
+
type: Number,
|
|
28701
|
+
default: 0
|
|
28702
|
+
},
|
|
28703
|
+
lowThreshold: {
|
|
28704
|
+
type: Number,
|
|
28705
|
+
default: 2
|
|
28706
|
+
},
|
|
28707
|
+
highThreshold: {
|
|
28708
|
+
type: Number,
|
|
28709
|
+
default: 4
|
|
28710
|
+
},
|
|
28711
|
+
max: {
|
|
28712
|
+
type: Number,
|
|
28713
|
+
default: 5
|
|
28714
|
+
},
|
|
28715
|
+
colors: {
|
|
28716
|
+
type: definePropType([Array, Object]),
|
|
28717
|
+
default: () => mutable(["#F7BA2A", "#F7BA2A", "#F7BA2A"])
|
|
28718
|
+
},
|
|
28719
|
+
voidColor: {
|
|
28720
|
+
type: String,
|
|
28721
|
+
default: "#C6D1DE"
|
|
28722
|
+
},
|
|
28723
|
+
disabledVoidColor: {
|
|
28724
|
+
type: String,
|
|
28725
|
+
default: "#EFF2F7"
|
|
28726
|
+
},
|
|
28727
|
+
icons: {
|
|
28728
|
+
type: definePropType([Array, Object]),
|
|
28729
|
+
default: () => [StarFilled, StarFilled, StarFilled]
|
|
28730
|
+
},
|
|
28731
|
+
voidIcon: {
|
|
28732
|
+
type: definePropType([String, Object]),
|
|
28733
|
+
default: () => Star
|
|
28734
|
+
},
|
|
28735
|
+
disabledvoidIcon: {
|
|
28736
|
+
type: definePropType([String, Object]),
|
|
28737
|
+
default: () => StarFilled
|
|
28738
|
+
},
|
|
28739
|
+
disabled: {
|
|
28740
|
+
type: Boolean,
|
|
28741
|
+
default: false
|
|
28742
|
+
},
|
|
28743
|
+
allowHalf: {
|
|
28744
|
+
type: Boolean,
|
|
28745
|
+
default: false
|
|
28746
|
+
},
|
|
28747
|
+
showText: {
|
|
28748
|
+
type: Boolean,
|
|
28749
|
+
default: false
|
|
28750
|
+
},
|
|
28751
|
+
showScore: {
|
|
28752
|
+
type: Boolean,
|
|
28753
|
+
default: false
|
|
28754
|
+
},
|
|
28755
|
+
textColor: {
|
|
28756
|
+
type: String,
|
|
28757
|
+
default: "#1f2d3d"
|
|
28758
|
+
},
|
|
28759
|
+
texts: {
|
|
28760
|
+
type: definePropType([Array]),
|
|
28761
|
+
default: () => mutable([
|
|
28762
|
+
"Extremely bad",
|
|
28763
|
+
"Disappointed",
|
|
28764
|
+
"Fair",
|
|
28765
|
+
"Satisfied",
|
|
28766
|
+
"Surprise"
|
|
28767
|
+
])
|
|
28768
|
+
},
|
|
28769
|
+
scoreTemplate: {
|
|
28770
|
+
type: String,
|
|
28771
|
+
default: "{value}"
|
|
28772
|
+
}
|
|
28773
|
+
});
|
|
28774
|
+
const rateEmits = {
|
|
28775
|
+
change: (value) => typeof value === "number",
|
|
28776
|
+
[UPDATE_MODEL_EVENT]: (value) => typeof value === "number"
|
|
28777
|
+
};
|
|
28778
|
+
|
|
28779
|
+
function getValueFromMap(value, map) {
|
|
28780
|
+
const isExcludedObject = (val) => isObject$a(val);
|
|
28781
|
+
const matchedKeys = Object.keys(map).map((key) => +key).filter((key) => {
|
|
28782
|
+
const val = map[key];
|
|
28783
|
+
const excluded = isExcludedObject(val) ? val.excluded : false;
|
|
28784
|
+
return excluded ? value < key : value <= key;
|
|
28785
|
+
}).sort((a, b) => a - b);
|
|
28786
|
+
const matchedValue = map[matchedKeys[0]];
|
|
28787
|
+
return isExcludedObject(matchedValue) ? matchedValue.value : matchedValue;
|
|
28788
|
+
}
|
|
28728
28789
|
var script$B = defineComponent({
|
|
28729
28790
|
name: "ElRate",
|
|
28730
|
-
components: {
|
|
28731
|
-
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
default: 0
|
|
28735
|
-
},
|
|
28736
|
-
lowThreshold: {
|
|
28737
|
-
type: Number,
|
|
28738
|
-
default: 2
|
|
28739
|
-
},
|
|
28740
|
-
highThreshold: {
|
|
28741
|
-
type: Number,
|
|
28742
|
-
default: 4
|
|
28743
|
-
},
|
|
28744
|
-
max: {
|
|
28745
|
-
type: Number,
|
|
28746
|
-
default: 5
|
|
28747
|
-
},
|
|
28748
|
-
colors: {
|
|
28749
|
-
type: [Array, Object],
|
|
28750
|
-
default: () => ["#F7BA2A", "#F7BA2A", "#F7BA2A"]
|
|
28751
|
-
},
|
|
28752
|
-
voidColor: {
|
|
28753
|
-
type: String,
|
|
28754
|
-
default: "#C6D1DE"
|
|
28755
|
-
},
|
|
28756
|
-
disabledVoidColor: {
|
|
28757
|
-
type: String,
|
|
28758
|
-
default: "#EFF2F7"
|
|
28759
|
-
},
|
|
28760
|
-
icons: {
|
|
28761
|
-
type: [Array, Object],
|
|
28762
|
-
default: () => [StarFilled, StarFilled, StarFilled]
|
|
28763
|
-
},
|
|
28764
|
-
voidIcon: {
|
|
28765
|
-
type: [String, Object],
|
|
28766
|
-
default: Star
|
|
28767
|
-
},
|
|
28768
|
-
disabledvoidIcon: {
|
|
28769
|
-
type: [String, Object],
|
|
28770
|
-
default: StarFilled
|
|
28771
|
-
},
|
|
28772
|
-
disabled: {
|
|
28773
|
-
type: Boolean,
|
|
28774
|
-
default: false
|
|
28775
|
-
},
|
|
28776
|
-
allowHalf: {
|
|
28777
|
-
type: Boolean,
|
|
28778
|
-
default: false
|
|
28779
|
-
},
|
|
28780
|
-
showText: {
|
|
28781
|
-
type: Boolean,
|
|
28782
|
-
default: false
|
|
28783
|
-
},
|
|
28784
|
-
showScore: {
|
|
28785
|
-
type: Boolean,
|
|
28786
|
-
default: false
|
|
28787
|
-
},
|
|
28788
|
-
textColor: {
|
|
28789
|
-
type: String,
|
|
28790
|
-
default: "#1f2d3d"
|
|
28791
|
-
},
|
|
28792
|
-
texts: {
|
|
28793
|
-
type: Array,
|
|
28794
|
-
default: () => [
|
|
28795
|
-
"Extremely bad",
|
|
28796
|
-
"Disappointed",
|
|
28797
|
-
"Fair",
|
|
28798
|
-
"Satisfied",
|
|
28799
|
-
"Surprise"
|
|
28800
|
-
]
|
|
28801
|
-
},
|
|
28802
|
-
scoreTemplate: {
|
|
28803
|
-
type: String,
|
|
28804
|
-
default: "{value}"
|
|
28805
|
-
}
|
|
28791
|
+
components: {
|
|
28792
|
+
ElIcon,
|
|
28793
|
+
StarFilled,
|
|
28794
|
+
Star
|
|
28806
28795
|
},
|
|
28807
|
-
|
|
28796
|
+
props: rateProps,
|
|
28797
|
+
emits: rateEmits,
|
|
28808
28798
|
setup(props, { emit }) {
|
|
28809
28799
|
const elForm = inject(elFormKey, {});
|
|
28810
28800
|
const currentValue = ref(props.modelValue);
|
|
28801
|
+
const hoverIndex = ref(-1);
|
|
28802
|
+
const pointerAtLeftHalf = ref(true);
|
|
28811
28803
|
const rateDisabled = computed(() => props.disabled || elForm.disabled);
|
|
28812
28804
|
const text = computed(() => {
|
|
28813
28805
|
let result = "";
|
|
@@ -28818,15 +28810,6 @@ var script$B = defineComponent({
|
|
|
28818
28810
|
}
|
|
28819
28811
|
return result;
|
|
28820
28812
|
});
|
|
28821
|
-
function getValueFromMap(value, map) {
|
|
28822
|
-
const matchedKeys = Object.keys(map).filter((key) => {
|
|
28823
|
-
const val = map[key];
|
|
28824
|
-
const excluded = isObject$a(val) ? val.excluded : false;
|
|
28825
|
-
return excluded ? value < key : value <= key;
|
|
28826
|
-
}).sort((a, b) => a - b);
|
|
28827
|
-
const matchedValue = map[matchedKeys[0]];
|
|
28828
|
-
return isObject$a(matchedValue) ? matchedValue.value || matchedValue : matchedValue || "";
|
|
28829
|
-
}
|
|
28830
28813
|
const valueDecimal = computed(() => props.modelValue * 100 - Math.floor(props.modelValue) * 100);
|
|
28831
28814
|
const colorMap = computed(() => isArray$6(props.colors) ? {
|
|
28832
28815
|
[props.lowThreshold]: props.colors[0],
|
|
@@ -28864,11 +28847,6 @@ var script$B = defineComponent({
|
|
|
28864
28847
|
result.fill(voidComponent.value, threshold, props.max);
|
|
28865
28848
|
return result;
|
|
28866
28849
|
});
|
|
28867
|
-
const pointerAtLeftHalf = ref(true);
|
|
28868
|
-
watch(() => props.modelValue, (val) => {
|
|
28869
|
-
currentValue.value = val;
|
|
28870
|
-
pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue);
|
|
28871
|
-
});
|
|
28872
28850
|
function showDecimalIcon(item) {
|
|
28873
28851
|
const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
|
|
28874
28852
|
const showWhenAllowHalf = props.allowHalf && pointerAtLeftHalf.value && item - 0.5 <= currentValue.value && item > currentValue.value;
|
|
@@ -28925,7 +28903,6 @@ var script$B = defineComponent({
|
|
|
28925
28903
|
emit("change", _currentValue);
|
|
28926
28904
|
return _currentValue;
|
|
28927
28905
|
}
|
|
28928
|
-
const hoverIndex = ref(-1);
|
|
28929
28906
|
function setCurrentValue(value, event) {
|
|
28930
28907
|
if (rateDisabled.value) {
|
|
28931
28908
|
return;
|
|
@@ -28955,6 +28932,10 @@ var script$B = defineComponent({
|
|
|
28955
28932
|
currentValue.value = props.modelValue;
|
|
28956
28933
|
hoverIndex.value = -1;
|
|
28957
28934
|
}
|
|
28935
|
+
watch(() => props.modelValue, (val) => {
|
|
28936
|
+
currentValue.value = val;
|
|
28937
|
+
pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue);
|
|
28938
|
+
});
|
|
28958
28939
|
if (!props.modelValue) {
|
|
28959
28940
|
emit(UPDATE_MODEL_EVENT, 0);
|
|
28960
28941
|
}
|
|
@@ -29029,13 +29010,9 @@ function render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29029
29010
|
}
|
|
29030
29011
|
|
|
29031
29012
|
script$B.render = render$v;
|
|
29032
|
-
script$B.__file = "packages/components/rate/src/
|
|
29013
|
+
script$B.__file = "packages/components/rate/src/rate.vue";
|
|
29033
29014
|
|
|
29034
|
-
|
|
29035
|
-
app.component(script$B.name, script$B);
|
|
29036
|
-
};
|
|
29037
|
-
const _Rate = script$B;
|
|
29038
|
-
const ElRate = _Rate;
|
|
29015
|
+
const ElRate = withInstall(script$B);
|
|
29039
29016
|
|
|
29040
29017
|
const IconMap = {
|
|
29041
29018
|
success: "icon-success",
|
|
@@ -29049,22 +29026,24 @@ const IconComponentMap = {
|
|
|
29049
29026
|
[IconMap.error]: CircleCloseFilled,
|
|
29050
29027
|
[IconMap.info]: InfoFilled
|
|
29051
29028
|
};
|
|
29029
|
+
const resultProps = buildProps({
|
|
29030
|
+
title: {
|
|
29031
|
+
type: String,
|
|
29032
|
+
default: ""
|
|
29033
|
+
},
|
|
29034
|
+
subTitle: {
|
|
29035
|
+
type: String,
|
|
29036
|
+
default: ""
|
|
29037
|
+
},
|
|
29038
|
+
icon: {
|
|
29039
|
+
values: ["success", "warning", "info", "error"],
|
|
29040
|
+
default: "info"
|
|
29041
|
+
}
|
|
29042
|
+
});
|
|
29043
|
+
|
|
29052
29044
|
var script$A = defineComponent({
|
|
29053
29045
|
name: "ElResult",
|
|
29054
|
-
props:
|
|
29055
|
-
title: {
|
|
29056
|
-
type: String,
|
|
29057
|
-
default: ""
|
|
29058
|
-
},
|
|
29059
|
-
subTitle: {
|
|
29060
|
-
type: String,
|
|
29061
|
-
default: ""
|
|
29062
|
-
},
|
|
29063
|
-
icon: {
|
|
29064
|
-
type: String,
|
|
29065
|
-
default: "info"
|
|
29066
|
-
}
|
|
29067
|
-
},
|
|
29046
|
+
props: resultProps,
|
|
29068
29047
|
setup(props) {
|
|
29069
29048
|
const resultIcon = computed(() => {
|
|
29070
29049
|
const icon = props.icon;
|
|
@@ -29122,34 +29101,33 @@ function render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29122
29101
|
}
|
|
29123
29102
|
|
|
29124
29103
|
script$A.render = render$u;
|
|
29125
|
-
script$A.__file = "packages/components/result/src/
|
|
29104
|
+
script$A.__file = "packages/components/result/src/result.vue";
|
|
29126
29105
|
|
|
29127
|
-
|
|
29128
|
-
app.component(script$A.name, script$A);
|
|
29129
|
-
};
|
|
29130
|
-
const _Result = script$A;
|
|
29131
|
-
const ElResult = _Result;
|
|
29106
|
+
const ElResult = withInstall(script$A);
|
|
29132
29107
|
|
|
29108
|
+
const rowProps = buildProps({
|
|
29109
|
+
tag: {
|
|
29110
|
+
type: String,
|
|
29111
|
+
default: "div"
|
|
29112
|
+
},
|
|
29113
|
+
gutter: {
|
|
29114
|
+
type: Number,
|
|
29115
|
+
default: 0
|
|
29116
|
+
},
|
|
29117
|
+
justify: {
|
|
29118
|
+
type: String,
|
|
29119
|
+
values: ["start", "center", "end", "space-around", "space-between"],
|
|
29120
|
+
default: "start"
|
|
29121
|
+
},
|
|
29122
|
+
align: {
|
|
29123
|
+
type: String,
|
|
29124
|
+
values: ["top", "middle", "bottom"],
|
|
29125
|
+
default: "top"
|
|
29126
|
+
}
|
|
29127
|
+
});
|
|
29133
29128
|
var Row = defineComponent({
|
|
29134
29129
|
name: "ElRow",
|
|
29135
|
-
props:
|
|
29136
|
-
tag: {
|
|
29137
|
-
type: String,
|
|
29138
|
-
default: "div"
|
|
29139
|
-
},
|
|
29140
|
-
gutter: {
|
|
29141
|
-
type: Number,
|
|
29142
|
-
default: 0
|
|
29143
|
-
},
|
|
29144
|
-
justify: {
|
|
29145
|
-
type: String,
|
|
29146
|
-
default: "start"
|
|
29147
|
-
},
|
|
29148
|
-
align: {
|
|
29149
|
-
type: String,
|
|
29150
|
-
default: "top"
|
|
29151
|
-
}
|
|
29152
|
-
},
|
|
29130
|
+
props: rowProps,
|
|
29153
29131
|
setup(props, { slots }) {
|
|
29154
29132
|
const gutter = computed(() => props.gutter);
|
|
29155
29133
|
provide("ElRow", {
|
|
@@ -29180,11 +29158,7 @@ var Row = defineComponent({
|
|
|
29180
29158
|
}
|
|
29181
29159
|
});
|
|
29182
29160
|
|
|
29183
|
-
const
|
|
29184
|
-
_Row.install = (app) => {
|
|
29185
|
-
app.component(_Row.name, _Row);
|
|
29186
|
-
};
|
|
29187
|
-
const ElRow = _Row;
|
|
29161
|
+
const ElRow = withInstall(Row);
|
|
29188
29162
|
|
|
29189
29163
|
var MapCache = _MapCache;
|
|
29190
29164
|
|
|
@@ -45990,4 +45964,4 @@ var installer = makeInstaller$1([...Components, ...Plugins]);
|
|
|
45990
45964
|
const install = installer.install;
|
|
45991
45965
|
const version = installer.version;
|
|
45992
45966
|
|
|
45993
|
-
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, script$1K as CommonPicker, CommonProps, DARK_EFFECT, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DefaultProps, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$2 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper$1 as ElPopper, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar$1 as ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, LIGHT_EFFECT, LocaleInjectionKey, Mousewheel, RepeatClick, Resize, script$1I as TimePickPanel, TrapFocus, affixEmits, affixProps, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buttonEmits, buttonNativeType, buttonProps, buttonSize, buttonType, cardProps, colProps, configProviderContextKey, installer as default, dialogEmits, dialogProps, dividerProps, elBreadcrumbKey, elButtonGroupKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, localeProviderMaker, makeInstaller$1 as makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmEmits, popconfirmProps, popperDefaultProps, rangeArr, renderArrow, renderPopper, renderThumbStyle$1 as renderThumbStyle, renderTrigger, selectGroupKey, selectKey, selectV2InjectionKey, spaceProps, subMenuProps, tagEmits, tagProps, themeVarsKey, timePickerDefaultProps, useAttrs, useCascaderConfig, useCssVar, useDialog, index as useEvents, useFocus, useFormItem, useFormItemProps, useGlobalConfig, useLocale, useLocaleInject, useLocaleProps, useLockScreen, useMigrating, useModal, useModelToggle, useModelToggleEmits, useModelToggleProps, usePopper, usePopperControlProps, usePopperHook, usePopperProps, usePreventGlobal, useRestoreActive, useSameTarget, useSpace, useTeleport, useThemeVars, useThrottleRender, useTimeout, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|
|
45967
|
+
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, script$1K as CommonPicker, CommonProps, DARK_EFFECT, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DefaultProps, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$2 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper$1 as ElPopper, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar$1 as ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, IconComponentMap, IconMap, LIGHT_EFFECT, LocaleInjectionKey, Mousewheel, RepeatClick, Resize, script$1I as TimePickPanel, TrapFocus, affixEmits, affixProps, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buttonEmits, buttonNativeType, buttonProps, buttonSize, buttonType, cardProps, colProps, configProviderContextKey, installer as default, dialogEmits, dialogProps, dividerProps, elBreadcrumbKey, elButtonGroupKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, localeProviderMaker, makeInstaller$1 as makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmEmits, popconfirmProps, popperDefaultProps, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderArrow, renderPopper, renderThumbStyle$1 as renderThumbStyle, renderTrigger, resultProps, rowProps, selectGroupKey, selectKey, selectV2InjectionKey, spaceProps, subMenuProps, tagEmits, tagProps, themeVarsKey, timePickerDefaultProps, useAttrs, useCascaderConfig, useCssVar, useDialog, index as useEvents, useFocus, useFormItem, useFormItemProps, useGlobalConfig, useLocale, useLocaleInject, useLocaleProps, useLockScreen, useMigrating, useModal, useModelToggle, useModelToggleEmits, useModelToggleProps, usePopper, usePopperControlProps, usePopperHook, usePopperProps, usePreventGlobal, useRadio, useRestoreActive, useSameTarget, useSpace, useTeleport, useThemeVars, useThrottleRender, useTimeout, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|