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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v1.2.0-beta.
|
|
1
|
+
/*! Element Plus v1.2.0-beta.3 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -6043,6 +6043,8 @@
|
|
|
6043
6043
|
|
|
6044
6044
|
const configProviderContextKey = Symbol();
|
|
6045
6045
|
|
|
6046
|
+
const radioGroupKey = Symbol("radioGroupKey");
|
|
6047
|
+
|
|
6046
6048
|
const sizes = ["", "large", "medium", "small", "mini"];
|
|
6047
6049
|
const useFormItemProps = buildProps({
|
|
6048
6050
|
size: {
|
|
@@ -6065,7 +6067,9 @@
|
|
|
6065
6067
|
}),
|
|
6066
6068
|
disabled: vue.computed(() => {
|
|
6067
6069
|
return props.disabled === true || vue.unref(disabled) || (form == null ? void 0 : form.disabled) || false;
|
|
6068
|
-
})
|
|
6070
|
+
}),
|
|
6071
|
+
form,
|
|
6072
|
+
formItem
|
|
6069
6073
|
};
|
|
6070
6074
|
};
|
|
6071
6075
|
|
|
@@ -6099,7 +6103,7 @@
|
|
|
6099
6103
|
return vue.inject(configProviderContextKey, defaultConfig);
|
|
6100
6104
|
};
|
|
6101
6105
|
|
|
6102
|
-
const version$1 = "1.2.0-beta.
|
|
6106
|
+
const version$1 = "1.2.0-beta.3";
|
|
6103
6107
|
|
|
6104
6108
|
const makeInstaller = (components = []) => {
|
|
6105
6109
|
const apps = [];
|
|
@@ -13799,6 +13803,7 @@
|
|
|
13799
13803
|
type: [String, Number],
|
|
13800
13804
|
default: void 0
|
|
13801
13805
|
},
|
|
13806
|
+
tabindex: [String, Number],
|
|
13802
13807
|
size: String
|
|
13803
13808
|
};
|
|
13804
13809
|
const useCheckboxGroup = () => {
|
|
@@ -13986,7 +13991,8 @@
|
|
|
13986
13991
|
size: {
|
|
13987
13992
|
type: String,
|
|
13988
13993
|
validator: isValidComponentSize
|
|
13989
|
-
}
|
|
13994
|
+
},
|
|
13995
|
+
tabindex: [String, Number]
|
|
13990
13996
|
},
|
|
13991
13997
|
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
13992
13998
|
setup(props) {
|
|
@@ -13997,8 +14003,8 @@
|
|
|
13997
14003
|
const _hoisted_1$13 = ["id", "aria-controls"];
|
|
13998
14004
|
const _hoisted_2$N = ["tabindex", "role", "aria-checked"];
|
|
13999
14005
|
const _hoisted_3$E = /* @__PURE__ */ vue.createElementVNode("span", { class: "el-checkbox__inner" }, null, -1);
|
|
14000
|
-
const _hoisted_4$t = ["aria-hidden", "name", "disabled", "true-value", "false-value"];
|
|
14001
|
-
const _hoisted_5$l = ["aria-hidden", "disabled", "value", "name"];
|
|
14006
|
+
const _hoisted_4$t = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
14007
|
+
const _hoisted_5$l = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
14002
14008
|
const _hoisted_6$f = {
|
|
14003
14009
|
key: 0,
|
|
14004
14010
|
class: "el-checkbox__label"
|
|
@@ -14033,6 +14039,7 @@
|
|
|
14033
14039
|
type: "checkbox",
|
|
14034
14040
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
14035
14041
|
name: _ctx.name,
|
|
14042
|
+
tabindex: _ctx.tabindex,
|
|
14036
14043
|
disabled: _ctx.isDisabled,
|
|
14037
14044
|
"true-value": _ctx.trueLabel,
|
|
14038
14045
|
"false-value": _ctx.falseLabel,
|
|
@@ -14050,6 +14057,7 @@
|
|
|
14050
14057
|
disabled: _ctx.isDisabled,
|
|
14051
14058
|
value: _ctx.label,
|
|
14052
14059
|
name: _ctx.name,
|
|
14060
|
+
tabindex: _ctx.tabindex,
|
|
14053
14061
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
14054
14062
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
14055
14063
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
@@ -14099,8 +14107,8 @@
|
|
|
14099
14107
|
});
|
|
14100
14108
|
|
|
14101
14109
|
const _hoisted_1$12 = ["aria-checked", "aria-disabled"];
|
|
14102
|
-
const _hoisted_2$M = ["name", "disabled", "true-value", "false-value"];
|
|
14103
|
-
const _hoisted_3$D = ["name", "disabled", "value"];
|
|
14110
|
+
const _hoisted_2$M = ["name", "tabindex", "disabled", "true-value", "false-value"];
|
|
14111
|
+
const _hoisted_3$D = ["name", "tabindex", "disabled", "value"];
|
|
14104
14112
|
function render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14105
14113
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
14106
14114
|
class: vue.normalizeClass(["el-checkbox-button", [
|
|
@@ -14119,6 +14127,7 @@
|
|
|
14119
14127
|
class: "el-checkbox-button__original",
|
|
14120
14128
|
type: "checkbox",
|
|
14121
14129
|
name: _ctx.name,
|
|
14130
|
+
tabindex: _ctx.tabindex,
|
|
14122
14131
|
disabled: _ctx.isDisabled,
|
|
14123
14132
|
"true-value": _ctx.trueLabel,
|
|
14124
14133
|
"false-value": _ctx.falseLabel,
|
|
@@ -14133,6 +14142,7 @@
|
|
|
14133
14142
|
class: "el-checkbox-button__original",
|
|
14134
14143
|
type: "checkbox",
|
|
14135
14144
|
name: _ctx.name,
|
|
14145
|
+
tabindex: _ctx.tabindex,
|
|
14136
14146
|
disabled: _ctx.isDisabled,
|
|
14137
14147
|
value: _ctx.label,
|
|
14138
14148
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
@@ -14238,103 +14248,84 @@
|
|
|
14238
14248
|
const ElCheckboxButton = withNoopInstall(script$1A);
|
|
14239
14249
|
const ElCheckboxGroup$1 = withNoopInstall(script$1z);
|
|
14240
14250
|
|
|
14241
|
-
const
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14258
|
-
|
|
14259
|
-
|
|
14251
|
+
const radioPropsBase = buildProps({
|
|
14252
|
+
...useFormItemProps,
|
|
14253
|
+
label: {
|
|
14254
|
+
type: [String, Number, Boolean],
|
|
14255
|
+
default: ""
|
|
14256
|
+
}
|
|
14257
|
+
});
|
|
14258
|
+
const radioProps = buildProps({
|
|
14259
|
+
...radioPropsBase,
|
|
14260
|
+
modelValue: {
|
|
14261
|
+
type: [String, Number, Boolean],
|
|
14262
|
+
default: ""
|
|
14263
|
+
},
|
|
14264
|
+
name: {
|
|
14265
|
+
type: String,
|
|
14266
|
+
default: ""
|
|
14267
|
+
},
|
|
14268
|
+
border: Boolean
|
|
14269
|
+
});
|
|
14270
|
+
const radioEmits = {
|
|
14271
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBool(val),
|
|
14272
|
+
change: (val) => isString$1(val) || isNumber(val) || isBool(val)
|
|
14260
14273
|
};
|
|
14261
|
-
const
|
|
14262
|
-
const
|
|
14263
|
-
|
|
14274
|
+
const useRadio = (props, emit) => {
|
|
14275
|
+
const radioRef = vue.ref();
|
|
14276
|
+
const radioGroup = vue.inject(radioGroupKey, void 0);
|
|
14277
|
+
const isGroup = vue.computed(() => !!radioGroup);
|
|
14278
|
+
const modelValue = vue.computed({
|
|
14279
|
+
get() {
|
|
14280
|
+
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
14281
|
+
},
|
|
14282
|
+
set(val) {
|
|
14283
|
+
if (isGroup.value) {
|
|
14284
|
+
radioGroup.changeEvent(val);
|
|
14285
|
+
} else {
|
|
14286
|
+
emit(UPDATE_MODEL_EVENT, val);
|
|
14287
|
+
}
|
|
14288
|
+
radioRef.value.checked = props.modelValue === props.label;
|
|
14289
|
+
}
|
|
14290
|
+
});
|
|
14291
|
+
const { size, disabled } = useFormItem({
|
|
14292
|
+
size: vue.computed(() => radioGroup == null ? void 0 : radioGroup.size),
|
|
14293
|
+
disabled: vue.computed(() => radioGroup == null ? void 0 : radioGroup.disabled)
|
|
14264
14294
|
});
|
|
14295
|
+
const focus = vue.ref(false);
|
|
14265
14296
|
const tabIndex = vue.computed(() => {
|
|
14266
|
-
return
|
|
14297
|
+
return disabled.value || isGroup.value && modelValue.value !== props.label ? -1 : 0;
|
|
14267
14298
|
});
|
|
14268
14299
|
return {
|
|
14269
|
-
|
|
14270
|
-
|
|
14300
|
+
radioRef,
|
|
14301
|
+
isGroup,
|
|
14302
|
+
radioGroup,
|
|
14303
|
+
focus,
|
|
14304
|
+
size,
|
|
14305
|
+
disabled,
|
|
14306
|
+
tabIndex,
|
|
14307
|
+
modelValue
|
|
14271
14308
|
};
|
|
14272
14309
|
};
|
|
14273
14310
|
|
|
14274
14311
|
var script$1y = vue.defineComponent({
|
|
14275
14312
|
name: "ElRadio",
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
default: ""
|
|
14281
|
-
},
|
|
14282
|
-
label: {
|
|
14283
|
-
type: [String, Number, Boolean],
|
|
14284
|
-
default: ""
|
|
14285
|
-
},
|
|
14286
|
-
disabled: Boolean,
|
|
14287
|
-
name: {
|
|
14288
|
-
type: String,
|
|
14289
|
-
default: ""
|
|
14290
|
-
},
|
|
14291
|
-
border: Boolean,
|
|
14292
|
-
size: {
|
|
14293
|
-
type: String,
|
|
14294
|
-
validator: isValidComponentSize
|
|
14295
|
-
}
|
|
14296
|
-
},
|
|
14297
|
-
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
14298
|
-
setup(props, ctx) {
|
|
14299
|
-
const { isGroup, radioGroup, elFormItemSize, ELEMENT, focus, elForm } = useRadio();
|
|
14300
|
-
const radioRef = vue.ref();
|
|
14301
|
-
const model = vue.computed({
|
|
14302
|
-
get() {
|
|
14303
|
-
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
14304
|
-
},
|
|
14305
|
-
set(val) {
|
|
14306
|
-
if (isGroup.value) {
|
|
14307
|
-
radioGroup.changeEvent(val);
|
|
14308
|
-
} else {
|
|
14309
|
-
ctx.emit(UPDATE_MODEL_EVENT, val);
|
|
14310
|
-
}
|
|
14311
|
-
radioRef.value.checked = props.modelValue === props.label;
|
|
14312
|
-
}
|
|
14313
|
-
});
|
|
14314
|
-
const { tabIndex, isDisabled } = useRadioAttrs(props, {
|
|
14315
|
-
isGroup,
|
|
14316
|
-
radioGroup,
|
|
14317
|
-
elForm,
|
|
14318
|
-
model
|
|
14319
|
-
});
|
|
14320
|
-
const radioSize = vue.computed(() => {
|
|
14321
|
-
const temRadioSize = props.size || elFormItemSize.value || ELEMENT.size;
|
|
14322
|
-
return isGroup.value ? radioGroup.radioGroupSize || temRadioSize : temRadioSize;
|
|
14323
|
-
});
|
|
14313
|
+
props: radioProps,
|
|
14314
|
+
emits: radioEmits,
|
|
14315
|
+
setup(props, { emit }) {
|
|
14316
|
+
const { radioRef, isGroup, focus, size, disabled, tabIndex, modelValue } = useRadio(props, emit);
|
|
14324
14317
|
function handleChange() {
|
|
14325
|
-
vue.nextTick(() =>
|
|
14326
|
-
ctx.emit("change", model.value);
|
|
14327
|
-
});
|
|
14318
|
+
vue.nextTick(() => emit("change", modelValue.value));
|
|
14328
14319
|
}
|
|
14329
14320
|
return {
|
|
14330
14321
|
focus,
|
|
14331
14322
|
isGroup,
|
|
14332
|
-
|
|
14333
|
-
model,
|
|
14323
|
+
modelValue,
|
|
14334
14324
|
tabIndex,
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
radioRef
|
|
14325
|
+
size,
|
|
14326
|
+
disabled,
|
|
14327
|
+
radioRef,
|
|
14328
|
+
handleChange
|
|
14338
14329
|
};
|
|
14339
14330
|
}
|
|
14340
14331
|
});
|
|
@@ -14345,40 +14336,40 @@
|
|
|
14345
14336
|
function render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14346
14337
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
14347
14338
|
class: vue.normalizeClass(["el-radio", {
|
|
14348
|
-
[`el-radio--${_ctx.
|
|
14349
|
-
"is-disabled": _ctx.
|
|
14339
|
+
[`el-radio--${_ctx.size || ""}`]: _ctx.size,
|
|
14340
|
+
"is-disabled": _ctx.disabled,
|
|
14350
14341
|
"is-focus": _ctx.focus,
|
|
14351
14342
|
"is-bordered": _ctx.border,
|
|
14352
|
-
"is-checked": _ctx.
|
|
14343
|
+
"is-checked": _ctx.modelValue === _ctx.label
|
|
14353
14344
|
}]),
|
|
14354
14345
|
role: "radio",
|
|
14355
|
-
"aria-checked": _ctx.
|
|
14356
|
-
"aria-disabled": _ctx.
|
|
14346
|
+
"aria-checked": _ctx.modelValue === _ctx.label,
|
|
14347
|
+
"aria-disabled": _ctx.disabled,
|
|
14357
14348
|
tabindex: _ctx.tabIndex,
|
|
14358
|
-
onKeydown: _cache[5] || (_cache[5] = vue.withKeys(vue.withModifiers(($event) => _ctx.
|
|
14349
|
+
onKeydown: _cache[5] || (_cache[5] = vue.withKeys(vue.withModifiers(($event) => _ctx.modelValue = _ctx.disabled ? _ctx.modelValue : _ctx.label, ["stop", "prevent"]), ["space"]))
|
|
14359
14350
|
}, [
|
|
14360
14351
|
vue.createElementVNode("span", {
|
|
14361
14352
|
class: vue.normalizeClass(["el-radio__input", {
|
|
14362
|
-
"is-disabled": _ctx.
|
|
14363
|
-
"is-checked": _ctx.
|
|
14353
|
+
"is-disabled": _ctx.disabled,
|
|
14354
|
+
"is-checked": _ctx.modelValue === _ctx.label
|
|
14364
14355
|
}])
|
|
14365
14356
|
}, [
|
|
14366
14357
|
_hoisted_2$L,
|
|
14367
14358
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
14368
14359
|
ref: "radioRef",
|
|
14369
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
14360
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.modelValue = $event),
|
|
14370
14361
|
class: "el-radio__original",
|
|
14371
14362
|
value: _ctx.label,
|
|
14372
14363
|
type: "radio",
|
|
14373
14364
|
"aria-hidden": "true",
|
|
14374
14365
|
name: _ctx.name,
|
|
14375
|
-
disabled: _ctx.
|
|
14366
|
+
disabled: _ctx.disabled,
|
|
14376
14367
|
tabindex: "-1",
|
|
14377
14368
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.focus = true),
|
|
14378
14369
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.focus = false),
|
|
14379
14370
|
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
|
|
14380
14371
|
}, null, 40, _hoisted_3$C), [
|
|
14381
|
-
[vue.vModelRadio, _ctx.
|
|
14372
|
+
[vue.vModelRadio, _ctx.modelValue]
|
|
14382
14373
|
])
|
|
14383
14374
|
], 2),
|
|
14384
14375
|
vue.createElementVNode("span", {
|
|
@@ -14396,54 +14387,42 @@
|
|
|
14396
14387
|
script$1y.render = render$1r;
|
|
14397
14388
|
script$1y.__file = "packages/components/radio/src/radio.vue";
|
|
14398
14389
|
|
|
14390
|
+
const radioButtonProps = buildProps({
|
|
14391
|
+
...radioPropsBase,
|
|
14392
|
+
name: {
|
|
14393
|
+
type: String,
|
|
14394
|
+
default: ""
|
|
14395
|
+
}
|
|
14396
|
+
});
|
|
14397
|
+
|
|
14399
14398
|
var script$1x = vue.defineComponent({
|
|
14400
14399
|
name: "ElRadioButton",
|
|
14401
|
-
props:
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
const { isGroup, radioGroup, elFormItemSize, ELEMENT, focus, elForm } = useRadio();
|
|
14414
|
-
const size = vue.computed(() => {
|
|
14415
|
-
return radioGroup.radioGroupSize || elFormItemSize.value || ELEMENT.size;
|
|
14416
|
-
});
|
|
14417
|
-
const radioRef = vue.ref();
|
|
14418
|
-
const value = vue.computed({
|
|
14419
|
-
get() {
|
|
14420
|
-
return radioGroup.modelValue;
|
|
14421
|
-
},
|
|
14422
|
-
set(value2) {
|
|
14423
|
-
radioGroup.changeEvent(value2);
|
|
14424
|
-
radioRef.value.checked = radioGroup.modelValue === props.label;
|
|
14425
|
-
}
|
|
14426
|
-
});
|
|
14427
|
-
const { isDisabled, tabIndex } = useRadioAttrs(props, {
|
|
14428
|
-
model: value,
|
|
14429
|
-
elForm,
|
|
14430
|
-
radioGroup,
|
|
14431
|
-
isGroup
|
|
14432
|
-
});
|
|
14400
|
+
props: radioButtonProps,
|
|
14401
|
+
setup(props, { emit }) {
|
|
14402
|
+
const {
|
|
14403
|
+
radioRef,
|
|
14404
|
+
isGroup,
|
|
14405
|
+
focus,
|
|
14406
|
+
size,
|
|
14407
|
+
disabled,
|
|
14408
|
+
tabIndex,
|
|
14409
|
+
modelValue,
|
|
14410
|
+
radioGroup
|
|
14411
|
+
} = useRadio(props, emit);
|
|
14433
14412
|
const activeStyle = vue.computed(() => {
|
|
14434
14413
|
return {
|
|
14435
|
-
backgroundColor: radioGroup.fill || "",
|
|
14436
|
-
borderColor: radioGroup.fill || "",
|
|
14437
|
-
boxShadow: radioGroup.fill ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
14438
|
-
color: radioGroup.textColor || ""
|
|
14414
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
14415
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
14416
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
14417
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
14439
14418
|
};
|
|
14440
14419
|
});
|
|
14441
14420
|
return {
|
|
14442
14421
|
isGroup,
|
|
14443
14422
|
size,
|
|
14444
|
-
|
|
14423
|
+
disabled,
|
|
14445
14424
|
tabIndex,
|
|
14446
|
-
|
|
14425
|
+
modelValue,
|
|
14447
14426
|
focus,
|
|
14448
14427
|
activeStyle,
|
|
14449
14428
|
radioRef
|
|
@@ -14458,34 +14437,34 @@
|
|
|
14458
14437
|
class: vue.normalizeClass(["el-radio-button", [
|
|
14459
14438
|
_ctx.size ? "el-radio-button--" + _ctx.size : "",
|
|
14460
14439
|
{
|
|
14461
|
-
"is-active": _ctx.
|
|
14462
|
-
"is-disabled": _ctx.
|
|
14440
|
+
"is-active": _ctx.modelValue === _ctx.label,
|
|
14441
|
+
"is-disabled": _ctx.disabled,
|
|
14463
14442
|
"is-focus": _ctx.focus
|
|
14464
14443
|
}
|
|
14465
14444
|
]]),
|
|
14466
14445
|
role: "radio",
|
|
14467
|
-
"aria-checked": _ctx.
|
|
14468
|
-
"aria-disabled": _ctx.
|
|
14446
|
+
"aria-checked": _ctx.modelValue === _ctx.label,
|
|
14447
|
+
"aria-disabled": _ctx.disabled,
|
|
14469
14448
|
tabindex: _ctx.tabIndex,
|
|
14470
|
-
onKeydown: _cache[4] || (_cache[4] = vue.withKeys(vue.withModifiers(($event) => _ctx.
|
|
14449
|
+
onKeydown: _cache[4] || (_cache[4] = vue.withKeys(vue.withModifiers(($event) => _ctx.modelValue = _ctx.disabled ? _ctx.modelValue : _ctx.label, ["stop", "prevent"]), ["space"]))
|
|
14471
14450
|
}, [
|
|
14472
14451
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
14473
14452
|
ref: "radioRef",
|
|
14474
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
14453
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.modelValue = $event),
|
|
14475
14454
|
class: "el-radio-button__original-radio",
|
|
14476
14455
|
value: _ctx.label,
|
|
14477
14456
|
type: "radio",
|
|
14478
14457
|
name: _ctx.name,
|
|
14479
|
-
disabled: _ctx.
|
|
14458
|
+
disabled: _ctx.disabled,
|
|
14480
14459
|
tabindex: "-1",
|
|
14481
14460
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.focus = true),
|
|
14482
14461
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.focus = false)
|
|
14483
14462
|
}, null, 40, _hoisted_2$K), [
|
|
14484
|
-
[vue.vModelRadio, _ctx.
|
|
14463
|
+
[vue.vModelRadio, _ctx.modelValue]
|
|
14485
14464
|
]),
|
|
14486
14465
|
vue.createElementVNode("span", {
|
|
14487
14466
|
class: "el-radio-button__inner",
|
|
14488
|
-
style: vue.normalizeStyle(_ctx.
|
|
14467
|
+
style: vue.normalizeStyle(_ctx.modelValue === _ctx.label ? _ctx.activeStyle : {}),
|
|
14489
14468
|
onKeydown: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
14490
14469
|
}, ["stop"]))
|
|
14491
14470
|
}, [
|
|
@@ -14499,58 +14478,43 @@
|
|
|
14499
14478
|
script$1x.render = render$1q;
|
|
14500
14479
|
script$1x.__file = "packages/components/radio/src/radio-button.vue";
|
|
14501
14480
|
|
|
14481
|
+
const radioGroupProps = buildProps({
|
|
14482
|
+
...useFormItemProps,
|
|
14483
|
+
modelValue: {
|
|
14484
|
+
type: [String, Number, Boolean],
|
|
14485
|
+
default: ""
|
|
14486
|
+
},
|
|
14487
|
+
fill: {
|
|
14488
|
+
type: String,
|
|
14489
|
+
default: ""
|
|
14490
|
+
},
|
|
14491
|
+
textColor: {
|
|
14492
|
+
type: String,
|
|
14493
|
+
default: ""
|
|
14494
|
+
}
|
|
14495
|
+
});
|
|
14496
|
+
const radioGroupEmits = radioEmits;
|
|
14497
|
+
|
|
14502
14498
|
var script$1w = vue.defineComponent({
|
|
14503
14499
|
name: "ElRadioGroup",
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
modelValue: {
|
|
14507
|
-
type: [String, Number, Boolean],
|
|
14508
|
-
default: ""
|
|
14509
|
-
},
|
|
14510
|
-
size: {
|
|
14511
|
-
type: String,
|
|
14512
|
-
validator: isValidComponentSize
|
|
14513
|
-
},
|
|
14514
|
-
fill: {
|
|
14515
|
-
type: String,
|
|
14516
|
-
default: ""
|
|
14517
|
-
},
|
|
14518
|
-
textColor: {
|
|
14519
|
-
type: String,
|
|
14520
|
-
default: ""
|
|
14521
|
-
},
|
|
14522
|
-
disabled: Boolean
|
|
14523
|
-
},
|
|
14524
|
-
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
14500
|
+
props: radioGroupProps,
|
|
14501
|
+
emits: radioGroupEmits,
|
|
14525
14502
|
setup(props, ctx) {
|
|
14526
|
-
const
|
|
14527
|
-
const
|
|
14528
|
-
const radioGroupSize = vue.computed(() => {
|
|
14529
|
-
return props.size || elFormItem.size;
|
|
14530
|
-
});
|
|
14503
|
+
const radioGroupRef = vue.ref();
|
|
14504
|
+
const { size, disabled, formItem } = useFormItem({});
|
|
14531
14505
|
const changeEvent = (value) => {
|
|
14532
14506
|
ctx.emit(UPDATE_MODEL_EVENT, value);
|
|
14533
|
-
vue.nextTick(() =>
|
|
14534
|
-
ctx.emit("change", value);
|
|
14535
|
-
});
|
|
14507
|
+
vue.nextTick(() => ctx.emit("change", value));
|
|
14536
14508
|
};
|
|
14537
|
-
vue.provide(radioGroupKey$1, vue.reactive({
|
|
14538
|
-
name: "ElRadioGroup",
|
|
14539
|
-
...vue.toRefs(props),
|
|
14540
|
-
radioGroupSize,
|
|
14541
|
-
changeEvent
|
|
14542
|
-
}));
|
|
14543
|
-
vue.watch(() => props.modelValue, () => {
|
|
14544
|
-
var _a;
|
|
14545
|
-
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
14546
|
-
});
|
|
14547
14509
|
const handleKeydown = (e) => {
|
|
14510
|
+
if (!radioGroupRef.value)
|
|
14511
|
+
return;
|
|
14548
14512
|
const target = e.target;
|
|
14549
14513
|
const className = target.nodeName === "INPUT" ? "[type=radio]" : "[role=radio]";
|
|
14550
|
-
const radios =
|
|
14514
|
+
const radios = radioGroupRef.value.querySelectorAll(className);
|
|
14551
14515
|
const length = radios.length;
|
|
14552
14516
|
const index = Array.from(radios).indexOf(target);
|
|
14553
|
-
const roleRadios =
|
|
14517
|
+
const roleRadios = radioGroupRef.value.querySelectorAll("[role=radio]");
|
|
14554
14518
|
let nextIndex = null;
|
|
14555
14519
|
switch (e.code) {
|
|
14556
14520
|
case EVENT_CODE.left:
|
|
@@ -14572,23 +14536,29 @@
|
|
|
14572
14536
|
roleRadios[nextIndex].focus();
|
|
14573
14537
|
};
|
|
14574
14538
|
vue.onMounted(() => {
|
|
14575
|
-
const radios =
|
|
14539
|
+
const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
|
|
14576
14540
|
const firstLabel = radios[0];
|
|
14577
14541
|
if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
|
|
14578
14542
|
firstLabel.tabIndex = 0;
|
|
14579
14543
|
}
|
|
14580
14544
|
});
|
|
14545
|
+
vue.provide(radioGroupKey, vue.reactive({
|
|
14546
|
+
...vue.toRefs(props),
|
|
14547
|
+
changeEvent
|
|
14548
|
+
}));
|
|
14549
|
+
vue.watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
|
|
14581
14550
|
return {
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14551
|
+
size,
|
|
14552
|
+
disabled,
|
|
14553
|
+
radioGroupRef,
|
|
14554
|
+
handleKeydown
|
|
14585
14555
|
};
|
|
14586
14556
|
}
|
|
14587
14557
|
});
|
|
14588
14558
|
|
|
14589
14559
|
function render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14590
14560
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
14591
|
-
ref: "
|
|
14561
|
+
ref: "radioGroupRef",
|
|
14592
14562
|
class: "el-radio-group",
|
|
14593
14563
|
role: "radiogroup",
|
|
14594
14564
|
onKeydown: _cache[0] || (_cache[0] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
|
|
@@ -14980,7 +14950,7 @@
|
|
|
14980
14950
|
const { data, config, childrenData, loaded } = this;
|
|
14981
14951
|
const { lazy, leaf } = config;
|
|
14982
14952
|
const isLeaf = isFunction$3(leaf) ? leaf(data, this) : data[leaf];
|
|
14983
|
-
return isUndefined(isLeaf) ? lazy && !loaded ? false : !Array.isArray(childrenData) : !!isLeaf;
|
|
14953
|
+
return isUndefined(isLeaf) ? lazy && !loaded ? false : !(Array.isArray(childrenData) && childrenData.length) : !!isLeaf;
|
|
14984
14954
|
}
|
|
14985
14955
|
get valueByOption() {
|
|
14986
14956
|
return this.config.emitPath ? this.pathValues : this.value;
|
|
@@ -28729,89 +28699,111 @@
|
|
|
28729
28699
|
const _Progress = script$C;
|
|
28730
28700
|
const ElProgress = _Progress;
|
|
28731
28701
|
|
|
28702
|
+
const rateProps = buildProps({
|
|
28703
|
+
modelValue: {
|
|
28704
|
+
type: Number,
|
|
28705
|
+
default: 0
|
|
28706
|
+
},
|
|
28707
|
+
lowThreshold: {
|
|
28708
|
+
type: Number,
|
|
28709
|
+
default: 2
|
|
28710
|
+
},
|
|
28711
|
+
highThreshold: {
|
|
28712
|
+
type: Number,
|
|
28713
|
+
default: 4
|
|
28714
|
+
},
|
|
28715
|
+
max: {
|
|
28716
|
+
type: Number,
|
|
28717
|
+
default: 5
|
|
28718
|
+
},
|
|
28719
|
+
colors: {
|
|
28720
|
+
type: definePropType([Array, Object]),
|
|
28721
|
+
default: () => mutable(["#F7BA2A", "#F7BA2A", "#F7BA2A"])
|
|
28722
|
+
},
|
|
28723
|
+
voidColor: {
|
|
28724
|
+
type: String,
|
|
28725
|
+
default: "#C6D1DE"
|
|
28726
|
+
},
|
|
28727
|
+
disabledVoidColor: {
|
|
28728
|
+
type: String,
|
|
28729
|
+
default: "#EFF2F7"
|
|
28730
|
+
},
|
|
28731
|
+
icons: {
|
|
28732
|
+
type: definePropType([Array, Object]),
|
|
28733
|
+
default: () => [StarFilled, StarFilled, StarFilled]
|
|
28734
|
+
},
|
|
28735
|
+
voidIcon: {
|
|
28736
|
+
type: definePropType([String, Object]),
|
|
28737
|
+
default: () => Star
|
|
28738
|
+
},
|
|
28739
|
+
disabledvoidIcon: {
|
|
28740
|
+
type: definePropType([String, Object]),
|
|
28741
|
+
default: () => StarFilled
|
|
28742
|
+
},
|
|
28743
|
+
disabled: {
|
|
28744
|
+
type: Boolean,
|
|
28745
|
+
default: false
|
|
28746
|
+
},
|
|
28747
|
+
allowHalf: {
|
|
28748
|
+
type: Boolean,
|
|
28749
|
+
default: false
|
|
28750
|
+
},
|
|
28751
|
+
showText: {
|
|
28752
|
+
type: Boolean,
|
|
28753
|
+
default: false
|
|
28754
|
+
},
|
|
28755
|
+
showScore: {
|
|
28756
|
+
type: Boolean,
|
|
28757
|
+
default: false
|
|
28758
|
+
},
|
|
28759
|
+
textColor: {
|
|
28760
|
+
type: String,
|
|
28761
|
+
default: "#1f2d3d"
|
|
28762
|
+
},
|
|
28763
|
+
texts: {
|
|
28764
|
+
type: definePropType([Array]),
|
|
28765
|
+
default: () => mutable([
|
|
28766
|
+
"Extremely bad",
|
|
28767
|
+
"Disappointed",
|
|
28768
|
+
"Fair",
|
|
28769
|
+
"Satisfied",
|
|
28770
|
+
"Surprise"
|
|
28771
|
+
])
|
|
28772
|
+
},
|
|
28773
|
+
scoreTemplate: {
|
|
28774
|
+
type: String,
|
|
28775
|
+
default: "{value}"
|
|
28776
|
+
}
|
|
28777
|
+
});
|
|
28778
|
+
const rateEmits = {
|
|
28779
|
+
change: (value) => typeof value === "number",
|
|
28780
|
+
[UPDATE_MODEL_EVENT]: (value) => typeof value === "number"
|
|
28781
|
+
};
|
|
28782
|
+
|
|
28783
|
+
function getValueFromMap(value, map) {
|
|
28784
|
+
const isExcludedObject = (val) => isObject$a(val);
|
|
28785
|
+
const matchedKeys = Object.keys(map).map((key) => +key).filter((key) => {
|
|
28786
|
+
const val = map[key];
|
|
28787
|
+
const excluded = isExcludedObject(val) ? val.excluded : false;
|
|
28788
|
+
return excluded ? value < key : value <= key;
|
|
28789
|
+
}).sort((a, b) => a - b);
|
|
28790
|
+
const matchedValue = map[matchedKeys[0]];
|
|
28791
|
+
return isExcludedObject(matchedValue) ? matchedValue.value : matchedValue;
|
|
28792
|
+
}
|
|
28732
28793
|
var script$B = vue.defineComponent({
|
|
28733
28794
|
name: "ElRate",
|
|
28734
|
-
components: {
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
|
|
28738
|
-
default: 0
|
|
28739
|
-
},
|
|
28740
|
-
lowThreshold: {
|
|
28741
|
-
type: Number,
|
|
28742
|
-
default: 2
|
|
28743
|
-
},
|
|
28744
|
-
highThreshold: {
|
|
28745
|
-
type: Number,
|
|
28746
|
-
default: 4
|
|
28747
|
-
},
|
|
28748
|
-
max: {
|
|
28749
|
-
type: Number,
|
|
28750
|
-
default: 5
|
|
28751
|
-
},
|
|
28752
|
-
colors: {
|
|
28753
|
-
type: [Array, Object],
|
|
28754
|
-
default: () => ["#F7BA2A", "#F7BA2A", "#F7BA2A"]
|
|
28755
|
-
},
|
|
28756
|
-
voidColor: {
|
|
28757
|
-
type: String,
|
|
28758
|
-
default: "#C6D1DE"
|
|
28759
|
-
},
|
|
28760
|
-
disabledVoidColor: {
|
|
28761
|
-
type: String,
|
|
28762
|
-
default: "#EFF2F7"
|
|
28763
|
-
},
|
|
28764
|
-
icons: {
|
|
28765
|
-
type: [Array, Object],
|
|
28766
|
-
default: () => [StarFilled, StarFilled, StarFilled]
|
|
28767
|
-
},
|
|
28768
|
-
voidIcon: {
|
|
28769
|
-
type: [String, Object],
|
|
28770
|
-
default: Star
|
|
28771
|
-
},
|
|
28772
|
-
disabledvoidIcon: {
|
|
28773
|
-
type: [String, Object],
|
|
28774
|
-
default: StarFilled
|
|
28775
|
-
},
|
|
28776
|
-
disabled: {
|
|
28777
|
-
type: Boolean,
|
|
28778
|
-
default: false
|
|
28779
|
-
},
|
|
28780
|
-
allowHalf: {
|
|
28781
|
-
type: Boolean,
|
|
28782
|
-
default: false
|
|
28783
|
-
},
|
|
28784
|
-
showText: {
|
|
28785
|
-
type: Boolean,
|
|
28786
|
-
default: false
|
|
28787
|
-
},
|
|
28788
|
-
showScore: {
|
|
28789
|
-
type: Boolean,
|
|
28790
|
-
default: false
|
|
28791
|
-
},
|
|
28792
|
-
textColor: {
|
|
28793
|
-
type: String,
|
|
28794
|
-
default: "#1f2d3d"
|
|
28795
|
-
},
|
|
28796
|
-
texts: {
|
|
28797
|
-
type: Array,
|
|
28798
|
-
default: () => [
|
|
28799
|
-
"Extremely bad",
|
|
28800
|
-
"Disappointed",
|
|
28801
|
-
"Fair",
|
|
28802
|
-
"Satisfied",
|
|
28803
|
-
"Surprise"
|
|
28804
|
-
]
|
|
28805
|
-
},
|
|
28806
|
-
scoreTemplate: {
|
|
28807
|
-
type: String,
|
|
28808
|
-
default: "{value}"
|
|
28809
|
-
}
|
|
28795
|
+
components: {
|
|
28796
|
+
ElIcon,
|
|
28797
|
+
StarFilled,
|
|
28798
|
+
Star
|
|
28810
28799
|
},
|
|
28811
|
-
|
|
28800
|
+
props: rateProps,
|
|
28801
|
+
emits: rateEmits,
|
|
28812
28802
|
setup(props, { emit }) {
|
|
28813
28803
|
const elForm = vue.inject(elFormKey, {});
|
|
28814
28804
|
const currentValue = vue.ref(props.modelValue);
|
|
28805
|
+
const hoverIndex = vue.ref(-1);
|
|
28806
|
+
const pointerAtLeftHalf = vue.ref(true);
|
|
28815
28807
|
const rateDisabled = vue.computed(() => props.disabled || elForm.disabled);
|
|
28816
28808
|
const text = vue.computed(() => {
|
|
28817
28809
|
let result = "";
|
|
@@ -28822,15 +28814,6 @@
|
|
|
28822
28814
|
}
|
|
28823
28815
|
return result;
|
|
28824
28816
|
});
|
|
28825
|
-
function getValueFromMap(value, map) {
|
|
28826
|
-
const matchedKeys = Object.keys(map).filter((key) => {
|
|
28827
|
-
const val = map[key];
|
|
28828
|
-
const excluded = isObject$a(val) ? val.excluded : false;
|
|
28829
|
-
return excluded ? value < key : value <= key;
|
|
28830
|
-
}).sort((a, b) => a - b);
|
|
28831
|
-
const matchedValue = map[matchedKeys[0]];
|
|
28832
|
-
return isObject$a(matchedValue) ? matchedValue.value || matchedValue : matchedValue || "";
|
|
28833
|
-
}
|
|
28834
28817
|
const valueDecimal = vue.computed(() => props.modelValue * 100 - Math.floor(props.modelValue) * 100);
|
|
28835
28818
|
const colorMap = vue.computed(() => isArray$6(props.colors) ? {
|
|
28836
28819
|
[props.lowThreshold]: props.colors[0],
|
|
@@ -28868,11 +28851,6 @@
|
|
|
28868
28851
|
result.fill(voidComponent.value, threshold, props.max);
|
|
28869
28852
|
return result;
|
|
28870
28853
|
});
|
|
28871
|
-
const pointerAtLeftHalf = vue.ref(true);
|
|
28872
|
-
vue.watch(() => props.modelValue, (val) => {
|
|
28873
|
-
currentValue.value = val;
|
|
28874
|
-
pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue);
|
|
28875
|
-
});
|
|
28876
28854
|
function showDecimalIcon(item) {
|
|
28877
28855
|
const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
|
|
28878
28856
|
const showWhenAllowHalf = props.allowHalf && pointerAtLeftHalf.value && item - 0.5 <= currentValue.value && item > currentValue.value;
|
|
@@ -28929,7 +28907,6 @@
|
|
|
28929
28907
|
emit("change", _currentValue);
|
|
28930
28908
|
return _currentValue;
|
|
28931
28909
|
}
|
|
28932
|
-
const hoverIndex = vue.ref(-1);
|
|
28933
28910
|
function setCurrentValue(value, event) {
|
|
28934
28911
|
if (rateDisabled.value) {
|
|
28935
28912
|
return;
|
|
@@ -28959,6 +28936,10 @@
|
|
|
28959
28936
|
currentValue.value = props.modelValue;
|
|
28960
28937
|
hoverIndex.value = -1;
|
|
28961
28938
|
}
|
|
28939
|
+
vue.watch(() => props.modelValue, (val) => {
|
|
28940
|
+
currentValue.value = val;
|
|
28941
|
+
pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue);
|
|
28942
|
+
});
|
|
28962
28943
|
if (!props.modelValue) {
|
|
28963
28944
|
emit(UPDATE_MODEL_EVENT, 0);
|
|
28964
28945
|
}
|
|
@@ -29033,13 +29014,9 @@
|
|
|
29033
29014
|
}
|
|
29034
29015
|
|
|
29035
29016
|
script$B.render = render$v;
|
|
29036
|
-
script$B.__file = "packages/components/rate/src/
|
|
29017
|
+
script$B.__file = "packages/components/rate/src/rate.vue";
|
|
29037
29018
|
|
|
29038
|
-
|
|
29039
|
-
app.component(script$B.name, script$B);
|
|
29040
|
-
};
|
|
29041
|
-
const _Rate = script$B;
|
|
29042
|
-
const ElRate = _Rate;
|
|
29019
|
+
const ElRate = withInstall(script$B);
|
|
29043
29020
|
|
|
29044
29021
|
const IconMap = {
|
|
29045
29022
|
success: "icon-success",
|
|
@@ -29053,22 +29030,24 @@
|
|
|
29053
29030
|
[IconMap.error]: CircleCloseFilled,
|
|
29054
29031
|
[IconMap.info]: InfoFilled
|
|
29055
29032
|
};
|
|
29033
|
+
const resultProps = buildProps({
|
|
29034
|
+
title: {
|
|
29035
|
+
type: String,
|
|
29036
|
+
default: ""
|
|
29037
|
+
},
|
|
29038
|
+
subTitle: {
|
|
29039
|
+
type: String,
|
|
29040
|
+
default: ""
|
|
29041
|
+
},
|
|
29042
|
+
icon: {
|
|
29043
|
+
values: ["success", "warning", "info", "error"],
|
|
29044
|
+
default: "info"
|
|
29045
|
+
}
|
|
29046
|
+
});
|
|
29047
|
+
|
|
29056
29048
|
var script$A = vue.defineComponent({
|
|
29057
29049
|
name: "ElResult",
|
|
29058
|
-
props:
|
|
29059
|
-
title: {
|
|
29060
|
-
type: String,
|
|
29061
|
-
default: ""
|
|
29062
|
-
},
|
|
29063
|
-
subTitle: {
|
|
29064
|
-
type: String,
|
|
29065
|
-
default: ""
|
|
29066
|
-
},
|
|
29067
|
-
icon: {
|
|
29068
|
-
type: String,
|
|
29069
|
-
default: "info"
|
|
29070
|
-
}
|
|
29071
|
-
},
|
|
29050
|
+
props: resultProps,
|
|
29072
29051
|
setup(props) {
|
|
29073
29052
|
const resultIcon = vue.computed(() => {
|
|
29074
29053
|
const icon = props.icon;
|
|
@@ -29126,34 +29105,33 @@
|
|
|
29126
29105
|
}
|
|
29127
29106
|
|
|
29128
29107
|
script$A.render = render$u;
|
|
29129
|
-
script$A.__file = "packages/components/result/src/
|
|
29108
|
+
script$A.__file = "packages/components/result/src/result.vue";
|
|
29130
29109
|
|
|
29131
|
-
|
|
29132
|
-
app.component(script$A.name, script$A);
|
|
29133
|
-
};
|
|
29134
|
-
const _Result = script$A;
|
|
29135
|
-
const ElResult = _Result;
|
|
29110
|
+
const ElResult = withInstall(script$A);
|
|
29136
29111
|
|
|
29112
|
+
const rowProps = buildProps({
|
|
29113
|
+
tag: {
|
|
29114
|
+
type: String,
|
|
29115
|
+
default: "div"
|
|
29116
|
+
},
|
|
29117
|
+
gutter: {
|
|
29118
|
+
type: Number,
|
|
29119
|
+
default: 0
|
|
29120
|
+
},
|
|
29121
|
+
justify: {
|
|
29122
|
+
type: String,
|
|
29123
|
+
values: ["start", "center", "end", "space-around", "space-between"],
|
|
29124
|
+
default: "start"
|
|
29125
|
+
},
|
|
29126
|
+
align: {
|
|
29127
|
+
type: String,
|
|
29128
|
+
values: ["top", "middle", "bottom"],
|
|
29129
|
+
default: "top"
|
|
29130
|
+
}
|
|
29131
|
+
});
|
|
29137
29132
|
var Row = vue.defineComponent({
|
|
29138
29133
|
name: "ElRow",
|
|
29139
|
-
props:
|
|
29140
|
-
tag: {
|
|
29141
|
-
type: String,
|
|
29142
|
-
default: "div"
|
|
29143
|
-
},
|
|
29144
|
-
gutter: {
|
|
29145
|
-
type: Number,
|
|
29146
|
-
default: 0
|
|
29147
|
-
},
|
|
29148
|
-
justify: {
|
|
29149
|
-
type: String,
|
|
29150
|
-
default: "start"
|
|
29151
|
-
},
|
|
29152
|
-
align: {
|
|
29153
|
-
type: String,
|
|
29154
|
-
default: "top"
|
|
29155
|
-
}
|
|
29156
|
-
},
|
|
29134
|
+
props: rowProps,
|
|
29157
29135
|
setup(props, { slots }) {
|
|
29158
29136
|
const gutter = vue.computed(() => props.gutter);
|
|
29159
29137
|
vue.provide("ElRow", {
|
|
@@ -29184,11 +29162,7 @@
|
|
|
29184
29162
|
}
|
|
29185
29163
|
});
|
|
29186
29164
|
|
|
29187
|
-
const
|
|
29188
|
-
_Row.install = (app) => {
|
|
29189
|
-
app.component(_Row.name, _Row);
|
|
29190
|
-
};
|
|
29191
|
-
const ElRow = _Row;
|
|
29165
|
+
const ElRow = withInstall(Row);
|
|
29192
29166
|
|
|
29193
29167
|
var MapCache = _MapCache;
|
|
29194
29168
|
|
|
@@ -46109,6 +46083,8 @@
|
|
|
46109
46083
|
exports.ElUpload = ElUpload;
|
|
46110
46084
|
exports.FixedSizeGrid = FixedSizeGrid$3;
|
|
46111
46085
|
exports.FixedSizeList = FixedSizeList$1;
|
|
46086
|
+
exports.IconComponentMap = IconComponentMap;
|
|
46087
|
+
exports.IconMap = IconMap;
|
|
46112
46088
|
exports.LIGHT_EFFECT = LIGHT_EFFECT;
|
|
46113
46089
|
exports.LocaleInjectionKey = LocaleInjectionKey;
|
|
46114
46090
|
exports.Mousewheel = Mousewheel;
|
|
@@ -46181,11 +46157,22 @@
|
|
|
46181
46157
|
exports.popconfirmEmits = popconfirmEmits;
|
|
46182
46158
|
exports.popconfirmProps = popconfirmProps;
|
|
46183
46159
|
exports.popperDefaultProps = popperDefaultProps;
|
|
46160
|
+
exports.radioButtonProps = radioButtonProps;
|
|
46161
|
+
exports.radioEmits = radioEmits;
|
|
46162
|
+
exports.radioGroupEmits = radioGroupEmits;
|
|
46163
|
+
exports.radioGroupKey = radioGroupKey;
|
|
46164
|
+
exports.radioGroupProps = radioGroupProps;
|
|
46165
|
+
exports.radioProps = radioProps;
|
|
46166
|
+
exports.radioPropsBase = radioPropsBase;
|
|
46184
46167
|
exports.rangeArr = rangeArr;
|
|
46168
|
+
exports.rateEmits = rateEmits;
|
|
46169
|
+
exports.rateProps = rateProps;
|
|
46185
46170
|
exports.renderArrow = renderArrow;
|
|
46186
46171
|
exports.renderPopper = renderPopper;
|
|
46187
46172
|
exports.renderThumbStyle = renderThumbStyle$1;
|
|
46188
46173
|
exports.renderTrigger = renderTrigger;
|
|
46174
|
+
exports.resultProps = resultProps;
|
|
46175
|
+
exports.rowProps = rowProps;
|
|
46189
46176
|
exports.selectGroupKey = selectGroupKey;
|
|
46190
46177
|
exports.selectKey = selectKey;
|
|
46191
46178
|
exports.selectV2InjectionKey = selectV2InjectionKey;
|
|
@@ -46218,6 +46205,7 @@
|
|
|
46218
46205
|
exports.usePopperHook = usePopperHook;
|
|
46219
46206
|
exports.usePopperProps = usePopperProps;
|
|
46220
46207
|
exports.usePreventGlobal = usePreventGlobal;
|
|
46208
|
+
exports.useRadio = useRadio;
|
|
46221
46209
|
exports.useRestoreActive = useRestoreActive;
|
|
46222
46210
|
exports.useSameTarget = useSameTarget;
|
|
46223
46211
|
exports.useSpace = useSpace;
|