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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v1.2.0-beta.
|
|
1
|
+
/*! Element Plus v1.2.0-beta.5 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
|
|
62
62
|
const LISTENER_PREFIX = /^on[A-Z]/;
|
|
63
|
-
|
|
63
|
+
const useAttrs = (params = {}) => {
|
|
64
64
|
const { excludeListeners = false, excludeKeys = [] } = params;
|
|
65
65
|
const allExcludeKeys = excludeKeys.concat(DEFAULT_EXCLUDE_KEYS);
|
|
66
66
|
const instance = vue.getCurrentInstance();
|
|
@@ -73,7 +73,31 @@
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
const useFocus = (el) => {
|
|
77
|
+
return {
|
|
78
|
+
focus: () => {
|
|
79
|
+
var _a, _b;
|
|
80
|
+
(_b = (_a = el.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const elFormKey = Symbol("elForm");
|
|
86
|
+
const elFormItemKey = Symbol("elFormItem");
|
|
87
|
+
|
|
88
|
+
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
89
|
+
|
|
90
|
+
const elBreadcrumbKey = Symbol("elBreadcrumbKey");
|
|
91
|
+
|
|
92
|
+
const elPaginationKey = Symbol("elPaginationKey");
|
|
93
|
+
|
|
94
|
+
const configProviderContextKey = Symbol();
|
|
95
|
+
|
|
96
|
+
const radioGroupKey = Symbol("radioGroupKey");
|
|
97
|
+
|
|
98
|
+
const tabsRootContextKey = Symbol("tabsRootContextKey");
|
|
99
|
+
|
|
100
|
+
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
77
101
|
|
|
78
102
|
/**
|
|
79
103
|
* Make a map and return a function for checking if a key
|
|
@@ -85,7 +109,7 @@
|
|
|
85
109
|
const NOOP = () => { };
|
|
86
110
|
const hasOwnProperty$c = Object.prototype.hasOwnProperty;
|
|
87
111
|
const hasOwn = (val, key) => hasOwnProperty$c.call(val, key);
|
|
88
|
-
const isArray$
|
|
112
|
+
const isArray$9 = Array.isArray;
|
|
89
113
|
const isFunction$3 = (val) => typeof val === 'function';
|
|
90
114
|
const isString$1 = (val) => typeof val === 'string';
|
|
91
115
|
const isObject$a = (val) => val !== null && typeof val === 'object';
|
|
@@ -117,6 +141,44 @@
|
|
|
117
141
|
*/
|
|
118
142
|
const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
|
|
119
143
|
|
|
144
|
+
const wrapperKey = Symbol();
|
|
145
|
+
const propKey = Symbol();
|
|
146
|
+
function buildProp(option, key) {
|
|
147
|
+
if (!isObject$a(option) || !!option[propKey])
|
|
148
|
+
return option;
|
|
149
|
+
const { values, required, default: defaultValue, type, validator } = option;
|
|
150
|
+
const _validator = values || validator ? (val) => {
|
|
151
|
+
let valid = false;
|
|
152
|
+
let allowedValues = [];
|
|
153
|
+
if (values) {
|
|
154
|
+
allowedValues = [...values, defaultValue];
|
|
155
|
+
valid || (valid = allowedValues.includes(val));
|
|
156
|
+
}
|
|
157
|
+
if (validator)
|
|
158
|
+
valid || (valid = validator(val));
|
|
159
|
+
if (!valid && allowedValues.length > 0) {
|
|
160
|
+
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
161
|
+
vue.warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
162
|
+
}
|
|
163
|
+
return valid;
|
|
164
|
+
} : void 0;
|
|
165
|
+
return {
|
|
166
|
+
type: typeof type === "object" && Object.getOwnPropertySymbols(type).includes(wrapperKey) ? type[wrapperKey] : type,
|
|
167
|
+
required: !!required,
|
|
168
|
+
default: defaultValue,
|
|
169
|
+
validator: _validator,
|
|
170
|
+
[propKey]: true
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
const buildProps = (props) => fromPairs_1(Object.entries(props).map(([key, option]) => [
|
|
174
|
+
key,
|
|
175
|
+
buildProp(option, key)
|
|
176
|
+
]));
|
|
177
|
+
const definePropType = (val) => ({ [wrapperKey]: val });
|
|
178
|
+
const keyOf = (arr) => Object.keys(arr);
|
|
179
|
+
const mutable = (val) => val;
|
|
180
|
+
const componentSize = ["large", "medium", "small", "mini"];
|
|
181
|
+
|
|
120
182
|
/**
|
|
121
183
|
* Removes all key-value entries from the list cache.
|
|
122
184
|
*
|
|
@@ -413,11 +475,11 @@
|
|
|
413
475
|
var root$8 = _root;
|
|
414
476
|
|
|
415
477
|
/** Built-in value references. */
|
|
416
|
-
var Symbol$
|
|
478
|
+
var Symbol$7 = root$8.Symbol;
|
|
417
479
|
|
|
418
|
-
var _Symbol = Symbol$
|
|
480
|
+
var _Symbol = Symbol$7;
|
|
419
481
|
|
|
420
|
-
var Symbol$
|
|
482
|
+
var Symbol$6 = _Symbol;
|
|
421
483
|
|
|
422
484
|
/** Used for built-in method references. */
|
|
423
485
|
var objectProto$e = Object.prototype;
|
|
@@ -433,7 +495,7 @@
|
|
|
433
495
|
var nativeObjectToString$1 = objectProto$e.toString;
|
|
434
496
|
|
|
435
497
|
/** Built-in value references. */
|
|
436
|
-
var symToStringTag$1 = Symbol$
|
|
498
|
+
var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : undefined;
|
|
437
499
|
|
|
438
500
|
/**
|
|
439
501
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -488,7 +550,7 @@
|
|
|
488
550
|
|
|
489
551
|
var _objectToString = objectToString$1;
|
|
490
552
|
|
|
491
|
-
var Symbol$
|
|
553
|
+
var Symbol$5 = _Symbol,
|
|
492
554
|
getRawTag = _getRawTag,
|
|
493
555
|
objectToString = _objectToString;
|
|
494
556
|
|
|
@@ -497,7 +559,7 @@
|
|
|
497
559
|
undefinedTag = '[object Undefined]';
|
|
498
560
|
|
|
499
561
|
/** Built-in value references. */
|
|
500
|
-
var symToStringTag = Symbol$
|
|
562
|
+
var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
|
|
501
563
|
|
|
502
564
|
/**
|
|
503
565
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -1354,7 +1416,7 @@
|
|
|
1354
1416
|
|
|
1355
1417
|
var _setToArray = setToArray$3;
|
|
1356
1418
|
|
|
1357
|
-
var Symbol$
|
|
1419
|
+
var Symbol$4 = _Symbol,
|
|
1358
1420
|
Uint8Array$1 = _Uint8Array,
|
|
1359
1421
|
eq$1 = eq_1,
|
|
1360
1422
|
equalArrays$1 = _equalArrays,
|
|
@@ -1380,8 +1442,8 @@
|
|
|
1380
1442
|
dataViewTag$4 = '[object DataView]';
|
|
1381
1443
|
|
|
1382
1444
|
/** Used to convert symbols to primitives and strings. */
|
|
1383
|
-
var symbolProto$
|
|
1384
|
-
symbolValueOf$1 = symbolProto$
|
|
1445
|
+
var symbolProto$2 = Symbol$4 ? Symbol$4.prototype : undefined,
|
|
1446
|
+
symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : undefined;
|
|
1385
1447
|
|
|
1386
1448
|
/**
|
|
1387
1449
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
@@ -1513,12 +1575,12 @@
|
|
|
1513
1575
|
* // => false
|
|
1514
1576
|
*/
|
|
1515
1577
|
|
|
1516
|
-
var isArray$
|
|
1578
|
+
var isArray$8 = Array.isArray;
|
|
1517
1579
|
|
|
1518
|
-
var isArray_1 = isArray$
|
|
1580
|
+
var isArray_1 = isArray$8;
|
|
1519
1581
|
|
|
1520
1582
|
var arrayPush$2 = _arrayPush,
|
|
1521
|
-
isArray$
|
|
1583
|
+
isArray$7 = isArray_1;
|
|
1522
1584
|
|
|
1523
1585
|
/**
|
|
1524
1586
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -1533,7 +1595,7 @@
|
|
|
1533
1595
|
*/
|
|
1534
1596
|
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
1535
1597
|
var result = keysFunc(object);
|
|
1536
|
-
return isArray$
|
|
1598
|
+
return isArray$7(object) ? result : arrayPush$2(result, symbolsFunc(object));
|
|
1537
1599
|
}
|
|
1538
1600
|
|
|
1539
1601
|
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
@@ -1999,7 +2061,7 @@
|
|
|
1999
2061
|
|
|
2000
2062
|
var baseTimes = _baseTimes,
|
|
2001
2063
|
isArguments$1 = isArguments_1,
|
|
2002
|
-
isArray$
|
|
2064
|
+
isArray$6 = isArray_1,
|
|
2003
2065
|
isBuffer$2 = isBuffer$3.exports,
|
|
2004
2066
|
isIndex = _isIndex,
|
|
2005
2067
|
isTypedArray$1 = isTypedArray_1;
|
|
@@ -2019,7 +2081,7 @@
|
|
|
2019
2081
|
* @returns {Array} Returns the array of property names.
|
|
2020
2082
|
*/
|
|
2021
2083
|
function arrayLikeKeys$2(value, inherited) {
|
|
2022
|
-
var isArr = isArray$
|
|
2084
|
+
var isArr = isArray$6(value),
|
|
2023
2085
|
isArg = !isArr && isArguments$1(value),
|
|
2024
2086
|
isBuff = !isArr && !isArg && isBuffer$2(value),
|
|
2025
2087
|
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
@@ -2398,7 +2460,7 @@
|
|
|
2398
2460
|
equalByTag = _equalByTag,
|
|
2399
2461
|
equalObjects = _equalObjects,
|
|
2400
2462
|
getTag$3 = _getTag,
|
|
2401
|
-
isArray$
|
|
2463
|
+
isArray$5 = isArray_1,
|
|
2402
2464
|
isBuffer$1 = isBuffer$3.exports,
|
|
2403
2465
|
isTypedArray = isTypedArray_1;
|
|
2404
2466
|
|
|
@@ -2431,8 +2493,8 @@
|
|
|
2431
2493
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2432
2494
|
*/
|
|
2433
2495
|
function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2434
|
-
var objIsArr = isArray$
|
|
2435
|
-
othIsArr = isArray$
|
|
2496
|
+
var objIsArr = isArray$5(object),
|
|
2497
|
+
othIsArr = isArray$5(other),
|
|
2436
2498
|
objTag = objIsArr ? arrayTag$1 : getTag$3(object),
|
|
2437
2499
|
othTag = othIsArr ? arrayTag$1 : getTag$3(other);
|
|
2438
2500
|
|
|
@@ -2506,6 +2568,8 @@
|
|
|
2506
2568
|
|
|
2507
2569
|
var _baseIsEqual = baseIsEqual$1;
|
|
2508
2570
|
|
|
2571
|
+
var isServer = typeof window === "undefined";
|
|
2572
|
+
|
|
2509
2573
|
const SCOPE$1 = "Util";
|
|
2510
2574
|
const getValueByPath = (obj, paths = "") => {
|
|
2511
2575
|
let ret = obj;
|
|
@@ -2597,7 +2661,7 @@
|
|
|
2597
2661
|
return {};
|
|
2598
2662
|
}
|
|
2599
2663
|
function isEmpty(val) {
|
|
2600
|
-
if (!val && val !== 0 || isArray$
|
|
2664
|
+
if (!val && val !== 0 || isArray$9(val) && !val.length || isObject$a(val) && !Object.keys(val).length)
|
|
2601
2665
|
return true;
|
|
2602
2666
|
return false;
|
|
2603
2667
|
}
|
|
@@ -2624,6 +2688,607 @@
|
|
|
2624
2688
|
};
|
|
2625
2689
|
};
|
|
2626
2690
|
|
|
2691
|
+
const sizes = ["", ...componentSize];
|
|
2692
|
+
const useFormItemProps = buildProps({
|
|
2693
|
+
size: {
|
|
2694
|
+
type: String,
|
|
2695
|
+
values: sizes,
|
|
2696
|
+
default: ""
|
|
2697
|
+
},
|
|
2698
|
+
disabled: Boolean
|
|
2699
|
+
});
|
|
2700
|
+
const useFormItem = ({ size, disabled } = {}) => {
|
|
2701
|
+
var _a;
|
|
2702
|
+
const vm = vue.getCurrentInstance();
|
|
2703
|
+
const $ELEMENT = useGlobalConfig$1();
|
|
2704
|
+
const props = (_a = vm.proxy) == null ? void 0 : _a.$props;
|
|
2705
|
+
const form = vue.inject(elFormKey, void 0);
|
|
2706
|
+
const formItem = vue.inject(elFormItemKey, void 0);
|
|
2707
|
+
return {
|
|
2708
|
+
size: vue.computed(() => {
|
|
2709
|
+
return props.size || vue.unref(size) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || $ELEMENT.size || "";
|
|
2710
|
+
}),
|
|
2711
|
+
disabled: vue.computed(() => {
|
|
2712
|
+
return props.disabled === true || vue.unref(disabled) || (form == null ? void 0 : form.disabled) || false;
|
|
2713
|
+
}),
|
|
2714
|
+
form,
|
|
2715
|
+
formItem
|
|
2716
|
+
};
|
|
2717
|
+
};
|
|
2718
|
+
|
|
2719
|
+
const defaultConfig = {
|
|
2720
|
+
button: {
|
|
2721
|
+
autoInsertSpace: false
|
|
2722
|
+
}
|
|
2723
|
+
};
|
|
2724
|
+
const useGlobalConfig = () => vue.inject(configProviderContextKey, defaultConfig);
|
|
2725
|
+
|
|
2726
|
+
var baseGetTag = _baseGetTag,
|
|
2727
|
+
isObjectLike$3 = isObjectLike_1;
|
|
2728
|
+
|
|
2729
|
+
/** `Object#toString` result references. */
|
|
2730
|
+
var symbolTag$2 = '[object Symbol]';
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
2734
|
+
*
|
|
2735
|
+
* @static
|
|
2736
|
+
* @memberOf _
|
|
2737
|
+
* @since 4.0.0
|
|
2738
|
+
* @category Lang
|
|
2739
|
+
* @param {*} value The value to check.
|
|
2740
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2741
|
+
* @example
|
|
2742
|
+
*
|
|
2743
|
+
* _.isSymbol(Symbol.iterator);
|
|
2744
|
+
* // => true
|
|
2745
|
+
*
|
|
2746
|
+
* _.isSymbol('abc');
|
|
2747
|
+
* // => false
|
|
2748
|
+
*/
|
|
2749
|
+
function isSymbol$4(value) {
|
|
2750
|
+
return typeof value == 'symbol' ||
|
|
2751
|
+
(isObjectLike$3(value) && baseGetTag(value) == symbolTag$2);
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
var isSymbol_1 = isSymbol$4;
|
|
2755
|
+
|
|
2756
|
+
var isArray$4 = isArray_1,
|
|
2757
|
+
isSymbol$3 = isSymbol_1;
|
|
2758
|
+
|
|
2759
|
+
/** Used to match property names within property paths. */
|
|
2760
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
2761
|
+
reIsPlainProp = /^\w*$/;
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* Checks if `value` is a property name and not a property path.
|
|
2765
|
+
*
|
|
2766
|
+
* @private
|
|
2767
|
+
* @param {*} value The value to check.
|
|
2768
|
+
* @param {Object} [object] The object to query keys on.
|
|
2769
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
2770
|
+
*/
|
|
2771
|
+
function isKey$1(value, object) {
|
|
2772
|
+
if (isArray$4(value)) {
|
|
2773
|
+
return false;
|
|
2774
|
+
}
|
|
2775
|
+
var type = typeof value;
|
|
2776
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
2777
|
+
value == null || isSymbol$3(value)) {
|
|
2778
|
+
return true;
|
|
2779
|
+
}
|
|
2780
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
2781
|
+
(object != null && value in Object(object));
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
var _isKey = isKey$1;
|
|
2785
|
+
|
|
2786
|
+
var MapCache = _MapCache;
|
|
2787
|
+
|
|
2788
|
+
/** Error message constants. */
|
|
2789
|
+
var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
2793
|
+
* provided, it determines the cache key for storing the result based on the
|
|
2794
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
2795
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
2796
|
+
* is invoked with the `this` binding of the memoized function.
|
|
2797
|
+
*
|
|
2798
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2799
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2800
|
+
* constructor with one whose instances implement the
|
|
2801
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2802
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2803
|
+
*
|
|
2804
|
+
* @static
|
|
2805
|
+
* @memberOf _
|
|
2806
|
+
* @since 0.1.0
|
|
2807
|
+
* @category Function
|
|
2808
|
+
* @param {Function} func The function to have its output memoized.
|
|
2809
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
2810
|
+
* @returns {Function} Returns the new memoized function.
|
|
2811
|
+
* @example
|
|
2812
|
+
*
|
|
2813
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
2814
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
2815
|
+
*
|
|
2816
|
+
* var values = _.memoize(_.values);
|
|
2817
|
+
* values(object);
|
|
2818
|
+
* // => [1, 2]
|
|
2819
|
+
*
|
|
2820
|
+
* values(other);
|
|
2821
|
+
* // => [3, 4]
|
|
2822
|
+
*
|
|
2823
|
+
* object.a = 2;
|
|
2824
|
+
* values(object);
|
|
2825
|
+
* // => [1, 2]
|
|
2826
|
+
*
|
|
2827
|
+
* // Modify the result cache.
|
|
2828
|
+
* values.cache.set(object, ['a', 'b']);
|
|
2829
|
+
* values(object);
|
|
2830
|
+
* // => ['a', 'b']
|
|
2831
|
+
*
|
|
2832
|
+
* // Replace `_.memoize.Cache`.
|
|
2833
|
+
* _.memoize.Cache = WeakMap;
|
|
2834
|
+
*/
|
|
2835
|
+
function memoize$1(func, resolver) {
|
|
2836
|
+
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
2837
|
+
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
2838
|
+
}
|
|
2839
|
+
var memoized = function() {
|
|
2840
|
+
var args = arguments,
|
|
2841
|
+
key = resolver ? resolver.apply(this, args) : args[0],
|
|
2842
|
+
cache = memoized.cache;
|
|
2843
|
+
|
|
2844
|
+
if (cache.has(key)) {
|
|
2845
|
+
return cache.get(key);
|
|
2846
|
+
}
|
|
2847
|
+
var result = func.apply(this, args);
|
|
2848
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
2849
|
+
return result;
|
|
2850
|
+
};
|
|
2851
|
+
memoized.cache = new (memoize$1.Cache || MapCache);
|
|
2852
|
+
return memoized;
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
// Expose `MapCache`.
|
|
2856
|
+
memoize$1.Cache = MapCache;
|
|
2857
|
+
|
|
2858
|
+
var memoize_1 = memoize$1;
|
|
2859
|
+
|
|
2860
|
+
var memoize = memoize_1;
|
|
2861
|
+
|
|
2862
|
+
/** Used as the maximum memoize cache size. */
|
|
2863
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2867
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2868
|
+
*
|
|
2869
|
+
* @private
|
|
2870
|
+
* @param {Function} func The function to have its output memoized.
|
|
2871
|
+
* @returns {Function} Returns the new memoized function.
|
|
2872
|
+
*/
|
|
2873
|
+
function memoizeCapped$1(func) {
|
|
2874
|
+
var result = memoize(func, function(key) {
|
|
2875
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
2876
|
+
cache.clear();
|
|
2877
|
+
}
|
|
2878
|
+
return key;
|
|
2879
|
+
});
|
|
2880
|
+
|
|
2881
|
+
var cache = result.cache;
|
|
2882
|
+
return result;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
2886
|
+
|
|
2887
|
+
var memoizeCapped = _memoizeCapped;
|
|
2888
|
+
|
|
2889
|
+
/** Used to match property names within property paths. */
|
|
2890
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2891
|
+
|
|
2892
|
+
/** Used to match backslashes in property paths. */
|
|
2893
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
2894
|
+
|
|
2895
|
+
/**
|
|
2896
|
+
* Converts `string` to a property path array.
|
|
2897
|
+
*
|
|
2898
|
+
* @private
|
|
2899
|
+
* @param {string} string The string to convert.
|
|
2900
|
+
* @returns {Array} Returns the property path array.
|
|
2901
|
+
*/
|
|
2902
|
+
var stringToPath$1 = memoizeCapped(function(string) {
|
|
2903
|
+
var result = [];
|
|
2904
|
+
if (string.charCodeAt(0) === 46 /* . */) {
|
|
2905
|
+
result.push('');
|
|
2906
|
+
}
|
|
2907
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2908
|
+
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
2909
|
+
});
|
|
2910
|
+
return result;
|
|
2911
|
+
});
|
|
2912
|
+
|
|
2913
|
+
var _stringToPath = stringToPath$1;
|
|
2914
|
+
|
|
2915
|
+
/**
|
|
2916
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2917
|
+
* shorthands.
|
|
2918
|
+
*
|
|
2919
|
+
* @private
|
|
2920
|
+
* @param {Array} [array] The array to iterate over.
|
|
2921
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2922
|
+
* @returns {Array} Returns the new mapped array.
|
|
2923
|
+
*/
|
|
2924
|
+
|
|
2925
|
+
function arrayMap$1(array, iteratee) {
|
|
2926
|
+
var index = -1,
|
|
2927
|
+
length = array == null ? 0 : array.length,
|
|
2928
|
+
result = Array(length);
|
|
2929
|
+
|
|
2930
|
+
while (++index < length) {
|
|
2931
|
+
result[index] = iteratee(array[index], index, array);
|
|
2932
|
+
}
|
|
2933
|
+
return result;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
var _arrayMap = arrayMap$1;
|
|
2937
|
+
|
|
2938
|
+
var Symbol$3 = _Symbol,
|
|
2939
|
+
arrayMap = _arrayMap,
|
|
2940
|
+
isArray$3 = isArray_1,
|
|
2941
|
+
isSymbol$2 = isSymbol_1;
|
|
2942
|
+
|
|
2943
|
+
/** Used as references for various `Number` constants. */
|
|
2944
|
+
var INFINITY$2 = 1 / 0;
|
|
2945
|
+
|
|
2946
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2947
|
+
var symbolProto$1 = Symbol$3 ? Symbol$3.prototype : undefined,
|
|
2948
|
+
symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2952
|
+
* values to empty strings.
|
|
2953
|
+
*
|
|
2954
|
+
* @private
|
|
2955
|
+
* @param {*} value The value to process.
|
|
2956
|
+
* @returns {string} Returns the string.
|
|
2957
|
+
*/
|
|
2958
|
+
function baseToString$1(value) {
|
|
2959
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
2960
|
+
if (typeof value == 'string') {
|
|
2961
|
+
return value;
|
|
2962
|
+
}
|
|
2963
|
+
if (isArray$3(value)) {
|
|
2964
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
2965
|
+
return arrayMap(value, baseToString$1) + '';
|
|
2966
|
+
}
|
|
2967
|
+
if (isSymbol$2(value)) {
|
|
2968
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
2969
|
+
}
|
|
2970
|
+
var result = (value + '');
|
|
2971
|
+
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
var _baseToString = baseToString$1;
|
|
2975
|
+
|
|
2976
|
+
var baseToString = _baseToString;
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
2980
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2981
|
+
*
|
|
2982
|
+
* @static
|
|
2983
|
+
* @memberOf _
|
|
2984
|
+
* @since 4.0.0
|
|
2985
|
+
* @category Lang
|
|
2986
|
+
* @param {*} value The value to convert.
|
|
2987
|
+
* @returns {string} Returns the converted string.
|
|
2988
|
+
* @example
|
|
2989
|
+
*
|
|
2990
|
+
* _.toString(null);
|
|
2991
|
+
* // => ''
|
|
2992
|
+
*
|
|
2993
|
+
* _.toString(-0);
|
|
2994
|
+
* // => '-0'
|
|
2995
|
+
*
|
|
2996
|
+
* _.toString([1, 2, 3]);
|
|
2997
|
+
* // => '1,2,3'
|
|
2998
|
+
*/
|
|
2999
|
+
function toString$1(value) {
|
|
3000
|
+
return value == null ? '' : baseToString(value);
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
var toString_1 = toString$1;
|
|
3004
|
+
|
|
3005
|
+
var isArray$2 = isArray_1,
|
|
3006
|
+
isKey = _isKey,
|
|
3007
|
+
stringToPath = _stringToPath,
|
|
3008
|
+
toString = toString_1;
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* Casts `value` to a path array if it's not one.
|
|
3012
|
+
*
|
|
3013
|
+
* @private
|
|
3014
|
+
* @param {*} value The value to inspect.
|
|
3015
|
+
* @param {Object} [object] The object to query keys on.
|
|
3016
|
+
* @returns {Array} Returns the cast property path array.
|
|
3017
|
+
*/
|
|
3018
|
+
function castPath$1(value, object) {
|
|
3019
|
+
if (isArray$2(value)) {
|
|
3020
|
+
return value;
|
|
3021
|
+
}
|
|
3022
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
var _castPath = castPath$1;
|
|
3026
|
+
|
|
3027
|
+
var isSymbol$1 = isSymbol_1;
|
|
3028
|
+
|
|
3029
|
+
/** Used as references for various `Number` constants. */
|
|
3030
|
+
var INFINITY$1 = 1 / 0;
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
3034
|
+
*
|
|
3035
|
+
* @private
|
|
3036
|
+
* @param {*} value The value to inspect.
|
|
3037
|
+
* @returns {string|symbol} Returns the key.
|
|
3038
|
+
*/
|
|
3039
|
+
function toKey$1(value) {
|
|
3040
|
+
if (typeof value == 'string' || isSymbol$1(value)) {
|
|
3041
|
+
return value;
|
|
3042
|
+
}
|
|
3043
|
+
var result = (value + '');
|
|
3044
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
var _toKey = toKey$1;
|
|
3048
|
+
|
|
3049
|
+
var castPath = _castPath,
|
|
3050
|
+
toKey = _toKey;
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* The base implementation of `_.get` without support for default values.
|
|
3054
|
+
*
|
|
3055
|
+
* @private
|
|
3056
|
+
* @param {Object} object The object to query.
|
|
3057
|
+
* @param {Array|string} path The path of the property to get.
|
|
3058
|
+
* @returns {*} Returns the resolved value.
|
|
3059
|
+
*/
|
|
3060
|
+
function baseGet$1(object, path) {
|
|
3061
|
+
path = castPath(path, object);
|
|
3062
|
+
|
|
3063
|
+
var index = 0,
|
|
3064
|
+
length = path.length;
|
|
3065
|
+
|
|
3066
|
+
while (object != null && index < length) {
|
|
3067
|
+
object = object[toKey(path[index++])];
|
|
3068
|
+
}
|
|
3069
|
+
return (index && index == length) ? object : undefined;
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
var _baseGet = baseGet$1;
|
|
3073
|
+
|
|
3074
|
+
var baseGet = _baseGet;
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
3078
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
3079
|
+
*
|
|
3080
|
+
* @static
|
|
3081
|
+
* @memberOf _
|
|
3082
|
+
* @since 3.7.0
|
|
3083
|
+
* @category Object
|
|
3084
|
+
* @param {Object} object The object to query.
|
|
3085
|
+
* @param {Array|string} path The path of the property to get.
|
|
3086
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
3087
|
+
* @returns {*} Returns the resolved value.
|
|
3088
|
+
* @example
|
|
3089
|
+
*
|
|
3090
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
3091
|
+
*
|
|
3092
|
+
* _.get(object, 'a[0].b.c');
|
|
3093
|
+
* // => 3
|
|
3094
|
+
*
|
|
3095
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
3096
|
+
* // => 3
|
|
3097
|
+
*
|
|
3098
|
+
* _.get(object, 'a.b.c', 'default');
|
|
3099
|
+
* // => 'default'
|
|
3100
|
+
*/
|
|
3101
|
+
function get(object, path, defaultValue) {
|
|
3102
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
3103
|
+
return result === undefined ? defaultValue : result;
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
var get_1 = get;
|
|
3107
|
+
|
|
3108
|
+
var English = {
|
|
3109
|
+
name: "en",
|
|
3110
|
+
el: {
|
|
3111
|
+
colorpicker: {
|
|
3112
|
+
confirm: "OK",
|
|
3113
|
+
clear: "Clear"
|
|
3114
|
+
},
|
|
3115
|
+
datepicker: {
|
|
3116
|
+
now: "Now",
|
|
3117
|
+
today: "Today",
|
|
3118
|
+
cancel: "Cancel",
|
|
3119
|
+
clear: "Clear",
|
|
3120
|
+
confirm: "OK",
|
|
3121
|
+
selectDate: "Select date",
|
|
3122
|
+
selectTime: "Select time",
|
|
3123
|
+
startDate: "Start Date",
|
|
3124
|
+
startTime: "Start Time",
|
|
3125
|
+
endDate: "End Date",
|
|
3126
|
+
endTime: "End Time",
|
|
3127
|
+
prevYear: "Previous Year",
|
|
3128
|
+
nextYear: "Next Year",
|
|
3129
|
+
prevMonth: "Previous Month",
|
|
3130
|
+
nextMonth: "Next Month",
|
|
3131
|
+
year: "",
|
|
3132
|
+
month1: "January",
|
|
3133
|
+
month2: "February",
|
|
3134
|
+
month3: "March",
|
|
3135
|
+
month4: "April",
|
|
3136
|
+
month5: "May",
|
|
3137
|
+
month6: "June",
|
|
3138
|
+
month7: "July",
|
|
3139
|
+
month8: "August",
|
|
3140
|
+
month9: "September",
|
|
3141
|
+
month10: "October",
|
|
3142
|
+
month11: "November",
|
|
3143
|
+
month12: "December",
|
|
3144
|
+
week: "week",
|
|
3145
|
+
weeks: {
|
|
3146
|
+
sun: "Sun",
|
|
3147
|
+
mon: "Mon",
|
|
3148
|
+
tue: "Tue",
|
|
3149
|
+
wed: "Wed",
|
|
3150
|
+
thu: "Thu",
|
|
3151
|
+
fri: "Fri",
|
|
3152
|
+
sat: "Sat"
|
|
3153
|
+
},
|
|
3154
|
+
months: {
|
|
3155
|
+
jan: "Jan",
|
|
3156
|
+
feb: "Feb",
|
|
3157
|
+
mar: "Mar",
|
|
3158
|
+
apr: "Apr",
|
|
3159
|
+
may: "May",
|
|
3160
|
+
jun: "Jun",
|
|
3161
|
+
jul: "Jul",
|
|
3162
|
+
aug: "Aug",
|
|
3163
|
+
sep: "Sep",
|
|
3164
|
+
oct: "Oct",
|
|
3165
|
+
nov: "Nov",
|
|
3166
|
+
dec: "Dec"
|
|
3167
|
+
}
|
|
3168
|
+
},
|
|
3169
|
+
select: {
|
|
3170
|
+
loading: "Loading",
|
|
3171
|
+
noMatch: "No matching data",
|
|
3172
|
+
noData: "No data",
|
|
3173
|
+
placeholder: "Select"
|
|
3174
|
+
},
|
|
3175
|
+
cascader: {
|
|
3176
|
+
noMatch: "No matching data",
|
|
3177
|
+
loading: "Loading",
|
|
3178
|
+
placeholder: "Select",
|
|
3179
|
+
noData: "No data"
|
|
3180
|
+
},
|
|
3181
|
+
pagination: {
|
|
3182
|
+
goto: "Go to",
|
|
3183
|
+
pagesize: "/page",
|
|
3184
|
+
total: "Total {total}",
|
|
3185
|
+
pageClassifier: "",
|
|
3186
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
3187
|
+
},
|
|
3188
|
+
messagebox: {
|
|
3189
|
+
title: "Message",
|
|
3190
|
+
confirm: "OK",
|
|
3191
|
+
cancel: "Cancel",
|
|
3192
|
+
error: "Illegal input"
|
|
3193
|
+
},
|
|
3194
|
+
upload: {
|
|
3195
|
+
deleteTip: "press delete to remove",
|
|
3196
|
+
delete: "Delete",
|
|
3197
|
+
preview: "Preview",
|
|
3198
|
+
continue: "Continue"
|
|
3199
|
+
},
|
|
3200
|
+
table: {
|
|
3201
|
+
emptyText: "No Data",
|
|
3202
|
+
confirmFilter: "Confirm",
|
|
3203
|
+
resetFilter: "Reset",
|
|
3204
|
+
clearFilter: "All",
|
|
3205
|
+
sumText: "Sum"
|
|
3206
|
+
},
|
|
3207
|
+
tree: {
|
|
3208
|
+
emptyText: "No Data"
|
|
3209
|
+
},
|
|
3210
|
+
transfer: {
|
|
3211
|
+
noMatch: "No matching data",
|
|
3212
|
+
noData: "No data",
|
|
3213
|
+
titles: ["List 1", "List 2"],
|
|
3214
|
+
filterPlaceholder: "Enter keyword",
|
|
3215
|
+
noCheckedFormat: "{total} items",
|
|
3216
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
3217
|
+
},
|
|
3218
|
+
image: {
|
|
3219
|
+
error: "FAILED"
|
|
3220
|
+
},
|
|
3221
|
+
pageHeader: {
|
|
3222
|
+
title: "Back"
|
|
3223
|
+
},
|
|
3224
|
+
popconfirm: {
|
|
3225
|
+
confirmButtonText: "Yes",
|
|
3226
|
+
cancelButtonText: "No"
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
};
|
|
3230
|
+
|
|
3231
|
+
const useLocaleProps = buildProps({
|
|
3232
|
+
locale: {
|
|
3233
|
+
type: definePropType(Object)
|
|
3234
|
+
}
|
|
3235
|
+
});
|
|
3236
|
+
const localeContextKey = Symbol("localeContextKey");
|
|
3237
|
+
let localeContextCache;
|
|
3238
|
+
const provideLocale = () => {
|
|
3239
|
+
const vm = vue.getCurrentInstance();
|
|
3240
|
+
const props = vm.props;
|
|
3241
|
+
const locale = vue.computed(() => props.locale || English);
|
|
3242
|
+
const lang = vue.computed(() => locale.value.name);
|
|
3243
|
+
const t = buildTranslator(locale);
|
|
3244
|
+
const provides = {
|
|
3245
|
+
locale,
|
|
3246
|
+
lang,
|
|
3247
|
+
t
|
|
3248
|
+
};
|
|
3249
|
+
localeContextCache = provides;
|
|
3250
|
+
vue.provide(localeContextKey, provides);
|
|
3251
|
+
};
|
|
3252
|
+
const buildTranslator = (locale) => (path) => translate(path, vue.unref(locale));
|
|
3253
|
+
const translate = (path, locale) => get_1(locale, path, "");
|
|
3254
|
+
const localeProviderMaker = (locale = English) => {
|
|
3255
|
+
const lang = vue.ref(locale.name);
|
|
3256
|
+
const localeRef = vue.ref(locale);
|
|
3257
|
+
return {
|
|
3258
|
+
lang,
|
|
3259
|
+
locale: localeRef,
|
|
3260
|
+
t: buildTranslator(localeRef)
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
const useLocale = () => {
|
|
3264
|
+
return vue.inject(localeContextKey, localeContextCache || localeProviderMaker(English));
|
|
3265
|
+
};
|
|
3266
|
+
|
|
3267
|
+
let scrollBarWidth;
|
|
3268
|
+
function scrollbarWidth() {
|
|
3269
|
+
var _a;
|
|
3270
|
+
if (isServer)
|
|
3271
|
+
return 0;
|
|
3272
|
+
if (scrollBarWidth !== void 0)
|
|
3273
|
+
return scrollBarWidth;
|
|
3274
|
+
const outer = document.createElement("div");
|
|
3275
|
+
outer.className = "el-scrollbar__wrap";
|
|
3276
|
+
outer.style.visibility = "hidden";
|
|
3277
|
+
outer.style.width = "100px";
|
|
3278
|
+
outer.style.position = "absolute";
|
|
3279
|
+
outer.style.top = "-9999px";
|
|
3280
|
+
document.body.appendChild(outer);
|
|
3281
|
+
const widthNoScroll = outer.offsetWidth;
|
|
3282
|
+
outer.style.overflow = "scroll";
|
|
3283
|
+
const inner = document.createElement("div");
|
|
3284
|
+
inner.style.width = "100%";
|
|
3285
|
+
outer.appendChild(inner);
|
|
3286
|
+
const widthWithScroll = inner.offsetWidth;
|
|
3287
|
+
(_a = outer.parentNode) == null ? void 0 : _a.removeChild(outer);
|
|
3288
|
+
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
3289
|
+
return scrollBarWidth;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
2627
3292
|
const trimArr = function(s) {
|
|
2628
3293
|
return (s || "").split(" ").filter((item) => !!item.trim());
|
|
2629
3294
|
};
|
|
@@ -2777,56 +3442,14 @@
|
|
|
2777
3442
|
};
|
|
2778
3443
|
};
|
|
2779
3444
|
|
|
2780
|
-
|
|
2781
|
-
vue.watch(el, (val) => {
|
|
2782
|
-
if (val) {
|
|
2783
|
-
events.forEach(({ name, handler }) => {
|
|
2784
|
-
on(el.value, name, handler);
|
|
2785
|
-
});
|
|
2786
|
-
} else {
|
|
2787
|
-
events.forEach(({ name, handler }) => {
|
|
2788
|
-
off(el.value, name, handler);
|
|
2789
|
-
});
|
|
2790
|
-
}
|
|
2791
|
-
});
|
|
2792
|
-
};
|
|
2793
|
-
|
|
2794
|
-
let scrollBarWidth;
|
|
2795
|
-
function scrollbarWidth() {
|
|
2796
|
-
var _a;
|
|
2797
|
-
if (isServer)
|
|
2798
|
-
return 0;
|
|
2799
|
-
if (scrollBarWidth !== void 0)
|
|
2800
|
-
return scrollBarWidth;
|
|
2801
|
-
const outer = document.createElement("div");
|
|
2802
|
-
outer.className = "el-scrollbar__wrap";
|
|
2803
|
-
outer.style.visibility = "hidden";
|
|
2804
|
-
outer.style.width = "100px";
|
|
2805
|
-
outer.style.position = "absolute";
|
|
2806
|
-
outer.style.top = "-9999px";
|
|
2807
|
-
document.body.appendChild(outer);
|
|
2808
|
-
const widthNoScroll = outer.offsetWidth;
|
|
2809
|
-
outer.style.overflow = "scroll";
|
|
2810
|
-
const inner = document.createElement("div");
|
|
2811
|
-
inner.style.width = "100%";
|
|
2812
|
-
outer.appendChild(inner);
|
|
2813
|
-
const widthWithScroll = inner.offsetWidth;
|
|
2814
|
-
(_a = outer.parentNode) == null ? void 0 : _a.removeChild(outer);
|
|
2815
|
-
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
2816
|
-
return scrollBarWidth;
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
-
var useLockScreen = (trigger) => {
|
|
3445
|
+
const useLockscreen = (trigger) => {
|
|
2820
3446
|
if (!vue.isRef(trigger)) {
|
|
2821
|
-
throwError("[
|
|
3447
|
+
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
2822
3448
|
}
|
|
2823
3449
|
let scrollBarWidth = 0;
|
|
2824
3450
|
let withoutHiddenClass = false;
|
|
2825
3451
|
let bodyPaddingRight = "0";
|
|
2826
3452
|
let computedBodyPaddingRight = 0;
|
|
2827
|
-
vue.onUnmounted(() => {
|
|
2828
|
-
cleanup();
|
|
2829
|
-
});
|
|
2830
3453
|
const cleanup = () => {
|
|
2831
3454
|
removeClass(document.body, "el-popup-parent--hidden");
|
|
2832
3455
|
if (withoutHiddenClass) {
|
|
@@ -2834,41 +3457,267 @@
|
|
|
2834
3457
|
}
|
|
2835
3458
|
};
|
|
2836
3459
|
vue.watch(trigger, (val) => {
|
|
2837
|
-
if (val) {
|
|
2838
|
-
withoutHiddenClass = !hasClass(document.body, "el-popup-parent--hidden");
|
|
2839
|
-
if (withoutHiddenClass) {
|
|
2840
|
-
bodyPaddingRight = document.body.style.paddingRight;
|
|
2841
|
-
computedBodyPaddingRight = parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
2842
|
-
}
|
|
2843
|
-
scrollBarWidth = scrollbarWidth();
|
|
2844
|
-
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
2845
|
-
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
2846
|
-
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
2847
|
-
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
2848
|
-
}
|
|
2849
|
-
addClass(document.body, "el-popup-parent--hidden");
|
|
2850
|
-
} else {
|
|
3460
|
+
if (!val) {
|
|
2851
3461
|
cleanup();
|
|
3462
|
+
return;
|
|
2852
3463
|
}
|
|
3464
|
+
withoutHiddenClass = !hasClass(document.body, "el-popup-parent--hidden");
|
|
3465
|
+
if (withoutHiddenClass) {
|
|
3466
|
+
bodyPaddingRight = document.body.style.paddingRight;
|
|
3467
|
+
computedBodyPaddingRight = parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
3468
|
+
}
|
|
3469
|
+
scrollBarWidth = scrollbarWidth();
|
|
3470
|
+
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
3471
|
+
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
3472
|
+
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
3473
|
+
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
3474
|
+
}
|
|
3475
|
+
addClass(document.body, "el-popup-parent--hidden");
|
|
2853
3476
|
});
|
|
3477
|
+
vue.onScopeDispose(() => cleanup());
|
|
2854
3478
|
};
|
|
2855
3479
|
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
3480
|
+
function tryOnScopeDispose(fn) {
|
|
3481
|
+
if (vue.getCurrentScope()) {
|
|
3482
|
+
vue.onScopeDispose(fn);
|
|
3483
|
+
return true;
|
|
3484
|
+
}
|
|
3485
|
+
return false;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
const isClient = typeof window !== "undefined";
|
|
3489
|
+
const isString = (val) => typeof val === "string";
|
|
3490
|
+
const noop$2 = () => {
|
|
3491
|
+
};
|
|
3492
|
+
|
|
3493
|
+
function createFilterWrapper(filter, fn) {
|
|
3494
|
+
function wrapper(...args) {
|
|
3495
|
+
filter(() => fn.apply(this, args), { fn, thisArg: this, args });
|
|
3496
|
+
}
|
|
3497
|
+
return wrapper;
|
|
3498
|
+
}
|
|
3499
|
+
function throttleFilter(ms, trailing = true, leading = true) {
|
|
3500
|
+
let lastExec = 0;
|
|
3501
|
+
let timer;
|
|
3502
|
+
let preventLeading = !leading;
|
|
3503
|
+
const clear = () => {
|
|
3504
|
+
if (timer) {
|
|
3505
|
+
clearTimeout(timer);
|
|
3506
|
+
timer = void 0;
|
|
3507
|
+
}
|
|
3508
|
+
};
|
|
3509
|
+
const filter = (invoke) => {
|
|
3510
|
+
const duration = vue.unref(ms);
|
|
3511
|
+
const elapsed = Date.now() - lastExec;
|
|
3512
|
+
clear();
|
|
3513
|
+
if (duration <= 0) {
|
|
3514
|
+
lastExec = Date.now();
|
|
3515
|
+
return invoke();
|
|
2869
3516
|
}
|
|
3517
|
+
if (elapsed > duration) {
|
|
3518
|
+
lastExec = Date.now();
|
|
3519
|
+
if (preventLeading)
|
|
3520
|
+
preventLeading = false;
|
|
3521
|
+
else
|
|
3522
|
+
invoke();
|
|
3523
|
+
} else if (trailing) {
|
|
3524
|
+
timer = setTimeout(() => {
|
|
3525
|
+
lastExec = Date.now();
|
|
3526
|
+
if (!leading)
|
|
3527
|
+
preventLeading = true;
|
|
3528
|
+
clear();
|
|
3529
|
+
invoke();
|
|
3530
|
+
}, duration);
|
|
3531
|
+
}
|
|
3532
|
+
if (!leading && !timer)
|
|
3533
|
+
timer = setTimeout(() => preventLeading = true, duration);
|
|
3534
|
+
};
|
|
3535
|
+
return filter;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
function eagerComputed(fn) {
|
|
3539
|
+
const result = vue.shallowRef();
|
|
3540
|
+
vue.watchSyncEffect(() => {
|
|
3541
|
+
result.value = fn();
|
|
2870
3542
|
});
|
|
3543
|
+
return vue.readonly(result);
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
function useThrottleFn(fn, ms = 200, trailing = true, leading = true) {
|
|
3547
|
+
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
function useTimeoutFn(cb, interval, options = {}) {
|
|
3551
|
+
const {
|
|
3552
|
+
immediate = true
|
|
3553
|
+
} = options;
|
|
3554
|
+
const isPending = vue.ref(false);
|
|
3555
|
+
let timer = null;
|
|
3556
|
+
function clear() {
|
|
3557
|
+
if (timer) {
|
|
3558
|
+
clearTimeout(timer);
|
|
3559
|
+
timer = null;
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
function stop() {
|
|
3563
|
+
isPending.value = false;
|
|
3564
|
+
clear();
|
|
3565
|
+
}
|
|
3566
|
+
function start(...args) {
|
|
3567
|
+
clear();
|
|
3568
|
+
isPending.value = true;
|
|
3569
|
+
timer = setTimeout(() => {
|
|
3570
|
+
isPending.value = false;
|
|
3571
|
+
timer = null;
|
|
3572
|
+
cb(...args);
|
|
3573
|
+
}, vue.unref(interval));
|
|
3574
|
+
}
|
|
3575
|
+
if (immediate) {
|
|
3576
|
+
isPending.value = true;
|
|
3577
|
+
if (isClient)
|
|
3578
|
+
start();
|
|
3579
|
+
}
|
|
3580
|
+
tryOnScopeDispose(stop);
|
|
3581
|
+
return {
|
|
3582
|
+
isPending,
|
|
3583
|
+
start,
|
|
3584
|
+
stop
|
|
3585
|
+
};
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
function unrefElement(elRef) {
|
|
3589
|
+
var _a;
|
|
3590
|
+
const plain = vue.unref(elRef);
|
|
3591
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
const defaultWindow = isClient ? window : void 0;
|
|
3595
|
+
const defaultDocument = isClient ? window.document : void 0;
|
|
3596
|
+
|
|
3597
|
+
function useEventListener(...args) {
|
|
3598
|
+
let target;
|
|
3599
|
+
let event;
|
|
3600
|
+
let listener;
|
|
3601
|
+
let options;
|
|
3602
|
+
if (isString(args[0])) {
|
|
3603
|
+
[event, listener, options] = args;
|
|
3604
|
+
target = defaultWindow;
|
|
3605
|
+
} else {
|
|
3606
|
+
[target, event, listener, options] = args;
|
|
3607
|
+
}
|
|
3608
|
+
if (!target)
|
|
3609
|
+
return noop$2;
|
|
3610
|
+
let cleanup = noop$2;
|
|
3611
|
+
const stopWatch = vue.watch(() => vue.unref(target), (el) => {
|
|
3612
|
+
cleanup();
|
|
3613
|
+
if (!el)
|
|
3614
|
+
return;
|
|
3615
|
+
el.addEventListener(event, listener, options);
|
|
3616
|
+
cleanup = () => {
|
|
3617
|
+
el.removeEventListener(event, listener, options);
|
|
3618
|
+
cleanup = noop$2;
|
|
3619
|
+
};
|
|
3620
|
+
}, { immediate: true, flush: "post" });
|
|
3621
|
+
const stop = () => {
|
|
3622
|
+
stopWatch();
|
|
3623
|
+
cleanup();
|
|
3624
|
+
};
|
|
3625
|
+
tryOnScopeDispose(stop);
|
|
3626
|
+
return stop;
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
function useCssVar(prop, target, { window = defaultWindow } = {}) {
|
|
3630
|
+
const variable = vue.ref("");
|
|
3631
|
+
const elRef = vue.computed(() => {
|
|
3632
|
+
var _a;
|
|
3633
|
+
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
3634
|
+
});
|
|
3635
|
+
vue.watch(elRef, (el) => {
|
|
3636
|
+
if (el && window)
|
|
3637
|
+
variable.value = window.getComputedStyle(el).getPropertyValue(prop);
|
|
3638
|
+
}, { immediate: true });
|
|
3639
|
+
vue.watch(variable, (val) => {
|
|
3640
|
+
var _a;
|
|
3641
|
+
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
3642
|
+
elRef.value.style.setProperty(prop, val);
|
|
3643
|
+
});
|
|
3644
|
+
return variable;
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
3648
|
+
if (!document)
|
|
3649
|
+
return vue.ref("visible");
|
|
3650
|
+
const visibility = vue.ref(document.visibilityState);
|
|
3651
|
+
useEventListener(document, "visibilitychange", () => {
|
|
3652
|
+
visibility.value = document.visibilityState;
|
|
3653
|
+
});
|
|
3654
|
+
return visibility;
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3658
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3659
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3660
|
+
var __objRest$2 = (source, exclude) => {
|
|
3661
|
+
var target = {};
|
|
3662
|
+
for (var prop in source)
|
|
3663
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3664
|
+
target[prop] = source[prop];
|
|
3665
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
3666
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
3667
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
3668
|
+
target[prop] = source[prop];
|
|
3669
|
+
}
|
|
3670
|
+
return target;
|
|
2871
3671
|
};
|
|
3672
|
+
function useResizeObserver(target, callback, options = {}) {
|
|
3673
|
+
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
3674
|
+
let observer;
|
|
3675
|
+
const isSupported = window && "ResizeObserver" in window;
|
|
3676
|
+
const cleanup = () => {
|
|
3677
|
+
if (observer) {
|
|
3678
|
+
observer.disconnect();
|
|
3679
|
+
observer = void 0;
|
|
3680
|
+
}
|
|
3681
|
+
};
|
|
3682
|
+
const stopWatch = vue.watch(() => unrefElement(target), (el) => {
|
|
3683
|
+
cleanup();
|
|
3684
|
+
if (isSupported && window && el) {
|
|
3685
|
+
observer = new window.ResizeObserver(callback);
|
|
3686
|
+
observer.observe(el, observerOptions);
|
|
3687
|
+
}
|
|
3688
|
+
}, { immediate: true, flush: "post" });
|
|
3689
|
+
const stop = () => {
|
|
3690
|
+
cleanup();
|
|
3691
|
+
stopWatch();
|
|
3692
|
+
};
|
|
3693
|
+
tryOnScopeDispose(stop);
|
|
3694
|
+
return {
|
|
3695
|
+
isSupported,
|
|
3696
|
+
stop
|
|
3697
|
+
};
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
var SwipeDirection;
|
|
3701
|
+
(function(SwipeDirection2) {
|
|
3702
|
+
SwipeDirection2["UP"] = "UP";
|
|
3703
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
3704
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
3705
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
3706
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
3707
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
3708
|
+
|
|
3709
|
+
function useWindowFocus({ window = defaultWindow } = {}) {
|
|
3710
|
+
if (!window)
|
|
3711
|
+
return vue.ref(false);
|
|
3712
|
+
const focused = vue.ref(window.document.hasFocus());
|
|
3713
|
+
useEventListener(window, "blur", () => {
|
|
3714
|
+
focused.value = false;
|
|
3715
|
+
});
|
|
3716
|
+
useEventListener(window, "focus", () => {
|
|
3717
|
+
focused.value = true;
|
|
3718
|
+
});
|
|
3719
|
+
return focused;
|
|
3720
|
+
}
|
|
2872
3721
|
|
|
2873
3722
|
const EVENT_CODE = {
|
|
2874
3723
|
tab: "Tab",
|
|
@@ -2954,8 +3803,8 @@
|
|
|
2954
3803
|
topModal.handleClose();
|
|
2955
3804
|
}
|
|
2956
3805
|
};
|
|
2957
|
-
|
|
2958
|
-
vue.watch(
|
|
3806
|
+
const useModal = (instance, visibleRef) => {
|
|
3807
|
+
vue.watch(visibleRef, (val) => {
|
|
2959
3808
|
if (val) {
|
|
2960
3809
|
modalStack.push(instance);
|
|
2961
3810
|
} else {
|
|
@@ -2963,150 +3812,20 @@
|
|
|
2963
3812
|
}
|
|
2964
3813
|
});
|
|
2965
3814
|
};
|
|
2966
|
-
if (
|
|
2967
|
-
|
|
2968
|
-
}
|
|
2969
|
-
|
|
2970
|
-
const useMigrating = function() {
|
|
2971
|
-
vue.onMounted(() => {
|
|
2972
|
-
vue.getCurrentInstance();
|
|
2973
|
-
return;
|
|
2974
|
-
});
|
|
2975
|
-
const getMigratingConfig = function() {
|
|
2976
|
-
return {
|
|
2977
|
-
props: {},
|
|
2978
|
-
events: {}
|
|
2979
|
-
};
|
|
2980
|
-
};
|
|
2981
|
-
return {
|
|
2982
|
-
getMigratingConfig
|
|
2983
|
-
};
|
|
2984
|
-
};
|
|
2985
|
-
|
|
2986
|
-
var useFocus = (el) => {
|
|
2987
|
-
return {
|
|
2988
|
-
focus: () => {
|
|
2989
|
-
var _a, _b;
|
|
2990
|
-
(_b = (_a = el.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
2991
|
-
}
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
|
|
2995
|
-
function useThrottleRender(loading, throttle = 0) {
|
|
2996
|
-
if (throttle === 0)
|
|
2997
|
-
return loading;
|
|
2998
|
-
const throttled = vue.ref(false);
|
|
2999
|
-
let timeoutHandle = 0;
|
|
3000
|
-
const dispatchThrottling = () => {
|
|
3001
|
-
if (timeoutHandle) {
|
|
3002
|
-
clearTimeout(timeoutHandle);
|
|
3003
|
-
}
|
|
3004
|
-
timeoutHandle = window.setTimeout(() => {
|
|
3005
|
-
throttled.value = loading.value;
|
|
3006
|
-
}, throttle);
|
|
3007
|
-
};
|
|
3008
|
-
vue.onMounted(dispatchThrottling);
|
|
3009
|
-
vue.watch(() => loading.value, (val) => {
|
|
3010
|
-
if (val) {
|
|
3011
|
-
dispatchThrottling();
|
|
3012
|
-
} else {
|
|
3013
|
-
throttled.value = val;
|
|
3014
|
-
}
|
|
3015
|
-
});
|
|
3016
|
-
return throttled;
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
var usePreventGlobal = (indicator, evt, cb) => {
|
|
3020
|
-
const prevent = (e) => {
|
|
3021
|
-
if (cb(e)) {
|
|
3022
|
-
e.stopImmediatePropagation();
|
|
3023
|
-
}
|
|
3024
|
-
};
|
|
3025
|
-
vue.watch(() => indicator.value, (val) => {
|
|
3026
|
-
if (val) {
|
|
3027
|
-
on(document, evt, prevent, true);
|
|
3028
|
-
} else {
|
|
3029
|
-
off(document, evt, prevent, true);
|
|
3030
|
-
}
|
|
3031
|
-
}, { immediate: true });
|
|
3032
|
-
};
|
|
3033
|
-
|
|
3034
|
-
let target = isServer ? void 0 : document.body;
|
|
3035
|
-
function createGlobalNode(id) {
|
|
3036
|
-
const el = document.createElement("div");
|
|
3037
|
-
if (id !== void 0) {
|
|
3038
|
-
el.id = id;
|
|
3039
|
-
}
|
|
3040
|
-
target.appendChild(el);
|
|
3041
|
-
return el;
|
|
3042
|
-
}
|
|
3043
|
-
function removeGlobalNode(el) {
|
|
3044
|
-
el.remove();
|
|
3045
|
-
}
|
|
3046
|
-
|
|
3047
|
-
var useTeleport = (contentRenderer, appendToBody) => {
|
|
3048
|
-
const isTeleportVisible = vue.ref(false);
|
|
3049
|
-
if (isServer) {
|
|
3050
|
-
return {
|
|
3051
|
-
isTeleportVisible,
|
|
3052
|
-
showTeleport: NOOP,
|
|
3053
|
-
hideTeleport: NOOP,
|
|
3054
|
-
renderTeleport: NOOP
|
|
3055
|
-
};
|
|
3056
|
-
}
|
|
3057
|
-
let $el = null;
|
|
3058
|
-
const showTeleport = () => {
|
|
3059
|
-
isTeleportVisible.value = true;
|
|
3060
|
-
if ($el !== null)
|
|
3061
|
-
return;
|
|
3062
|
-
$el = createGlobalNode();
|
|
3063
|
-
};
|
|
3064
|
-
const hideTeleport = () => {
|
|
3065
|
-
isTeleportVisible.value = false;
|
|
3066
|
-
if ($el !== null) {
|
|
3067
|
-
removeGlobalNode($el);
|
|
3068
|
-
$el = null;
|
|
3069
|
-
}
|
|
3070
|
-
};
|
|
3071
|
-
const renderTeleport = () => {
|
|
3072
|
-
return appendToBody.value !== true ? contentRenderer() : isTeleportVisible.value ? [vue.h(vue.Teleport, { to: $el }, contentRenderer())] : void 0;
|
|
3073
|
-
};
|
|
3074
|
-
vue.onUnmounted(hideTeleport);
|
|
3075
|
-
return {
|
|
3076
|
-
isTeleportVisible,
|
|
3077
|
-
showTeleport,
|
|
3078
|
-
hideTeleport,
|
|
3079
|
-
renderTeleport
|
|
3080
|
-
};
|
|
3081
|
-
};
|
|
3082
|
-
|
|
3083
|
-
function useTimeout() {
|
|
3084
|
-
let timeoutHandle;
|
|
3085
|
-
vue.onBeforeUnmount(() => {
|
|
3086
|
-
clearTimeout(timeoutHandle);
|
|
3087
|
-
});
|
|
3088
|
-
return {
|
|
3089
|
-
registerTimeout: (fn, delay) => {
|
|
3090
|
-
clearTimeout(timeoutHandle);
|
|
3091
|
-
timeoutHandle = setTimeout(fn, delay);
|
|
3092
|
-
},
|
|
3093
|
-
cancelTimeout: () => {
|
|
3094
|
-
clearTimeout(timeoutHandle);
|
|
3095
|
-
}
|
|
3096
|
-
};
|
|
3097
|
-
}
|
|
3815
|
+
if (isClient)
|
|
3816
|
+
useEventListener(document, "keydown", closeModal);
|
|
3098
3817
|
|
|
3099
3818
|
const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
3100
3819
|
const CHANGE_EVENT = "change";
|
|
3101
3820
|
const INPUT_EVENT = "input";
|
|
3102
3821
|
|
|
3103
|
-
const useModelToggleProps = {
|
|
3822
|
+
const useModelToggleProps = buildProps({
|
|
3104
3823
|
modelValue: {
|
|
3105
|
-
type: Boolean,
|
|
3824
|
+
type: definePropType(Boolean),
|
|
3106
3825
|
default: null
|
|
3107
3826
|
},
|
|
3108
3827
|
"onUpdate:modelValue": Function
|
|
3109
|
-
};
|
|
3828
|
+
});
|
|
3110
3829
|
const useModelToggleEmits = [UPDATE_MODEL_EVENT];
|
|
3111
3830
|
const useModelToggle = ({
|
|
3112
3831
|
indicator,
|
|
@@ -3115,7 +3834,9 @@
|
|
|
3115
3834
|
onShow,
|
|
3116
3835
|
onHide
|
|
3117
3836
|
}) => {
|
|
3118
|
-
const
|
|
3837
|
+
const instance = vue.getCurrentInstance();
|
|
3838
|
+
const props = instance.props;
|
|
3839
|
+
const { emit } = instance;
|
|
3119
3840
|
const hasUpdateHandler = vue.computed(() => isFunction$3(props["onUpdate:modelValue"]));
|
|
3120
3841
|
const isModelBindingAbsent = vue.computed(() => props.modelValue === null);
|
|
3121
3842
|
const doShow = () => {
|
|
@@ -3181,9 +3902,9 @@
|
|
|
3181
3902
|
}
|
|
3182
3903
|
};
|
|
3183
3904
|
vue.watch(() => props.modelValue, onChange);
|
|
3184
|
-
if (shouldHideWhenRouteChanges && appContext.config.globalProperties.$route !== void 0) {
|
|
3905
|
+
if (shouldHideWhenRouteChanges && instance.appContext.config.globalProperties.$route !== void 0) {
|
|
3185
3906
|
vue.watch(() => ({
|
|
3186
|
-
...proxy.$route
|
|
3907
|
+
...instance.proxy.$route
|
|
3187
3908
|
}), () => {
|
|
3188
3909
|
if (shouldHideWhenRouteChanges.value && indicator.value) {
|
|
3189
3910
|
hide();
|
|
@@ -5378,6 +6099,69 @@
|
|
|
5378
6099
|
});
|
|
5379
6100
|
}
|
|
5380
6101
|
|
|
6102
|
+
let target = isServer ? void 0 : document.body;
|
|
6103
|
+
function createGlobalNode(id) {
|
|
6104
|
+
const el = document.createElement("div");
|
|
6105
|
+
if (id !== void 0) {
|
|
6106
|
+
el.id = id;
|
|
6107
|
+
}
|
|
6108
|
+
target.appendChild(el);
|
|
6109
|
+
return el;
|
|
6110
|
+
}
|
|
6111
|
+
function removeGlobalNode(el) {
|
|
6112
|
+
el.remove();
|
|
6113
|
+
}
|
|
6114
|
+
|
|
6115
|
+
const useTeleport = (contentRenderer, appendToBody) => {
|
|
6116
|
+
const isTeleportVisible = vue.ref(false);
|
|
6117
|
+
if (!isClient) {
|
|
6118
|
+
return {
|
|
6119
|
+
isTeleportVisible,
|
|
6120
|
+
showTeleport: NOOP,
|
|
6121
|
+
hideTeleport: NOOP,
|
|
6122
|
+
renderTeleport: NOOP
|
|
6123
|
+
};
|
|
6124
|
+
}
|
|
6125
|
+
let $el = null;
|
|
6126
|
+
const showTeleport = () => {
|
|
6127
|
+
isTeleportVisible.value = true;
|
|
6128
|
+
if ($el !== null)
|
|
6129
|
+
return;
|
|
6130
|
+
$el = createGlobalNode();
|
|
6131
|
+
};
|
|
6132
|
+
const hideTeleport = () => {
|
|
6133
|
+
isTeleportVisible.value = false;
|
|
6134
|
+
if ($el !== null) {
|
|
6135
|
+
removeGlobalNode($el);
|
|
6136
|
+
$el = null;
|
|
6137
|
+
}
|
|
6138
|
+
};
|
|
6139
|
+
const renderTeleport = () => {
|
|
6140
|
+
return appendToBody.value !== true ? contentRenderer() : isTeleportVisible.value ? [vue.h(vue.Teleport, { to: $el }, contentRenderer())] : void 0;
|
|
6141
|
+
};
|
|
6142
|
+
vue.onUnmounted(hideTeleport);
|
|
6143
|
+
return {
|
|
6144
|
+
isTeleportVisible,
|
|
6145
|
+
showTeleport,
|
|
6146
|
+
hideTeleport,
|
|
6147
|
+
renderTeleport
|
|
6148
|
+
};
|
|
6149
|
+
};
|
|
6150
|
+
|
|
6151
|
+
function useTimeout() {
|
|
6152
|
+
let timeoutHandle;
|
|
6153
|
+
const registerTimeout = (fn, delay) => {
|
|
6154
|
+
cancelTimeout();
|
|
6155
|
+
timeoutHandle = window.setTimeout(fn, delay);
|
|
6156
|
+
};
|
|
6157
|
+
const cancelTimeout = () => window.clearTimeout(timeoutHandle);
|
|
6158
|
+
tryOnScopeDispose(() => cancelTimeout());
|
|
6159
|
+
return {
|
|
6160
|
+
registerTimeout,
|
|
6161
|
+
cancelTimeout
|
|
6162
|
+
};
|
|
6163
|
+
}
|
|
6164
|
+
|
|
5381
6165
|
const AFTER_APPEAR = "after-appear";
|
|
5382
6166
|
const AFTER_ENTER = "after-enter";
|
|
5383
6167
|
const AFTER_LEAVE = "after-leave";
|
|
@@ -5518,7 +6302,7 @@
|
|
|
5518
6302
|
return events;
|
|
5519
6303
|
};
|
|
5520
6304
|
return vue.computed(() => {
|
|
5521
|
-
if (isArray$
|
|
6305
|
+
if (isArray$9(props.trigger)) {
|
|
5522
6306
|
return Object.values(props.trigger).reduce((pre, t) => {
|
|
5523
6307
|
return {
|
|
5524
6308
|
...pre,
|
|
@@ -5768,323 +6552,38 @@
|
|
|
5768
6552
|
};
|
|
5769
6553
|
};
|
|
5770
6554
|
|
|
5771
|
-
const
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
6555
|
+
const usePreventGlobal = (indicator, evt, cb) => {
|
|
6556
|
+
const prevent = (e) => {
|
|
6557
|
+
if (cb(e))
|
|
6558
|
+
e.stopImmediatePropagation();
|
|
6559
|
+
};
|
|
6560
|
+
let stop = void 0;
|
|
6561
|
+
vue.watch(() => indicator.value, (val) => {
|
|
6562
|
+
if (val) {
|
|
6563
|
+
stop = useEventListener(document, evt, prevent, true);
|
|
5776
6564
|
} else {
|
|
5777
|
-
|
|
6565
|
+
stop == null ? void 0 : stop();
|
|
5778
6566
|
}
|
|
5779
|
-
});
|
|
5780
|
-
};
|
|
5781
|
-
const themeVarsKey = "themeVars";
|
|
5782
|
-
function useCssVar$1(vars, target) {
|
|
5783
|
-
let stopWatchCssVar = null;
|
|
5784
|
-
const elRef = vue.computed(() => {
|
|
5785
|
-
var _a;
|
|
5786
|
-
return vue.unref(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
5787
|
-
});
|
|
5788
|
-
const themeVars = useThemeVars();
|
|
5789
|
-
const customVars = { ...themeVars, ...vue.unref(vars) };
|
|
5790
|
-
vue.provide(themeVarsKey, vue.ref(customVars));
|
|
5791
|
-
vue.onMounted(() => {
|
|
5792
|
-
vue.isRef(vars) ? stopWatchCssVar = vue.watch(vars, (val) => {
|
|
5793
|
-
setVars(elRef.value, {
|
|
5794
|
-
...vue.unref(themeVars),
|
|
5795
|
-
...val
|
|
5796
|
-
});
|
|
5797
|
-
}, {
|
|
5798
|
-
immediate: true,
|
|
5799
|
-
deep: true
|
|
5800
|
-
}) : setVars(elRef.value, {
|
|
5801
|
-
...vue.unref(themeVars),
|
|
5802
|
-
...vars
|
|
5803
|
-
});
|
|
5804
|
-
});
|
|
5805
|
-
vue.onUnmounted(() => stopWatchCssVar && stopWatchCssVar());
|
|
5806
|
-
}
|
|
5807
|
-
const useThemeVars = () => {
|
|
5808
|
-
const themeVars = vue.inject(themeVarsKey, {});
|
|
5809
|
-
return themeVars;
|
|
6567
|
+
}, { immediate: true });
|
|
5810
6568
|
};
|
|
5811
6569
|
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
confirm: "OK",
|
|
5825
|
-
selectDate: "Select date",
|
|
5826
|
-
selectTime: "Select time",
|
|
5827
|
-
startDate: "Start Date",
|
|
5828
|
-
startTime: "Start Time",
|
|
5829
|
-
endDate: "End Date",
|
|
5830
|
-
endTime: "End Time",
|
|
5831
|
-
prevYear: "Previous Year",
|
|
5832
|
-
nextYear: "Next Year",
|
|
5833
|
-
prevMonth: "Previous Month",
|
|
5834
|
-
nextMonth: "Next Month",
|
|
5835
|
-
year: "",
|
|
5836
|
-
month1: "January",
|
|
5837
|
-
month2: "February",
|
|
5838
|
-
month3: "March",
|
|
5839
|
-
month4: "April",
|
|
5840
|
-
month5: "May",
|
|
5841
|
-
month6: "June",
|
|
5842
|
-
month7: "July",
|
|
5843
|
-
month8: "August",
|
|
5844
|
-
month9: "September",
|
|
5845
|
-
month10: "October",
|
|
5846
|
-
month11: "November",
|
|
5847
|
-
month12: "December",
|
|
5848
|
-
week: "week",
|
|
5849
|
-
weeks: {
|
|
5850
|
-
sun: "Sun",
|
|
5851
|
-
mon: "Mon",
|
|
5852
|
-
tue: "Tue",
|
|
5853
|
-
wed: "Wed",
|
|
5854
|
-
thu: "Thu",
|
|
5855
|
-
fri: "Fri",
|
|
5856
|
-
sat: "Sat"
|
|
5857
|
-
},
|
|
5858
|
-
months: {
|
|
5859
|
-
jan: "Jan",
|
|
5860
|
-
feb: "Feb",
|
|
5861
|
-
mar: "Mar",
|
|
5862
|
-
apr: "Apr",
|
|
5863
|
-
may: "May",
|
|
5864
|
-
jun: "Jun",
|
|
5865
|
-
jul: "Jul",
|
|
5866
|
-
aug: "Aug",
|
|
5867
|
-
sep: "Sep",
|
|
5868
|
-
oct: "Oct",
|
|
5869
|
-
nov: "Nov",
|
|
5870
|
-
dec: "Dec"
|
|
6570
|
+
const useRestoreActive = (toggle, initialFocus) => {
|
|
6571
|
+
let previousActive;
|
|
6572
|
+
vue.watch(() => toggle.value, (val) => {
|
|
6573
|
+
var _a, _b;
|
|
6574
|
+
if (val) {
|
|
6575
|
+
previousActive = document.activeElement;
|
|
6576
|
+
if (vue.isRef(initialFocus)) {
|
|
6577
|
+
(_b = (_a = initialFocus.value).focus) == null ? void 0 : _b.call(_a);
|
|
6578
|
+
}
|
|
6579
|
+
} else {
|
|
6580
|
+
{
|
|
6581
|
+
previousActive.focus();
|
|
5871
6582
|
}
|
|
5872
|
-
},
|
|
5873
|
-
select: {
|
|
5874
|
-
loading: "Loading",
|
|
5875
|
-
noMatch: "No matching data",
|
|
5876
|
-
noData: "No data",
|
|
5877
|
-
placeholder: "Select"
|
|
5878
|
-
},
|
|
5879
|
-
cascader: {
|
|
5880
|
-
noMatch: "No matching data",
|
|
5881
|
-
loading: "Loading",
|
|
5882
|
-
placeholder: "Select",
|
|
5883
|
-
noData: "No data"
|
|
5884
|
-
},
|
|
5885
|
-
pagination: {
|
|
5886
|
-
goto: "Go to",
|
|
5887
|
-
pagesize: "/page",
|
|
5888
|
-
total: "Total {total}",
|
|
5889
|
-
pageClassifier: "",
|
|
5890
|
-
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
5891
|
-
},
|
|
5892
|
-
messagebox: {
|
|
5893
|
-
title: "Message",
|
|
5894
|
-
confirm: "OK",
|
|
5895
|
-
cancel: "Cancel",
|
|
5896
|
-
error: "Illegal input"
|
|
5897
|
-
},
|
|
5898
|
-
upload: {
|
|
5899
|
-
deleteTip: "press delete to remove",
|
|
5900
|
-
delete: "Delete",
|
|
5901
|
-
preview: "Preview",
|
|
5902
|
-
continue: "Continue"
|
|
5903
|
-
},
|
|
5904
|
-
table: {
|
|
5905
|
-
emptyText: "No Data",
|
|
5906
|
-
confirmFilter: "Confirm",
|
|
5907
|
-
resetFilter: "Reset",
|
|
5908
|
-
clearFilter: "All",
|
|
5909
|
-
sumText: "Sum"
|
|
5910
|
-
},
|
|
5911
|
-
tree: {
|
|
5912
|
-
emptyText: "No Data"
|
|
5913
|
-
},
|
|
5914
|
-
transfer: {
|
|
5915
|
-
noMatch: "No matching data",
|
|
5916
|
-
noData: "No data",
|
|
5917
|
-
titles: ["List 1", "List 2"],
|
|
5918
|
-
filterPlaceholder: "Enter keyword",
|
|
5919
|
-
noCheckedFormat: "{total} items",
|
|
5920
|
-
hasCheckedFormat: "{checked}/{total} checked"
|
|
5921
|
-
},
|
|
5922
|
-
image: {
|
|
5923
|
-
error: "FAILED"
|
|
5924
|
-
},
|
|
5925
|
-
pageHeader: {
|
|
5926
|
-
title: "Back"
|
|
5927
|
-
},
|
|
5928
|
-
popconfirm: {
|
|
5929
|
-
confirmButtonText: "Yes",
|
|
5930
|
-
cancelButtonText: "No"
|
|
5931
|
-
}
|
|
5932
|
-
}
|
|
5933
|
-
};
|
|
5934
|
-
|
|
5935
|
-
const wrapperKey = Symbol();
|
|
5936
|
-
const propKey = Symbol();
|
|
5937
|
-
function buildProp(option, key) {
|
|
5938
|
-
if (!isObject$a(option) || !!option[propKey])
|
|
5939
|
-
return option;
|
|
5940
|
-
const { values, required, default: defaultValue, type, validator } = option;
|
|
5941
|
-
const _validator = values || validator ? (val) => {
|
|
5942
|
-
let valid = false;
|
|
5943
|
-
let allowedValues = [];
|
|
5944
|
-
if (values) {
|
|
5945
|
-
allowedValues = [...values, defaultValue];
|
|
5946
|
-
valid || (valid = allowedValues.includes(val));
|
|
5947
|
-
}
|
|
5948
|
-
if (validator)
|
|
5949
|
-
valid || (valid = validator(val));
|
|
5950
|
-
if (!valid && allowedValues.length > 0) {
|
|
5951
|
-
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
5952
|
-
vue.warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
5953
|
-
}
|
|
5954
|
-
return valid;
|
|
5955
|
-
} : void 0;
|
|
5956
|
-
return {
|
|
5957
|
-
type: typeof type === "object" && Object.getOwnPropertySymbols(type).includes(wrapperKey) ? type[wrapperKey] : type,
|
|
5958
|
-
required: !!required,
|
|
5959
|
-
default: defaultValue,
|
|
5960
|
-
validator: _validator,
|
|
5961
|
-
[propKey]: true
|
|
5962
|
-
};
|
|
5963
|
-
}
|
|
5964
|
-
const buildProps = (props) => fromPairs_1(Object.entries(props).map(([key, option]) => [
|
|
5965
|
-
key,
|
|
5966
|
-
buildProp(option, key)
|
|
5967
|
-
]));
|
|
5968
|
-
const definePropType = (val) => ({ [wrapperKey]: val });
|
|
5969
|
-
const keyOf = (arr) => Object.keys(arr);
|
|
5970
|
-
const mutable = (val) => val;
|
|
5971
|
-
const componentSize = ["large", "medium", "small", "mini"];
|
|
5972
|
-
|
|
5973
|
-
const useLocaleProps = {
|
|
5974
|
-
locale: buildProp({
|
|
5975
|
-
type: definePropType(Object)
|
|
5976
|
-
})
|
|
5977
|
-
};
|
|
5978
|
-
const LocaleInjectionKey = "ElLocaleInjection";
|
|
5979
|
-
let localeObjCache;
|
|
5980
|
-
function translate(path, option, current) {
|
|
5981
|
-
const paths = path.split(".");
|
|
5982
|
-
let value;
|
|
5983
|
-
for (let i = 0, j = paths.length; i < j; i++) {
|
|
5984
|
-
const property = paths[i];
|
|
5985
|
-
value = current[property];
|
|
5986
|
-
if (i === j - 1)
|
|
5987
|
-
return template(value, option);
|
|
5988
|
-
if (!value)
|
|
5989
|
-
return "";
|
|
5990
|
-
current = value;
|
|
5991
|
-
}
|
|
5992
|
-
}
|
|
5993
|
-
const useLocale = () => {
|
|
5994
|
-
const vm = vue.getCurrentInstance();
|
|
5995
|
-
const props = vm.props;
|
|
5996
|
-
const locale = vue.computed(() => props.locale || English);
|
|
5997
|
-
const lang = vue.computed(() => locale.value.name);
|
|
5998
|
-
const _translator = (...args) => {
|
|
5999
|
-
const [path, option] = args;
|
|
6000
|
-
return translate(path, option, locale.value);
|
|
6001
|
-
};
|
|
6002
|
-
const t = (...args) => {
|
|
6003
|
-
return _translator(...args);
|
|
6004
|
-
};
|
|
6005
|
-
const provides = {
|
|
6006
|
-
locale,
|
|
6007
|
-
lang,
|
|
6008
|
-
t
|
|
6009
|
-
};
|
|
6010
|
-
localeObjCache = provides;
|
|
6011
|
-
vue.provide(LocaleInjectionKey, provides);
|
|
6012
|
-
};
|
|
6013
|
-
function template(str, option) {
|
|
6014
|
-
if (!str || !option)
|
|
6015
|
-
return str;
|
|
6016
|
-
return str.replace(/\{(\w+)\}/g, (_, key) => {
|
|
6017
|
-
return option[key];
|
|
6018
|
-
});
|
|
6019
|
-
}
|
|
6020
|
-
const localeProviderMaker = (locale = English) => {
|
|
6021
|
-
const lang = vue.ref(locale.name);
|
|
6022
|
-
const localeRef = vue.ref(locale);
|
|
6023
|
-
return {
|
|
6024
|
-
lang,
|
|
6025
|
-
locale: localeRef,
|
|
6026
|
-
t: (...args) => {
|
|
6027
|
-
const [path, option] = args;
|
|
6028
|
-
return translate(path, option, localeRef.value);
|
|
6029
|
-
}
|
|
6030
|
-
};
|
|
6031
|
-
};
|
|
6032
|
-
const useLocaleInject = () => {
|
|
6033
|
-
return vue.inject(LocaleInjectionKey, localeObjCache || {
|
|
6034
|
-
lang: vue.ref(English.name),
|
|
6035
|
-
locale: vue.ref(English),
|
|
6036
|
-
t: (...args) => {
|
|
6037
|
-
const [path, option] = args;
|
|
6038
|
-
return translate(path, option, English);
|
|
6039
6583
|
}
|
|
6040
6584
|
});
|
|
6041
6585
|
};
|
|
6042
6586
|
|
|
6043
|
-
const elFormKey = Symbol("elForm");
|
|
6044
|
-
const elFormItemKey = Symbol("elFormItem");
|
|
6045
|
-
|
|
6046
|
-
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
6047
|
-
|
|
6048
|
-
const elBreadcrumbKey = Symbol("elBreadcrumbKey");
|
|
6049
|
-
|
|
6050
|
-
const elPaginationKey = Symbol("elPaginationKey");
|
|
6051
|
-
|
|
6052
|
-
const configProviderContextKey = Symbol();
|
|
6053
|
-
|
|
6054
|
-
const radioGroupKey = Symbol("radioGroupKey");
|
|
6055
|
-
|
|
6056
|
-
const tabsRootContextKey = Symbol("tabsRootContextKey");
|
|
6057
|
-
|
|
6058
|
-
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
6059
|
-
|
|
6060
|
-
const sizes = ["", "large", "medium", "small", "mini"];
|
|
6061
|
-
const useFormItemProps = buildProps({
|
|
6062
|
-
size: {
|
|
6063
|
-
type: String,
|
|
6064
|
-
values: sizes,
|
|
6065
|
-
default: ""
|
|
6066
|
-
},
|
|
6067
|
-
disabled: Boolean
|
|
6068
|
-
});
|
|
6069
|
-
const useFormItem = ({ size, disabled }) => {
|
|
6070
|
-
var _a;
|
|
6071
|
-
const vm = vue.getCurrentInstance();
|
|
6072
|
-
const $ELEMENT = useGlobalConfig$1();
|
|
6073
|
-
const props = (_a = vm.proxy) == null ? void 0 : _a.$props;
|
|
6074
|
-
const form = vue.inject(elFormKey, void 0);
|
|
6075
|
-
const formItem = vue.inject(elFormItemKey, void 0);
|
|
6076
|
-
return {
|
|
6077
|
-
size: vue.computed(() => {
|
|
6078
|
-
return props.size || vue.unref(size) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || $ELEMENT.size || "";
|
|
6079
|
-
}),
|
|
6080
|
-
disabled: vue.computed(() => {
|
|
6081
|
-
return props.disabled === true || vue.unref(disabled) || (form == null ? void 0 : form.disabled) || false;
|
|
6082
|
-
}),
|
|
6083
|
-
form,
|
|
6084
|
-
formItem
|
|
6085
|
-
};
|
|
6086
|
-
};
|
|
6087
|
-
|
|
6088
6587
|
const useSameTarget = (handleClick) => {
|
|
6089
6588
|
if (!handleClick) {
|
|
6090
6589
|
return { onClick: NOOP, onMousedown: NOOP, onMouseup: NOOP };
|
|
@@ -6106,16 +6605,31 @@
|
|
|
6106
6605
|
return { onClick, onMousedown, onMouseup };
|
|
6107
6606
|
};
|
|
6108
6607
|
|
|
6109
|
-
const
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6608
|
+
const useThrottleRender = (loading, throttle = 0) => {
|
|
6609
|
+
if (throttle === 0)
|
|
6610
|
+
return loading;
|
|
6611
|
+
const throttled = vue.ref(false);
|
|
6612
|
+
let timeoutHandle = 0;
|
|
6613
|
+
const dispatchThrottling = () => {
|
|
6614
|
+
if (timeoutHandle) {
|
|
6615
|
+
clearTimeout(timeoutHandle);
|
|
6616
|
+
}
|
|
6617
|
+
timeoutHandle = window.setTimeout(() => {
|
|
6618
|
+
throttled.value = loading.value;
|
|
6619
|
+
}, throttle);
|
|
6620
|
+
};
|
|
6621
|
+
vue.onMounted(dispatchThrottling);
|
|
6622
|
+
vue.watch(() => loading.value, (val) => {
|
|
6623
|
+
if (val) {
|
|
6624
|
+
dispatchThrottling();
|
|
6625
|
+
} else {
|
|
6626
|
+
throttled.value = val;
|
|
6627
|
+
}
|
|
6628
|
+
});
|
|
6629
|
+
return throttled;
|
|
6116
6630
|
};
|
|
6117
6631
|
|
|
6118
|
-
const version$1 = "1.2.0-beta.
|
|
6632
|
+
const version$1 = "1.2.0-beta.5";
|
|
6119
6633
|
|
|
6120
6634
|
const makeInstaller = (components = []) => {
|
|
6121
6635
|
const apps = [];
|
|
@@ -6133,7 +6647,7 @@
|
|
|
6133
6647
|
});
|
|
6134
6648
|
if (option.locale) {
|
|
6135
6649
|
const localeProvides = localeProviderMaker(opts.locale);
|
|
6136
|
-
app.provide(
|
|
6650
|
+
app.provide(localeContextKey, localeProvides);
|
|
6137
6651
|
}
|
|
6138
6652
|
app.config.globalProperties.$ELEMENT = option;
|
|
6139
6653
|
setConfig(option);
|
|
@@ -6169,248 +6683,6 @@
|
|
|
6169
6683
|
return component;
|
|
6170
6684
|
};
|
|
6171
6685
|
|
|
6172
|
-
function tryOnScopeDispose(fn) {
|
|
6173
|
-
if (vue.getCurrentScope()) {
|
|
6174
|
-
vue.onScopeDispose(fn);
|
|
6175
|
-
return true;
|
|
6176
|
-
}
|
|
6177
|
-
return false;
|
|
6178
|
-
}
|
|
6179
|
-
|
|
6180
|
-
const isClient = typeof window !== "undefined";
|
|
6181
|
-
const isString = (val) => typeof val === "string";
|
|
6182
|
-
const noop$2 = () => {
|
|
6183
|
-
};
|
|
6184
|
-
|
|
6185
|
-
function createFilterWrapper(filter, fn) {
|
|
6186
|
-
function wrapper(...args) {
|
|
6187
|
-
filter(() => fn.apply(this, args), { fn, thisArg: this, args });
|
|
6188
|
-
}
|
|
6189
|
-
return wrapper;
|
|
6190
|
-
}
|
|
6191
|
-
function throttleFilter(ms, trailing = true, leading = true) {
|
|
6192
|
-
let lastExec = 0;
|
|
6193
|
-
let timer;
|
|
6194
|
-
let preventLeading = !leading;
|
|
6195
|
-
const clear = () => {
|
|
6196
|
-
if (timer) {
|
|
6197
|
-
clearTimeout(timer);
|
|
6198
|
-
timer = void 0;
|
|
6199
|
-
}
|
|
6200
|
-
};
|
|
6201
|
-
const filter = (invoke) => {
|
|
6202
|
-
const duration = vue.unref(ms);
|
|
6203
|
-
const elapsed = Date.now() - lastExec;
|
|
6204
|
-
clear();
|
|
6205
|
-
if (duration <= 0) {
|
|
6206
|
-
lastExec = Date.now();
|
|
6207
|
-
return invoke();
|
|
6208
|
-
}
|
|
6209
|
-
if (elapsed > duration) {
|
|
6210
|
-
lastExec = Date.now();
|
|
6211
|
-
if (preventLeading)
|
|
6212
|
-
preventLeading = false;
|
|
6213
|
-
else
|
|
6214
|
-
invoke();
|
|
6215
|
-
} else if (trailing) {
|
|
6216
|
-
timer = setTimeout(() => {
|
|
6217
|
-
lastExec = Date.now();
|
|
6218
|
-
if (!leading)
|
|
6219
|
-
preventLeading = true;
|
|
6220
|
-
clear();
|
|
6221
|
-
invoke();
|
|
6222
|
-
}, duration);
|
|
6223
|
-
}
|
|
6224
|
-
if (!leading && !timer)
|
|
6225
|
-
timer = setTimeout(() => preventLeading = true, duration);
|
|
6226
|
-
};
|
|
6227
|
-
return filter;
|
|
6228
|
-
}
|
|
6229
|
-
|
|
6230
|
-
function eagerComputed(fn) {
|
|
6231
|
-
const result = vue.shallowRef();
|
|
6232
|
-
vue.watchSyncEffect(() => {
|
|
6233
|
-
result.value = fn();
|
|
6234
|
-
});
|
|
6235
|
-
return vue.readonly(result);
|
|
6236
|
-
}
|
|
6237
|
-
|
|
6238
|
-
function useThrottleFn(fn, ms = 200, trailing = true, leading = true) {
|
|
6239
|
-
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
6240
|
-
}
|
|
6241
|
-
|
|
6242
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
6243
|
-
const {
|
|
6244
|
-
immediate = true
|
|
6245
|
-
} = options;
|
|
6246
|
-
const isPending = vue.ref(false);
|
|
6247
|
-
let timer = null;
|
|
6248
|
-
function clear() {
|
|
6249
|
-
if (timer) {
|
|
6250
|
-
clearTimeout(timer);
|
|
6251
|
-
timer = null;
|
|
6252
|
-
}
|
|
6253
|
-
}
|
|
6254
|
-
function stop() {
|
|
6255
|
-
isPending.value = false;
|
|
6256
|
-
clear();
|
|
6257
|
-
}
|
|
6258
|
-
function start(...args) {
|
|
6259
|
-
clear();
|
|
6260
|
-
isPending.value = true;
|
|
6261
|
-
timer = setTimeout(() => {
|
|
6262
|
-
isPending.value = false;
|
|
6263
|
-
timer = null;
|
|
6264
|
-
cb(...args);
|
|
6265
|
-
}, vue.unref(interval));
|
|
6266
|
-
}
|
|
6267
|
-
if (immediate) {
|
|
6268
|
-
isPending.value = true;
|
|
6269
|
-
if (isClient)
|
|
6270
|
-
start();
|
|
6271
|
-
}
|
|
6272
|
-
tryOnScopeDispose(stop);
|
|
6273
|
-
return {
|
|
6274
|
-
isPending,
|
|
6275
|
-
start,
|
|
6276
|
-
stop
|
|
6277
|
-
};
|
|
6278
|
-
}
|
|
6279
|
-
|
|
6280
|
-
function unrefElement(elRef) {
|
|
6281
|
-
var _a;
|
|
6282
|
-
const plain = vue.unref(elRef);
|
|
6283
|
-
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
6284
|
-
}
|
|
6285
|
-
|
|
6286
|
-
const defaultWindow = isClient ? window : void 0;
|
|
6287
|
-
const defaultDocument = isClient ? window.document : void 0;
|
|
6288
|
-
|
|
6289
|
-
function useEventListener(...args) {
|
|
6290
|
-
let target;
|
|
6291
|
-
let event;
|
|
6292
|
-
let listener;
|
|
6293
|
-
let options;
|
|
6294
|
-
if (isString(args[0])) {
|
|
6295
|
-
[event, listener, options] = args;
|
|
6296
|
-
target = defaultWindow;
|
|
6297
|
-
} else {
|
|
6298
|
-
[target, event, listener, options] = args;
|
|
6299
|
-
}
|
|
6300
|
-
if (!target)
|
|
6301
|
-
return noop$2;
|
|
6302
|
-
let cleanup = noop$2;
|
|
6303
|
-
const stopWatch = vue.watch(() => vue.unref(target), (el) => {
|
|
6304
|
-
cleanup();
|
|
6305
|
-
if (!el)
|
|
6306
|
-
return;
|
|
6307
|
-
el.addEventListener(event, listener, options);
|
|
6308
|
-
cleanup = () => {
|
|
6309
|
-
el.removeEventListener(event, listener, options);
|
|
6310
|
-
cleanup = noop$2;
|
|
6311
|
-
};
|
|
6312
|
-
}, { immediate: true, flush: "post" });
|
|
6313
|
-
const stop = () => {
|
|
6314
|
-
stopWatch();
|
|
6315
|
-
cleanup();
|
|
6316
|
-
};
|
|
6317
|
-
tryOnScopeDispose(stop);
|
|
6318
|
-
return stop;
|
|
6319
|
-
}
|
|
6320
|
-
|
|
6321
|
-
function useCssVar(prop, target, { window = defaultWindow } = {}) {
|
|
6322
|
-
const variable = vue.ref("");
|
|
6323
|
-
const elRef = vue.computed(() => {
|
|
6324
|
-
var _a;
|
|
6325
|
-
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
6326
|
-
});
|
|
6327
|
-
vue.watch(elRef, (el) => {
|
|
6328
|
-
if (el && window)
|
|
6329
|
-
variable.value = window.getComputedStyle(el).getPropertyValue(prop);
|
|
6330
|
-
}, { immediate: true });
|
|
6331
|
-
vue.watch(variable, (val) => {
|
|
6332
|
-
var _a;
|
|
6333
|
-
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
6334
|
-
elRef.value.style.setProperty(prop, val);
|
|
6335
|
-
});
|
|
6336
|
-
return variable;
|
|
6337
|
-
}
|
|
6338
|
-
|
|
6339
|
-
function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
6340
|
-
if (!document)
|
|
6341
|
-
return vue.ref("visible");
|
|
6342
|
-
const visibility = vue.ref(document.visibilityState);
|
|
6343
|
-
useEventListener(document, "visibilitychange", () => {
|
|
6344
|
-
visibility.value = document.visibilityState;
|
|
6345
|
-
});
|
|
6346
|
-
return visibility;
|
|
6347
|
-
}
|
|
6348
|
-
|
|
6349
|
-
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
6350
|
-
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
6351
|
-
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
6352
|
-
var __objRest$2 = (source, exclude) => {
|
|
6353
|
-
var target = {};
|
|
6354
|
-
for (var prop in source)
|
|
6355
|
-
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6356
|
-
target[prop] = source[prop];
|
|
6357
|
-
if (source != null && __getOwnPropSymbols$9)
|
|
6358
|
-
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
6359
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
6360
|
-
target[prop] = source[prop];
|
|
6361
|
-
}
|
|
6362
|
-
return target;
|
|
6363
|
-
};
|
|
6364
|
-
function useResizeObserver(target, callback, options = {}) {
|
|
6365
|
-
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
6366
|
-
let observer;
|
|
6367
|
-
const isSupported = window && "ResizeObserver" in window;
|
|
6368
|
-
const cleanup = () => {
|
|
6369
|
-
if (observer) {
|
|
6370
|
-
observer.disconnect();
|
|
6371
|
-
observer = void 0;
|
|
6372
|
-
}
|
|
6373
|
-
};
|
|
6374
|
-
const stopWatch = vue.watch(() => unrefElement(target), (el) => {
|
|
6375
|
-
cleanup();
|
|
6376
|
-
if (isSupported && window && el) {
|
|
6377
|
-
observer = new window.ResizeObserver(callback);
|
|
6378
|
-
observer.observe(el, observerOptions);
|
|
6379
|
-
}
|
|
6380
|
-
}, { immediate: true, flush: "post" });
|
|
6381
|
-
const stop = () => {
|
|
6382
|
-
cleanup();
|
|
6383
|
-
stopWatch();
|
|
6384
|
-
};
|
|
6385
|
-
tryOnScopeDispose(stop);
|
|
6386
|
-
return {
|
|
6387
|
-
isSupported,
|
|
6388
|
-
stop
|
|
6389
|
-
};
|
|
6390
|
-
}
|
|
6391
|
-
|
|
6392
|
-
var SwipeDirection;
|
|
6393
|
-
(function(SwipeDirection2) {
|
|
6394
|
-
SwipeDirection2["UP"] = "UP";
|
|
6395
|
-
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
6396
|
-
SwipeDirection2["DOWN"] = "DOWN";
|
|
6397
|
-
SwipeDirection2["LEFT"] = "LEFT";
|
|
6398
|
-
SwipeDirection2["NONE"] = "NONE";
|
|
6399
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
|
6400
|
-
|
|
6401
|
-
function useWindowFocus({ window = defaultWindow } = {}) {
|
|
6402
|
-
if (!window)
|
|
6403
|
-
return vue.ref(false);
|
|
6404
|
-
const focused = vue.ref(window.document.hasFocus());
|
|
6405
|
-
useEventListener(window, "blur", () => {
|
|
6406
|
-
focused.value = false;
|
|
6407
|
-
});
|
|
6408
|
-
useEventListener(window, "focus", () => {
|
|
6409
|
-
focused.value = true;
|
|
6410
|
-
});
|
|
6411
|
-
return focused;
|
|
6412
|
-
}
|
|
6413
|
-
|
|
6414
6686
|
const affixProps = buildProps({
|
|
6415
6687
|
zIndex: {
|
|
6416
6688
|
type: definePropType([Number, String]),
|
|
@@ -7716,36 +7988,6 @@
|
|
|
7716
7988
|
|
|
7717
7989
|
var _baseTrim = baseTrim$1;
|
|
7718
7990
|
|
|
7719
|
-
var baseGetTag = _baseGetTag,
|
|
7720
|
-
isObjectLike$3 = isObjectLike_1;
|
|
7721
|
-
|
|
7722
|
-
/** `Object#toString` result references. */
|
|
7723
|
-
var symbolTag$2 = '[object Symbol]';
|
|
7724
|
-
|
|
7725
|
-
/**
|
|
7726
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
7727
|
-
*
|
|
7728
|
-
* @static
|
|
7729
|
-
* @memberOf _
|
|
7730
|
-
* @since 4.0.0
|
|
7731
|
-
* @category Lang
|
|
7732
|
-
* @param {*} value The value to check.
|
|
7733
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
7734
|
-
* @example
|
|
7735
|
-
*
|
|
7736
|
-
* _.isSymbol(Symbol.iterator);
|
|
7737
|
-
* // => true
|
|
7738
|
-
*
|
|
7739
|
-
* _.isSymbol('abc');
|
|
7740
|
-
* // => false
|
|
7741
|
-
*/
|
|
7742
|
-
function isSymbol$1(value) {
|
|
7743
|
-
return typeof value == 'symbol' ||
|
|
7744
|
-
(isObjectLike$3(value) && baseGetTag(value) == symbolTag$2);
|
|
7745
|
-
}
|
|
7746
|
-
|
|
7747
|
-
var isSymbol_1 = isSymbol$1;
|
|
7748
|
-
|
|
7749
7991
|
var baseTrim = _baseTrim,
|
|
7750
7992
|
isObject$6 = isObject_1,
|
|
7751
7993
|
isSymbol = isSymbol_1;
|
|
@@ -7816,7 +8058,7 @@
|
|
|
7816
8058
|
toNumber = toNumber_1;
|
|
7817
8059
|
|
|
7818
8060
|
/** Error message constants. */
|
|
7819
|
-
var FUNC_ERROR_TEXT$
|
|
8061
|
+
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
7820
8062
|
|
|
7821
8063
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
7822
8064
|
var nativeMax$1 = Math.max,
|
|
@@ -7889,7 +8131,7 @@
|
|
|
7889
8131
|
trailing = true;
|
|
7890
8132
|
|
|
7891
8133
|
if (typeof func != 'function') {
|
|
7892
|
-
throw new TypeError(FUNC_ERROR_TEXT$
|
|
8134
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
7893
8135
|
}
|
|
7894
8136
|
wait = toNumber(wait) || 0;
|
|
7895
8137
|
if (isObject$5(options)) {
|
|
@@ -8855,7 +9097,7 @@
|
|
|
8855
9097
|
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
8856
9098
|
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
8857
9099
|
} else {
|
|
8858
|
-
({ stop: stopResizeObserver } = useResizeObserver(resize
|
|
9100
|
+
({ stop: stopResizeObserver } = useResizeObserver(resize$, update));
|
|
8859
9101
|
stopResizeListener = useEventListener("resize", update);
|
|
8860
9102
|
}
|
|
8861
9103
|
}, { immediate: true });
|
|
@@ -9049,7 +9291,7 @@
|
|
|
9049
9291
|
},
|
|
9050
9292
|
effect: {
|
|
9051
9293
|
type: String,
|
|
9052
|
-
default: "dark"
|
|
9294
|
+
default: "dark" /* DARK */
|
|
9053
9295
|
},
|
|
9054
9296
|
enterable: {
|
|
9055
9297
|
type: Boolean,
|
|
@@ -9291,7 +9533,7 @@
|
|
|
9291
9533
|
events[event] = popperEventsHandler;
|
|
9292
9534
|
});
|
|
9293
9535
|
};
|
|
9294
|
-
if (isArray$
|
|
9536
|
+
if (isArray$9(props.trigger)) {
|
|
9295
9537
|
Object.values(props.trigger).forEach(mapEvents);
|
|
9296
9538
|
} else {
|
|
9297
9539
|
mapEvents(props.trigger);
|
|
@@ -9589,7 +9831,7 @@
|
|
|
9589
9831
|
return `el-autocomplete-${generateId()}`;
|
|
9590
9832
|
});
|
|
9591
9833
|
const suggestionVisible = vue.computed(() => {
|
|
9592
|
-
const isValidData = isArray$
|
|
9834
|
+
const isValidData = isArray$9(suggestions.value) && suggestions.value.length > 0;
|
|
9593
9835
|
return (isValidData || loading.value) && activated.value;
|
|
9594
9836
|
});
|
|
9595
9837
|
const suggestionLoading = vue.computed(() => {
|
|
@@ -9622,7 +9864,7 @@
|
|
|
9622
9864
|
if (suggestionDisabled.value) {
|
|
9623
9865
|
return;
|
|
9624
9866
|
}
|
|
9625
|
-
if (isArray$
|
|
9867
|
+
if (isArray$9(suggestionsArg)) {
|
|
9626
9868
|
suggestions.value = suggestionsArg;
|
|
9627
9869
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
9628
9870
|
} else {
|
|
@@ -10778,7 +11020,7 @@
|
|
|
10778
11020
|
emits: ["update:modelValue", "change", "focus", "blur", "calendar-change"],
|
|
10779
11021
|
setup(props, ctx) {
|
|
10780
11022
|
const ELEMENT = useGlobalConfig$1();
|
|
10781
|
-
const { lang } =
|
|
11023
|
+
const { lang } = useLocale();
|
|
10782
11024
|
const elForm = vue.inject(elFormKey, {});
|
|
10783
11025
|
const elFormItem = vue.inject(elFormItemKey, {});
|
|
10784
11026
|
const elPopperOptions = vue.inject("ElPopperOptions", {});
|
|
@@ -11705,7 +11947,7 @@
|
|
|
11705
11947
|
},
|
|
11706
11948
|
emits: ["pick", "select-range", "set-picker-option"],
|
|
11707
11949
|
setup(props, ctx) {
|
|
11708
|
-
const { t, lang } =
|
|
11950
|
+
const { t, lang } = useLocale();
|
|
11709
11951
|
const selectionRange = vue.ref([0, 2]);
|
|
11710
11952
|
const oldValue = useOldValue(props);
|
|
11711
11953
|
const transitionName = vue.computed(() => {
|
|
@@ -12497,7 +12739,7 @@
|
|
|
12497
12739
|
},
|
|
12498
12740
|
emits: ["pick", "select-range", "set-picker-option"],
|
|
12499
12741
|
setup(props, ctx) {
|
|
12500
|
-
const { t, lang } =
|
|
12742
|
+
const { t, lang } = useLocale();
|
|
12501
12743
|
const minDate = vue.computed(() => props.parsedValue[0]);
|
|
12502
12744
|
const maxDate = vue.computed(() => props.parsedValue[1]);
|
|
12503
12745
|
const oldValue = useOldValue(props);
|
|
@@ -12871,7 +13113,7 @@
|
|
|
12871
13113
|
},
|
|
12872
13114
|
emits: ["pick"],
|
|
12873
13115
|
setup(props, ctx) {
|
|
12874
|
-
const { lang } =
|
|
13116
|
+
const { lang } = useLocale();
|
|
12875
13117
|
const WEEK_DAYS = vue.ref(dayjs().locale(lang.value).localeData().weekdaysShort());
|
|
12876
13118
|
const now = dayjs().locale(lang.value);
|
|
12877
13119
|
const firstDayOfWeek = now.$locale().weekStart || 0;
|
|
@@ -13048,7 +13290,7 @@
|
|
|
13048
13290
|
},
|
|
13049
13291
|
emits: ["input", "update:modelValue"],
|
|
13050
13292
|
setup(props, ctx) {
|
|
13051
|
-
const { t, lang } =
|
|
13293
|
+
const { t, lang } = useLocale();
|
|
13052
13294
|
const selectedDay = vue.ref(null);
|
|
13053
13295
|
const now = dayjs().locale(lang.value);
|
|
13054
13296
|
const prevMonthDayjs = vue.computed(() => {
|
|
@@ -13332,7 +13574,7 @@
|
|
|
13332
13574
|
isObject$4 = isObject_1;
|
|
13333
13575
|
|
|
13334
13576
|
/** Error message constants. */
|
|
13335
|
-
var FUNC_ERROR_TEXT
|
|
13577
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
13336
13578
|
|
|
13337
13579
|
/**
|
|
13338
13580
|
* Creates a throttled function that only invokes `func` at most once per
|
|
@@ -13383,7 +13625,7 @@
|
|
|
13383
13625
|
trailing = true;
|
|
13384
13626
|
|
|
13385
13627
|
if (typeof func != 'function') {
|
|
13386
|
-
throw new TypeError(FUNC_ERROR_TEXT
|
|
13628
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
13387
13629
|
}
|
|
13388
13630
|
if (isObject$4(options)) {
|
|
13389
13631
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
@@ -13769,7 +14011,6 @@
|
|
|
13769
14011
|
},
|
|
13770
14012
|
setup(props) {
|
|
13771
14013
|
const instance = vue.getCurrentInstance();
|
|
13772
|
-
instance.uid;
|
|
13773
14014
|
const data = vue.reactive({
|
|
13774
14015
|
hover: false,
|
|
13775
14016
|
translate: 0,
|
|
@@ -14953,7 +15194,7 @@
|
|
|
14953
15194
|
},
|
|
14954
15195
|
setup(props) {
|
|
14955
15196
|
const instance = vue.getCurrentInstance();
|
|
14956
|
-
const { t } =
|
|
15197
|
+
const { t } = useLocale();
|
|
14957
15198
|
const id = generateId();
|
|
14958
15199
|
let activeNode = null;
|
|
14959
15200
|
let hoverTimer = null;
|
|
@@ -15302,7 +15543,7 @@
|
|
|
15302
15543
|
let initialLoaded = true;
|
|
15303
15544
|
let manualChecked = false;
|
|
15304
15545
|
const config = useCascaderConfig(props);
|
|
15305
|
-
|
|
15546
|
+
let store = null;
|
|
15306
15547
|
const menuList = vue.ref([]);
|
|
15307
15548
|
const checkedValue = vue.ref(null);
|
|
15308
15549
|
const menus = vue.ref([]);
|
|
@@ -15314,11 +15555,15 @@
|
|
|
15314
15555
|
const { options } = props;
|
|
15315
15556
|
const cfg = config.value;
|
|
15316
15557
|
manualChecked = false;
|
|
15317
|
-
store
|
|
15318
|
-
menus.value = [store.
|
|
15558
|
+
store = new Store(options, cfg);
|
|
15559
|
+
menus.value = [store.getNodes()];
|
|
15319
15560
|
if (cfg.lazy && isEmpty(props.options)) {
|
|
15320
15561
|
initialLoaded = false;
|
|
15321
|
-
lazyLoad(void 0, () => {
|
|
15562
|
+
lazyLoad(void 0, (list) => {
|
|
15563
|
+
if (list) {
|
|
15564
|
+
store = new Store(list, cfg);
|
|
15565
|
+
menus.value = [store.getNodes()];
|
|
15566
|
+
}
|
|
15322
15567
|
initialLoaded = true;
|
|
15323
15568
|
syncCheckedValue(false, true);
|
|
15324
15569
|
});
|
|
@@ -15331,10 +15576,9 @@
|
|
|
15331
15576
|
node = node || new Node$3({}, cfg, void 0, true);
|
|
15332
15577
|
node.loading = true;
|
|
15333
15578
|
const resolve = (dataList) => {
|
|
15334
|
-
var _a;
|
|
15335
15579
|
const _node = node;
|
|
15336
15580
|
const parent = _node.root ? null : _node;
|
|
15337
|
-
dataList && (
|
|
15581
|
+
dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
|
|
15338
15582
|
_node.loading = false;
|
|
15339
15583
|
_node.loaded = true;
|
|
15340
15584
|
_node.childrenData = _node.childrenData || [];
|
|
@@ -15377,8 +15621,7 @@
|
|
|
15377
15621
|
node && expandNode(node);
|
|
15378
15622
|
};
|
|
15379
15623
|
const getFlattedNodes = (leafOnly) => {
|
|
15380
|
-
|
|
15381
|
-
return (_a = store.value) == null ? void 0 : _a.getFlattedNodes(leafOnly);
|
|
15624
|
+
return store == null ? void 0 : store.getFlattedNodes(leafOnly);
|
|
15382
15625
|
};
|
|
15383
15626
|
const getCheckedNodes = (leafOnly) => {
|
|
15384
15627
|
var _a;
|
|
@@ -15406,10 +15649,7 @@
|
|
|
15406
15649
|
return;
|
|
15407
15650
|
if (lazy && !loaded) {
|
|
15408
15651
|
const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
|
|
15409
|
-
const nodes = values.map((val) =>
|
|
15410
|
-
var _a;
|
|
15411
|
-
return (_a = store.value) == null ? void 0 : _a.getNodeByValue(val);
|
|
15412
|
-
}).filter((node) => !!node && !node.loaded && !node.loading);
|
|
15652
|
+
const nodes = values.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
|
|
15413
15653
|
if (nodes.length) {
|
|
15414
15654
|
nodes.forEach((node) => {
|
|
15415
15655
|
lazyLoad(node, () => syncCheckedValue(false, forced));
|
|
@@ -15419,20 +15659,16 @@
|
|
|
15419
15659
|
}
|
|
15420
15660
|
} else {
|
|
15421
15661
|
const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
|
|
15422
|
-
const nodes = deduplicate(values.map((val) =>
|
|
15423
|
-
var _a;
|
|
15424
|
-
return (_a = store.value) == null ? void 0 : _a.getNodeByValue(val, leafOnly);
|
|
15425
|
-
}));
|
|
15662
|
+
const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
|
|
15426
15663
|
syncMenuState(nodes, false);
|
|
15427
15664
|
checkedValue.value = modelValue;
|
|
15428
15665
|
}
|
|
15429
15666
|
};
|
|
15430
15667
|
const syncMenuState = (newCheckedNodes, reserveExpandingState = true) => {
|
|
15431
|
-
var _a;
|
|
15432
15668
|
const { checkStrictly } = config.value;
|
|
15433
15669
|
const oldNodes = checkedNodes.value;
|
|
15434
15670
|
const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
|
|
15435
|
-
const oldExpandingNode =
|
|
15671
|
+
const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
|
|
15436
15672
|
const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
|
|
15437
15673
|
if (newExpandingNode) {
|
|
15438
15674
|
newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
|
|
@@ -15759,7 +15995,7 @@
|
|
|
15759
15995
|
setup(props, { emit }) {
|
|
15760
15996
|
let inputInitialHeight = 0;
|
|
15761
15997
|
let pressDeleteCount = 0;
|
|
15762
|
-
const { t } =
|
|
15998
|
+
const { t } = useLocale();
|
|
15763
15999
|
const $ELEMENT = useGlobalConfig$1();
|
|
15764
16000
|
const elForm = vue.inject(elFormKey, {});
|
|
15765
16001
|
const elFormItem = vue.inject(elFormItemKey, {});
|
|
@@ -17443,7 +17679,7 @@
|
|
|
17443
17679
|
emits: ["change", "active-change", UPDATE_MODEL_EVENT],
|
|
17444
17680
|
setup(props, { emit }) {
|
|
17445
17681
|
const ELEMENT = useGlobalConfig$1();
|
|
17446
|
-
const { t } =
|
|
17682
|
+
const { t } = useLocale();
|
|
17447
17683
|
const elForm = vue.inject(elFormKey, {});
|
|
17448
17684
|
const elFormItem = vue.inject(elFormItemKey, {});
|
|
17449
17685
|
const hue = vue.ref(null);
|
|
@@ -17757,7 +17993,7 @@
|
|
|
17757
17993
|
name: "ElConfigProvider",
|
|
17758
17994
|
props: configProviderProps,
|
|
17759
17995
|
setup(props, { slots }) {
|
|
17760
|
-
|
|
17996
|
+
provideLocale();
|
|
17761
17997
|
vue.provide(configProviderContextKey, props);
|
|
17762
17998
|
return () => {
|
|
17763
17999
|
var _a;
|
|
@@ -18035,7 +18271,7 @@
|
|
|
18035
18271
|
},
|
|
18036
18272
|
emits: ["changerange", "pick", "select"],
|
|
18037
18273
|
setup(props, ctx) {
|
|
18038
|
-
const { t, lang } =
|
|
18274
|
+
const { t, lang } = useLocale();
|
|
18039
18275
|
const lastRow = vue.ref(null);
|
|
18040
18276
|
const lastColumn = vue.ref(null);
|
|
18041
18277
|
const tableRows = vue.ref([[], [], [], [], [], []]);
|
|
@@ -18358,7 +18594,7 @@
|
|
|
18358
18594
|
},
|
|
18359
18595
|
emits: ["changerange", "pick", "select"],
|
|
18360
18596
|
setup(props, ctx) {
|
|
18361
|
-
const { t, lang } =
|
|
18597
|
+
const { t, lang } = useLocale();
|
|
18362
18598
|
const months = vue.ref(props.date.locale("en").localeData().monthsShort().map((_) => _.toLowerCase()));
|
|
18363
18599
|
const tableRows = vue.ref([[], [], []]);
|
|
18364
18600
|
const lastRow = vue.ref(null);
|
|
@@ -18541,7 +18777,7 @@
|
|
|
18541
18777
|
},
|
|
18542
18778
|
emits: ["pick"],
|
|
18543
18779
|
setup(props, ctx) {
|
|
18544
|
-
const { lang } =
|
|
18780
|
+
const { lang } = useLocale();
|
|
18545
18781
|
const startYear = vue.computed(() => {
|
|
18546
18782
|
return Math.floor(props.date.year() / 10) * 10;
|
|
18547
18783
|
});
|
|
@@ -18689,7 +18925,7 @@
|
|
|
18689
18925
|
},
|
|
18690
18926
|
emits: ["pick", "set-picker-option"],
|
|
18691
18927
|
setup(props, ctx) {
|
|
18692
|
-
const { t, lang } =
|
|
18928
|
+
const { t, lang } = useLocale();
|
|
18693
18929
|
const pickerBase = vue.inject("EP_PICKER_BASE");
|
|
18694
18930
|
const {
|
|
18695
18931
|
shortcuts,
|
|
@@ -19293,7 +19529,7 @@
|
|
|
19293
19529
|
},
|
|
19294
19530
|
emits: ["pick", "set-picker-option", "calendar-change"],
|
|
19295
19531
|
setup(props, ctx) {
|
|
19296
|
-
const { t, lang } =
|
|
19532
|
+
const { t, lang } = useLocale();
|
|
19297
19533
|
const leftDate = vue.ref(dayjs().locale(lang.value));
|
|
19298
19534
|
const rightDate = vue.ref(dayjs().locale(lang.value).add(1, "month"));
|
|
19299
19535
|
const minDate = vue.ref(null);
|
|
@@ -20008,7 +20244,7 @@
|
|
|
20008
20244
|
},
|
|
20009
20245
|
emits: ["pick", "set-picker-option"],
|
|
20010
20246
|
setup(props, ctx) {
|
|
20011
|
-
const { t, lang } =
|
|
20247
|
+
const { t, lang } = useLocale();
|
|
20012
20248
|
const leftDate = vue.ref(dayjs().locale(lang.value));
|
|
20013
20249
|
const rightDate = vue.ref(dayjs().locale(lang.value).add(1, "year"));
|
|
20014
20250
|
const hasShortcuts = vue.computed(() => !!shortcuts.length);
|
|
@@ -20911,7 +21147,7 @@
|
|
|
20911
21147
|
visible.value = false;
|
|
20912
21148
|
}
|
|
20913
21149
|
if (props.lockScroll) {
|
|
20914
|
-
|
|
21150
|
+
useLockscreen(visible);
|
|
20915
21151
|
}
|
|
20916
21152
|
if (props.closeOnPressEscape) {
|
|
20917
21153
|
useModal({
|
|
@@ -21957,7 +22193,7 @@
|
|
|
21957
22193
|
},
|
|
21958
22194
|
props: emptyProps,
|
|
21959
22195
|
setup(props) {
|
|
21960
|
-
const { t } =
|
|
22196
|
+
const { t } = useLocale();
|
|
21961
22197
|
const emptyDescription = vue.computed(() => props.description || t("el.table.emptyText"));
|
|
21962
22198
|
const imageStyle = vue.computed(() => ({
|
|
21963
22199
|
width: props.imageSize ? `${props.imageSize}px` : ""
|
|
@@ -23896,7 +24132,7 @@
|
|
|
23896
24132
|
props: imageViewerProps,
|
|
23897
24133
|
emits: imageViewerEmits,
|
|
23898
24134
|
setup(props, { emit }) {
|
|
23899
|
-
const { t } =
|
|
24135
|
+
const { t } = useLocale();
|
|
23900
24136
|
const wrapper = vue.ref();
|
|
23901
24137
|
const img = vue.ref();
|
|
23902
24138
|
const scopeEventListener = vue.effectScope();
|
|
@@ -24311,7 +24547,7 @@
|
|
|
24311
24547
|
props: imageProps,
|
|
24312
24548
|
emits: imageEmits,
|
|
24313
24549
|
setup(props, { emit, attrs: rawAttrs }) {
|
|
24314
|
-
const { t } =
|
|
24550
|
+
const { t } = useLocale();
|
|
24315
24551
|
const attrs = useAttrs();
|
|
24316
24552
|
const hasLoadError = vue.ref(false);
|
|
24317
24553
|
const loading = vue.ref(true);
|
|
@@ -25071,10 +25307,9 @@
|
|
|
25071
25307
|
el.style.width = `${el.scrollWidth}px`;
|
|
25072
25308
|
el.style.overflow = "hidden";
|
|
25073
25309
|
},
|
|
25074
|
-
onLeave(el
|
|
25310
|
+
onLeave(el) {
|
|
25075
25311
|
addClass(el, "horizontal-collapse-transition");
|
|
25076
25312
|
el.style.width = `${el.dataset.scrollWidth}px`;
|
|
25077
|
-
done();
|
|
25078
25313
|
}
|
|
25079
25314
|
};
|
|
25080
25315
|
return {
|
|
@@ -26000,7 +26235,7 @@
|
|
|
26000
26235
|
props: pageHeaderProps,
|
|
26001
26236
|
emits: pageHeaderEmits,
|
|
26002
26237
|
setup(_, { emit }) {
|
|
26003
|
-
const { t } =
|
|
26238
|
+
const { t } = useLocale();
|
|
26004
26239
|
function handleClick() {
|
|
26005
26240
|
emit("back");
|
|
26006
26241
|
}
|
|
@@ -26373,7 +26608,7 @@
|
|
|
26373
26608
|
script$K.__file = "packages/components/select/src/select-dropdown.vue";
|
|
26374
26609
|
|
|
26375
26610
|
function useSelectStates(props) {
|
|
26376
|
-
const { t } =
|
|
26611
|
+
const { t } = useLocale();
|
|
26377
26612
|
return vue.reactive({
|
|
26378
26613
|
options: /* @__PURE__ */ new Map(),
|
|
26379
26614
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -26403,7 +26638,7 @@
|
|
|
26403
26638
|
}
|
|
26404
26639
|
const useSelect$2 = (props, states, ctx) => {
|
|
26405
26640
|
const ELEMENT = useGlobalConfig$1();
|
|
26406
|
-
const { t } =
|
|
26641
|
+
const { t } = useLocale();
|
|
26407
26642
|
const reference = vue.ref(null);
|
|
26408
26643
|
const input = vue.ref(null);
|
|
26409
26644
|
const popper = vue.ref(null);
|
|
@@ -27107,7 +27342,7 @@
|
|
|
27107
27342
|
"blur"
|
|
27108
27343
|
],
|
|
27109
27344
|
setup(props, ctx) {
|
|
27110
|
-
const { t } =
|
|
27345
|
+
const { t } = useLocale();
|
|
27111
27346
|
const states = useSelectStates(props);
|
|
27112
27347
|
const {
|
|
27113
27348
|
optionsArray,
|
|
@@ -27659,7 +27894,7 @@
|
|
|
27659
27894
|
props: paginationSizesProps,
|
|
27660
27895
|
emits: ["page-size-change"],
|
|
27661
27896
|
setup(props, { emit }) {
|
|
27662
|
-
const { t } =
|
|
27897
|
+
const { t } = useLocale();
|
|
27663
27898
|
const pagination = usePagination();
|
|
27664
27899
|
const innerPageSize = vue.ref(props.pageSize);
|
|
27665
27900
|
vue.watch(() => props.pageSizes, (newVal, oldVal) => {
|
|
@@ -27725,7 +27960,7 @@
|
|
|
27725
27960
|
ElInput: ElInput$1
|
|
27726
27961
|
},
|
|
27727
27962
|
setup() {
|
|
27728
|
-
const { t } =
|
|
27963
|
+
const { t } = useLocale();
|
|
27729
27964
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
27730
27965
|
const userInput = vue.ref();
|
|
27731
27966
|
const innerValue = vue.computed(() => {
|
|
@@ -27783,7 +28018,7 @@
|
|
|
27783
28018
|
name: "ElPaginationTotal",
|
|
27784
28019
|
props: paginationTotalProps,
|
|
27785
28020
|
setup() {
|
|
27786
|
-
const { t } =
|
|
28021
|
+
const { t } = useLocale();
|
|
27787
28022
|
return {
|
|
27788
28023
|
t
|
|
27789
28024
|
};
|
|
@@ -28046,7 +28281,7 @@
|
|
|
28046
28281
|
props: paginationProps,
|
|
28047
28282
|
emits: paginationEmits,
|
|
28048
28283
|
setup(props, { emit, slots }) {
|
|
28049
|
-
const { t } =
|
|
28284
|
+
const { t } = useLocale();
|
|
28050
28285
|
const vnodeProps = vue.getCurrentInstance().vnode.props || {};
|
|
28051
28286
|
const hasCurrentPageListener = "onUpdate:currentPage" in vnodeProps || "onUpdate:current-page" in vnodeProps || "onCurrentChange" in vnodeProps;
|
|
28052
28287
|
const hasPageSizeListener = "onUpdate:pageSize" in vnodeProps || "onUpdate:page-size" in vnodeProps || "onSizeChange" in vnodeProps;
|
|
@@ -28272,7 +28507,7 @@
|
|
|
28272
28507
|
props: popconfirmProps,
|
|
28273
28508
|
emits: popconfirmEmits,
|
|
28274
28509
|
setup(props, { emit }) {
|
|
28275
|
-
const { t } =
|
|
28510
|
+
const { t } = useLocale();
|
|
28276
28511
|
const visible = vue.ref(false);
|
|
28277
28512
|
const confirm = () => {
|
|
28278
28513
|
visible.value = false;
|
|
@@ -28947,7 +29182,7 @@
|
|
|
28947
29182
|
return result;
|
|
28948
29183
|
});
|
|
28949
29184
|
const valueDecimal = vue.computed(() => props.modelValue * 100 - Math.floor(props.modelValue) * 100);
|
|
28950
|
-
const colorMap = vue.computed(() => isArray$
|
|
29185
|
+
const colorMap = vue.computed(() => isArray$9(props.colors) ? {
|
|
28951
29186
|
[props.lowThreshold]: props.colors[0],
|
|
28952
29187
|
[props.highThreshold]: { value: props.colors[1], excluded: true },
|
|
28953
29188
|
[props.max]: props.colors[2]
|
|
@@ -28965,7 +29200,7 @@
|
|
|
28965
29200
|
width
|
|
28966
29201
|
};
|
|
28967
29202
|
});
|
|
28968
|
-
const componentMap = vue.computed(() => isArray$
|
|
29203
|
+
const componentMap = vue.computed(() => isArray$9(props.icons) ? {
|
|
28969
29204
|
[props.lowThreshold]: props.icons[0],
|
|
28970
29205
|
[props.highThreshold]: {
|
|
28971
29206
|
value: props.icons[1],
|
|
@@ -29296,80 +29531,6 @@
|
|
|
29296
29531
|
|
|
29297
29532
|
const ElRow = withInstall(Row);
|
|
29298
29533
|
|
|
29299
|
-
var MapCache = _MapCache;
|
|
29300
|
-
|
|
29301
|
-
/** Error message constants. */
|
|
29302
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
29303
|
-
|
|
29304
|
-
/**
|
|
29305
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
29306
|
-
* provided, it determines the cache key for storing the result based on the
|
|
29307
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
29308
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
29309
|
-
* is invoked with the `this` binding of the memoized function.
|
|
29310
|
-
*
|
|
29311
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
29312
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
29313
|
-
* constructor with one whose instances implement the
|
|
29314
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
29315
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
29316
|
-
*
|
|
29317
|
-
* @static
|
|
29318
|
-
* @memberOf _
|
|
29319
|
-
* @since 0.1.0
|
|
29320
|
-
* @category Function
|
|
29321
|
-
* @param {Function} func The function to have its output memoized.
|
|
29322
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
29323
|
-
* @returns {Function} Returns the new memoized function.
|
|
29324
|
-
* @example
|
|
29325
|
-
*
|
|
29326
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
29327
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
29328
|
-
*
|
|
29329
|
-
* var values = _.memoize(_.values);
|
|
29330
|
-
* values(object);
|
|
29331
|
-
* // => [1, 2]
|
|
29332
|
-
*
|
|
29333
|
-
* values(other);
|
|
29334
|
-
* // => [3, 4]
|
|
29335
|
-
*
|
|
29336
|
-
* object.a = 2;
|
|
29337
|
-
* values(object);
|
|
29338
|
-
* // => [1, 2]
|
|
29339
|
-
*
|
|
29340
|
-
* // Modify the result cache.
|
|
29341
|
-
* values.cache.set(object, ['a', 'b']);
|
|
29342
|
-
* values(object);
|
|
29343
|
-
* // => ['a', 'b']
|
|
29344
|
-
*
|
|
29345
|
-
* // Replace `_.memoize.Cache`.
|
|
29346
|
-
* _.memoize.Cache = WeakMap;
|
|
29347
|
-
*/
|
|
29348
|
-
function memoize(func, resolver) {
|
|
29349
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
29350
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
29351
|
-
}
|
|
29352
|
-
var memoized = function() {
|
|
29353
|
-
var args = arguments,
|
|
29354
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
29355
|
-
cache = memoized.cache;
|
|
29356
|
-
|
|
29357
|
-
if (cache.has(key)) {
|
|
29358
|
-
return cache.get(key);
|
|
29359
|
-
}
|
|
29360
|
-
var result = func.apply(this, args);
|
|
29361
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
29362
|
-
return result;
|
|
29363
|
-
};
|
|
29364
|
-
memoized.cache = new (memoize.Cache || MapCache);
|
|
29365
|
-
return memoized;
|
|
29366
|
-
}
|
|
29367
|
-
|
|
29368
|
-
// Expose `MapCache`.
|
|
29369
|
-
memoize.Cache = MapCache;
|
|
29370
|
-
|
|
29371
|
-
var memoize_1 = memoize;
|
|
29372
|
-
|
|
29373
29534
|
var safeIsNaN = Number.isNaN ||
|
|
29374
29535
|
function ponyfill(value) {
|
|
29375
29536
|
return typeof value === 'number' && value !== value;
|
|
@@ -31496,7 +31657,7 @@
|
|
|
31496
31657
|
const flattenOptions = (options) => {
|
|
31497
31658
|
const flattened = [];
|
|
31498
31659
|
options.map((option) => {
|
|
31499
|
-
if (isArray$
|
|
31660
|
+
if (isArray$9(option.options)) {
|
|
31500
31661
|
flattened.push({
|
|
31501
31662
|
label: option.label,
|
|
31502
31663
|
isTitle: true,
|
|
@@ -31547,7 +31708,7 @@
|
|
|
31547
31708
|
mini: 33
|
|
31548
31709
|
};
|
|
31549
31710
|
const useSelect = (props, emit) => {
|
|
31550
|
-
const { t } =
|
|
31711
|
+
const { t } = useLocale();
|
|
31551
31712
|
const elForm = vue.inject(elFormKey, {});
|
|
31552
31713
|
const elFormItem = vue.inject(elFormItemKey, {});
|
|
31553
31714
|
const $ELEMENT = useGlobalConfig$1();
|
|
@@ -31628,7 +31789,7 @@
|
|
|
31628
31789
|
return [];
|
|
31629
31790
|
}
|
|
31630
31791
|
return flattenOptions(props.options.concat(states.createdOptions).map((v) => {
|
|
31631
|
-
if (isArray$
|
|
31792
|
+
if (isArray$9(v.options)) {
|
|
31632
31793
|
const filtered = v.options.filter(isValidOption);
|
|
31633
31794
|
if (filtered.length > 0) {
|
|
31634
31795
|
return {
|
|
@@ -31664,7 +31825,7 @@
|
|
|
31664
31825
|
};
|
|
31665
31826
|
});
|
|
31666
31827
|
const shouldShowPlaceholder = vue.computed(() => {
|
|
31667
|
-
if (isArray$
|
|
31828
|
+
if (isArray$9(props.modelValue)) {
|
|
31668
31829
|
return props.modelValue.length === 0 && !states.displayInputValue;
|
|
31669
31830
|
}
|
|
31670
31831
|
return props.filterable ? states.displayInputValue.length === 0 : true;
|
|
@@ -31913,7 +32074,7 @@
|
|
|
31913
32074
|
};
|
|
31914
32075
|
const handleClear = () => {
|
|
31915
32076
|
let emptyValue;
|
|
31916
|
-
if (isArray$
|
|
32077
|
+
if (isArray$9(props.modelValue)) {
|
|
31917
32078
|
emptyValue = [];
|
|
31918
32079
|
} else {
|
|
31919
32080
|
emptyValue = "";
|
|
@@ -33547,7 +33708,7 @@
|
|
|
33547
33708
|
type: [String, Array, Number],
|
|
33548
33709
|
values: componentSize,
|
|
33549
33710
|
validator: (val) => {
|
|
33550
|
-
return isNumber(val) || isArray$
|
|
33711
|
+
return isNumber(val) || isArray$9(val) && val.length === 2 && val.every((i) => isNumber(i));
|
|
33551
33712
|
}
|
|
33552
33713
|
}
|
|
33553
33714
|
});
|
|
@@ -33562,11 +33723,11 @@
|
|
|
33562
33723
|
const children = vue.renderSlot(slots, "default", { key: 0 }, () => []);
|
|
33563
33724
|
if (((_a = children.children) != null ? _a : []).length === 0)
|
|
33564
33725
|
return null;
|
|
33565
|
-
if (isArray$
|
|
33726
|
+
if (isArray$9(children.children)) {
|
|
33566
33727
|
let extractedChildren = [];
|
|
33567
33728
|
children.children.forEach((child, loopKey) => {
|
|
33568
33729
|
if (isFragment(child)) {
|
|
33569
|
-
if (isArray$
|
|
33730
|
+
if (isArray$9(child.children)) {
|
|
33570
33731
|
child.children.forEach((nested, key) => {
|
|
33571
33732
|
extractedChildren.push(vue.createVNode(script$o, {
|
|
33572
33733
|
style: itemStyle.value,
|
|
@@ -35720,7 +35881,7 @@
|
|
|
35720
35881
|
},
|
|
35721
35882
|
setup(props) {
|
|
35722
35883
|
const instance = vue.getCurrentInstance();
|
|
35723
|
-
const { t } =
|
|
35884
|
+
const { t } = useLocale();
|
|
35724
35885
|
const parent = instance.parent;
|
|
35725
35886
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
35726
35887
|
parent.filterPanels.value[props.column.id] = instance;
|
|
@@ -37564,7 +37725,7 @@
|
|
|
37564
37725
|
"expand-change"
|
|
37565
37726
|
],
|
|
37566
37727
|
setup(props) {
|
|
37567
|
-
const { t } =
|
|
37728
|
+
const { t } = useLocale();
|
|
37568
37729
|
const table = vue.getCurrentInstance();
|
|
37569
37730
|
const store = createStore(table, props);
|
|
37570
37731
|
table.store = store;
|
|
@@ -39503,7 +39664,7 @@
|
|
|
39503
39664
|
props: useCheckProps,
|
|
39504
39665
|
emits: [CHECKED_CHANGE_EVENT],
|
|
39505
39666
|
setup(props, { slots }) {
|
|
39506
|
-
const { t } =
|
|
39667
|
+
const { t } = useLocale();
|
|
39507
39668
|
const panelState = vue.reactive({
|
|
39508
39669
|
checked: [],
|
|
39509
39670
|
allChecked: false,
|
|
@@ -39801,7 +39962,7 @@
|
|
|
39801
39962
|
RIGHT_CHECK_CHANGE_EVENT
|
|
39802
39963
|
],
|
|
39803
39964
|
setup(props, { emit, slots }) {
|
|
39804
|
-
const { t } =
|
|
39965
|
+
const { t } = useLocale();
|
|
39805
39966
|
const elFormItem = vue.inject(elFormItemKey, {});
|
|
39806
39967
|
const checkedState = vue.reactive({
|
|
39807
39968
|
leftChecked: [],
|
|
@@ -41333,7 +41494,7 @@
|
|
|
41333
41494
|
"node-drag-over"
|
|
41334
41495
|
],
|
|
41335
41496
|
setup(props, ctx) {
|
|
41336
|
-
const { t } =
|
|
41497
|
+
const { t } = useLocale();
|
|
41337
41498
|
const store = vue.ref(new TreeStore({
|
|
41338
41499
|
key: props.nodeKey,
|
|
41339
41500
|
data: props.data,
|
|
@@ -41598,10 +41759,10 @@
|
|
|
41598
41759
|
props: {
|
|
41599
41760
|
type: definePropType(Object),
|
|
41600
41761
|
default: () => mutable({
|
|
41601
|
-
children: "children"
|
|
41602
|
-
label: "label"
|
|
41603
|
-
disabled: "disabled"
|
|
41604
|
-
value: "id"
|
|
41762
|
+
children: "children" /* CHILDREN */,
|
|
41763
|
+
label: "label" /* LABEL */,
|
|
41764
|
+
disabled: "disabled" /* DISABLED */,
|
|
41765
|
+
value: "id" /* KEY */
|
|
41605
41766
|
})
|
|
41606
41767
|
},
|
|
41607
41768
|
highlightCurrent: {
|
|
@@ -42335,7 +42496,7 @@
|
|
|
42335
42496
|
props,
|
|
42336
42497
|
instance: vue.getCurrentInstance()
|
|
42337
42498
|
});
|
|
42338
|
-
const { t } =
|
|
42499
|
+
const { t } = useLocale();
|
|
42339
42500
|
const {
|
|
42340
42501
|
flattenTree,
|
|
42341
42502
|
isNotEmpty,
|
|
@@ -42553,7 +42714,7 @@
|
|
|
42553
42714
|
},
|
|
42554
42715
|
emits: ["remove"],
|
|
42555
42716
|
setup(props, { emit }) {
|
|
42556
|
-
const { t } =
|
|
42717
|
+
const { t } = useLocale();
|
|
42557
42718
|
const handleClick = (file) => {
|
|
42558
42719
|
props.handlePreview(file);
|
|
42559
42720
|
};
|
|
@@ -45181,7 +45342,7 @@
|
|
|
45181
45342
|
},
|
|
45182
45343
|
emits: ["vanish", "action"],
|
|
45183
45344
|
setup(props, { emit }) {
|
|
45184
|
-
const { t } =
|
|
45345
|
+
const { t } = useLocale();
|
|
45185
45346
|
const visible = vue.ref(false);
|
|
45186
45347
|
const state = vue.reactive({
|
|
45187
45348
|
beforeClose: null,
|
|
@@ -45225,7 +45386,7 @@
|
|
|
45225
45386
|
const hasMessage = vue.computed(() => !!state.message);
|
|
45226
45387
|
const inputRef = vue.ref(null);
|
|
45227
45388
|
const confirmRef = vue.ref(null);
|
|
45228
|
-
const confirmButtonClasses = vue.computed(() =>
|
|
45389
|
+
const confirmButtonClasses = vue.computed(() => state.confirmButtonClass);
|
|
45229
45390
|
vue.watch(() => state.inputValue, async (val) => {
|
|
45230
45391
|
await vue.nextTick();
|
|
45231
45392
|
if (props.boxType === "prompt" && val !== null) {
|
|
@@ -45339,7 +45500,7 @@
|
|
|
45339
45500
|
usePreventGlobal(visible, "keydown", (e) => e.code === EVENT_CODE.esc);
|
|
45340
45501
|
}
|
|
45341
45502
|
if (props.lockScroll) {
|
|
45342
|
-
|
|
45503
|
+
useLockscreen(visible);
|
|
45343
45504
|
}
|
|
45344
45505
|
useRestoreActive(visible);
|
|
45345
45506
|
return {
|
|
@@ -45493,6 +45654,8 @@
|
|
|
45493
45654
|
}, 8, ["loading", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
45494
45655
|
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
45495
45656
|
ref: "confirmRef",
|
|
45657
|
+
type: "primary",
|
|
45658
|
+
plain: "",
|
|
45496
45659
|
loading: _ctx.confirmButtonLoading,
|
|
45497
45660
|
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
45498
45661
|
round: _ctx.roundButton,
|
|
@@ -46122,7 +46285,6 @@
|
|
|
46122
46285
|
exports.IconComponentMap = IconComponentMap;
|
|
46123
46286
|
exports.IconMap = IconMap;
|
|
46124
46287
|
exports.LIGHT_EFFECT = LIGHT_EFFECT;
|
|
46125
|
-
exports.LocaleInjectionKey = LocaleInjectionKey;
|
|
46126
46288
|
exports.Mousewheel = Mousewheel;
|
|
46127
46289
|
exports.RepeatClick = RepeatClick;
|
|
46128
46290
|
exports.Resize = Resize;
|
|
@@ -46140,6 +46302,7 @@
|
|
|
46140
46302
|
exports.barProps = barProps;
|
|
46141
46303
|
exports.breadcrumbItemProps = breadcrumbItemProps;
|
|
46142
46304
|
exports.breadcrumbProps = breadcrumbProps;
|
|
46305
|
+
exports.buildTranslator = buildTranslator;
|
|
46143
46306
|
exports.buttonEmits = buttonEmits;
|
|
46144
46307
|
exports.buttonGroupContextKey = buttonGroupContextKey;
|
|
46145
46308
|
exports.buttonNativeType = buttonNativeType;
|
|
@@ -46149,6 +46312,7 @@
|
|
|
46149
46312
|
exports.cardProps = cardProps;
|
|
46150
46313
|
exports.colProps = colProps;
|
|
46151
46314
|
exports.configProviderContextKey = configProviderContextKey;
|
|
46315
|
+
exports.configProviderProps = configProviderProps;
|
|
46152
46316
|
exports["default"] = installer;
|
|
46153
46317
|
exports.dialogEmits = dialogEmits;
|
|
46154
46318
|
exports.dialogProps = dialogProps;
|
|
@@ -46172,6 +46336,7 @@
|
|
|
46172
46336
|
exports.install = install;
|
|
46173
46337
|
exports.linkEmits = linkEmits;
|
|
46174
46338
|
exports.linkProps = linkProps;
|
|
46339
|
+
exports.localeContextKey = localeContextKey;
|
|
46175
46340
|
exports.localeProviderMaker = localeProviderMaker;
|
|
46176
46341
|
exports.makeInstaller = makeInstaller$1;
|
|
46177
46342
|
exports.menuEmits = menuEmits;
|
|
@@ -46194,6 +46359,7 @@
|
|
|
46194
46359
|
exports.popconfirmEmits = popconfirmEmits;
|
|
46195
46360
|
exports.popconfirmProps = popconfirmProps;
|
|
46196
46361
|
exports.popperDefaultProps = popperDefaultProps;
|
|
46362
|
+
exports.provideLocale = provideLocale;
|
|
46197
46363
|
exports.radioButtonProps = radioButtonProps;
|
|
46198
46364
|
exports.radioEmits = radioEmits;
|
|
46199
46365
|
exports.radioGroupEmits = radioGroupEmits;
|
|
@@ -46228,22 +46394,18 @@
|
|
|
46228
46394
|
exports.tabsRootContextKey = tabsRootContextKey;
|
|
46229
46395
|
exports.tagEmits = tagEmits;
|
|
46230
46396
|
exports.tagProps = tagProps;
|
|
46231
|
-
exports.themeVarsKey = themeVarsKey;
|
|
46232
46397
|
exports.timePickerDefaultProps = timePickerDefaultProps;
|
|
46398
|
+
exports.translate = translate;
|
|
46233
46399
|
exports.useAttrs = useAttrs;
|
|
46234
46400
|
exports.useCascaderConfig = useCascaderConfig;
|
|
46235
|
-
exports.useCssVar = useCssVar$1;
|
|
46236
46401
|
exports.useDialog = useDialog;
|
|
46237
|
-
exports.useEvents = index;
|
|
46238
46402
|
exports.useFocus = useFocus;
|
|
46239
46403
|
exports.useFormItem = useFormItem;
|
|
46240
46404
|
exports.useFormItemProps = useFormItemProps;
|
|
46241
46405
|
exports.useGlobalConfig = useGlobalConfig;
|
|
46242
46406
|
exports.useLocale = useLocale;
|
|
46243
|
-
exports.useLocaleInject = useLocaleInject;
|
|
46244
46407
|
exports.useLocaleProps = useLocaleProps;
|
|
46245
|
-
exports.
|
|
46246
|
-
exports.useMigrating = useMigrating;
|
|
46408
|
+
exports.useLockscreen = useLockscreen;
|
|
46247
46409
|
exports.useModal = useModal;
|
|
46248
46410
|
exports.useModelToggle = useModelToggle;
|
|
46249
46411
|
exports.useModelToggleEmits = useModelToggleEmits;
|
|
@@ -46258,7 +46420,6 @@
|
|
|
46258
46420
|
exports.useSameTarget = useSameTarget;
|
|
46259
46421
|
exports.useSpace = useSpace;
|
|
46260
46422
|
exports.useTeleport = useTeleport;
|
|
46261
|
-
exports.useThemeVars = useThemeVars;
|
|
46262
46423
|
exports.useThrottleRender = useThrottleRender;
|
|
46263
46424
|
exports.useTimeout = useTimeout;
|
|
46264
46425
|
exports.version = version;
|