element-plus 1.2.0-beta.4 → 1.2.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.full.js +1149 -988
- package/dist/index.full.min.js +9 -9
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1145 -982
- package/es/components/autocomplete/src/index.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/calendar/index.d.ts +2 -2
- package/es/components/calendar/src/date-table.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/calendar/src/date-table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue_vue_type_template_id_297fdb36_lang.mjs.map +1 -1
- package/es/components/calendar/src/index.vue.d.ts +1 -1
- package/es/components/calendar/src/index.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/calendar/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/calendar/src/index.vue_vue_type_template_id_819aa44a_lang.mjs.map +1 -1
- package/es/components/carousel/src/item.vue_vue_type_script_lang.mjs +0 -1
- package/es/components/carousel/src/item.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/carousel/src/item.vue_vue_type_template_id_3d2e4fb8_lang.mjs.map +1 -1
- package/es/components/cascader/src/index.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/cascader/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue_vue_type_script_lang.mjs +13 -18
- package/es/components/cascader-panel/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue_vue_type_template_id_97c48f5c_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/es/components/cascader-panel/src/menu.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/cascader-panel/src/menu.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.vue_vue_type_template_id_9c79e4e2_lang.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +2 -2
- package/es/components/color-picker/src/index.vue.d.ts +1 -1
- package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs.map +1 -1
- package/es/components/config-provider/index.d.ts +2 -1
- package/es/components/config-provider/index.mjs +1 -0
- package/es/components/config-provider/index.mjs.map +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +1 -1
- package/es/components/config-provider/src/index.d.ts +1 -1
- package/es/components/config-provider/src/index.mjs +2 -2
- package/es/components/config-provider/src/index.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue_vue_type_template_id_0572814e_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-month-table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.vue_vue_type_template_id_2f6fcbf2_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-year-table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.vue_vue_type_template_id_441df31d_lang.mjs.map +1 -1
- 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-pick.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_template_id_78e07aa7_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_template_id_62b45ab2_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue_vue_type_template_id_2e377892_lang.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.mjs +4 -4
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +1 -1
- package/es/components/empty/src/empty.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/empty/src/empty.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.mjs.map +1 -1
- package/es/components/image/index.d.ts +1 -1
- package/es/components/image/src/image.vue.d.ts +1 -1
- package/es/components/image/src/image.vue_vue_type_script_lang.mjs +3 -3
- package/es/components/image/src/image.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/image/src/image.vue_vue_type_template_id_34467287_lang.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue_vue_type_template_id_4b22ad85_lang.mjs.map +1 -1
- package/es/components/index.mjs +1 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/src/input.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/menu/src/menu-collapse-transition.vue_vue_type_script_lang.mjs +1 -2
- package/es/components/menu/src/menu-collapse-transition.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/menu/src/menu-collapse-transition.vue_vue_type_template_id_db8e3ce6_lang.mjs.map +1 -1
- package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs +8 -8
- package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/message-box/src/index.vue_vue_type_template_id_7035e868_lang.mjs +2 -0
- package/es/components/message-box/src/index.vue_vue_type_template_id_7035e868_lang.mjs.map +1 -1
- package/es/components/page-header/index.d.ts +1 -1
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- package/es/components/page-header/src/page-header.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/page-header/src/page-header.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/page-header/src/page-header.vue_vue_type_template_id_d12fb4b2_lang.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/pagination/src/components/jumper.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue_vue_type_template_id_772239ce_lang.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/pagination/src/components/sizes.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue_vue_type_template_id_3a063678_lang.mjs.map +1 -1
- package/es/components/pagination/src/components/total.vue.d.ts +1 -1
- package/es/components/pagination/src/components/total.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/pagination/src/components/total.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/pagination/src/components/total.vue_vue_type_template_id_bc261314_lang.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs.map +1 -1
- package/es/components/popper/src/use-popper/defaults.mjs +1 -1
- package/es/components/popper/src/use-popper/index.d.ts +1 -1538
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_template_id_303f965d_lang.mjs.map +1 -1
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs +3 -3
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +3 -3
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +2 -2
- package/es/components/select-v2/src/select.vue.d.ts +1 -1
- package/es/components/select-v2/src/useSelect.mjs +2 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs.map +1 -1
- package/es/components/table/src/table-body/index.d.ts +1 -1
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +1 -1
- package/es/components/table/src/table.vue.d.ts +5 -13
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/table/src/table.vue_vue_type_template_id_4a1660ad_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_template_id_3b3cfa6a_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_template_id_57d94b44_lang.mjs.map +1 -1
- package/es/components/transfer/src/index.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/transfer/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/transfer/src/index.vue_vue_type_template_id_6c8b9070_lang.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +1 -1
- package/es/components/transfer/src/transfer-panel.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/transfer/src/transfer-panel.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue_vue_type_template_id_1a7d1f9c_lang.mjs.map +1 -1
- package/es/components/tree/index.d.ts +2 -2
- package/es/components/tree/src/tree.vue.d.ts +1 -1
- package/es/components/tree/src/tree.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/tree/src/tree.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/tree/src/tree.vue_vue_type_template_id_7539bec5_lang.mjs.map +1 -1
- package/es/components/tree-v2/index.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/tree-v2/src/tree.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/tree-v2/src/tree.vue_vue_type_template_id_5b45a1b2_lang.mjs.map +1 -1
- package/es/components/tree-v2/src/virtual-tree.mjs +4 -4
- package/es/components/upload/src/upload-list.vue.d.ts +1 -1
- package/es/components/upload/src/upload-list.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/upload/src/upload-list.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/upload/src/upload-list.vue_vue_type_template_id_192277b6_lang.mjs.map +1 -1
- package/es/hooks/index.d.ts +12 -15
- package/es/hooks/index.mjs +12 -15
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-attrs/index.d.ts +2 -2
- package/es/hooks/use-attrs/index.mjs +2 -2
- package/es/hooks/use-attrs/index.mjs.map +1 -1
- package/es/hooks/use-focus/index.d.ts +1 -2
- package/es/hooks/use-focus/index.mjs +2 -2
- package/es/hooks/use-focus/index.mjs.map +1 -1
- package/es/hooks/use-form-item/index.d.ts +1 -1
- package/es/hooks/use-form-item/index.mjs +3 -3
- package/es/hooks/use-form-item/index.mjs.map +1 -1
- package/es/hooks/use-global-config/index.d.ts +1 -1
- package/es/hooks/use-global-config/index.mjs +1 -3
- package/es/hooks/use-global-config/index.mjs.map +1 -1
- package/es/hooks/use-locale/index.d.ts +9 -7
- package/es/hooks/use-locale/index.mjs +18 -51
- package/es/hooks/use-locale/index.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.d.ts +1 -2
- package/es/hooks/use-lockscreen/index.mjs +19 -21
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/hooks/use-modal/index.d.ts +3 -3
- package/es/hooks/use-modal/index.mjs +6 -8
- package/es/hooks/use-modal/index.mjs.map +1 -1
- package/es/hooks/use-model-toggle/index.d.ts +3 -5
- package/es/hooks/use-model-toggle/index.mjs +9 -6
- package/es/hooks/use-model-toggle/index.mjs.map +1 -1
- package/es/hooks/use-popper/index.mjs +2 -2
- package/es/hooks/use-popper/index.mjs.map +1 -1
- package/es/hooks/use-prevent-global/index.d.ts +1 -2
- package/es/hooks/use-prevent-global/index.mjs +7 -7
- package/es/hooks/use-prevent-global/index.mjs.map +1 -1
- package/es/hooks/use-restore-active/index.d.ts +1 -2
- package/es/hooks/use-restore-active/index.mjs +2 -2
- package/es/hooks/use-restore-active/index.mjs.map +1 -1
- package/es/hooks/use-teleport/index.d.ts +1 -2
- package/es/hooks/use-teleport/index.mjs +4 -4
- package/es/hooks/use-teleport/index.mjs.map +1 -1
- package/es/hooks/use-throttle-render/index.d.ts +1 -1
- package/es/hooks/use-throttle-render/index.mjs +3 -3
- package/es/hooks/use-throttle-render/index.mjs.map +1 -1
- package/es/hooks/use-timeout/index.d.ts +2 -2
- package/es/hooks/use-timeout/index.mjs +10 -12
- package/es/hooks/use-timeout/index.mjs.map +1 -1
- package/es/hooks/use-transition-fallthrough/index.d.ts +1 -1
- package/es/hooks/use-transition-fallthrough/index.mjs.map +1 -1
- package/es/index.mjs +13 -15
- package/es/index.mjs.map +1 -1
- package/es/make-installer.mjs +2 -2
- package/es/make-installer.mjs.map +1 -1
- package/es/tokens/config-provider.d.ts +3 -3
- package/es/tokens/config-provider.mjs.map +1 -1
- package/es/utils/types.d.ts +25 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/index.vue_vue_type_script_lang.js +1 -1
- package/lib/components/calendar/index.d.ts +2 -2
- package/lib/components/calendar/src/date-table.vue_vue_type_script_lang.js +1 -1
- package/lib/components/calendar/src/date-table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue_vue_type_template_id_297fdb36_lang.js.map +1 -1
- package/lib/components/calendar/src/index.vue.d.ts +1 -1
- package/lib/components/calendar/src/index.vue_vue_type_script_lang.js +1 -1
- package/lib/components/calendar/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/calendar/src/index.vue_vue_type_template_id_819aa44a_lang.js.map +1 -1
- package/lib/components/carousel/src/item.vue_vue_type_script_lang.js +0 -1
- package/lib/components/carousel/src/item.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/carousel/src/item.vue_vue_type_template_id_3d2e4fb8_lang.js.map +1 -1
- package/lib/components/cascader/src/index.vue_vue_type_script_lang.js +1 -1
- package/lib/components/cascader/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_lang.js +13 -18
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue_vue_type_template_id_97c48f5c_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/lib/components/cascader-panel/src/menu.vue_vue_type_script_lang.js +1 -1
- package/lib/components/cascader-panel/src/menu.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.vue_vue_type_template_id_9c79e4e2_lang.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +2 -2
- package/lib/components/color-picker/src/index.vue.d.ts +1 -1
- package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js +1 -1
- package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js.map +1 -1
- package/lib/components/config-provider/index.d.ts +2 -1
- package/lib/components/config-provider/index.js +2 -0
- package/lib/components/config-provider/index.js.map +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +1 -1
- package/lib/components/config-provider/src/index.d.ts +1 -1
- package/lib/components/config-provider/src/index.js +1 -1
- package/lib/components/config-provider/src/index.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue_vue_type_script_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue_vue_type_template_id_0572814e_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue_vue_type_script_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue_vue_type_template_id_2f6fcbf2_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.vue_vue_type_script_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.vue_vue_type_template_id_441df31d_lang.js.map +1 -1
- 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-pick.vue_vue_type_script_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_template_id_78e07aa7_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_template_id_62b45ab2_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue_vue_type_script_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue_vue_type_template_id_2e377892_lang.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.js +3 -3
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +1 -1
- package/lib/components/empty/src/empty.vue_vue_type_script_lang.js +1 -1
- package/lib/components/empty/src/empty.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.js.map +1 -1
- package/lib/components/image/index.d.ts +1 -1
- package/lib/components/image/src/image.vue.d.ts +1 -1
- package/lib/components/image/src/image.vue_vue_type_script_lang.js +2 -2
- package/lib/components/image/src/image.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/image/src/image.vue_vue_type_template_id_34467287_lang.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue_vue_type_script_lang.js +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue_vue_type_template_id_4b22ad85_lang.js.map +1 -1
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/src/input.vue_vue_type_script_lang.js +1 -1
- package/lib/components/menu/src/menu-collapse-transition.vue_vue_type_script_lang.js +1 -2
- package/lib/components/menu/src/menu-collapse-transition.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/menu/src/menu-collapse-transition.vue_vue_type_template_id_db8e3ce6_lang.js.map +1 -1
- package/lib/components/message-box/src/index.vue_vue_type_script_lang.js +6 -6
- package/lib/components/message-box/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/message-box/src/index.vue_vue_type_template_id_7035e868_lang.js +2 -0
- package/lib/components/message-box/src/index.vue_vue_type_template_id_7035e868_lang.js.map +1 -1
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- package/lib/components/page-header/src/page-header.vue_vue_type_script_lang.js +1 -1
- package/lib/components/page-header/src/page-header.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/page-header/src/page-header.vue_vue_type_template_id_d12fb4b2_lang.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.vue_vue_type_script_lang.js +1 -1
- package/lib/components/pagination/src/components/jumper.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue_vue_type_template_id_772239ce_lang.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue_vue_type_script_lang.js +1 -1
- package/lib/components/pagination/src/components/sizes.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue_vue_type_template_id_3a063678_lang.js.map +1 -1
- package/lib/components/pagination/src/components/total.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/total.vue_vue_type_script_lang.js +1 -1
- package/lib/components/pagination/src/components/total.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/pagination/src/components/total.vue_vue_type_template_id_bc261314_lang.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js.map +1 -1
- package/lib/components/popper/src/use-popper/defaults.js +1 -1
- package/lib/components/popper/src/use-popper/index.d.ts +1 -1538
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_lang.js +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_template_id_303f965d_lang.js.map +1 -1
- package/lib/components/select/src/select.vue_vue_type_script_lang.js +2 -2
- package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js.map +1 -1
- package/lib/components/select/src/useSelect.js +2 -2
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +2 -2
- package/lib/components/select-v2/src/select.vue.d.ts +1 -1
- package/lib/components/select-v2/src/useSelect.js +1 -1
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.vue_vue_type_script_lang.js +1 -1
- package/lib/components/skeleton/src/skeleton.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js +1 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js.map +1 -1
- package/lib/components/table/src/table-body/index.d.ts +1 -1
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +1 -1
- package/lib/components/table/src/table.vue.d.ts +5 -13
- package/lib/components/table/src/table.vue_vue_type_script_lang.js +1 -1
- package/lib/components/table/src/table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/src/table.vue_vue_type_template_id_4a1660ad_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_script_lang.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_template_id_3b3cfa6a_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_script_lang.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_template_id_57d94b44_lang.js.map +1 -1
- package/lib/components/transfer/src/index.vue_vue_type_script_lang.js +1 -1
- package/lib/components/transfer/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/transfer/src/index.vue_vue_type_template_id_6c8b9070_lang.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +1 -1
- package/lib/components/transfer/src/transfer-panel.vue_vue_type_script_lang.js +1 -1
- package/lib/components/transfer/src/transfer-panel.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue_vue_type_template_id_1a7d1f9c_lang.js.map +1 -1
- package/lib/components/tree/index.d.ts +2 -2
- package/lib/components/tree/src/tree.vue.d.ts +1 -1
- package/lib/components/tree/src/tree.vue_vue_type_script_lang.js +1 -1
- package/lib/components/tree/src/tree.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/tree/src/tree.vue_vue_type_template_id_7539bec5_lang.js.map +1 -1
- package/lib/components/tree-v2/index.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue_vue_type_script_lang.js +1 -1
- package/lib/components/tree-v2/src/tree.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/tree-v2/src/tree.vue_vue_type_template_id_5b45a1b2_lang.js.map +1 -1
- package/lib/components/tree-v2/src/virtual-tree.js +4 -4
- package/lib/components/upload/src/upload-list.vue.d.ts +1 -1
- package/lib/components/upload/src/upload-list.vue_vue_type_script_lang.js +1 -1
- package/lib/components/upload/src/upload-list.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/upload/src/upload-list.vue_vue_type_template_id_192277b6_lang.js.map +1 -1
- package/lib/hooks/index.d.ts +12 -15
- package/lib/hooks/index.js +42 -48
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-attrs/index.d.ts +2 -2
- package/lib/hooks/use-attrs/index.js +2 -2
- package/lib/hooks/use-attrs/index.js.map +1 -1
- package/lib/hooks/use-focus/index.d.ts +1 -2
- package/lib/hooks/use-focus/index.js +2 -2
- package/lib/hooks/use-focus/index.js.map +1 -1
- package/lib/hooks/use-form-item/index.d.ts +1 -1
- package/lib/hooks/use-form-item/index.js +2 -2
- package/lib/hooks/use-form-item/index.js.map +1 -1
- package/lib/hooks/use-global-config/index.d.ts +1 -1
- package/lib/hooks/use-global-config/index.js +1 -3
- package/lib/hooks/use-global-config/index.js.map +1 -1
- package/lib/hooks/use-locale/index.d.ts +9 -7
- package/lib/hooks/use-locale/index.js +23 -50
- package/lib/hooks/use-locale/index.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.d.ts +1 -2
- package/lib/hooks/use-lockscreen/index.js +18 -20
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/hooks/use-modal/index.d.ts +3 -3
- package/lib/hooks/use-modal/index.js +6 -8
- package/lib/hooks/use-modal/index.js.map +1 -1
- package/lib/hooks/use-model-toggle/index.d.ts +3 -5
- package/lib/hooks/use-model-toggle/index.js +9 -6
- package/lib/hooks/use-model-toggle/index.js.map +1 -1
- package/lib/hooks/use-popper/index.js +2 -2
- package/lib/hooks/use-popper/index.js.map +1 -1
- package/lib/hooks/use-prevent-global/index.d.ts +1 -2
- package/lib/hooks/use-prevent-global/index.js +7 -7
- package/lib/hooks/use-prevent-global/index.js.map +1 -1
- package/lib/hooks/use-restore-active/index.d.ts +1 -2
- package/lib/hooks/use-restore-active/index.js +2 -2
- package/lib/hooks/use-restore-active/index.js.map +1 -1
- package/lib/hooks/use-teleport/index.d.ts +1 -2
- package/lib/hooks/use-teleport/index.js +4 -4
- package/lib/hooks/use-teleport/index.js.map +1 -1
- package/lib/hooks/use-throttle-render/index.d.ts +1 -1
- package/lib/hooks/use-throttle-render/index.js +3 -3
- package/lib/hooks/use-throttle-render/index.js.map +1 -1
- package/lib/hooks/use-timeout/index.d.ts +2 -2
- package/lib/hooks/use-timeout/index.js +10 -12
- package/lib/hooks/use-timeout/index.js.map +1 -1
- package/lib/hooks/use-transition-fallthrough/index.d.ts +1 -1
- package/lib/hooks/use-transition-fallthrough/index.js.map +1 -1
- package/lib/index.js +46 -50
- package/lib/index.js.map +1 -1
- package/lib/make-installer.js +1 -1
- package/lib/make-installer.js.map +1 -1
- package/lib/tokens/config-provider.d.ts +3 -3
- package/lib/tokens/config-provider.js.map +1 -1
- package/lib/utils/types.d.ts +25 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/theme-chalk/el-dropdown.css +1 -1
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/el-tag.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/dropdown.scss +2 -0
- package/theme-chalk/src/input.scss +4 -0
- package/theme-chalk/src/tag.scss +4 -1
- package/web-types.json +1 -1
- package/es/components/cascader/index.d.ts +0 -8748
- package/es/components/cascader/src/index.vue.d.ts +0 -4380
- package/es/components/message-box/src/index.vue.d.ts +0 -1838
- package/es/components/popper/index.d.ts +0 -3476
- package/es/components/popper/src/index.vue.d.ts +0 -1735
- package/es/hooks/use-css-var/index.d.ts +0 -36
- package/es/hooks/use-css-var/index.mjs +0 -45
- package/es/hooks/use-css-var/index.mjs.map +0 -1
- package/es/hooks/use-events/index.d.ts +0 -7
- package/es/hooks/use-events/index.mjs +0 -19
- package/es/hooks/use-events/index.mjs.map +0 -1
- package/es/hooks/use-migrating/index.d.ts +0 -7
- package/es/hooks/use-migrating/index.mjs +0 -35
- package/es/hooks/use-migrating/index.mjs.map +0 -1
- package/es/hooks/use-transition/index.d.ts +0 -13
- package/es/hooks/use-transition/index.mjs +0 -25
- package/es/hooks/use-transition/index.mjs.map +0 -1
- package/lib/components/cascader/index.d.ts +0 -8748
- package/lib/components/cascader/src/index.vue.d.ts +0 -4380
- package/lib/components/message-box/src/index.vue.d.ts +0 -1838
- package/lib/components/popper/index.d.ts +0 -3476
- package/lib/components/popper/src/index.vue.d.ts +0 -1735
- package/lib/hooks/use-css-var/index.d.ts +0 -36
- package/lib/hooks/use-css-var/index.js +0 -51
- package/lib/hooks/use-css-var/index.js.map +0 -1
- package/lib/hooks/use-events/index.d.ts +0 -7
- package/lib/hooks/use-events/index.js +0 -23
- package/lib/hooks/use-events/index.js.map +0 -1
- package/lib/hooks/use-migrating/index.d.ts +0 -7
- package/lib/hooks/use-migrating/index.js +0 -39
- package/lib/hooks/use-migrating/index.js.map +0 -1
- package/lib/hooks/use-transition/index.d.ts +0 -13
- package/lib/hooks/use-transition/index.js +0 -30
- package/lib/hooks/use-transition/index.js.map +0 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v1.2.0-beta.
|
|
1
|
+
/*! Element Plus v1.2.0-beta.5 */
|
|
2
2
|
|
|
3
|
-
import { getCurrentInstance, computed,
|
|
3
|
+
import { getCurrentInstance, computed, warn, inject, unref, provide, ref, isRef, watch, onScopeDispose, readonly, getCurrentScope, shallowRef, watchSyncEffect, onMounted, nextTick, openBlock, createBlock, createCommentVNode, isVNode, Fragment, Comment, camelize as camelize$1, onUnmounted, h as h$1, Teleport, toRef, Transition, renderSlot, toDisplayString, cloneVNode, withDirectives, defineComponent, reactive, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, mergeProps, createVNode, resolveComponent, withCtx, resolveDynamicComponent, createTextVNode, vShow, onUpdated, withModifiers, onBeforeUnmount, onActivated, onDeactivated, resolveDirective, withKeys, createSlots, renderList, Text, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, watchEffect, effectScope, markRaw, toRaw, triggerRef, onBeforeMount, TransitionGroup, render as render$2s } from 'vue';
|
|
4
4
|
|
|
5
5
|
let $ELEMENT = {};
|
|
6
6
|
const setConfig = (option) => {
|
|
@@ -56,7 +56,7 @@ function debugWarn(scope, message) {
|
|
|
56
56
|
|
|
57
57
|
const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
|
|
58
58
|
const LISTENER_PREFIX = /^on[A-Z]/;
|
|
59
|
-
|
|
59
|
+
const useAttrs = (params = {}) => {
|
|
60
60
|
const { excludeListeners = false, excludeKeys = [] } = params;
|
|
61
61
|
const allExcludeKeys = excludeKeys.concat(DEFAULT_EXCLUDE_KEYS);
|
|
62
62
|
const instance = getCurrentInstance();
|
|
@@ -69,7 +69,31 @@ var useAttrs = (params = {}) => {
|
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
const useFocus = (el) => {
|
|
73
|
+
return {
|
|
74
|
+
focus: () => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
(_b = (_a = el.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const elFormKey = Symbol("elForm");
|
|
82
|
+
const elFormItemKey = Symbol("elFormItem");
|
|
83
|
+
|
|
84
|
+
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
85
|
+
|
|
86
|
+
const elBreadcrumbKey = Symbol("elBreadcrumbKey");
|
|
87
|
+
|
|
88
|
+
const elPaginationKey = Symbol("elPaginationKey");
|
|
89
|
+
|
|
90
|
+
const configProviderContextKey = Symbol();
|
|
91
|
+
|
|
92
|
+
const radioGroupKey = Symbol("radioGroupKey");
|
|
93
|
+
|
|
94
|
+
const tabsRootContextKey = Symbol("tabsRootContextKey");
|
|
95
|
+
|
|
96
|
+
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
73
97
|
|
|
74
98
|
/**
|
|
75
99
|
* Make a map and return a function for checking if a key
|
|
@@ -81,7 +105,7 @@ var isServer = typeof window === "undefined";
|
|
|
81
105
|
const NOOP = () => { };
|
|
82
106
|
const hasOwnProperty$c = Object.prototype.hasOwnProperty;
|
|
83
107
|
const hasOwn = (val, key) => hasOwnProperty$c.call(val, key);
|
|
84
|
-
const isArray$
|
|
108
|
+
const isArray$9 = Array.isArray;
|
|
85
109
|
const isFunction$3 = (val) => typeof val === 'function';
|
|
86
110
|
const isString$1 = (val) => typeof val === 'string';
|
|
87
111
|
const isObject$a = (val) => val !== null && typeof val === 'object';
|
|
@@ -113,6 +137,44 @@ const camelize = cacheStringFunction((str) => {
|
|
|
113
137
|
*/
|
|
114
138
|
const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
|
|
115
139
|
|
|
140
|
+
const wrapperKey = Symbol();
|
|
141
|
+
const propKey = Symbol();
|
|
142
|
+
function buildProp(option, key) {
|
|
143
|
+
if (!isObject$a(option) || !!option[propKey])
|
|
144
|
+
return option;
|
|
145
|
+
const { values, required, default: defaultValue, type, validator } = option;
|
|
146
|
+
const _validator = values || validator ? (val) => {
|
|
147
|
+
let valid = false;
|
|
148
|
+
let allowedValues = [];
|
|
149
|
+
if (values) {
|
|
150
|
+
allowedValues = [...values, defaultValue];
|
|
151
|
+
valid || (valid = allowedValues.includes(val));
|
|
152
|
+
}
|
|
153
|
+
if (validator)
|
|
154
|
+
valid || (valid = validator(val));
|
|
155
|
+
if (!valid && allowedValues.length > 0) {
|
|
156
|
+
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
157
|
+
warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
158
|
+
}
|
|
159
|
+
return valid;
|
|
160
|
+
} : void 0;
|
|
161
|
+
return {
|
|
162
|
+
type: typeof type === "object" && Object.getOwnPropertySymbols(type).includes(wrapperKey) ? type[wrapperKey] : type,
|
|
163
|
+
required: !!required,
|
|
164
|
+
default: defaultValue,
|
|
165
|
+
validator: _validator,
|
|
166
|
+
[propKey]: true
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const buildProps = (props) => fromPairs_1(Object.entries(props).map(([key, option]) => [
|
|
170
|
+
key,
|
|
171
|
+
buildProp(option, key)
|
|
172
|
+
]));
|
|
173
|
+
const definePropType = (val) => ({ [wrapperKey]: val });
|
|
174
|
+
const keyOf = (arr) => Object.keys(arr);
|
|
175
|
+
const mutable = (val) => val;
|
|
176
|
+
const componentSize = ["large", "medium", "small", "mini"];
|
|
177
|
+
|
|
116
178
|
/**
|
|
117
179
|
* Removes all key-value entries from the list cache.
|
|
118
180
|
*
|
|
@@ -409,11 +471,11 @@ var _root = root$9;
|
|
|
409
471
|
var root$8 = _root;
|
|
410
472
|
|
|
411
473
|
/** Built-in value references. */
|
|
412
|
-
var Symbol$
|
|
474
|
+
var Symbol$7 = root$8.Symbol;
|
|
413
475
|
|
|
414
|
-
var _Symbol = Symbol$
|
|
476
|
+
var _Symbol = Symbol$7;
|
|
415
477
|
|
|
416
|
-
var Symbol$
|
|
478
|
+
var Symbol$6 = _Symbol;
|
|
417
479
|
|
|
418
480
|
/** Used for built-in method references. */
|
|
419
481
|
var objectProto$e = Object.prototype;
|
|
@@ -429,7 +491,7 @@ var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
|
429
491
|
var nativeObjectToString$1 = objectProto$e.toString;
|
|
430
492
|
|
|
431
493
|
/** Built-in value references. */
|
|
432
|
-
var symToStringTag$1 = Symbol$
|
|
494
|
+
var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : undefined;
|
|
433
495
|
|
|
434
496
|
/**
|
|
435
497
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -484,7 +546,7 @@ function objectToString$1(value) {
|
|
|
484
546
|
|
|
485
547
|
var _objectToString = objectToString$1;
|
|
486
548
|
|
|
487
|
-
var Symbol$
|
|
549
|
+
var Symbol$5 = _Symbol,
|
|
488
550
|
getRawTag = _getRawTag,
|
|
489
551
|
objectToString = _objectToString;
|
|
490
552
|
|
|
@@ -493,7 +555,7 @@ var nullTag = '[object Null]',
|
|
|
493
555
|
undefinedTag = '[object Undefined]';
|
|
494
556
|
|
|
495
557
|
/** Built-in value references. */
|
|
496
|
-
var symToStringTag = Symbol$
|
|
558
|
+
var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
|
|
497
559
|
|
|
498
560
|
/**
|
|
499
561
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -1350,7 +1412,7 @@ function setToArray$3(set) {
|
|
|
1350
1412
|
|
|
1351
1413
|
var _setToArray = setToArray$3;
|
|
1352
1414
|
|
|
1353
|
-
var Symbol$
|
|
1415
|
+
var Symbol$4 = _Symbol,
|
|
1354
1416
|
Uint8Array$1 = _Uint8Array,
|
|
1355
1417
|
eq$1 = eq_1,
|
|
1356
1418
|
equalArrays$1 = _equalArrays,
|
|
@@ -1376,8 +1438,8 @@ var arrayBufferTag$3 = '[object ArrayBuffer]',
|
|
|
1376
1438
|
dataViewTag$4 = '[object DataView]';
|
|
1377
1439
|
|
|
1378
1440
|
/** Used to convert symbols to primitives and strings. */
|
|
1379
|
-
var symbolProto$
|
|
1380
|
-
symbolValueOf$1 = symbolProto$
|
|
1441
|
+
var symbolProto$2 = Symbol$4 ? Symbol$4.prototype : undefined,
|
|
1442
|
+
symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : undefined;
|
|
1381
1443
|
|
|
1382
1444
|
/**
|
|
1383
1445
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
@@ -1509,12 +1571,12 @@ var _arrayPush = arrayPush$3;
|
|
|
1509
1571
|
* // => false
|
|
1510
1572
|
*/
|
|
1511
1573
|
|
|
1512
|
-
var isArray$
|
|
1574
|
+
var isArray$8 = Array.isArray;
|
|
1513
1575
|
|
|
1514
|
-
var isArray_1 = isArray$
|
|
1576
|
+
var isArray_1 = isArray$8;
|
|
1515
1577
|
|
|
1516
1578
|
var arrayPush$2 = _arrayPush,
|
|
1517
|
-
isArray$
|
|
1579
|
+
isArray$7 = isArray_1;
|
|
1518
1580
|
|
|
1519
1581
|
/**
|
|
1520
1582
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -1529,7 +1591,7 @@ var arrayPush$2 = _arrayPush,
|
|
|
1529
1591
|
*/
|
|
1530
1592
|
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
1531
1593
|
var result = keysFunc(object);
|
|
1532
|
-
return isArray$
|
|
1594
|
+
return isArray$7(object) ? result : arrayPush$2(result, symbolsFunc(object));
|
|
1533
1595
|
}
|
|
1534
1596
|
|
|
1535
1597
|
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
@@ -1995,7 +2057,7 @@ var isTypedArray_1 = isTypedArray$2;
|
|
|
1995
2057
|
|
|
1996
2058
|
var baseTimes = _baseTimes,
|
|
1997
2059
|
isArguments$1 = isArguments_1,
|
|
1998
|
-
isArray$
|
|
2060
|
+
isArray$6 = isArray_1,
|
|
1999
2061
|
isBuffer$2 = isBuffer$3.exports,
|
|
2000
2062
|
isIndex = _isIndex,
|
|
2001
2063
|
isTypedArray$1 = isTypedArray_1;
|
|
@@ -2015,7 +2077,7 @@ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
|
2015
2077
|
* @returns {Array} Returns the array of property names.
|
|
2016
2078
|
*/
|
|
2017
2079
|
function arrayLikeKeys$2(value, inherited) {
|
|
2018
|
-
var isArr = isArray$
|
|
2080
|
+
var isArr = isArray$6(value),
|
|
2019
2081
|
isArg = !isArr && isArguments$1(value),
|
|
2020
2082
|
isBuff = !isArr && !isArg && isBuffer$2(value),
|
|
2021
2083
|
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
@@ -2394,7 +2456,7 @@ var Stack$1 = _Stack,
|
|
|
2394
2456
|
equalByTag = _equalByTag,
|
|
2395
2457
|
equalObjects = _equalObjects,
|
|
2396
2458
|
getTag$3 = _getTag,
|
|
2397
|
-
isArray$
|
|
2459
|
+
isArray$5 = isArray_1,
|
|
2398
2460
|
isBuffer$1 = isBuffer$3.exports,
|
|
2399
2461
|
isTypedArray = isTypedArray_1;
|
|
2400
2462
|
|
|
@@ -2427,8 +2489,8 @@ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
|
2427
2489
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2428
2490
|
*/
|
|
2429
2491
|
function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2430
|
-
var objIsArr = isArray$
|
|
2431
|
-
othIsArr = isArray$
|
|
2492
|
+
var objIsArr = isArray$5(object),
|
|
2493
|
+
othIsArr = isArray$5(other),
|
|
2432
2494
|
objTag = objIsArr ? arrayTag$1 : getTag$3(object),
|
|
2433
2495
|
othTag = othIsArr ? arrayTag$1 : getTag$3(other);
|
|
2434
2496
|
|
|
@@ -2502,6 +2564,8 @@ function baseIsEqual$1(value, other, bitmask, customizer, stack) {
|
|
|
2502
2564
|
|
|
2503
2565
|
var _baseIsEqual = baseIsEqual$1;
|
|
2504
2566
|
|
|
2567
|
+
var isServer = typeof window === "undefined";
|
|
2568
|
+
|
|
2505
2569
|
const SCOPE$1 = "Util";
|
|
2506
2570
|
const getValueByPath = (obj, paths = "") => {
|
|
2507
2571
|
let ret = obj;
|
|
@@ -2593,7 +2657,7 @@ function useGlobalConfig$1() {
|
|
|
2593
2657
|
return {};
|
|
2594
2658
|
}
|
|
2595
2659
|
function isEmpty(val) {
|
|
2596
|
-
if (!val && val !== 0 || isArray$
|
|
2660
|
+
if (!val && val !== 0 || isArray$9(val) && !val.length || isObject$a(val) && !Object.keys(val).length)
|
|
2597
2661
|
return true;
|
|
2598
2662
|
return false;
|
|
2599
2663
|
}
|
|
@@ -2620,6 +2684,607 @@ const refAttacher = (ref) => {
|
|
|
2620
2684
|
};
|
|
2621
2685
|
};
|
|
2622
2686
|
|
|
2687
|
+
const sizes = ["", ...componentSize];
|
|
2688
|
+
const useFormItemProps = buildProps({
|
|
2689
|
+
size: {
|
|
2690
|
+
type: String,
|
|
2691
|
+
values: sizes,
|
|
2692
|
+
default: ""
|
|
2693
|
+
},
|
|
2694
|
+
disabled: Boolean
|
|
2695
|
+
});
|
|
2696
|
+
const useFormItem = ({ size, disabled } = {}) => {
|
|
2697
|
+
var _a;
|
|
2698
|
+
const vm = getCurrentInstance();
|
|
2699
|
+
const $ELEMENT = useGlobalConfig$1();
|
|
2700
|
+
const props = (_a = vm.proxy) == null ? void 0 : _a.$props;
|
|
2701
|
+
const form = inject(elFormKey, void 0);
|
|
2702
|
+
const formItem = inject(elFormItemKey, void 0);
|
|
2703
|
+
return {
|
|
2704
|
+
size: computed(() => {
|
|
2705
|
+
return props.size || unref(size) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || $ELEMENT.size || "";
|
|
2706
|
+
}),
|
|
2707
|
+
disabled: computed(() => {
|
|
2708
|
+
return props.disabled === true || unref(disabled) || (form == null ? void 0 : form.disabled) || false;
|
|
2709
|
+
}),
|
|
2710
|
+
form,
|
|
2711
|
+
formItem
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
const defaultConfig = {
|
|
2716
|
+
button: {
|
|
2717
|
+
autoInsertSpace: false
|
|
2718
|
+
}
|
|
2719
|
+
};
|
|
2720
|
+
const useGlobalConfig = () => inject(configProviderContextKey, defaultConfig);
|
|
2721
|
+
|
|
2722
|
+
var baseGetTag = _baseGetTag,
|
|
2723
|
+
isObjectLike$3 = isObjectLike_1;
|
|
2724
|
+
|
|
2725
|
+
/** `Object#toString` result references. */
|
|
2726
|
+
var symbolTag$2 = '[object Symbol]';
|
|
2727
|
+
|
|
2728
|
+
/**
|
|
2729
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
2730
|
+
*
|
|
2731
|
+
* @static
|
|
2732
|
+
* @memberOf _
|
|
2733
|
+
* @since 4.0.0
|
|
2734
|
+
* @category Lang
|
|
2735
|
+
* @param {*} value The value to check.
|
|
2736
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2737
|
+
* @example
|
|
2738
|
+
*
|
|
2739
|
+
* _.isSymbol(Symbol.iterator);
|
|
2740
|
+
* // => true
|
|
2741
|
+
*
|
|
2742
|
+
* _.isSymbol('abc');
|
|
2743
|
+
* // => false
|
|
2744
|
+
*/
|
|
2745
|
+
function isSymbol$4(value) {
|
|
2746
|
+
return typeof value == 'symbol' ||
|
|
2747
|
+
(isObjectLike$3(value) && baseGetTag(value) == symbolTag$2);
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
var isSymbol_1 = isSymbol$4;
|
|
2751
|
+
|
|
2752
|
+
var isArray$4 = isArray_1,
|
|
2753
|
+
isSymbol$3 = isSymbol_1;
|
|
2754
|
+
|
|
2755
|
+
/** Used to match property names within property paths. */
|
|
2756
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
2757
|
+
reIsPlainProp = /^\w*$/;
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* Checks if `value` is a property name and not a property path.
|
|
2761
|
+
*
|
|
2762
|
+
* @private
|
|
2763
|
+
* @param {*} value The value to check.
|
|
2764
|
+
* @param {Object} [object] The object to query keys on.
|
|
2765
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
2766
|
+
*/
|
|
2767
|
+
function isKey$1(value, object) {
|
|
2768
|
+
if (isArray$4(value)) {
|
|
2769
|
+
return false;
|
|
2770
|
+
}
|
|
2771
|
+
var type = typeof value;
|
|
2772
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
2773
|
+
value == null || isSymbol$3(value)) {
|
|
2774
|
+
return true;
|
|
2775
|
+
}
|
|
2776
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
2777
|
+
(object != null && value in Object(object));
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
var _isKey = isKey$1;
|
|
2781
|
+
|
|
2782
|
+
var MapCache = _MapCache;
|
|
2783
|
+
|
|
2784
|
+
/** Error message constants. */
|
|
2785
|
+
var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
2789
|
+
* provided, it determines the cache key for storing the result based on the
|
|
2790
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
2791
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
2792
|
+
* is invoked with the `this` binding of the memoized function.
|
|
2793
|
+
*
|
|
2794
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2795
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2796
|
+
* constructor with one whose instances implement the
|
|
2797
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2798
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2799
|
+
*
|
|
2800
|
+
* @static
|
|
2801
|
+
* @memberOf _
|
|
2802
|
+
* @since 0.1.0
|
|
2803
|
+
* @category Function
|
|
2804
|
+
* @param {Function} func The function to have its output memoized.
|
|
2805
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
2806
|
+
* @returns {Function} Returns the new memoized function.
|
|
2807
|
+
* @example
|
|
2808
|
+
*
|
|
2809
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
2810
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
2811
|
+
*
|
|
2812
|
+
* var values = _.memoize(_.values);
|
|
2813
|
+
* values(object);
|
|
2814
|
+
* // => [1, 2]
|
|
2815
|
+
*
|
|
2816
|
+
* values(other);
|
|
2817
|
+
* // => [3, 4]
|
|
2818
|
+
*
|
|
2819
|
+
* object.a = 2;
|
|
2820
|
+
* values(object);
|
|
2821
|
+
* // => [1, 2]
|
|
2822
|
+
*
|
|
2823
|
+
* // Modify the result cache.
|
|
2824
|
+
* values.cache.set(object, ['a', 'b']);
|
|
2825
|
+
* values(object);
|
|
2826
|
+
* // => ['a', 'b']
|
|
2827
|
+
*
|
|
2828
|
+
* // Replace `_.memoize.Cache`.
|
|
2829
|
+
* _.memoize.Cache = WeakMap;
|
|
2830
|
+
*/
|
|
2831
|
+
function memoize$1(func, resolver) {
|
|
2832
|
+
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
2833
|
+
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
2834
|
+
}
|
|
2835
|
+
var memoized = function() {
|
|
2836
|
+
var args = arguments,
|
|
2837
|
+
key = resolver ? resolver.apply(this, args) : args[0],
|
|
2838
|
+
cache = memoized.cache;
|
|
2839
|
+
|
|
2840
|
+
if (cache.has(key)) {
|
|
2841
|
+
return cache.get(key);
|
|
2842
|
+
}
|
|
2843
|
+
var result = func.apply(this, args);
|
|
2844
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
2845
|
+
return result;
|
|
2846
|
+
};
|
|
2847
|
+
memoized.cache = new (memoize$1.Cache || MapCache);
|
|
2848
|
+
return memoized;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
// Expose `MapCache`.
|
|
2852
|
+
memoize$1.Cache = MapCache;
|
|
2853
|
+
|
|
2854
|
+
var memoize_1 = memoize$1;
|
|
2855
|
+
|
|
2856
|
+
var memoize = memoize_1;
|
|
2857
|
+
|
|
2858
|
+
/** Used as the maximum memoize cache size. */
|
|
2859
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2863
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2864
|
+
*
|
|
2865
|
+
* @private
|
|
2866
|
+
* @param {Function} func The function to have its output memoized.
|
|
2867
|
+
* @returns {Function} Returns the new memoized function.
|
|
2868
|
+
*/
|
|
2869
|
+
function memoizeCapped$1(func) {
|
|
2870
|
+
var result = memoize(func, function(key) {
|
|
2871
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
2872
|
+
cache.clear();
|
|
2873
|
+
}
|
|
2874
|
+
return key;
|
|
2875
|
+
});
|
|
2876
|
+
|
|
2877
|
+
var cache = result.cache;
|
|
2878
|
+
return result;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
2882
|
+
|
|
2883
|
+
var memoizeCapped = _memoizeCapped;
|
|
2884
|
+
|
|
2885
|
+
/** Used to match property names within property paths. */
|
|
2886
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2887
|
+
|
|
2888
|
+
/** Used to match backslashes in property paths. */
|
|
2889
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* Converts `string` to a property path array.
|
|
2893
|
+
*
|
|
2894
|
+
* @private
|
|
2895
|
+
* @param {string} string The string to convert.
|
|
2896
|
+
* @returns {Array} Returns the property path array.
|
|
2897
|
+
*/
|
|
2898
|
+
var stringToPath$1 = memoizeCapped(function(string) {
|
|
2899
|
+
var result = [];
|
|
2900
|
+
if (string.charCodeAt(0) === 46 /* . */) {
|
|
2901
|
+
result.push('');
|
|
2902
|
+
}
|
|
2903
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2904
|
+
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
2905
|
+
});
|
|
2906
|
+
return result;
|
|
2907
|
+
});
|
|
2908
|
+
|
|
2909
|
+
var _stringToPath = stringToPath$1;
|
|
2910
|
+
|
|
2911
|
+
/**
|
|
2912
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2913
|
+
* shorthands.
|
|
2914
|
+
*
|
|
2915
|
+
* @private
|
|
2916
|
+
* @param {Array} [array] The array to iterate over.
|
|
2917
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2918
|
+
* @returns {Array} Returns the new mapped array.
|
|
2919
|
+
*/
|
|
2920
|
+
|
|
2921
|
+
function arrayMap$1(array, iteratee) {
|
|
2922
|
+
var index = -1,
|
|
2923
|
+
length = array == null ? 0 : array.length,
|
|
2924
|
+
result = Array(length);
|
|
2925
|
+
|
|
2926
|
+
while (++index < length) {
|
|
2927
|
+
result[index] = iteratee(array[index], index, array);
|
|
2928
|
+
}
|
|
2929
|
+
return result;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
var _arrayMap = arrayMap$1;
|
|
2933
|
+
|
|
2934
|
+
var Symbol$3 = _Symbol,
|
|
2935
|
+
arrayMap = _arrayMap,
|
|
2936
|
+
isArray$3 = isArray_1,
|
|
2937
|
+
isSymbol$2 = isSymbol_1;
|
|
2938
|
+
|
|
2939
|
+
/** Used as references for various `Number` constants. */
|
|
2940
|
+
var INFINITY$2 = 1 / 0;
|
|
2941
|
+
|
|
2942
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2943
|
+
var symbolProto$1 = Symbol$3 ? Symbol$3.prototype : undefined,
|
|
2944
|
+
symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2948
|
+
* values to empty strings.
|
|
2949
|
+
*
|
|
2950
|
+
* @private
|
|
2951
|
+
* @param {*} value The value to process.
|
|
2952
|
+
* @returns {string} Returns the string.
|
|
2953
|
+
*/
|
|
2954
|
+
function baseToString$1(value) {
|
|
2955
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
2956
|
+
if (typeof value == 'string') {
|
|
2957
|
+
return value;
|
|
2958
|
+
}
|
|
2959
|
+
if (isArray$3(value)) {
|
|
2960
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
2961
|
+
return arrayMap(value, baseToString$1) + '';
|
|
2962
|
+
}
|
|
2963
|
+
if (isSymbol$2(value)) {
|
|
2964
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
2965
|
+
}
|
|
2966
|
+
var result = (value + '');
|
|
2967
|
+
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
var _baseToString = baseToString$1;
|
|
2971
|
+
|
|
2972
|
+
var baseToString = _baseToString;
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
2976
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2977
|
+
*
|
|
2978
|
+
* @static
|
|
2979
|
+
* @memberOf _
|
|
2980
|
+
* @since 4.0.0
|
|
2981
|
+
* @category Lang
|
|
2982
|
+
* @param {*} value The value to convert.
|
|
2983
|
+
* @returns {string} Returns the converted string.
|
|
2984
|
+
* @example
|
|
2985
|
+
*
|
|
2986
|
+
* _.toString(null);
|
|
2987
|
+
* // => ''
|
|
2988
|
+
*
|
|
2989
|
+
* _.toString(-0);
|
|
2990
|
+
* // => '-0'
|
|
2991
|
+
*
|
|
2992
|
+
* _.toString([1, 2, 3]);
|
|
2993
|
+
* // => '1,2,3'
|
|
2994
|
+
*/
|
|
2995
|
+
function toString$1(value) {
|
|
2996
|
+
return value == null ? '' : baseToString(value);
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
var toString_1 = toString$1;
|
|
3000
|
+
|
|
3001
|
+
var isArray$2 = isArray_1,
|
|
3002
|
+
isKey = _isKey,
|
|
3003
|
+
stringToPath = _stringToPath,
|
|
3004
|
+
toString = toString_1;
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* Casts `value` to a path array if it's not one.
|
|
3008
|
+
*
|
|
3009
|
+
* @private
|
|
3010
|
+
* @param {*} value The value to inspect.
|
|
3011
|
+
* @param {Object} [object] The object to query keys on.
|
|
3012
|
+
* @returns {Array} Returns the cast property path array.
|
|
3013
|
+
*/
|
|
3014
|
+
function castPath$1(value, object) {
|
|
3015
|
+
if (isArray$2(value)) {
|
|
3016
|
+
return value;
|
|
3017
|
+
}
|
|
3018
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
var _castPath = castPath$1;
|
|
3022
|
+
|
|
3023
|
+
var isSymbol$1 = isSymbol_1;
|
|
3024
|
+
|
|
3025
|
+
/** Used as references for various `Number` constants. */
|
|
3026
|
+
var INFINITY$1 = 1 / 0;
|
|
3027
|
+
|
|
3028
|
+
/**
|
|
3029
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
3030
|
+
*
|
|
3031
|
+
* @private
|
|
3032
|
+
* @param {*} value The value to inspect.
|
|
3033
|
+
* @returns {string|symbol} Returns the key.
|
|
3034
|
+
*/
|
|
3035
|
+
function toKey$1(value) {
|
|
3036
|
+
if (typeof value == 'string' || isSymbol$1(value)) {
|
|
3037
|
+
return value;
|
|
3038
|
+
}
|
|
3039
|
+
var result = (value + '');
|
|
3040
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
var _toKey = toKey$1;
|
|
3044
|
+
|
|
3045
|
+
var castPath = _castPath,
|
|
3046
|
+
toKey = _toKey;
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* The base implementation of `_.get` without support for default values.
|
|
3050
|
+
*
|
|
3051
|
+
* @private
|
|
3052
|
+
* @param {Object} object The object to query.
|
|
3053
|
+
* @param {Array|string} path The path of the property to get.
|
|
3054
|
+
* @returns {*} Returns the resolved value.
|
|
3055
|
+
*/
|
|
3056
|
+
function baseGet$1(object, path) {
|
|
3057
|
+
path = castPath(path, object);
|
|
3058
|
+
|
|
3059
|
+
var index = 0,
|
|
3060
|
+
length = path.length;
|
|
3061
|
+
|
|
3062
|
+
while (object != null && index < length) {
|
|
3063
|
+
object = object[toKey(path[index++])];
|
|
3064
|
+
}
|
|
3065
|
+
return (index && index == length) ? object : undefined;
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
var _baseGet = baseGet$1;
|
|
3069
|
+
|
|
3070
|
+
var baseGet = _baseGet;
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
3074
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
3075
|
+
*
|
|
3076
|
+
* @static
|
|
3077
|
+
* @memberOf _
|
|
3078
|
+
* @since 3.7.0
|
|
3079
|
+
* @category Object
|
|
3080
|
+
* @param {Object} object The object to query.
|
|
3081
|
+
* @param {Array|string} path The path of the property to get.
|
|
3082
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
3083
|
+
* @returns {*} Returns the resolved value.
|
|
3084
|
+
* @example
|
|
3085
|
+
*
|
|
3086
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
3087
|
+
*
|
|
3088
|
+
* _.get(object, 'a[0].b.c');
|
|
3089
|
+
* // => 3
|
|
3090
|
+
*
|
|
3091
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
3092
|
+
* // => 3
|
|
3093
|
+
*
|
|
3094
|
+
* _.get(object, 'a.b.c', 'default');
|
|
3095
|
+
* // => 'default'
|
|
3096
|
+
*/
|
|
3097
|
+
function get(object, path, defaultValue) {
|
|
3098
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
3099
|
+
return result === undefined ? defaultValue : result;
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
var get_1 = get;
|
|
3103
|
+
|
|
3104
|
+
var English = {
|
|
3105
|
+
name: "en",
|
|
3106
|
+
el: {
|
|
3107
|
+
colorpicker: {
|
|
3108
|
+
confirm: "OK",
|
|
3109
|
+
clear: "Clear"
|
|
3110
|
+
},
|
|
3111
|
+
datepicker: {
|
|
3112
|
+
now: "Now",
|
|
3113
|
+
today: "Today",
|
|
3114
|
+
cancel: "Cancel",
|
|
3115
|
+
clear: "Clear",
|
|
3116
|
+
confirm: "OK",
|
|
3117
|
+
selectDate: "Select date",
|
|
3118
|
+
selectTime: "Select time",
|
|
3119
|
+
startDate: "Start Date",
|
|
3120
|
+
startTime: "Start Time",
|
|
3121
|
+
endDate: "End Date",
|
|
3122
|
+
endTime: "End Time",
|
|
3123
|
+
prevYear: "Previous Year",
|
|
3124
|
+
nextYear: "Next Year",
|
|
3125
|
+
prevMonth: "Previous Month",
|
|
3126
|
+
nextMonth: "Next Month",
|
|
3127
|
+
year: "",
|
|
3128
|
+
month1: "January",
|
|
3129
|
+
month2: "February",
|
|
3130
|
+
month3: "March",
|
|
3131
|
+
month4: "April",
|
|
3132
|
+
month5: "May",
|
|
3133
|
+
month6: "June",
|
|
3134
|
+
month7: "July",
|
|
3135
|
+
month8: "August",
|
|
3136
|
+
month9: "September",
|
|
3137
|
+
month10: "October",
|
|
3138
|
+
month11: "November",
|
|
3139
|
+
month12: "December",
|
|
3140
|
+
week: "week",
|
|
3141
|
+
weeks: {
|
|
3142
|
+
sun: "Sun",
|
|
3143
|
+
mon: "Mon",
|
|
3144
|
+
tue: "Tue",
|
|
3145
|
+
wed: "Wed",
|
|
3146
|
+
thu: "Thu",
|
|
3147
|
+
fri: "Fri",
|
|
3148
|
+
sat: "Sat"
|
|
3149
|
+
},
|
|
3150
|
+
months: {
|
|
3151
|
+
jan: "Jan",
|
|
3152
|
+
feb: "Feb",
|
|
3153
|
+
mar: "Mar",
|
|
3154
|
+
apr: "Apr",
|
|
3155
|
+
may: "May",
|
|
3156
|
+
jun: "Jun",
|
|
3157
|
+
jul: "Jul",
|
|
3158
|
+
aug: "Aug",
|
|
3159
|
+
sep: "Sep",
|
|
3160
|
+
oct: "Oct",
|
|
3161
|
+
nov: "Nov",
|
|
3162
|
+
dec: "Dec"
|
|
3163
|
+
}
|
|
3164
|
+
},
|
|
3165
|
+
select: {
|
|
3166
|
+
loading: "Loading",
|
|
3167
|
+
noMatch: "No matching data",
|
|
3168
|
+
noData: "No data",
|
|
3169
|
+
placeholder: "Select"
|
|
3170
|
+
},
|
|
3171
|
+
cascader: {
|
|
3172
|
+
noMatch: "No matching data",
|
|
3173
|
+
loading: "Loading",
|
|
3174
|
+
placeholder: "Select",
|
|
3175
|
+
noData: "No data"
|
|
3176
|
+
},
|
|
3177
|
+
pagination: {
|
|
3178
|
+
goto: "Go to",
|
|
3179
|
+
pagesize: "/page",
|
|
3180
|
+
total: "Total {total}",
|
|
3181
|
+
pageClassifier: "",
|
|
3182
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
3183
|
+
},
|
|
3184
|
+
messagebox: {
|
|
3185
|
+
title: "Message",
|
|
3186
|
+
confirm: "OK",
|
|
3187
|
+
cancel: "Cancel",
|
|
3188
|
+
error: "Illegal input"
|
|
3189
|
+
},
|
|
3190
|
+
upload: {
|
|
3191
|
+
deleteTip: "press delete to remove",
|
|
3192
|
+
delete: "Delete",
|
|
3193
|
+
preview: "Preview",
|
|
3194
|
+
continue: "Continue"
|
|
3195
|
+
},
|
|
3196
|
+
table: {
|
|
3197
|
+
emptyText: "No Data",
|
|
3198
|
+
confirmFilter: "Confirm",
|
|
3199
|
+
resetFilter: "Reset",
|
|
3200
|
+
clearFilter: "All",
|
|
3201
|
+
sumText: "Sum"
|
|
3202
|
+
},
|
|
3203
|
+
tree: {
|
|
3204
|
+
emptyText: "No Data"
|
|
3205
|
+
},
|
|
3206
|
+
transfer: {
|
|
3207
|
+
noMatch: "No matching data",
|
|
3208
|
+
noData: "No data",
|
|
3209
|
+
titles: ["List 1", "List 2"],
|
|
3210
|
+
filterPlaceholder: "Enter keyword",
|
|
3211
|
+
noCheckedFormat: "{total} items",
|
|
3212
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
3213
|
+
},
|
|
3214
|
+
image: {
|
|
3215
|
+
error: "FAILED"
|
|
3216
|
+
},
|
|
3217
|
+
pageHeader: {
|
|
3218
|
+
title: "Back"
|
|
3219
|
+
},
|
|
3220
|
+
popconfirm: {
|
|
3221
|
+
confirmButtonText: "Yes",
|
|
3222
|
+
cancelButtonText: "No"
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
};
|
|
3226
|
+
|
|
3227
|
+
const useLocaleProps = buildProps({
|
|
3228
|
+
locale: {
|
|
3229
|
+
type: definePropType(Object)
|
|
3230
|
+
}
|
|
3231
|
+
});
|
|
3232
|
+
const localeContextKey = Symbol("localeContextKey");
|
|
3233
|
+
let localeContextCache;
|
|
3234
|
+
const provideLocale = () => {
|
|
3235
|
+
const vm = getCurrentInstance();
|
|
3236
|
+
const props = vm.props;
|
|
3237
|
+
const locale = computed(() => props.locale || English);
|
|
3238
|
+
const lang = computed(() => locale.value.name);
|
|
3239
|
+
const t = buildTranslator(locale);
|
|
3240
|
+
const provides = {
|
|
3241
|
+
locale,
|
|
3242
|
+
lang,
|
|
3243
|
+
t
|
|
3244
|
+
};
|
|
3245
|
+
localeContextCache = provides;
|
|
3246
|
+
provide(localeContextKey, provides);
|
|
3247
|
+
};
|
|
3248
|
+
const buildTranslator = (locale) => (path) => translate(path, unref(locale));
|
|
3249
|
+
const translate = (path, locale) => get_1(locale, path, "");
|
|
3250
|
+
const localeProviderMaker = (locale = English) => {
|
|
3251
|
+
const lang = ref(locale.name);
|
|
3252
|
+
const localeRef = ref(locale);
|
|
3253
|
+
return {
|
|
3254
|
+
lang,
|
|
3255
|
+
locale: localeRef,
|
|
3256
|
+
t: buildTranslator(localeRef)
|
|
3257
|
+
};
|
|
3258
|
+
};
|
|
3259
|
+
const useLocale = () => {
|
|
3260
|
+
return inject(localeContextKey, localeContextCache || localeProviderMaker(English));
|
|
3261
|
+
};
|
|
3262
|
+
|
|
3263
|
+
let scrollBarWidth;
|
|
3264
|
+
function scrollbarWidth() {
|
|
3265
|
+
var _a;
|
|
3266
|
+
if (isServer)
|
|
3267
|
+
return 0;
|
|
3268
|
+
if (scrollBarWidth !== void 0)
|
|
3269
|
+
return scrollBarWidth;
|
|
3270
|
+
const outer = document.createElement("div");
|
|
3271
|
+
outer.className = "el-scrollbar__wrap";
|
|
3272
|
+
outer.style.visibility = "hidden";
|
|
3273
|
+
outer.style.width = "100px";
|
|
3274
|
+
outer.style.position = "absolute";
|
|
3275
|
+
outer.style.top = "-9999px";
|
|
3276
|
+
document.body.appendChild(outer);
|
|
3277
|
+
const widthNoScroll = outer.offsetWidth;
|
|
3278
|
+
outer.style.overflow = "scroll";
|
|
3279
|
+
const inner = document.createElement("div");
|
|
3280
|
+
inner.style.width = "100%";
|
|
3281
|
+
outer.appendChild(inner);
|
|
3282
|
+
const widthWithScroll = inner.offsetWidth;
|
|
3283
|
+
(_a = outer.parentNode) == null ? void 0 : _a.removeChild(outer);
|
|
3284
|
+
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
3285
|
+
return scrollBarWidth;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
2623
3288
|
const trimArr = function(s) {
|
|
2624
3289
|
return (s || "").split(" ").filter((item) => !!item.trim());
|
|
2625
3290
|
};
|
|
@@ -2773,56 +3438,14 @@ const getClientXY = (event) => {
|
|
|
2773
3438
|
};
|
|
2774
3439
|
};
|
|
2775
3440
|
|
|
2776
|
-
|
|
2777
|
-
watch(el, (val) => {
|
|
2778
|
-
if (val) {
|
|
2779
|
-
events.forEach(({ name, handler }) => {
|
|
2780
|
-
on(el.value, name, handler);
|
|
2781
|
-
});
|
|
2782
|
-
} else {
|
|
2783
|
-
events.forEach(({ name, handler }) => {
|
|
2784
|
-
off(el.value, name, handler);
|
|
2785
|
-
});
|
|
2786
|
-
}
|
|
2787
|
-
});
|
|
2788
|
-
};
|
|
2789
|
-
|
|
2790
|
-
let scrollBarWidth;
|
|
2791
|
-
function scrollbarWidth() {
|
|
2792
|
-
var _a;
|
|
2793
|
-
if (isServer)
|
|
2794
|
-
return 0;
|
|
2795
|
-
if (scrollBarWidth !== void 0)
|
|
2796
|
-
return scrollBarWidth;
|
|
2797
|
-
const outer = document.createElement("div");
|
|
2798
|
-
outer.className = "el-scrollbar__wrap";
|
|
2799
|
-
outer.style.visibility = "hidden";
|
|
2800
|
-
outer.style.width = "100px";
|
|
2801
|
-
outer.style.position = "absolute";
|
|
2802
|
-
outer.style.top = "-9999px";
|
|
2803
|
-
document.body.appendChild(outer);
|
|
2804
|
-
const widthNoScroll = outer.offsetWidth;
|
|
2805
|
-
outer.style.overflow = "scroll";
|
|
2806
|
-
const inner = document.createElement("div");
|
|
2807
|
-
inner.style.width = "100%";
|
|
2808
|
-
outer.appendChild(inner);
|
|
2809
|
-
const widthWithScroll = inner.offsetWidth;
|
|
2810
|
-
(_a = outer.parentNode) == null ? void 0 : _a.removeChild(outer);
|
|
2811
|
-
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
2812
|
-
return scrollBarWidth;
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
var useLockScreen = (trigger) => {
|
|
3441
|
+
const useLockscreen = (trigger) => {
|
|
2816
3442
|
if (!isRef(trigger)) {
|
|
2817
|
-
throwError("[
|
|
3443
|
+
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
2818
3444
|
}
|
|
2819
3445
|
let scrollBarWidth = 0;
|
|
2820
3446
|
let withoutHiddenClass = false;
|
|
2821
3447
|
let bodyPaddingRight = "0";
|
|
2822
3448
|
let computedBodyPaddingRight = 0;
|
|
2823
|
-
onUnmounted(() => {
|
|
2824
|
-
cleanup();
|
|
2825
|
-
});
|
|
2826
3449
|
const cleanup = () => {
|
|
2827
3450
|
removeClass(document.body, "el-popup-parent--hidden");
|
|
2828
3451
|
if (withoutHiddenClass) {
|
|
@@ -2830,41 +3453,267 @@ var useLockScreen = (trigger) => {
|
|
|
2830
3453
|
}
|
|
2831
3454
|
};
|
|
2832
3455
|
watch(trigger, (val) => {
|
|
2833
|
-
if (val) {
|
|
2834
|
-
withoutHiddenClass = !hasClass(document.body, "el-popup-parent--hidden");
|
|
2835
|
-
if (withoutHiddenClass) {
|
|
2836
|
-
bodyPaddingRight = document.body.style.paddingRight;
|
|
2837
|
-
computedBodyPaddingRight = parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
2838
|
-
}
|
|
2839
|
-
scrollBarWidth = scrollbarWidth();
|
|
2840
|
-
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
2841
|
-
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
2842
|
-
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
2843
|
-
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
2844
|
-
}
|
|
2845
|
-
addClass(document.body, "el-popup-parent--hidden");
|
|
2846
|
-
} else {
|
|
3456
|
+
if (!val) {
|
|
2847
3457
|
cleanup();
|
|
3458
|
+
return;
|
|
2848
3459
|
}
|
|
3460
|
+
withoutHiddenClass = !hasClass(document.body, "el-popup-parent--hidden");
|
|
3461
|
+
if (withoutHiddenClass) {
|
|
3462
|
+
bodyPaddingRight = document.body.style.paddingRight;
|
|
3463
|
+
computedBodyPaddingRight = parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
3464
|
+
}
|
|
3465
|
+
scrollBarWidth = scrollbarWidth();
|
|
3466
|
+
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
3467
|
+
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
3468
|
+
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
3469
|
+
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
3470
|
+
}
|
|
3471
|
+
addClass(document.body, "el-popup-parent--hidden");
|
|
2849
3472
|
});
|
|
3473
|
+
onScopeDispose(() => cleanup());
|
|
2850
3474
|
};
|
|
2851
3475
|
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
3476
|
+
function tryOnScopeDispose(fn) {
|
|
3477
|
+
if (getCurrentScope()) {
|
|
3478
|
+
onScopeDispose(fn);
|
|
3479
|
+
return true;
|
|
3480
|
+
}
|
|
3481
|
+
return false;
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
const isClient = typeof window !== "undefined";
|
|
3485
|
+
const isString = (val) => typeof val === "string";
|
|
3486
|
+
const noop$2 = () => {
|
|
3487
|
+
};
|
|
3488
|
+
|
|
3489
|
+
function createFilterWrapper(filter, fn) {
|
|
3490
|
+
function wrapper(...args) {
|
|
3491
|
+
filter(() => fn.apply(this, args), { fn, thisArg: this, args });
|
|
3492
|
+
}
|
|
3493
|
+
return wrapper;
|
|
3494
|
+
}
|
|
3495
|
+
function throttleFilter(ms, trailing = true, leading = true) {
|
|
3496
|
+
let lastExec = 0;
|
|
3497
|
+
let timer;
|
|
3498
|
+
let preventLeading = !leading;
|
|
3499
|
+
const clear = () => {
|
|
3500
|
+
if (timer) {
|
|
3501
|
+
clearTimeout(timer);
|
|
3502
|
+
timer = void 0;
|
|
3503
|
+
}
|
|
3504
|
+
};
|
|
3505
|
+
const filter = (invoke) => {
|
|
3506
|
+
const duration = unref(ms);
|
|
3507
|
+
const elapsed = Date.now() - lastExec;
|
|
3508
|
+
clear();
|
|
3509
|
+
if (duration <= 0) {
|
|
3510
|
+
lastExec = Date.now();
|
|
3511
|
+
return invoke();
|
|
2865
3512
|
}
|
|
3513
|
+
if (elapsed > duration) {
|
|
3514
|
+
lastExec = Date.now();
|
|
3515
|
+
if (preventLeading)
|
|
3516
|
+
preventLeading = false;
|
|
3517
|
+
else
|
|
3518
|
+
invoke();
|
|
3519
|
+
} else if (trailing) {
|
|
3520
|
+
timer = setTimeout(() => {
|
|
3521
|
+
lastExec = Date.now();
|
|
3522
|
+
if (!leading)
|
|
3523
|
+
preventLeading = true;
|
|
3524
|
+
clear();
|
|
3525
|
+
invoke();
|
|
3526
|
+
}, duration);
|
|
3527
|
+
}
|
|
3528
|
+
if (!leading && !timer)
|
|
3529
|
+
timer = setTimeout(() => preventLeading = true, duration);
|
|
3530
|
+
};
|
|
3531
|
+
return filter;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
function eagerComputed(fn) {
|
|
3535
|
+
const result = shallowRef();
|
|
3536
|
+
watchSyncEffect(() => {
|
|
3537
|
+
result.value = fn();
|
|
2866
3538
|
});
|
|
3539
|
+
return readonly(result);
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
function useThrottleFn(fn, ms = 200, trailing = true, leading = true) {
|
|
3543
|
+
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
function useTimeoutFn(cb, interval, options = {}) {
|
|
3547
|
+
const {
|
|
3548
|
+
immediate = true
|
|
3549
|
+
} = options;
|
|
3550
|
+
const isPending = ref(false);
|
|
3551
|
+
let timer = null;
|
|
3552
|
+
function clear() {
|
|
3553
|
+
if (timer) {
|
|
3554
|
+
clearTimeout(timer);
|
|
3555
|
+
timer = null;
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
function stop() {
|
|
3559
|
+
isPending.value = false;
|
|
3560
|
+
clear();
|
|
3561
|
+
}
|
|
3562
|
+
function start(...args) {
|
|
3563
|
+
clear();
|
|
3564
|
+
isPending.value = true;
|
|
3565
|
+
timer = setTimeout(() => {
|
|
3566
|
+
isPending.value = false;
|
|
3567
|
+
timer = null;
|
|
3568
|
+
cb(...args);
|
|
3569
|
+
}, unref(interval));
|
|
3570
|
+
}
|
|
3571
|
+
if (immediate) {
|
|
3572
|
+
isPending.value = true;
|
|
3573
|
+
if (isClient)
|
|
3574
|
+
start();
|
|
3575
|
+
}
|
|
3576
|
+
tryOnScopeDispose(stop);
|
|
3577
|
+
return {
|
|
3578
|
+
isPending,
|
|
3579
|
+
start,
|
|
3580
|
+
stop
|
|
3581
|
+
};
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
function unrefElement(elRef) {
|
|
3585
|
+
var _a;
|
|
3586
|
+
const plain = unref(elRef);
|
|
3587
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
const defaultWindow = isClient ? window : void 0;
|
|
3591
|
+
const defaultDocument = isClient ? window.document : void 0;
|
|
3592
|
+
|
|
3593
|
+
function useEventListener(...args) {
|
|
3594
|
+
let target;
|
|
3595
|
+
let event;
|
|
3596
|
+
let listener;
|
|
3597
|
+
let options;
|
|
3598
|
+
if (isString(args[0])) {
|
|
3599
|
+
[event, listener, options] = args;
|
|
3600
|
+
target = defaultWindow;
|
|
3601
|
+
} else {
|
|
3602
|
+
[target, event, listener, options] = args;
|
|
3603
|
+
}
|
|
3604
|
+
if (!target)
|
|
3605
|
+
return noop$2;
|
|
3606
|
+
let cleanup = noop$2;
|
|
3607
|
+
const stopWatch = watch(() => unref(target), (el) => {
|
|
3608
|
+
cleanup();
|
|
3609
|
+
if (!el)
|
|
3610
|
+
return;
|
|
3611
|
+
el.addEventListener(event, listener, options);
|
|
3612
|
+
cleanup = () => {
|
|
3613
|
+
el.removeEventListener(event, listener, options);
|
|
3614
|
+
cleanup = noop$2;
|
|
3615
|
+
};
|
|
3616
|
+
}, { immediate: true, flush: "post" });
|
|
3617
|
+
const stop = () => {
|
|
3618
|
+
stopWatch();
|
|
3619
|
+
cleanup();
|
|
3620
|
+
};
|
|
3621
|
+
tryOnScopeDispose(stop);
|
|
3622
|
+
return stop;
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
function useCssVar(prop, target, { window = defaultWindow } = {}) {
|
|
3626
|
+
const variable = ref("");
|
|
3627
|
+
const elRef = computed(() => {
|
|
3628
|
+
var _a;
|
|
3629
|
+
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
3630
|
+
});
|
|
3631
|
+
watch(elRef, (el) => {
|
|
3632
|
+
if (el && window)
|
|
3633
|
+
variable.value = window.getComputedStyle(el).getPropertyValue(prop);
|
|
3634
|
+
}, { immediate: true });
|
|
3635
|
+
watch(variable, (val) => {
|
|
3636
|
+
var _a;
|
|
3637
|
+
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
3638
|
+
elRef.value.style.setProperty(prop, val);
|
|
3639
|
+
});
|
|
3640
|
+
return variable;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
3644
|
+
if (!document)
|
|
3645
|
+
return ref("visible");
|
|
3646
|
+
const visibility = ref(document.visibilityState);
|
|
3647
|
+
useEventListener(document, "visibilitychange", () => {
|
|
3648
|
+
visibility.value = document.visibilityState;
|
|
3649
|
+
});
|
|
3650
|
+
return visibility;
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3654
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3655
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3656
|
+
var __objRest$2 = (source, exclude) => {
|
|
3657
|
+
var target = {};
|
|
3658
|
+
for (var prop in source)
|
|
3659
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3660
|
+
target[prop] = source[prop];
|
|
3661
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
3662
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
3663
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
3664
|
+
target[prop] = source[prop];
|
|
3665
|
+
}
|
|
3666
|
+
return target;
|
|
2867
3667
|
};
|
|
3668
|
+
function useResizeObserver(target, callback, options = {}) {
|
|
3669
|
+
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
3670
|
+
let observer;
|
|
3671
|
+
const isSupported = window && "ResizeObserver" in window;
|
|
3672
|
+
const cleanup = () => {
|
|
3673
|
+
if (observer) {
|
|
3674
|
+
observer.disconnect();
|
|
3675
|
+
observer = void 0;
|
|
3676
|
+
}
|
|
3677
|
+
};
|
|
3678
|
+
const stopWatch = watch(() => unrefElement(target), (el) => {
|
|
3679
|
+
cleanup();
|
|
3680
|
+
if (isSupported && window && el) {
|
|
3681
|
+
observer = new window.ResizeObserver(callback);
|
|
3682
|
+
observer.observe(el, observerOptions);
|
|
3683
|
+
}
|
|
3684
|
+
}, { immediate: true, flush: "post" });
|
|
3685
|
+
const stop = () => {
|
|
3686
|
+
cleanup();
|
|
3687
|
+
stopWatch();
|
|
3688
|
+
};
|
|
3689
|
+
tryOnScopeDispose(stop);
|
|
3690
|
+
return {
|
|
3691
|
+
isSupported,
|
|
3692
|
+
stop
|
|
3693
|
+
};
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
var SwipeDirection;
|
|
3697
|
+
(function(SwipeDirection2) {
|
|
3698
|
+
SwipeDirection2["UP"] = "UP";
|
|
3699
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
3700
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
3701
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
3702
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
3703
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
3704
|
+
|
|
3705
|
+
function useWindowFocus({ window = defaultWindow } = {}) {
|
|
3706
|
+
if (!window)
|
|
3707
|
+
return ref(false);
|
|
3708
|
+
const focused = ref(window.document.hasFocus());
|
|
3709
|
+
useEventListener(window, "blur", () => {
|
|
3710
|
+
focused.value = false;
|
|
3711
|
+
});
|
|
3712
|
+
useEventListener(window, "focus", () => {
|
|
3713
|
+
focused.value = true;
|
|
3714
|
+
});
|
|
3715
|
+
return focused;
|
|
3716
|
+
}
|
|
2868
3717
|
|
|
2869
3718
|
const EVENT_CODE = {
|
|
2870
3719
|
tab: "Tab",
|
|
@@ -2950,8 +3799,8 @@ const closeModal = (e) => {
|
|
|
2950
3799
|
topModal.handleClose();
|
|
2951
3800
|
}
|
|
2952
3801
|
};
|
|
2953
|
-
|
|
2954
|
-
watch(
|
|
3802
|
+
const useModal = (instance, visibleRef) => {
|
|
3803
|
+
watch(visibleRef, (val) => {
|
|
2955
3804
|
if (val) {
|
|
2956
3805
|
modalStack.push(instance);
|
|
2957
3806
|
} else {
|
|
@@ -2959,150 +3808,20 @@ var useModal = (instance, visibleRef) => {
|
|
|
2959
3808
|
}
|
|
2960
3809
|
});
|
|
2961
3810
|
};
|
|
2962
|
-
if (
|
|
2963
|
-
|
|
2964
|
-
}
|
|
2965
|
-
|
|
2966
|
-
const useMigrating = function() {
|
|
2967
|
-
onMounted(() => {
|
|
2968
|
-
getCurrentInstance();
|
|
2969
|
-
return;
|
|
2970
|
-
});
|
|
2971
|
-
const getMigratingConfig = function() {
|
|
2972
|
-
return {
|
|
2973
|
-
props: {},
|
|
2974
|
-
events: {}
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
return {
|
|
2978
|
-
getMigratingConfig
|
|
2979
|
-
};
|
|
2980
|
-
};
|
|
2981
|
-
|
|
2982
|
-
var useFocus = (el) => {
|
|
2983
|
-
return {
|
|
2984
|
-
focus: () => {
|
|
2985
|
-
var _a, _b;
|
|
2986
|
-
(_b = (_a = el.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
2987
|
-
}
|
|
2988
|
-
};
|
|
2989
|
-
};
|
|
2990
|
-
|
|
2991
|
-
function useThrottleRender(loading, throttle = 0) {
|
|
2992
|
-
if (throttle === 0)
|
|
2993
|
-
return loading;
|
|
2994
|
-
const throttled = ref(false);
|
|
2995
|
-
let timeoutHandle = 0;
|
|
2996
|
-
const dispatchThrottling = () => {
|
|
2997
|
-
if (timeoutHandle) {
|
|
2998
|
-
clearTimeout(timeoutHandle);
|
|
2999
|
-
}
|
|
3000
|
-
timeoutHandle = window.setTimeout(() => {
|
|
3001
|
-
throttled.value = loading.value;
|
|
3002
|
-
}, throttle);
|
|
3003
|
-
};
|
|
3004
|
-
onMounted(dispatchThrottling);
|
|
3005
|
-
watch(() => loading.value, (val) => {
|
|
3006
|
-
if (val) {
|
|
3007
|
-
dispatchThrottling();
|
|
3008
|
-
} else {
|
|
3009
|
-
throttled.value = val;
|
|
3010
|
-
}
|
|
3011
|
-
});
|
|
3012
|
-
return throttled;
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
var usePreventGlobal = (indicator, evt, cb) => {
|
|
3016
|
-
const prevent = (e) => {
|
|
3017
|
-
if (cb(e)) {
|
|
3018
|
-
e.stopImmediatePropagation();
|
|
3019
|
-
}
|
|
3020
|
-
};
|
|
3021
|
-
watch(() => indicator.value, (val) => {
|
|
3022
|
-
if (val) {
|
|
3023
|
-
on(document, evt, prevent, true);
|
|
3024
|
-
} else {
|
|
3025
|
-
off(document, evt, prevent, true);
|
|
3026
|
-
}
|
|
3027
|
-
}, { immediate: true });
|
|
3028
|
-
};
|
|
3029
|
-
|
|
3030
|
-
let target = isServer ? void 0 : document.body;
|
|
3031
|
-
function createGlobalNode(id) {
|
|
3032
|
-
const el = document.createElement("div");
|
|
3033
|
-
if (id !== void 0) {
|
|
3034
|
-
el.id = id;
|
|
3035
|
-
}
|
|
3036
|
-
target.appendChild(el);
|
|
3037
|
-
return el;
|
|
3038
|
-
}
|
|
3039
|
-
function removeGlobalNode(el) {
|
|
3040
|
-
el.remove();
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
var useTeleport = (contentRenderer, appendToBody) => {
|
|
3044
|
-
const isTeleportVisible = ref(false);
|
|
3045
|
-
if (isServer) {
|
|
3046
|
-
return {
|
|
3047
|
-
isTeleportVisible,
|
|
3048
|
-
showTeleport: NOOP,
|
|
3049
|
-
hideTeleport: NOOP,
|
|
3050
|
-
renderTeleport: NOOP
|
|
3051
|
-
};
|
|
3052
|
-
}
|
|
3053
|
-
let $el = null;
|
|
3054
|
-
const showTeleport = () => {
|
|
3055
|
-
isTeleportVisible.value = true;
|
|
3056
|
-
if ($el !== null)
|
|
3057
|
-
return;
|
|
3058
|
-
$el = createGlobalNode();
|
|
3059
|
-
};
|
|
3060
|
-
const hideTeleport = () => {
|
|
3061
|
-
isTeleportVisible.value = false;
|
|
3062
|
-
if ($el !== null) {
|
|
3063
|
-
removeGlobalNode($el);
|
|
3064
|
-
$el = null;
|
|
3065
|
-
}
|
|
3066
|
-
};
|
|
3067
|
-
const renderTeleport = () => {
|
|
3068
|
-
return appendToBody.value !== true ? contentRenderer() : isTeleportVisible.value ? [h$1(Teleport, { to: $el }, contentRenderer())] : void 0;
|
|
3069
|
-
};
|
|
3070
|
-
onUnmounted(hideTeleport);
|
|
3071
|
-
return {
|
|
3072
|
-
isTeleportVisible,
|
|
3073
|
-
showTeleport,
|
|
3074
|
-
hideTeleport,
|
|
3075
|
-
renderTeleport
|
|
3076
|
-
};
|
|
3077
|
-
};
|
|
3078
|
-
|
|
3079
|
-
function useTimeout() {
|
|
3080
|
-
let timeoutHandle;
|
|
3081
|
-
onBeforeUnmount(() => {
|
|
3082
|
-
clearTimeout(timeoutHandle);
|
|
3083
|
-
});
|
|
3084
|
-
return {
|
|
3085
|
-
registerTimeout: (fn, delay) => {
|
|
3086
|
-
clearTimeout(timeoutHandle);
|
|
3087
|
-
timeoutHandle = setTimeout(fn, delay);
|
|
3088
|
-
},
|
|
3089
|
-
cancelTimeout: () => {
|
|
3090
|
-
clearTimeout(timeoutHandle);
|
|
3091
|
-
}
|
|
3092
|
-
};
|
|
3093
|
-
}
|
|
3811
|
+
if (isClient)
|
|
3812
|
+
useEventListener(document, "keydown", closeModal);
|
|
3094
3813
|
|
|
3095
3814
|
const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
3096
3815
|
const CHANGE_EVENT = "change";
|
|
3097
3816
|
const INPUT_EVENT = "input";
|
|
3098
3817
|
|
|
3099
|
-
const useModelToggleProps = {
|
|
3818
|
+
const useModelToggleProps = buildProps({
|
|
3100
3819
|
modelValue: {
|
|
3101
|
-
type: Boolean,
|
|
3820
|
+
type: definePropType(Boolean),
|
|
3102
3821
|
default: null
|
|
3103
3822
|
},
|
|
3104
3823
|
"onUpdate:modelValue": Function
|
|
3105
|
-
};
|
|
3824
|
+
});
|
|
3106
3825
|
const useModelToggleEmits = [UPDATE_MODEL_EVENT];
|
|
3107
3826
|
const useModelToggle = ({
|
|
3108
3827
|
indicator,
|
|
@@ -3111,7 +3830,9 @@ const useModelToggle = ({
|
|
|
3111
3830
|
onShow,
|
|
3112
3831
|
onHide
|
|
3113
3832
|
}) => {
|
|
3114
|
-
const
|
|
3833
|
+
const instance = getCurrentInstance();
|
|
3834
|
+
const props = instance.props;
|
|
3835
|
+
const { emit } = instance;
|
|
3115
3836
|
const hasUpdateHandler = computed(() => isFunction$3(props["onUpdate:modelValue"]));
|
|
3116
3837
|
const isModelBindingAbsent = computed(() => props.modelValue === null);
|
|
3117
3838
|
const doShow = () => {
|
|
@@ -3177,9 +3898,9 @@ const useModelToggle = ({
|
|
|
3177
3898
|
}
|
|
3178
3899
|
};
|
|
3179
3900
|
watch(() => props.modelValue, onChange);
|
|
3180
|
-
if (shouldHideWhenRouteChanges && appContext.config.globalProperties.$route !== void 0) {
|
|
3901
|
+
if (shouldHideWhenRouteChanges && instance.appContext.config.globalProperties.$route !== void 0) {
|
|
3181
3902
|
watch(() => ({
|
|
3182
|
-
...proxy.$route
|
|
3903
|
+
...instance.proxy.$route
|
|
3183
3904
|
}), () => {
|
|
3184
3905
|
if (shouldHideWhenRouteChanges.value && indicator.value) {
|
|
3185
3906
|
hide();
|
|
@@ -5374,6 +6095,69 @@ if (!isServer) {
|
|
|
5374
6095
|
});
|
|
5375
6096
|
}
|
|
5376
6097
|
|
|
6098
|
+
let target = isServer ? void 0 : document.body;
|
|
6099
|
+
function createGlobalNode(id) {
|
|
6100
|
+
const el = document.createElement("div");
|
|
6101
|
+
if (id !== void 0) {
|
|
6102
|
+
el.id = id;
|
|
6103
|
+
}
|
|
6104
|
+
target.appendChild(el);
|
|
6105
|
+
return el;
|
|
6106
|
+
}
|
|
6107
|
+
function removeGlobalNode(el) {
|
|
6108
|
+
el.remove();
|
|
6109
|
+
}
|
|
6110
|
+
|
|
6111
|
+
const useTeleport = (contentRenderer, appendToBody) => {
|
|
6112
|
+
const isTeleportVisible = ref(false);
|
|
6113
|
+
if (!isClient) {
|
|
6114
|
+
return {
|
|
6115
|
+
isTeleportVisible,
|
|
6116
|
+
showTeleport: NOOP,
|
|
6117
|
+
hideTeleport: NOOP,
|
|
6118
|
+
renderTeleport: NOOP
|
|
6119
|
+
};
|
|
6120
|
+
}
|
|
6121
|
+
let $el = null;
|
|
6122
|
+
const showTeleport = () => {
|
|
6123
|
+
isTeleportVisible.value = true;
|
|
6124
|
+
if ($el !== null)
|
|
6125
|
+
return;
|
|
6126
|
+
$el = createGlobalNode();
|
|
6127
|
+
};
|
|
6128
|
+
const hideTeleport = () => {
|
|
6129
|
+
isTeleportVisible.value = false;
|
|
6130
|
+
if ($el !== null) {
|
|
6131
|
+
removeGlobalNode($el);
|
|
6132
|
+
$el = null;
|
|
6133
|
+
}
|
|
6134
|
+
};
|
|
6135
|
+
const renderTeleport = () => {
|
|
6136
|
+
return appendToBody.value !== true ? contentRenderer() : isTeleportVisible.value ? [h$1(Teleport, { to: $el }, contentRenderer())] : void 0;
|
|
6137
|
+
};
|
|
6138
|
+
onUnmounted(hideTeleport);
|
|
6139
|
+
return {
|
|
6140
|
+
isTeleportVisible,
|
|
6141
|
+
showTeleport,
|
|
6142
|
+
hideTeleport,
|
|
6143
|
+
renderTeleport
|
|
6144
|
+
};
|
|
6145
|
+
};
|
|
6146
|
+
|
|
6147
|
+
function useTimeout() {
|
|
6148
|
+
let timeoutHandle;
|
|
6149
|
+
const registerTimeout = (fn, delay) => {
|
|
6150
|
+
cancelTimeout();
|
|
6151
|
+
timeoutHandle = window.setTimeout(fn, delay);
|
|
6152
|
+
};
|
|
6153
|
+
const cancelTimeout = () => window.clearTimeout(timeoutHandle);
|
|
6154
|
+
tryOnScopeDispose(() => cancelTimeout());
|
|
6155
|
+
return {
|
|
6156
|
+
registerTimeout,
|
|
6157
|
+
cancelTimeout
|
|
6158
|
+
};
|
|
6159
|
+
}
|
|
6160
|
+
|
|
5377
6161
|
const AFTER_APPEAR = "after-appear";
|
|
5378
6162
|
const AFTER_ENTER = "after-enter";
|
|
5379
6163
|
const AFTER_LEAVE = "after-leave";
|
|
@@ -5514,7 +6298,7 @@ const useTargetEvents = (onShow, onHide, onToggle) => {
|
|
|
5514
6298
|
return events;
|
|
5515
6299
|
};
|
|
5516
6300
|
return computed(() => {
|
|
5517
|
-
if (isArray$
|
|
6301
|
+
if (isArray$9(props.trigger)) {
|
|
5518
6302
|
return Object.values(props.trigger).reduce((pre, t) => {
|
|
5519
6303
|
return {
|
|
5520
6304
|
...pre,
|
|
@@ -5764,323 +6548,38 @@ const usePopperHook = () => {
|
|
|
5764
6548
|
};
|
|
5765
6549
|
};
|
|
5766
6550
|
|
|
5767
|
-
const
|
|
5768
|
-
const
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
6551
|
+
const usePreventGlobal = (indicator, evt, cb) => {
|
|
6552
|
+
const prevent = (e) => {
|
|
6553
|
+
if (cb(e))
|
|
6554
|
+
e.stopImmediatePropagation();
|
|
6555
|
+
};
|
|
6556
|
+
let stop = void 0;
|
|
6557
|
+
watch(() => indicator.value, (val) => {
|
|
6558
|
+
if (val) {
|
|
6559
|
+
stop = useEventListener(document, evt, prevent, true);
|
|
5772
6560
|
} else {
|
|
5773
|
-
|
|
6561
|
+
stop == null ? void 0 : stop();
|
|
5774
6562
|
}
|
|
5775
|
-
});
|
|
5776
|
-
};
|
|
5777
|
-
const themeVarsKey = "themeVars";
|
|
5778
|
-
function useCssVar$1(vars, target) {
|
|
5779
|
-
let stopWatchCssVar = null;
|
|
5780
|
-
const elRef = computed(() => {
|
|
5781
|
-
var _a;
|
|
5782
|
-
return unref(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
5783
|
-
});
|
|
5784
|
-
const themeVars = useThemeVars();
|
|
5785
|
-
const customVars = { ...themeVars, ...unref(vars) };
|
|
5786
|
-
provide(themeVarsKey, ref(customVars));
|
|
5787
|
-
onMounted(() => {
|
|
5788
|
-
isRef(vars) ? stopWatchCssVar = watch(vars, (val) => {
|
|
5789
|
-
setVars(elRef.value, {
|
|
5790
|
-
...unref(themeVars),
|
|
5791
|
-
...val
|
|
5792
|
-
});
|
|
5793
|
-
}, {
|
|
5794
|
-
immediate: true,
|
|
5795
|
-
deep: true
|
|
5796
|
-
}) : setVars(elRef.value, {
|
|
5797
|
-
...unref(themeVars),
|
|
5798
|
-
...vars
|
|
5799
|
-
});
|
|
5800
|
-
});
|
|
5801
|
-
onUnmounted(() => stopWatchCssVar && stopWatchCssVar());
|
|
5802
|
-
}
|
|
5803
|
-
const useThemeVars = () => {
|
|
5804
|
-
const themeVars = inject(themeVarsKey, {});
|
|
5805
|
-
return themeVars;
|
|
6563
|
+
}, { immediate: true });
|
|
5806
6564
|
};
|
|
5807
6565
|
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
confirm: "OK",
|
|
5821
|
-
selectDate: "Select date",
|
|
5822
|
-
selectTime: "Select time",
|
|
5823
|
-
startDate: "Start Date",
|
|
5824
|
-
startTime: "Start Time",
|
|
5825
|
-
endDate: "End Date",
|
|
5826
|
-
endTime: "End Time",
|
|
5827
|
-
prevYear: "Previous Year",
|
|
5828
|
-
nextYear: "Next Year",
|
|
5829
|
-
prevMonth: "Previous Month",
|
|
5830
|
-
nextMonth: "Next Month",
|
|
5831
|
-
year: "",
|
|
5832
|
-
month1: "January",
|
|
5833
|
-
month2: "February",
|
|
5834
|
-
month3: "March",
|
|
5835
|
-
month4: "April",
|
|
5836
|
-
month5: "May",
|
|
5837
|
-
month6: "June",
|
|
5838
|
-
month7: "July",
|
|
5839
|
-
month8: "August",
|
|
5840
|
-
month9: "September",
|
|
5841
|
-
month10: "October",
|
|
5842
|
-
month11: "November",
|
|
5843
|
-
month12: "December",
|
|
5844
|
-
week: "week",
|
|
5845
|
-
weeks: {
|
|
5846
|
-
sun: "Sun",
|
|
5847
|
-
mon: "Mon",
|
|
5848
|
-
tue: "Tue",
|
|
5849
|
-
wed: "Wed",
|
|
5850
|
-
thu: "Thu",
|
|
5851
|
-
fri: "Fri",
|
|
5852
|
-
sat: "Sat"
|
|
5853
|
-
},
|
|
5854
|
-
months: {
|
|
5855
|
-
jan: "Jan",
|
|
5856
|
-
feb: "Feb",
|
|
5857
|
-
mar: "Mar",
|
|
5858
|
-
apr: "Apr",
|
|
5859
|
-
may: "May",
|
|
5860
|
-
jun: "Jun",
|
|
5861
|
-
jul: "Jul",
|
|
5862
|
-
aug: "Aug",
|
|
5863
|
-
sep: "Sep",
|
|
5864
|
-
oct: "Oct",
|
|
5865
|
-
nov: "Nov",
|
|
5866
|
-
dec: "Dec"
|
|
6566
|
+
const useRestoreActive = (toggle, initialFocus) => {
|
|
6567
|
+
let previousActive;
|
|
6568
|
+
watch(() => toggle.value, (val) => {
|
|
6569
|
+
var _a, _b;
|
|
6570
|
+
if (val) {
|
|
6571
|
+
previousActive = document.activeElement;
|
|
6572
|
+
if (isRef(initialFocus)) {
|
|
6573
|
+
(_b = (_a = initialFocus.value).focus) == null ? void 0 : _b.call(_a);
|
|
6574
|
+
}
|
|
6575
|
+
} else {
|
|
6576
|
+
{
|
|
6577
|
+
previousActive.focus();
|
|
5867
6578
|
}
|
|
5868
|
-
},
|
|
5869
|
-
select: {
|
|
5870
|
-
loading: "Loading",
|
|
5871
|
-
noMatch: "No matching data",
|
|
5872
|
-
noData: "No data",
|
|
5873
|
-
placeholder: "Select"
|
|
5874
|
-
},
|
|
5875
|
-
cascader: {
|
|
5876
|
-
noMatch: "No matching data",
|
|
5877
|
-
loading: "Loading",
|
|
5878
|
-
placeholder: "Select",
|
|
5879
|
-
noData: "No data"
|
|
5880
|
-
},
|
|
5881
|
-
pagination: {
|
|
5882
|
-
goto: "Go to",
|
|
5883
|
-
pagesize: "/page",
|
|
5884
|
-
total: "Total {total}",
|
|
5885
|
-
pageClassifier: "",
|
|
5886
|
-
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
5887
|
-
},
|
|
5888
|
-
messagebox: {
|
|
5889
|
-
title: "Message",
|
|
5890
|
-
confirm: "OK",
|
|
5891
|
-
cancel: "Cancel",
|
|
5892
|
-
error: "Illegal input"
|
|
5893
|
-
},
|
|
5894
|
-
upload: {
|
|
5895
|
-
deleteTip: "press delete to remove",
|
|
5896
|
-
delete: "Delete",
|
|
5897
|
-
preview: "Preview",
|
|
5898
|
-
continue: "Continue"
|
|
5899
|
-
},
|
|
5900
|
-
table: {
|
|
5901
|
-
emptyText: "No Data",
|
|
5902
|
-
confirmFilter: "Confirm",
|
|
5903
|
-
resetFilter: "Reset",
|
|
5904
|
-
clearFilter: "All",
|
|
5905
|
-
sumText: "Sum"
|
|
5906
|
-
},
|
|
5907
|
-
tree: {
|
|
5908
|
-
emptyText: "No Data"
|
|
5909
|
-
},
|
|
5910
|
-
transfer: {
|
|
5911
|
-
noMatch: "No matching data",
|
|
5912
|
-
noData: "No data",
|
|
5913
|
-
titles: ["List 1", "List 2"],
|
|
5914
|
-
filterPlaceholder: "Enter keyword",
|
|
5915
|
-
noCheckedFormat: "{total} items",
|
|
5916
|
-
hasCheckedFormat: "{checked}/{total} checked"
|
|
5917
|
-
},
|
|
5918
|
-
image: {
|
|
5919
|
-
error: "FAILED"
|
|
5920
|
-
},
|
|
5921
|
-
pageHeader: {
|
|
5922
|
-
title: "Back"
|
|
5923
|
-
},
|
|
5924
|
-
popconfirm: {
|
|
5925
|
-
confirmButtonText: "Yes",
|
|
5926
|
-
cancelButtonText: "No"
|
|
5927
|
-
}
|
|
5928
|
-
}
|
|
5929
|
-
};
|
|
5930
|
-
|
|
5931
|
-
const wrapperKey = Symbol();
|
|
5932
|
-
const propKey = Symbol();
|
|
5933
|
-
function buildProp(option, key) {
|
|
5934
|
-
if (!isObject$a(option) || !!option[propKey])
|
|
5935
|
-
return option;
|
|
5936
|
-
const { values, required, default: defaultValue, type, validator } = option;
|
|
5937
|
-
const _validator = values || validator ? (val) => {
|
|
5938
|
-
let valid = false;
|
|
5939
|
-
let allowedValues = [];
|
|
5940
|
-
if (values) {
|
|
5941
|
-
allowedValues = [...values, defaultValue];
|
|
5942
|
-
valid || (valid = allowedValues.includes(val));
|
|
5943
|
-
}
|
|
5944
|
-
if (validator)
|
|
5945
|
-
valid || (valid = validator(val));
|
|
5946
|
-
if (!valid && allowedValues.length > 0) {
|
|
5947
|
-
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
5948
|
-
warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
5949
|
-
}
|
|
5950
|
-
return valid;
|
|
5951
|
-
} : void 0;
|
|
5952
|
-
return {
|
|
5953
|
-
type: typeof type === "object" && Object.getOwnPropertySymbols(type).includes(wrapperKey) ? type[wrapperKey] : type,
|
|
5954
|
-
required: !!required,
|
|
5955
|
-
default: defaultValue,
|
|
5956
|
-
validator: _validator,
|
|
5957
|
-
[propKey]: true
|
|
5958
|
-
};
|
|
5959
|
-
}
|
|
5960
|
-
const buildProps = (props) => fromPairs_1(Object.entries(props).map(([key, option]) => [
|
|
5961
|
-
key,
|
|
5962
|
-
buildProp(option, key)
|
|
5963
|
-
]));
|
|
5964
|
-
const definePropType = (val) => ({ [wrapperKey]: val });
|
|
5965
|
-
const keyOf = (arr) => Object.keys(arr);
|
|
5966
|
-
const mutable = (val) => val;
|
|
5967
|
-
const componentSize = ["large", "medium", "small", "mini"];
|
|
5968
|
-
|
|
5969
|
-
const useLocaleProps = {
|
|
5970
|
-
locale: buildProp({
|
|
5971
|
-
type: definePropType(Object)
|
|
5972
|
-
})
|
|
5973
|
-
};
|
|
5974
|
-
const LocaleInjectionKey = "ElLocaleInjection";
|
|
5975
|
-
let localeObjCache;
|
|
5976
|
-
function translate(path, option, current) {
|
|
5977
|
-
const paths = path.split(".");
|
|
5978
|
-
let value;
|
|
5979
|
-
for (let i = 0, j = paths.length; i < j; i++) {
|
|
5980
|
-
const property = paths[i];
|
|
5981
|
-
value = current[property];
|
|
5982
|
-
if (i === j - 1)
|
|
5983
|
-
return template(value, option);
|
|
5984
|
-
if (!value)
|
|
5985
|
-
return "";
|
|
5986
|
-
current = value;
|
|
5987
|
-
}
|
|
5988
|
-
}
|
|
5989
|
-
const useLocale = () => {
|
|
5990
|
-
const vm = getCurrentInstance();
|
|
5991
|
-
const props = vm.props;
|
|
5992
|
-
const locale = computed(() => props.locale || English);
|
|
5993
|
-
const lang = computed(() => locale.value.name);
|
|
5994
|
-
const _translator = (...args) => {
|
|
5995
|
-
const [path, option] = args;
|
|
5996
|
-
return translate(path, option, locale.value);
|
|
5997
|
-
};
|
|
5998
|
-
const t = (...args) => {
|
|
5999
|
-
return _translator(...args);
|
|
6000
|
-
};
|
|
6001
|
-
const provides = {
|
|
6002
|
-
locale,
|
|
6003
|
-
lang,
|
|
6004
|
-
t
|
|
6005
|
-
};
|
|
6006
|
-
localeObjCache = provides;
|
|
6007
|
-
provide(LocaleInjectionKey, provides);
|
|
6008
|
-
};
|
|
6009
|
-
function template(str, option) {
|
|
6010
|
-
if (!str || !option)
|
|
6011
|
-
return str;
|
|
6012
|
-
return str.replace(/\{(\w+)\}/g, (_, key) => {
|
|
6013
|
-
return option[key];
|
|
6014
|
-
});
|
|
6015
|
-
}
|
|
6016
|
-
const localeProviderMaker = (locale = English) => {
|
|
6017
|
-
const lang = ref(locale.name);
|
|
6018
|
-
const localeRef = ref(locale);
|
|
6019
|
-
return {
|
|
6020
|
-
lang,
|
|
6021
|
-
locale: localeRef,
|
|
6022
|
-
t: (...args) => {
|
|
6023
|
-
const [path, option] = args;
|
|
6024
|
-
return translate(path, option, localeRef.value);
|
|
6025
|
-
}
|
|
6026
|
-
};
|
|
6027
|
-
};
|
|
6028
|
-
const useLocaleInject = () => {
|
|
6029
|
-
return inject(LocaleInjectionKey, localeObjCache || {
|
|
6030
|
-
lang: ref(English.name),
|
|
6031
|
-
locale: ref(English),
|
|
6032
|
-
t: (...args) => {
|
|
6033
|
-
const [path, option] = args;
|
|
6034
|
-
return translate(path, option, English);
|
|
6035
6579
|
}
|
|
6036
6580
|
});
|
|
6037
6581
|
};
|
|
6038
6582
|
|
|
6039
|
-
const elFormKey = Symbol("elForm");
|
|
6040
|
-
const elFormItemKey = Symbol("elFormItem");
|
|
6041
|
-
|
|
6042
|
-
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
6043
|
-
|
|
6044
|
-
const elBreadcrumbKey = Symbol("elBreadcrumbKey");
|
|
6045
|
-
|
|
6046
|
-
const elPaginationKey = Symbol("elPaginationKey");
|
|
6047
|
-
|
|
6048
|
-
const configProviderContextKey = Symbol();
|
|
6049
|
-
|
|
6050
|
-
const radioGroupKey = Symbol("radioGroupKey");
|
|
6051
|
-
|
|
6052
|
-
const tabsRootContextKey = Symbol("tabsRootContextKey");
|
|
6053
|
-
|
|
6054
|
-
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
6055
|
-
|
|
6056
|
-
const sizes = ["", "large", "medium", "small", "mini"];
|
|
6057
|
-
const useFormItemProps = buildProps({
|
|
6058
|
-
size: {
|
|
6059
|
-
type: String,
|
|
6060
|
-
values: sizes,
|
|
6061
|
-
default: ""
|
|
6062
|
-
},
|
|
6063
|
-
disabled: Boolean
|
|
6064
|
-
});
|
|
6065
|
-
const useFormItem = ({ size, disabled }) => {
|
|
6066
|
-
var _a;
|
|
6067
|
-
const vm = getCurrentInstance();
|
|
6068
|
-
const $ELEMENT = useGlobalConfig$1();
|
|
6069
|
-
const props = (_a = vm.proxy) == null ? void 0 : _a.$props;
|
|
6070
|
-
const form = inject(elFormKey, void 0);
|
|
6071
|
-
const formItem = inject(elFormItemKey, void 0);
|
|
6072
|
-
return {
|
|
6073
|
-
size: computed(() => {
|
|
6074
|
-
return props.size || unref(size) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || $ELEMENT.size || "";
|
|
6075
|
-
}),
|
|
6076
|
-
disabled: computed(() => {
|
|
6077
|
-
return props.disabled === true || unref(disabled) || (form == null ? void 0 : form.disabled) || false;
|
|
6078
|
-
}),
|
|
6079
|
-
form,
|
|
6080
|
-
formItem
|
|
6081
|
-
};
|
|
6082
|
-
};
|
|
6083
|
-
|
|
6084
6583
|
const useSameTarget = (handleClick) => {
|
|
6085
6584
|
if (!handleClick) {
|
|
6086
6585
|
return { onClick: NOOP, onMousedown: NOOP, onMouseup: NOOP };
|
|
@@ -6102,16 +6601,31 @@ const useSameTarget = (handleClick) => {
|
|
|
6102
6601
|
return { onClick, onMousedown, onMouseup };
|
|
6103
6602
|
};
|
|
6104
6603
|
|
|
6105
|
-
const
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
const
|
|
6111
|
-
|
|
6604
|
+
const useThrottleRender = (loading, throttle = 0) => {
|
|
6605
|
+
if (throttle === 0)
|
|
6606
|
+
return loading;
|
|
6607
|
+
const throttled = ref(false);
|
|
6608
|
+
let timeoutHandle = 0;
|
|
6609
|
+
const dispatchThrottling = () => {
|
|
6610
|
+
if (timeoutHandle) {
|
|
6611
|
+
clearTimeout(timeoutHandle);
|
|
6612
|
+
}
|
|
6613
|
+
timeoutHandle = window.setTimeout(() => {
|
|
6614
|
+
throttled.value = loading.value;
|
|
6615
|
+
}, throttle);
|
|
6616
|
+
};
|
|
6617
|
+
onMounted(dispatchThrottling);
|
|
6618
|
+
watch(() => loading.value, (val) => {
|
|
6619
|
+
if (val) {
|
|
6620
|
+
dispatchThrottling();
|
|
6621
|
+
} else {
|
|
6622
|
+
throttled.value = val;
|
|
6623
|
+
}
|
|
6624
|
+
});
|
|
6625
|
+
return throttled;
|
|
6112
6626
|
};
|
|
6113
6627
|
|
|
6114
|
-
const version$1 = "1.2.0-beta.
|
|
6628
|
+
const version$1 = "1.2.0-beta.5";
|
|
6115
6629
|
|
|
6116
6630
|
const makeInstaller = (components = []) => {
|
|
6117
6631
|
const apps = [];
|
|
@@ -6129,7 +6643,7 @@ const makeInstaller = (components = []) => {
|
|
|
6129
6643
|
});
|
|
6130
6644
|
if (option.locale) {
|
|
6131
6645
|
const localeProvides = localeProviderMaker(opts.locale);
|
|
6132
|
-
app.provide(
|
|
6646
|
+
app.provide(localeContextKey, localeProvides);
|
|
6133
6647
|
}
|
|
6134
6648
|
app.config.globalProperties.$ELEMENT = option;
|
|
6135
6649
|
setConfig(option);
|
|
@@ -6165,248 +6679,6 @@ const withNoopInstall = (component) => {
|
|
|
6165
6679
|
return component;
|
|
6166
6680
|
};
|
|
6167
6681
|
|
|
6168
|
-
function tryOnScopeDispose(fn) {
|
|
6169
|
-
if (getCurrentScope()) {
|
|
6170
|
-
onScopeDispose(fn);
|
|
6171
|
-
return true;
|
|
6172
|
-
}
|
|
6173
|
-
return false;
|
|
6174
|
-
}
|
|
6175
|
-
|
|
6176
|
-
const isClient = typeof window !== "undefined";
|
|
6177
|
-
const isString = (val) => typeof val === "string";
|
|
6178
|
-
const noop$2 = () => {
|
|
6179
|
-
};
|
|
6180
|
-
|
|
6181
|
-
function createFilterWrapper(filter, fn) {
|
|
6182
|
-
function wrapper(...args) {
|
|
6183
|
-
filter(() => fn.apply(this, args), { fn, thisArg: this, args });
|
|
6184
|
-
}
|
|
6185
|
-
return wrapper;
|
|
6186
|
-
}
|
|
6187
|
-
function throttleFilter(ms, trailing = true, leading = true) {
|
|
6188
|
-
let lastExec = 0;
|
|
6189
|
-
let timer;
|
|
6190
|
-
let preventLeading = !leading;
|
|
6191
|
-
const clear = () => {
|
|
6192
|
-
if (timer) {
|
|
6193
|
-
clearTimeout(timer);
|
|
6194
|
-
timer = void 0;
|
|
6195
|
-
}
|
|
6196
|
-
};
|
|
6197
|
-
const filter = (invoke) => {
|
|
6198
|
-
const duration = unref(ms);
|
|
6199
|
-
const elapsed = Date.now() - lastExec;
|
|
6200
|
-
clear();
|
|
6201
|
-
if (duration <= 0) {
|
|
6202
|
-
lastExec = Date.now();
|
|
6203
|
-
return invoke();
|
|
6204
|
-
}
|
|
6205
|
-
if (elapsed > duration) {
|
|
6206
|
-
lastExec = Date.now();
|
|
6207
|
-
if (preventLeading)
|
|
6208
|
-
preventLeading = false;
|
|
6209
|
-
else
|
|
6210
|
-
invoke();
|
|
6211
|
-
} else if (trailing) {
|
|
6212
|
-
timer = setTimeout(() => {
|
|
6213
|
-
lastExec = Date.now();
|
|
6214
|
-
if (!leading)
|
|
6215
|
-
preventLeading = true;
|
|
6216
|
-
clear();
|
|
6217
|
-
invoke();
|
|
6218
|
-
}, duration);
|
|
6219
|
-
}
|
|
6220
|
-
if (!leading && !timer)
|
|
6221
|
-
timer = setTimeout(() => preventLeading = true, duration);
|
|
6222
|
-
};
|
|
6223
|
-
return filter;
|
|
6224
|
-
}
|
|
6225
|
-
|
|
6226
|
-
function eagerComputed(fn) {
|
|
6227
|
-
const result = shallowRef();
|
|
6228
|
-
watchSyncEffect(() => {
|
|
6229
|
-
result.value = fn();
|
|
6230
|
-
});
|
|
6231
|
-
return readonly(result);
|
|
6232
|
-
}
|
|
6233
|
-
|
|
6234
|
-
function useThrottleFn(fn, ms = 200, trailing = true, leading = true) {
|
|
6235
|
-
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
6236
|
-
}
|
|
6237
|
-
|
|
6238
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
6239
|
-
const {
|
|
6240
|
-
immediate = true
|
|
6241
|
-
} = options;
|
|
6242
|
-
const isPending = ref(false);
|
|
6243
|
-
let timer = null;
|
|
6244
|
-
function clear() {
|
|
6245
|
-
if (timer) {
|
|
6246
|
-
clearTimeout(timer);
|
|
6247
|
-
timer = null;
|
|
6248
|
-
}
|
|
6249
|
-
}
|
|
6250
|
-
function stop() {
|
|
6251
|
-
isPending.value = false;
|
|
6252
|
-
clear();
|
|
6253
|
-
}
|
|
6254
|
-
function start(...args) {
|
|
6255
|
-
clear();
|
|
6256
|
-
isPending.value = true;
|
|
6257
|
-
timer = setTimeout(() => {
|
|
6258
|
-
isPending.value = false;
|
|
6259
|
-
timer = null;
|
|
6260
|
-
cb(...args);
|
|
6261
|
-
}, unref(interval));
|
|
6262
|
-
}
|
|
6263
|
-
if (immediate) {
|
|
6264
|
-
isPending.value = true;
|
|
6265
|
-
if (isClient)
|
|
6266
|
-
start();
|
|
6267
|
-
}
|
|
6268
|
-
tryOnScopeDispose(stop);
|
|
6269
|
-
return {
|
|
6270
|
-
isPending,
|
|
6271
|
-
start,
|
|
6272
|
-
stop
|
|
6273
|
-
};
|
|
6274
|
-
}
|
|
6275
|
-
|
|
6276
|
-
function unrefElement(elRef) {
|
|
6277
|
-
var _a;
|
|
6278
|
-
const plain = unref(elRef);
|
|
6279
|
-
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
6280
|
-
}
|
|
6281
|
-
|
|
6282
|
-
const defaultWindow = isClient ? window : void 0;
|
|
6283
|
-
const defaultDocument = isClient ? window.document : void 0;
|
|
6284
|
-
|
|
6285
|
-
function useEventListener(...args) {
|
|
6286
|
-
let target;
|
|
6287
|
-
let event;
|
|
6288
|
-
let listener;
|
|
6289
|
-
let options;
|
|
6290
|
-
if (isString(args[0])) {
|
|
6291
|
-
[event, listener, options] = args;
|
|
6292
|
-
target = defaultWindow;
|
|
6293
|
-
} else {
|
|
6294
|
-
[target, event, listener, options] = args;
|
|
6295
|
-
}
|
|
6296
|
-
if (!target)
|
|
6297
|
-
return noop$2;
|
|
6298
|
-
let cleanup = noop$2;
|
|
6299
|
-
const stopWatch = watch(() => unref(target), (el) => {
|
|
6300
|
-
cleanup();
|
|
6301
|
-
if (!el)
|
|
6302
|
-
return;
|
|
6303
|
-
el.addEventListener(event, listener, options);
|
|
6304
|
-
cleanup = () => {
|
|
6305
|
-
el.removeEventListener(event, listener, options);
|
|
6306
|
-
cleanup = noop$2;
|
|
6307
|
-
};
|
|
6308
|
-
}, { immediate: true, flush: "post" });
|
|
6309
|
-
const stop = () => {
|
|
6310
|
-
stopWatch();
|
|
6311
|
-
cleanup();
|
|
6312
|
-
};
|
|
6313
|
-
tryOnScopeDispose(stop);
|
|
6314
|
-
return stop;
|
|
6315
|
-
}
|
|
6316
|
-
|
|
6317
|
-
function useCssVar(prop, target, { window = defaultWindow } = {}) {
|
|
6318
|
-
const variable = ref("");
|
|
6319
|
-
const elRef = computed(() => {
|
|
6320
|
-
var _a;
|
|
6321
|
-
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
6322
|
-
});
|
|
6323
|
-
watch(elRef, (el) => {
|
|
6324
|
-
if (el && window)
|
|
6325
|
-
variable.value = window.getComputedStyle(el).getPropertyValue(prop);
|
|
6326
|
-
}, { immediate: true });
|
|
6327
|
-
watch(variable, (val) => {
|
|
6328
|
-
var _a;
|
|
6329
|
-
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
6330
|
-
elRef.value.style.setProperty(prop, val);
|
|
6331
|
-
});
|
|
6332
|
-
return variable;
|
|
6333
|
-
}
|
|
6334
|
-
|
|
6335
|
-
function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
6336
|
-
if (!document)
|
|
6337
|
-
return ref("visible");
|
|
6338
|
-
const visibility = ref(document.visibilityState);
|
|
6339
|
-
useEventListener(document, "visibilitychange", () => {
|
|
6340
|
-
visibility.value = document.visibilityState;
|
|
6341
|
-
});
|
|
6342
|
-
return visibility;
|
|
6343
|
-
}
|
|
6344
|
-
|
|
6345
|
-
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
6346
|
-
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
6347
|
-
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
6348
|
-
var __objRest$2 = (source, exclude) => {
|
|
6349
|
-
var target = {};
|
|
6350
|
-
for (var prop in source)
|
|
6351
|
-
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6352
|
-
target[prop] = source[prop];
|
|
6353
|
-
if (source != null && __getOwnPropSymbols$9)
|
|
6354
|
-
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
6355
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
6356
|
-
target[prop] = source[prop];
|
|
6357
|
-
}
|
|
6358
|
-
return target;
|
|
6359
|
-
};
|
|
6360
|
-
function useResizeObserver(target, callback, options = {}) {
|
|
6361
|
-
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
6362
|
-
let observer;
|
|
6363
|
-
const isSupported = window && "ResizeObserver" in window;
|
|
6364
|
-
const cleanup = () => {
|
|
6365
|
-
if (observer) {
|
|
6366
|
-
observer.disconnect();
|
|
6367
|
-
observer = void 0;
|
|
6368
|
-
}
|
|
6369
|
-
};
|
|
6370
|
-
const stopWatch = watch(() => unrefElement(target), (el) => {
|
|
6371
|
-
cleanup();
|
|
6372
|
-
if (isSupported && window && el) {
|
|
6373
|
-
observer = new window.ResizeObserver(callback);
|
|
6374
|
-
observer.observe(el, observerOptions);
|
|
6375
|
-
}
|
|
6376
|
-
}, { immediate: true, flush: "post" });
|
|
6377
|
-
const stop = () => {
|
|
6378
|
-
cleanup();
|
|
6379
|
-
stopWatch();
|
|
6380
|
-
};
|
|
6381
|
-
tryOnScopeDispose(stop);
|
|
6382
|
-
return {
|
|
6383
|
-
isSupported,
|
|
6384
|
-
stop
|
|
6385
|
-
};
|
|
6386
|
-
}
|
|
6387
|
-
|
|
6388
|
-
var SwipeDirection;
|
|
6389
|
-
(function(SwipeDirection2) {
|
|
6390
|
-
SwipeDirection2["UP"] = "UP";
|
|
6391
|
-
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
6392
|
-
SwipeDirection2["DOWN"] = "DOWN";
|
|
6393
|
-
SwipeDirection2["LEFT"] = "LEFT";
|
|
6394
|
-
SwipeDirection2["NONE"] = "NONE";
|
|
6395
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
|
6396
|
-
|
|
6397
|
-
function useWindowFocus({ window = defaultWindow } = {}) {
|
|
6398
|
-
if (!window)
|
|
6399
|
-
return ref(false);
|
|
6400
|
-
const focused = ref(window.document.hasFocus());
|
|
6401
|
-
useEventListener(window, "blur", () => {
|
|
6402
|
-
focused.value = false;
|
|
6403
|
-
});
|
|
6404
|
-
useEventListener(window, "focus", () => {
|
|
6405
|
-
focused.value = true;
|
|
6406
|
-
});
|
|
6407
|
-
return focused;
|
|
6408
|
-
}
|
|
6409
|
-
|
|
6410
6682
|
const affixProps = buildProps({
|
|
6411
6683
|
zIndex: {
|
|
6412
6684
|
type: definePropType([Number, String]),
|
|
@@ -7712,36 +7984,6 @@ function baseTrim$1(string) {
|
|
|
7712
7984
|
|
|
7713
7985
|
var _baseTrim = baseTrim$1;
|
|
7714
7986
|
|
|
7715
|
-
var baseGetTag = _baseGetTag,
|
|
7716
|
-
isObjectLike$3 = isObjectLike_1;
|
|
7717
|
-
|
|
7718
|
-
/** `Object#toString` result references. */
|
|
7719
|
-
var symbolTag$2 = '[object Symbol]';
|
|
7720
|
-
|
|
7721
|
-
/**
|
|
7722
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
7723
|
-
*
|
|
7724
|
-
* @static
|
|
7725
|
-
* @memberOf _
|
|
7726
|
-
* @since 4.0.0
|
|
7727
|
-
* @category Lang
|
|
7728
|
-
* @param {*} value The value to check.
|
|
7729
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
7730
|
-
* @example
|
|
7731
|
-
*
|
|
7732
|
-
* _.isSymbol(Symbol.iterator);
|
|
7733
|
-
* // => true
|
|
7734
|
-
*
|
|
7735
|
-
* _.isSymbol('abc');
|
|
7736
|
-
* // => false
|
|
7737
|
-
*/
|
|
7738
|
-
function isSymbol$1(value) {
|
|
7739
|
-
return typeof value == 'symbol' ||
|
|
7740
|
-
(isObjectLike$3(value) && baseGetTag(value) == symbolTag$2);
|
|
7741
|
-
}
|
|
7742
|
-
|
|
7743
|
-
var isSymbol_1 = isSymbol$1;
|
|
7744
|
-
|
|
7745
7987
|
var baseTrim = _baseTrim,
|
|
7746
7988
|
isObject$6 = isObject_1,
|
|
7747
7989
|
isSymbol = isSymbol_1;
|
|
@@ -7812,7 +8054,7 @@ var isObject$5 = isObject_1,
|
|
|
7812
8054
|
toNumber = toNumber_1;
|
|
7813
8055
|
|
|
7814
8056
|
/** Error message constants. */
|
|
7815
|
-
var FUNC_ERROR_TEXT$
|
|
8057
|
+
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
7816
8058
|
|
|
7817
8059
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
7818
8060
|
var nativeMax$1 = Math.max,
|
|
@@ -7885,7 +8127,7 @@ function debounce$1(func, wait, options) {
|
|
|
7885
8127
|
trailing = true;
|
|
7886
8128
|
|
|
7887
8129
|
if (typeof func != 'function') {
|
|
7888
|
-
throw new TypeError(FUNC_ERROR_TEXT$
|
|
8130
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
7889
8131
|
}
|
|
7890
8132
|
wait = toNumber(wait) || 0;
|
|
7891
8133
|
if (isObject$5(options)) {
|
|
@@ -8851,7 +9093,7 @@ var script$1T = defineComponent({
|
|
|
8851
9093
|
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
8852
9094
|
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
8853
9095
|
} else {
|
|
8854
|
-
({ stop: stopResizeObserver } = useResizeObserver(resize
|
|
9096
|
+
({ stop: stopResizeObserver } = useResizeObserver(resize$, update));
|
|
8855
9097
|
stopResizeListener = useEventListener("resize", update);
|
|
8856
9098
|
}
|
|
8857
9099
|
}, { immediate: true });
|
|
@@ -9045,7 +9287,7 @@ var popperDefaultProps = {
|
|
|
9045
9287
|
},
|
|
9046
9288
|
effect: {
|
|
9047
9289
|
type: String,
|
|
9048
|
-
default: "dark"
|
|
9290
|
+
default: "dark" /* DARK */
|
|
9049
9291
|
},
|
|
9050
9292
|
enterable: {
|
|
9051
9293
|
type: Boolean,
|
|
@@ -9287,7 +9529,7 @@ function usePopper(props, { emit }) {
|
|
|
9287
9529
|
events[event] = popperEventsHandler;
|
|
9288
9530
|
});
|
|
9289
9531
|
};
|
|
9290
|
-
if (isArray$
|
|
9532
|
+
if (isArray$9(props.trigger)) {
|
|
9291
9533
|
Object.values(props.trigger).forEach(mapEvents);
|
|
9292
9534
|
} else {
|
|
9293
9535
|
mapEvents(props.trigger);
|
|
@@ -9585,7 +9827,7 @@ var script$1R = defineComponent({
|
|
|
9585
9827
|
return `el-autocomplete-${generateId()}`;
|
|
9586
9828
|
});
|
|
9587
9829
|
const suggestionVisible = computed(() => {
|
|
9588
|
-
const isValidData = isArray$
|
|
9830
|
+
const isValidData = isArray$9(suggestions.value) && suggestions.value.length > 0;
|
|
9589
9831
|
return (isValidData || loading.value) && activated.value;
|
|
9590
9832
|
});
|
|
9591
9833
|
const suggestionLoading = computed(() => {
|
|
@@ -9618,7 +9860,7 @@ var script$1R = defineComponent({
|
|
|
9618
9860
|
if (suggestionDisabled.value) {
|
|
9619
9861
|
return;
|
|
9620
9862
|
}
|
|
9621
|
-
if (isArray$
|
|
9863
|
+
if (isArray$9(suggestionsArg)) {
|
|
9622
9864
|
suggestions.value = suggestionsArg;
|
|
9623
9865
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
9624
9866
|
} else {
|
|
@@ -10774,7 +11016,7 @@ var script$1J = defineComponent({
|
|
|
10774
11016
|
emits: ["update:modelValue", "change", "focus", "blur", "calendar-change"],
|
|
10775
11017
|
setup(props, ctx) {
|
|
10776
11018
|
const ELEMENT = useGlobalConfig$1();
|
|
10777
|
-
const { lang } =
|
|
11019
|
+
const { lang } = useLocale();
|
|
10778
11020
|
const elForm = inject(elFormKey, {});
|
|
10779
11021
|
const elFormItem = inject(elFormItemKey, {});
|
|
10780
11022
|
const elPopperOptions = inject("ElPopperOptions", {});
|
|
@@ -11701,7 +11943,7 @@ var script$1H = defineComponent({
|
|
|
11701
11943
|
},
|
|
11702
11944
|
emits: ["pick", "select-range", "set-picker-option"],
|
|
11703
11945
|
setup(props, ctx) {
|
|
11704
|
-
const { t, lang } =
|
|
11946
|
+
const { t, lang } = useLocale();
|
|
11705
11947
|
const selectionRange = ref([0, 2]);
|
|
11706
11948
|
const oldValue = useOldValue(props);
|
|
11707
11949
|
const transitionName = computed(() => {
|
|
@@ -12493,7 +12735,7 @@ var script$1G = defineComponent({
|
|
|
12493
12735
|
},
|
|
12494
12736
|
emits: ["pick", "select-range", "set-picker-option"],
|
|
12495
12737
|
setup(props, ctx) {
|
|
12496
|
-
const { t, lang } =
|
|
12738
|
+
const { t, lang } = useLocale();
|
|
12497
12739
|
const minDate = computed(() => props.parsedValue[0]);
|
|
12498
12740
|
const maxDate = computed(() => props.parsedValue[1]);
|
|
12499
12741
|
const oldValue = useOldValue(props);
|
|
@@ -12867,7 +13109,7 @@ var script$1F = defineComponent({
|
|
|
12867
13109
|
},
|
|
12868
13110
|
emits: ["pick"],
|
|
12869
13111
|
setup(props, ctx) {
|
|
12870
|
-
const { lang } =
|
|
13112
|
+
const { lang } = useLocale();
|
|
12871
13113
|
const WEEK_DAYS = ref(dayjs().locale(lang.value).localeData().weekdaysShort());
|
|
12872
13114
|
const now = dayjs().locale(lang.value);
|
|
12873
13115
|
const firstDayOfWeek = now.$locale().weekStart || 0;
|
|
@@ -13044,7 +13286,7 @@ var script$1E = defineComponent({
|
|
|
13044
13286
|
},
|
|
13045
13287
|
emits: ["input", "update:modelValue"],
|
|
13046
13288
|
setup(props, ctx) {
|
|
13047
|
-
const { t, lang } =
|
|
13289
|
+
const { t, lang } = useLocale();
|
|
13048
13290
|
const selectedDay = ref(null);
|
|
13049
13291
|
const now = dayjs().locale(lang.value);
|
|
13050
13292
|
const prevMonthDayjs = computed(() => {
|
|
@@ -13328,7 +13570,7 @@ var debounce = debounce_1,
|
|
|
13328
13570
|
isObject$4 = isObject_1;
|
|
13329
13571
|
|
|
13330
13572
|
/** Error message constants. */
|
|
13331
|
-
var FUNC_ERROR_TEXT
|
|
13573
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
13332
13574
|
|
|
13333
13575
|
/**
|
|
13334
13576
|
* Creates a throttled function that only invokes `func` at most once per
|
|
@@ -13379,7 +13621,7 @@ function throttle(func, wait, options) {
|
|
|
13379
13621
|
trailing = true;
|
|
13380
13622
|
|
|
13381
13623
|
if (typeof func != 'function') {
|
|
13382
|
-
throw new TypeError(FUNC_ERROR_TEXT
|
|
13624
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
13383
13625
|
}
|
|
13384
13626
|
if (isObject$4(options)) {
|
|
13385
13627
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
@@ -13765,7 +14007,6 @@ var script$1B = defineComponent({
|
|
|
13765
14007
|
},
|
|
13766
14008
|
setup(props) {
|
|
13767
14009
|
const instance = getCurrentInstance();
|
|
13768
|
-
instance.uid;
|
|
13769
14010
|
const data = reactive({
|
|
13770
14011
|
hover: false,
|
|
13771
14012
|
translate: 0,
|
|
@@ -14949,7 +15190,7 @@ var script$1t = defineComponent({
|
|
|
14949
15190
|
},
|
|
14950
15191
|
setup(props) {
|
|
14951
15192
|
const instance = getCurrentInstance();
|
|
14952
|
-
const { t } =
|
|
15193
|
+
const { t } = useLocale();
|
|
14953
15194
|
const id = generateId();
|
|
14954
15195
|
let activeNode = null;
|
|
14955
15196
|
let hoverTimer = null;
|
|
@@ -15298,7 +15539,7 @@ var script$1s = defineComponent({
|
|
|
15298
15539
|
let initialLoaded = true;
|
|
15299
15540
|
let manualChecked = false;
|
|
15300
15541
|
const config = useCascaderConfig(props);
|
|
15301
|
-
|
|
15542
|
+
let store = null;
|
|
15302
15543
|
const menuList = ref([]);
|
|
15303
15544
|
const checkedValue = ref(null);
|
|
15304
15545
|
const menus = ref([]);
|
|
@@ -15310,11 +15551,15 @@ var script$1s = defineComponent({
|
|
|
15310
15551
|
const { options } = props;
|
|
15311
15552
|
const cfg = config.value;
|
|
15312
15553
|
manualChecked = false;
|
|
15313
|
-
store
|
|
15314
|
-
menus.value = [store.
|
|
15554
|
+
store = new Store(options, cfg);
|
|
15555
|
+
menus.value = [store.getNodes()];
|
|
15315
15556
|
if (cfg.lazy && isEmpty(props.options)) {
|
|
15316
15557
|
initialLoaded = false;
|
|
15317
|
-
lazyLoad(void 0, () => {
|
|
15558
|
+
lazyLoad(void 0, (list) => {
|
|
15559
|
+
if (list) {
|
|
15560
|
+
store = new Store(list, cfg);
|
|
15561
|
+
menus.value = [store.getNodes()];
|
|
15562
|
+
}
|
|
15318
15563
|
initialLoaded = true;
|
|
15319
15564
|
syncCheckedValue(false, true);
|
|
15320
15565
|
});
|
|
@@ -15327,10 +15572,9 @@ var script$1s = defineComponent({
|
|
|
15327
15572
|
node = node || new Node$3({}, cfg, void 0, true);
|
|
15328
15573
|
node.loading = true;
|
|
15329
15574
|
const resolve = (dataList) => {
|
|
15330
|
-
var _a;
|
|
15331
15575
|
const _node = node;
|
|
15332
15576
|
const parent = _node.root ? null : _node;
|
|
15333
|
-
dataList && (
|
|
15577
|
+
dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
|
|
15334
15578
|
_node.loading = false;
|
|
15335
15579
|
_node.loaded = true;
|
|
15336
15580
|
_node.childrenData = _node.childrenData || [];
|
|
@@ -15373,8 +15617,7 @@ var script$1s = defineComponent({
|
|
|
15373
15617
|
node && expandNode(node);
|
|
15374
15618
|
};
|
|
15375
15619
|
const getFlattedNodes = (leafOnly) => {
|
|
15376
|
-
|
|
15377
|
-
return (_a = store.value) == null ? void 0 : _a.getFlattedNodes(leafOnly);
|
|
15620
|
+
return store == null ? void 0 : store.getFlattedNodes(leafOnly);
|
|
15378
15621
|
};
|
|
15379
15622
|
const getCheckedNodes = (leafOnly) => {
|
|
15380
15623
|
var _a;
|
|
@@ -15402,10 +15645,7 @@ var script$1s = defineComponent({
|
|
|
15402
15645
|
return;
|
|
15403
15646
|
if (lazy && !loaded) {
|
|
15404
15647
|
const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
|
|
15405
|
-
const nodes = values.map((val) =>
|
|
15406
|
-
var _a;
|
|
15407
|
-
return (_a = store.value) == null ? void 0 : _a.getNodeByValue(val);
|
|
15408
|
-
}).filter((node) => !!node && !node.loaded && !node.loading);
|
|
15648
|
+
const nodes = values.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
|
|
15409
15649
|
if (nodes.length) {
|
|
15410
15650
|
nodes.forEach((node) => {
|
|
15411
15651
|
lazyLoad(node, () => syncCheckedValue(false, forced));
|
|
@@ -15415,20 +15655,16 @@ var script$1s = defineComponent({
|
|
|
15415
15655
|
}
|
|
15416
15656
|
} else {
|
|
15417
15657
|
const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
|
|
15418
|
-
const nodes = deduplicate(values.map((val) =>
|
|
15419
|
-
var _a;
|
|
15420
|
-
return (_a = store.value) == null ? void 0 : _a.getNodeByValue(val, leafOnly);
|
|
15421
|
-
}));
|
|
15658
|
+
const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
|
|
15422
15659
|
syncMenuState(nodes, false);
|
|
15423
15660
|
checkedValue.value = modelValue;
|
|
15424
15661
|
}
|
|
15425
15662
|
};
|
|
15426
15663
|
const syncMenuState = (newCheckedNodes, reserveExpandingState = true) => {
|
|
15427
|
-
var _a;
|
|
15428
15664
|
const { checkStrictly } = config.value;
|
|
15429
15665
|
const oldNodes = checkedNodes.value;
|
|
15430
15666
|
const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
|
|
15431
|
-
const oldExpandingNode =
|
|
15667
|
+
const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
|
|
15432
15668
|
const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
|
|
15433
15669
|
if (newExpandingNode) {
|
|
15434
15670
|
newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
|
|
@@ -15755,7 +15991,7 @@ var script$1q = defineComponent({
|
|
|
15755
15991
|
setup(props, { emit }) {
|
|
15756
15992
|
let inputInitialHeight = 0;
|
|
15757
15993
|
let pressDeleteCount = 0;
|
|
15758
|
-
const { t } =
|
|
15994
|
+
const { t } = useLocale();
|
|
15759
15995
|
const $ELEMENT = useGlobalConfig$1();
|
|
15760
15996
|
const elForm = inject(elFormKey, {});
|
|
15761
15997
|
const elFormItem = inject(elFormItemKey, {});
|
|
@@ -17439,7 +17675,7 @@ var script$1h = defineComponent({
|
|
|
17439
17675
|
emits: ["change", "active-change", UPDATE_MODEL_EVENT],
|
|
17440
17676
|
setup(props, { emit }) {
|
|
17441
17677
|
const ELEMENT = useGlobalConfig$1();
|
|
17442
|
-
const { t } =
|
|
17678
|
+
const { t } = useLocale();
|
|
17443
17679
|
const elForm = inject(elFormKey, {});
|
|
17444
17680
|
const elFormItem = inject(elFormItemKey, {});
|
|
17445
17681
|
const hue = ref(null);
|
|
@@ -17753,7 +17989,7 @@ const ConfigProvider = defineComponent({
|
|
|
17753
17989
|
name: "ElConfigProvider",
|
|
17754
17990
|
props: configProviderProps,
|
|
17755
17991
|
setup(props, { slots }) {
|
|
17756
|
-
|
|
17992
|
+
provideLocale();
|
|
17757
17993
|
provide(configProviderContextKey, props);
|
|
17758
17994
|
return () => {
|
|
17759
17995
|
var _a;
|
|
@@ -18031,7 +18267,7 @@ var script$1b = defineComponent({
|
|
|
18031
18267
|
},
|
|
18032
18268
|
emits: ["changerange", "pick", "select"],
|
|
18033
18269
|
setup(props, ctx) {
|
|
18034
|
-
const { t, lang } =
|
|
18270
|
+
const { t, lang } = useLocale();
|
|
18035
18271
|
const lastRow = ref(null);
|
|
18036
18272
|
const lastColumn = ref(null);
|
|
18037
18273
|
const tableRows = ref([[], [], [], [], [], []]);
|
|
@@ -18354,7 +18590,7 @@ var script$1a = defineComponent({
|
|
|
18354
18590
|
},
|
|
18355
18591
|
emits: ["changerange", "pick", "select"],
|
|
18356
18592
|
setup(props, ctx) {
|
|
18357
|
-
const { t, lang } =
|
|
18593
|
+
const { t, lang } = useLocale();
|
|
18358
18594
|
const months = ref(props.date.locale("en").localeData().monthsShort().map((_) => _.toLowerCase()));
|
|
18359
18595
|
const tableRows = ref([[], [], []]);
|
|
18360
18596
|
const lastRow = ref(null);
|
|
@@ -18537,7 +18773,7 @@ var script$19 = defineComponent({
|
|
|
18537
18773
|
},
|
|
18538
18774
|
emits: ["pick"],
|
|
18539
18775
|
setup(props, ctx) {
|
|
18540
|
-
const { lang } =
|
|
18776
|
+
const { lang } = useLocale();
|
|
18541
18777
|
const startYear = computed(() => {
|
|
18542
18778
|
return Math.floor(props.date.year() / 10) * 10;
|
|
18543
18779
|
});
|
|
@@ -18685,7 +18921,7 @@ var script$18 = defineComponent({
|
|
|
18685
18921
|
},
|
|
18686
18922
|
emits: ["pick", "set-picker-option"],
|
|
18687
18923
|
setup(props, ctx) {
|
|
18688
|
-
const { t, lang } =
|
|
18924
|
+
const { t, lang } = useLocale();
|
|
18689
18925
|
const pickerBase = inject("EP_PICKER_BASE");
|
|
18690
18926
|
const {
|
|
18691
18927
|
shortcuts,
|
|
@@ -19289,7 +19525,7 @@ var script$17 = defineComponent({
|
|
|
19289
19525
|
},
|
|
19290
19526
|
emits: ["pick", "set-picker-option", "calendar-change"],
|
|
19291
19527
|
setup(props, ctx) {
|
|
19292
|
-
const { t, lang } =
|
|
19528
|
+
const { t, lang } = useLocale();
|
|
19293
19529
|
const leftDate = ref(dayjs().locale(lang.value));
|
|
19294
19530
|
const rightDate = ref(dayjs().locale(lang.value).add(1, "month"));
|
|
19295
19531
|
const minDate = ref(null);
|
|
@@ -20004,7 +20240,7 @@ var script$16 = defineComponent({
|
|
|
20004
20240
|
},
|
|
20005
20241
|
emits: ["pick", "set-picker-option"],
|
|
20006
20242
|
setup(props, ctx) {
|
|
20007
|
-
const { t, lang } =
|
|
20243
|
+
const { t, lang } = useLocale();
|
|
20008
20244
|
const leftDate = ref(dayjs().locale(lang.value));
|
|
20009
20245
|
const rightDate = ref(dayjs().locale(lang.value).add(1, "year"));
|
|
20010
20246
|
const hasShortcuts = computed(() => !!shortcuts.length);
|
|
@@ -20907,7 +21143,7 @@ const useDialog = (props, { emit }, targetRef) => {
|
|
|
20907
21143
|
visible.value = false;
|
|
20908
21144
|
}
|
|
20909
21145
|
if (props.lockScroll) {
|
|
20910
|
-
|
|
21146
|
+
useLockscreen(visible);
|
|
20911
21147
|
}
|
|
20912
21148
|
if (props.closeOnPressEscape) {
|
|
20913
21149
|
useModal({
|
|
@@ -21953,7 +22189,7 @@ var script$Y = defineComponent({
|
|
|
21953
22189
|
},
|
|
21954
22190
|
props: emptyProps,
|
|
21955
22191
|
setup(props) {
|
|
21956
|
-
const { t } =
|
|
22192
|
+
const { t } = useLocale();
|
|
21957
22193
|
const emptyDescription = computed(() => props.description || t("el.table.emptyText"));
|
|
21958
22194
|
const imageStyle = computed(() => ({
|
|
21959
22195
|
width: props.imageSize ? `${props.imageSize}px` : ""
|
|
@@ -23892,7 +24128,7 @@ var script$V = defineComponent({
|
|
|
23892
24128
|
props: imageViewerProps,
|
|
23893
24129
|
emits: imageViewerEmits,
|
|
23894
24130
|
setup(props, { emit }) {
|
|
23895
|
-
const { t } =
|
|
24131
|
+
const { t } = useLocale();
|
|
23896
24132
|
const wrapper = ref();
|
|
23897
24133
|
const img = ref();
|
|
23898
24134
|
const scopeEventListener = effectScope();
|
|
@@ -24307,7 +24543,7 @@ var script$U = defineComponent({
|
|
|
24307
24543
|
props: imageProps,
|
|
24308
24544
|
emits: imageEmits,
|
|
24309
24545
|
setup(props, { emit, attrs: rawAttrs }) {
|
|
24310
|
-
const { t } =
|
|
24546
|
+
const { t } = useLocale();
|
|
24311
24547
|
const attrs = useAttrs();
|
|
24312
24548
|
const hasLoadError = ref(false);
|
|
24313
24549
|
const loading = ref(true);
|
|
@@ -25067,10 +25303,9 @@ var script$R = defineComponent({
|
|
|
25067
25303
|
el.style.width = `${el.scrollWidth}px`;
|
|
25068
25304
|
el.style.overflow = "hidden";
|
|
25069
25305
|
},
|
|
25070
|
-
onLeave(el
|
|
25306
|
+
onLeave(el) {
|
|
25071
25307
|
addClass(el, "horizontal-collapse-transition");
|
|
25072
25308
|
el.style.width = `${el.dataset.scrollWidth}px`;
|
|
25073
|
-
done();
|
|
25074
25309
|
}
|
|
25075
25310
|
};
|
|
25076
25311
|
return {
|
|
@@ -25996,7 +26231,7 @@ var script$O = defineComponent({
|
|
|
25996
26231
|
props: pageHeaderProps,
|
|
25997
26232
|
emits: pageHeaderEmits,
|
|
25998
26233
|
setup(_, { emit }) {
|
|
25999
|
-
const { t } =
|
|
26234
|
+
const { t } = useLocale();
|
|
26000
26235
|
function handleClick() {
|
|
26001
26236
|
emit("back");
|
|
26002
26237
|
}
|
|
@@ -26369,7 +26604,7 @@ script$K.render = render$E;
|
|
|
26369
26604
|
script$K.__file = "packages/components/select/src/select-dropdown.vue";
|
|
26370
26605
|
|
|
26371
26606
|
function useSelectStates(props) {
|
|
26372
|
-
const { t } =
|
|
26607
|
+
const { t } = useLocale();
|
|
26373
26608
|
return reactive({
|
|
26374
26609
|
options: /* @__PURE__ */ new Map(),
|
|
26375
26610
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -26399,7 +26634,7 @@ function useSelectStates(props) {
|
|
|
26399
26634
|
}
|
|
26400
26635
|
const useSelect$2 = (props, states, ctx) => {
|
|
26401
26636
|
const ELEMENT = useGlobalConfig$1();
|
|
26402
|
-
const { t } =
|
|
26637
|
+
const { t } = useLocale();
|
|
26403
26638
|
const reference = ref(null);
|
|
26404
26639
|
const input = ref(null);
|
|
26405
26640
|
const popper = ref(null);
|
|
@@ -27103,7 +27338,7 @@ var script$J = defineComponent({
|
|
|
27103
27338
|
"blur"
|
|
27104
27339
|
],
|
|
27105
27340
|
setup(props, ctx) {
|
|
27106
|
-
const { t } =
|
|
27341
|
+
const { t } = useLocale();
|
|
27107
27342
|
const states = useSelectStates(props);
|
|
27108
27343
|
const {
|
|
27109
27344
|
optionsArray,
|
|
@@ -27655,7 +27890,7 @@ var script$H = defineComponent({
|
|
|
27655
27890
|
props: paginationSizesProps,
|
|
27656
27891
|
emits: ["page-size-change"],
|
|
27657
27892
|
setup(props, { emit }) {
|
|
27658
|
-
const { t } =
|
|
27893
|
+
const { t } = useLocale();
|
|
27659
27894
|
const pagination = usePagination();
|
|
27660
27895
|
const innerPageSize = ref(props.pageSize);
|
|
27661
27896
|
watch(() => props.pageSizes, (newVal, oldVal) => {
|
|
@@ -27721,7 +27956,7 @@ var script$G = defineComponent({
|
|
|
27721
27956
|
ElInput: ElInput$1
|
|
27722
27957
|
},
|
|
27723
27958
|
setup() {
|
|
27724
|
-
const { t } =
|
|
27959
|
+
const { t } = useLocale();
|
|
27725
27960
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
27726
27961
|
const userInput = ref();
|
|
27727
27962
|
const innerValue = computed(() => {
|
|
@@ -27779,7 +28014,7 @@ var script$F = defineComponent({
|
|
|
27779
28014
|
name: "ElPaginationTotal",
|
|
27780
28015
|
props: paginationTotalProps,
|
|
27781
28016
|
setup() {
|
|
27782
|
-
const { t } =
|
|
28017
|
+
const { t } = useLocale();
|
|
27783
28018
|
return {
|
|
27784
28019
|
t
|
|
27785
28020
|
};
|
|
@@ -28042,7 +28277,7 @@ var Pagination = defineComponent({
|
|
|
28042
28277
|
props: paginationProps,
|
|
28043
28278
|
emits: paginationEmits,
|
|
28044
28279
|
setup(props, { emit, slots }) {
|
|
28045
|
-
const { t } =
|
|
28280
|
+
const { t } = useLocale();
|
|
28046
28281
|
const vnodeProps = getCurrentInstance().vnode.props || {};
|
|
28047
28282
|
const hasCurrentPageListener = "onUpdate:currentPage" in vnodeProps || "onUpdate:current-page" in vnodeProps || "onCurrentChange" in vnodeProps;
|
|
28048
28283
|
const hasPageSizeListener = "onUpdate:pageSize" in vnodeProps || "onUpdate:page-size" in vnodeProps || "onSizeChange" in vnodeProps;
|
|
@@ -28268,7 +28503,7 @@ var script$D = defineComponent({
|
|
|
28268
28503
|
props: popconfirmProps,
|
|
28269
28504
|
emits: popconfirmEmits,
|
|
28270
28505
|
setup(props, { emit }) {
|
|
28271
|
-
const { t } =
|
|
28506
|
+
const { t } = useLocale();
|
|
28272
28507
|
const visible = ref(false);
|
|
28273
28508
|
const confirm = () => {
|
|
28274
28509
|
visible.value = false;
|
|
@@ -28943,7 +29178,7 @@ var script$A = defineComponent({
|
|
|
28943
29178
|
return result;
|
|
28944
29179
|
});
|
|
28945
29180
|
const valueDecimal = computed(() => props.modelValue * 100 - Math.floor(props.modelValue) * 100);
|
|
28946
|
-
const colorMap = computed(() => isArray$
|
|
29181
|
+
const colorMap = computed(() => isArray$9(props.colors) ? {
|
|
28947
29182
|
[props.lowThreshold]: props.colors[0],
|
|
28948
29183
|
[props.highThreshold]: { value: props.colors[1], excluded: true },
|
|
28949
29184
|
[props.max]: props.colors[2]
|
|
@@ -28961,7 +29196,7 @@ var script$A = defineComponent({
|
|
|
28961
29196
|
width
|
|
28962
29197
|
};
|
|
28963
29198
|
});
|
|
28964
|
-
const componentMap = computed(() => isArray$
|
|
29199
|
+
const componentMap = computed(() => isArray$9(props.icons) ? {
|
|
28965
29200
|
[props.lowThreshold]: props.icons[0],
|
|
28966
29201
|
[props.highThreshold]: {
|
|
28967
29202
|
value: props.icons[1],
|
|
@@ -29292,80 +29527,6 @@ var Row = defineComponent({
|
|
|
29292
29527
|
|
|
29293
29528
|
const ElRow = withInstall(Row);
|
|
29294
29529
|
|
|
29295
|
-
var MapCache = _MapCache;
|
|
29296
|
-
|
|
29297
|
-
/** Error message constants. */
|
|
29298
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
29299
|
-
|
|
29300
|
-
/**
|
|
29301
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
29302
|
-
* provided, it determines the cache key for storing the result based on the
|
|
29303
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
29304
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
29305
|
-
* is invoked with the `this` binding of the memoized function.
|
|
29306
|
-
*
|
|
29307
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
29308
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
29309
|
-
* constructor with one whose instances implement the
|
|
29310
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
29311
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
29312
|
-
*
|
|
29313
|
-
* @static
|
|
29314
|
-
* @memberOf _
|
|
29315
|
-
* @since 0.1.0
|
|
29316
|
-
* @category Function
|
|
29317
|
-
* @param {Function} func The function to have its output memoized.
|
|
29318
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
29319
|
-
* @returns {Function} Returns the new memoized function.
|
|
29320
|
-
* @example
|
|
29321
|
-
*
|
|
29322
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
29323
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
29324
|
-
*
|
|
29325
|
-
* var values = _.memoize(_.values);
|
|
29326
|
-
* values(object);
|
|
29327
|
-
* // => [1, 2]
|
|
29328
|
-
*
|
|
29329
|
-
* values(other);
|
|
29330
|
-
* // => [3, 4]
|
|
29331
|
-
*
|
|
29332
|
-
* object.a = 2;
|
|
29333
|
-
* values(object);
|
|
29334
|
-
* // => [1, 2]
|
|
29335
|
-
*
|
|
29336
|
-
* // Modify the result cache.
|
|
29337
|
-
* values.cache.set(object, ['a', 'b']);
|
|
29338
|
-
* values(object);
|
|
29339
|
-
* // => ['a', 'b']
|
|
29340
|
-
*
|
|
29341
|
-
* // Replace `_.memoize.Cache`.
|
|
29342
|
-
* _.memoize.Cache = WeakMap;
|
|
29343
|
-
*/
|
|
29344
|
-
function memoize(func, resolver) {
|
|
29345
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
29346
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
29347
|
-
}
|
|
29348
|
-
var memoized = function() {
|
|
29349
|
-
var args = arguments,
|
|
29350
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
29351
|
-
cache = memoized.cache;
|
|
29352
|
-
|
|
29353
|
-
if (cache.has(key)) {
|
|
29354
|
-
return cache.get(key);
|
|
29355
|
-
}
|
|
29356
|
-
var result = func.apply(this, args);
|
|
29357
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
29358
|
-
return result;
|
|
29359
|
-
};
|
|
29360
|
-
memoized.cache = new (memoize.Cache || MapCache);
|
|
29361
|
-
return memoized;
|
|
29362
|
-
}
|
|
29363
|
-
|
|
29364
|
-
// Expose `MapCache`.
|
|
29365
|
-
memoize.Cache = MapCache;
|
|
29366
|
-
|
|
29367
|
-
var memoize_1 = memoize;
|
|
29368
|
-
|
|
29369
29530
|
var safeIsNaN = Number.isNaN ||
|
|
29370
29531
|
function ponyfill(value) {
|
|
29371
29532
|
return typeof value === 'number' && value !== value;
|
|
@@ -31492,7 +31653,7 @@ function useAllowCreate(props, states) {
|
|
|
31492
31653
|
const flattenOptions = (options) => {
|
|
31493
31654
|
const flattened = [];
|
|
31494
31655
|
options.map((option) => {
|
|
31495
|
-
if (isArray$
|
|
31656
|
+
if (isArray$9(option.options)) {
|
|
31496
31657
|
flattened.push({
|
|
31497
31658
|
label: option.label,
|
|
31498
31659
|
isTitle: true,
|
|
@@ -31543,7 +31704,7 @@ const TAG_BASE_WIDTH = {
|
|
|
31543
31704
|
mini: 33
|
|
31544
31705
|
};
|
|
31545
31706
|
const useSelect = (props, emit) => {
|
|
31546
|
-
const { t } =
|
|
31707
|
+
const { t } = useLocale();
|
|
31547
31708
|
const elForm = inject(elFormKey, {});
|
|
31548
31709
|
const elFormItem = inject(elFormItemKey, {});
|
|
31549
31710
|
const $ELEMENT = useGlobalConfig$1();
|
|
@@ -31624,7 +31785,7 @@ const useSelect = (props, emit) => {
|
|
|
31624
31785
|
return [];
|
|
31625
31786
|
}
|
|
31626
31787
|
return flattenOptions(props.options.concat(states.createdOptions).map((v) => {
|
|
31627
|
-
if (isArray$
|
|
31788
|
+
if (isArray$9(v.options)) {
|
|
31628
31789
|
const filtered = v.options.filter(isValidOption);
|
|
31629
31790
|
if (filtered.length > 0) {
|
|
31630
31791
|
return {
|
|
@@ -31660,7 +31821,7 @@ const useSelect = (props, emit) => {
|
|
|
31660
31821
|
};
|
|
31661
31822
|
});
|
|
31662
31823
|
const shouldShowPlaceholder = computed(() => {
|
|
31663
|
-
if (isArray$
|
|
31824
|
+
if (isArray$9(props.modelValue)) {
|
|
31664
31825
|
return props.modelValue.length === 0 && !states.displayInputValue;
|
|
31665
31826
|
}
|
|
31666
31827
|
return props.filterable ? states.displayInputValue.length === 0 : true;
|
|
@@ -31909,7 +32070,7 @@ const useSelect = (props, emit) => {
|
|
|
31909
32070
|
};
|
|
31910
32071
|
const handleClear = () => {
|
|
31911
32072
|
let emptyValue;
|
|
31912
|
-
if (isArray$
|
|
32073
|
+
if (isArray$9(props.modelValue)) {
|
|
31913
32074
|
emptyValue = [];
|
|
31914
32075
|
} else {
|
|
31915
32076
|
emptyValue = "";
|
|
@@ -33543,7 +33704,7 @@ const spaceProps = buildProps({
|
|
|
33543
33704
|
type: [String, Array, Number],
|
|
33544
33705
|
values: componentSize,
|
|
33545
33706
|
validator: (val) => {
|
|
33546
|
-
return isNumber(val) || isArray$
|
|
33707
|
+
return isNumber(val) || isArray$9(val) && val.length === 2 && val.every((i) => isNumber(i));
|
|
33547
33708
|
}
|
|
33548
33709
|
}
|
|
33549
33710
|
});
|
|
@@ -33558,11 +33719,11 @@ var Space = defineComponent({
|
|
|
33558
33719
|
const children = renderSlot(slots, "default", { key: 0 }, () => []);
|
|
33559
33720
|
if (((_a = children.children) != null ? _a : []).length === 0)
|
|
33560
33721
|
return null;
|
|
33561
|
-
if (isArray$
|
|
33722
|
+
if (isArray$9(children.children)) {
|
|
33562
33723
|
let extractedChildren = [];
|
|
33563
33724
|
children.children.forEach((child, loopKey) => {
|
|
33564
33725
|
if (isFragment(child)) {
|
|
33565
|
-
if (isArray$
|
|
33726
|
+
if (isArray$9(child.children)) {
|
|
33566
33727
|
child.children.forEach((nested, key) => {
|
|
33567
33728
|
extractedChildren.push(createVNode(script$o, {
|
|
33568
33729
|
style: itemStyle.value,
|
|
@@ -35716,7 +35877,7 @@ var script$k = defineComponent({
|
|
|
35716
35877
|
},
|
|
35717
35878
|
setup(props) {
|
|
35718
35879
|
const instance = getCurrentInstance();
|
|
35719
|
-
const { t } =
|
|
35880
|
+
const { t } = useLocale();
|
|
35720
35881
|
const parent = instance.parent;
|
|
35721
35882
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
35722
35883
|
parent.filterPanels.value[props.column.id] = instance;
|
|
@@ -37560,7 +37721,7 @@ var script$j = defineComponent({
|
|
|
37560
37721
|
"expand-change"
|
|
37561
37722
|
],
|
|
37562
37723
|
setup(props) {
|
|
37563
|
-
const { t } =
|
|
37724
|
+
const { t } = useLocale();
|
|
37564
37725
|
const table = getCurrentInstance();
|
|
37565
37726
|
const store = createStore(table, props);
|
|
37566
37727
|
table.store = store;
|
|
@@ -39499,7 +39660,7 @@ var script$d = defineComponent({
|
|
|
39499
39660
|
props: useCheckProps,
|
|
39500
39661
|
emits: [CHECKED_CHANGE_EVENT],
|
|
39501
39662
|
setup(props, { slots }) {
|
|
39502
|
-
const { t } =
|
|
39663
|
+
const { t } = useLocale();
|
|
39503
39664
|
const panelState = reactive({
|
|
39504
39665
|
checked: [],
|
|
39505
39666
|
allChecked: false,
|
|
@@ -39797,7 +39958,7 @@ var script$c = defineComponent({
|
|
|
39797
39958
|
RIGHT_CHECK_CHANGE_EVENT
|
|
39798
39959
|
],
|
|
39799
39960
|
setup(props, { emit, slots }) {
|
|
39800
|
-
const { t } =
|
|
39961
|
+
const { t } = useLocale();
|
|
39801
39962
|
const elFormItem = inject(elFormItemKey, {});
|
|
39802
39963
|
const checkedState = reactive({
|
|
39803
39964
|
leftChecked: [],
|
|
@@ -41329,7 +41490,7 @@ var script$9 = defineComponent({
|
|
|
41329
41490
|
"node-drag-over"
|
|
41330
41491
|
],
|
|
41331
41492
|
setup(props, ctx) {
|
|
41332
|
-
const { t } =
|
|
41493
|
+
const { t } = useLocale();
|
|
41333
41494
|
const store = ref(new TreeStore({
|
|
41334
41495
|
key: props.nodeKey,
|
|
41335
41496
|
data: props.data,
|
|
@@ -41594,10 +41755,10 @@ const treeProps = buildProps({
|
|
|
41594
41755
|
props: {
|
|
41595
41756
|
type: definePropType(Object),
|
|
41596
41757
|
default: () => mutable({
|
|
41597
|
-
children: "children"
|
|
41598
|
-
label: "label"
|
|
41599
|
-
disabled: "disabled"
|
|
41600
|
-
value: "id"
|
|
41758
|
+
children: "children" /* CHILDREN */,
|
|
41759
|
+
label: "label" /* LABEL */,
|
|
41760
|
+
disabled: "disabled" /* DISABLED */,
|
|
41761
|
+
value: "id" /* KEY */
|
|
41601
41762
|
})
|
|
41602
41763
|
},
|
|
41603
41764
|
highlightCurrent: {
|
|
@@ -42331,7 +42492,7 @@ var script$7 = defineComponent({
|
|
|
42331
42492
|
props,
|
|
42332
42493
|
instance: getCurrentInstance()
|
|
42333
42494
|
});
|
|
42334
|
-
const { t } =
|
|
42495
|
+
const { t } = useLocale();
|
|
42335
42496
|
const {
|
|
42336
42497
|
flattenTree,
|
|
42337
42498
|
isNotEmpty,
|
|
@@ -42549,7 +42710,7 @@ var script$6 = defineComponent({
|
|
|
42549
42710
|
},
|
|
42550
42711
|
emits: ["remove"],
|
|
42551
42712
|
setup(props, { emit }) {
|
|
42552
|
-
const { t } =
|
|
42713
|
+
const { t } = useLocale();
|
|
42553
42714
|
const handleClick = (file) => {
|
|
42554
42715
|
props.handlePreview(file);
|
|
42555
42716
|
};
|
|
@@ -45177,7 +45338,7 @@ var script$1 = defineComponent({
|
|
|
45177
45338
|
},
|
|
45178
45339
|
emits: ["vanish", "action"],
|
|
45179
45340
|
setup(props, { emit }) {
|
|
45180
|
-
const { t } =
|
|
45341
|
+
const { t } = useLocale();
|
|
45181
45342
|
const visible = ref(false);
|
|
45182
45343
|
const state = reactive({
|
|
45183
45344
|
beforeClose: null,
|
|
@@ -45221,7 +45382,7 @@ var script$1 = defineComponent({
|
|
|
45221
45382
|
const hasMessage = computed(() => !!state.message);
|
|
45222
45383
|
const inputRef = ref(null);
|
|
45223
45384
|
const confirmRef = ref(null);
|
|
45224
|
-
const confirmButtonClasses = computed(() =>
|
|
45385
|
+
const confirmButtonClasses = computed(() => state.confirmButtonClass);
|
|
45225
45386
|
watch(() => state.inputValue, async (val) => {
|
|
45226
45387
|
await nextTick();
|
|
45227
45388
|
if (props.boxType === "prompt" && val !== null) {
|
|
@@ -45335,7 +45496,7 @@ var script$1 = defineComponent({
|
|
|
45335
45496
|
usePreventGlobal(visible, "keydown", (e) => e.code === EVENT_CODE.esc);
|
|
45336
45497
|
}
|
|
45337
45498
|
if (props.lockScroll) {
|
|
45338
|
-
|
|
45499
|
+
useLockscreen(visible);
|
|
45339
45500
|
}
|
|
45340
45501
|
useRestoreActive(visible);
|
|
45341
45502
|
return {
|
|
@@ -45489,6 +45650,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45489
45650
|
}, 8, ["loading", "class", "round", "size"])) : createCommentVNode("v-if", true),
|
|
45490
45651
|
withDirectives(createVNode(_component_el_button, {
|
|
45491
45652
|
ref: "confirmRef",
|
|
45653
|
+
type: "primary",
|
|
45654
|
+
plain: "",
|
|
45492
45655
|
loading: _ctx.confirmButtonLoading,
|
|
45493
45656
|
class: normalizeClass([_ctx.confirmButtonClasses]),
|
|
45494
45657
|
round: _ctx.roundButton,
|
|
@@ -45998,4 +46161,4 @@ var installer = makeInstaller$1([...Components, ...Plugins]);
|
|
|
45998
46161
|
const install = installer.install;
|
|
45999
46162
|
const version = installer.version;
|
|
46000
46163
|
|
|
46001
|
-
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, script$1J 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, 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,
|
|
46164
|
+
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, script$1J 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, 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, Mousewheel, RepeatClick, Resize, script$1H as TimePickPanel, TrapFocus, affixEmits, affixProps, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, barProps, breadcrumbItemProps, breadcrumbProps, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeType, buttonProps, buttonSize, buttonType, cardProps, colProps, configProviderContextKey, configProviderProps, installer as default, dialogEmits, dialogProps, dividerProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, localeContextKey, 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, provideLocale, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderArrow, renderPopper, renderThumbStyle$1 as renderThumbStyle, renderTrigger, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, timePickerDefaultProps, translate, useAttrs, useCascaderConfig, useDialog, useFocus, useFormItem, useFormItemProps, useGlobalConfig, useLocale, useLocaleProps, useLockscreen, useModal, useModelToggle, useModelToggleEmits, useModelToggleProps, usePopper, usePopperControlProps, usePopperHook, usePopperProps, usePreventGlobal, useRadio, useRestoreActive, useSameTarget, useSpace, useTeleport, useThrottleRender, useTimeout, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|