@wlydfe/pro-ui 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/component.d.ts +3 -0
- package/es/component.mjs +49 -0
- package/es/components/breadcrumb/index.d.ts +14102 -0
- package/es/components/breadcrumb/index.mjs +5 -0
- package/es/components/breadcrumb/src/index.vue.d.ts +14110 -0
- package/es/components/breadcrumb/src/index.vue.mjs +6 -0
- package/es/components/breadcrumb/src/index.vue2.mjs +101 -0
- package/es/components/breadcrumb/style/css.d.ts +3 -0
- package/es/components/breadcrumb/style/css.mjs +3 -0
- package/es/components/breadcrumb/style/index.d.ts +3 -0
- package/es/components/breadcrumb/style/index.mjs +3 -0
- package/es/components/check-card/index.d.ts +272 -0
- package/es/components/check-card/index.mjs +5 -0
- package/es/components/check-card/src/index.vue.d.ts +293 -0
- package/es/components/check-card/src/index.vue.mjs +6 -0
- package/es/components/check-card/src/index.vue2.mjs +166 -0
- package/es/components/check-card/style/css.d.ts +2 -0
- package/es/components/check-card/style/css.mjs +2 -0
- package/es/components/check-card/style/index.d.ts +2 -0
- package/es/components/check-card/style/index.mjs +2 -0
- package/es/components/check-card-group/index.d.ts +344 -0
- package/es/components/check-card-group/index.mjs +5 -0
- package/es/components/check-card-group/src/index.vue.d.ts +369 -0
- package/es/components/check-card-group/src/index.vue.mjs +6 -0
- package/es/components/check-card-group/src/index.vue2.mjs +142 -0
- package/es/components/check-card-group/style/css.d.ts +2 -0
- package/es/components/check-card-group/style/css.mjs +2 -0
- package/es/components/check-card-group/style/index.d.ts +2 -0
- package/es/components/check-card-group/style/index.mjs +2 -0
- package/es/components/date-picker/index.d.ts +2739 -0
- package/es/components/date-picker/index.mjs +5 -0
- package/es/components/date-picker/src/index.vue.d.ts +2757 -0
- package/es/components/date-picker/src/index.vue.mjs +6 -0
- package/es/components/date-picker/src/index.vue2.mjs +140 -0
- package/es/components/date-picker/style/css.d.ts +2 -0
- package/es/components/date-picker/style/css.mjs +2 -0
- package/es/components/date-picker/style/index.d.ts +2 -0
- package/es/components/date-picker/style/index.mjs +2 -0
- package/es/components/descriptions/index.d.ts +9802 -0
- package/es/components/descriptions/index.mjs +5 -0
- package/es/components/descriptions/src/index.vue.d.ts +9814 -0
- package/es/components/descriptions/src/index.vue.mjs +6 -0
- package/es/components/descriptions/src/index.vue2.mjs +133 -0
- package/es/components/descriptions/style/css.d.ts +3 -0
- package/es/components/descriptions/style/css.mjs +3 -0
- package/es/components/descriptions/style/index.d.ts +3 -0
- package/es/components/descriptions/style/index.mjs +3 -0
- package/es/components/dialog/index.d.ts +1056 -0
- package/es/components/dialog/index.mjs +5 -0
- package/es/components/dialog/src/index.vue.d.ts +1071 -0
- package/es/components/dialog/src/index.vue.mjs +6 -0
- package/es/components/dialog/src/index.vue2.mjs +120 -0
- package/es/components/dialog/style/css.d.ts +3 -0
- package/es/components/dialog/style/css.mjs +3 -0
- package/es/components/dialog/style/index.d.ts +3 -0
- package/es/components/dialog/style/index.mjs +3 -0
- package/es/components/dialog-form/index.d.ts +8990 -0
- package/es/components/dialog-form/index.mjs +5 -0
- package/es/components/dialog-form/src/index.vue.d.ts +9009 -0
- package/es/components/dialog-form/src/index.vue.mjs +6 -0
- package/es/components/dialog-form/src/index.vue2.mjs +170 -0
- package/es/components/dialog-form/style/css.d.ts +3 -0
- package/es/components/dialog-form/style/css.mjs +3 -0
- package/es/components/dialog-form/style/index.d.ts +3 -0
- package/es/components/dialog-form/style/index.mjs +3 -0
- package/es/components/display-item/index.d.ts +9114 -0
- package/es/components/display-item/index.mjs +5 -0
- package/es/components/display-item/src/index.vue.d.ts +9127 -0
- package/es/components/display-item/src/index.vue.mjs +6 -0
- package/es/components/display-item/src/index.vue2.mjs +524 -0
- package/es/components/display-item/style/css.d.ts +6 -0
- package/es/components/display-item/style/css.mjs +6 -0
- package/es/components/display-item/style/index.d.ts +6 -0
- package/es/components/display-item/style/index.mjs +6 -0
- package/es/components/drawer-form/index.d.ts +9643 -0
- package/es/components/drawer-form/index.mjs +5 -0
- package/es/components/drawer-form/src/index.vue.d.ts +9666 -0
- package/es/components/drawer-form/src/index.vue.mjs +6 -0
- package/es/components/drawer-form/src/index.vue2.mjs +169 -0
- package/es/components/drawer-form/style/css.d.ts +3 -0
- package/es/components/drawer-form/style/css.mjs +3 -0
- package/es/components/drawer-form/style/index.d.ts +3 -0
- package/es/components/drawer-form/style/index.mjs +3 -0
- package/es/components/form/index.d.ts +7860 -0
- package/es/components/form/index.mjs +5 -0
- package/es/components/form/src/form-content.vue.d.ts +6452 -0
- package/es/components/form/src/form-content.vue.mjs +6 -0
- package/es/components/form/src/form-content.vue2.mjs +138 -0
- package/es/components/form/src/index.vue.d.ts +7900 -0
- package/es/components/form/src/index.vue.mjs +6 -0
- package/es/components/form/src/index.vue2.mjs +320 -0
- package/es/components/form/style/css.d.ts +7 -0
- package/es/components/form/style/css.mjs +7 -0
- package/es/components/form/style/index.d.ts +7 -0
- package/es/components/form/style/index.mjs +7 -0
- package/es/components/form-item/index.d.ts +5951 -0
- package/es/components/form-item/index.mjs +5 -0
- package/es/components/form-item/src/index.vue.d.ts +5976 -0
- package/es/components/form-item/src/index.vue.mjs +6 -0
- package/es/components/form-item/src/index.vue2.mjs +951 -0
- package/es/components/form-item/style/css.d.ts +24 -0
- package/es/components/form-item/style/css.mjs +24 -0
- package/es/components/form-item/style/index.d.ts +24 -0
- package/es/components/form-item/style/index.mjs +24 -0
- package/es/components/header/index.d.ts +1142 -0
- package/es/components/header/index.mjs +5 -0
- package/es/components/header/src/index.vue.d.ts +1174 -0
- package/es/components/header/src/index.vue.mjs +6 -0
- package/es/components/header/src/index.vue2.mjs +210 -0
- package/es/components/header/style/css.d.ts +6 -0
- package/es/components/header/style/css.mjs +6 -0
- package/es/components/header/style/index.d.ts +6 -0
- package/es/components/header/style/index.mjs +6 -0
- package/es/components/index.d.ts +22 -0
- package/es/components/index.mjs +22 -0
- package/es/components/input-tag/index.d.ts +893 -0
- package/es/components/input-tag/index.mjs +5 -0
- package/es/components/input-tag/src/index.vue.d.ts +917 -0
- package/es/components/input-tag/src/index.vue.mjs +6 -0
- package/es/components/input-tag/src/index.vue2.mjs +136 -0
- package/es/components/input-tag/style/css.d.ts +3 -0
- package/es/components/input-tag/style/css.mjs +3 -0
- package/es/components/input-tag/style/index.d.ts +3 -0
- package/es/components/input-tag/style/index.mjs +3 -0
- package/es/components/layout/index.d.ts +10618 -0
- package/es/components/layout/index.mjs +5 -0
- package/es/components/layout/src/index.vue.d.ts +10643 -0
- package/es/components/layout/src/index.vue.mjs +6 -0
- package/es/components/layout/src/index.vue2.mjs +169 -0
- package/es/components/layout/style/css.d.ts +8 -0
- package/es/components/layout/style/css.mjs +8 -0
- package/es/components/layout/style/index.d.ts +8 -0
- package/es/components/layout/style/index.mjs +8 -0
- package/es/components/page/index.d.ts +219 -0
- package/es/components/page/index.mjs +5 -0
- package/es/components/page/src/index.vue.d.ts +291 -0
- package/es/components/page/src/index.vue.mjs +6 -0
- package/es/components/page/src/index.vue2.mjs +275 -0
- package/es/components/page/style/css.d.ts +4 -0
- package/es/components/page/style/css.mjs +4 -0
- package/es/components/page/style/index.d.ts +4 -0
- package/es/components/page/style/index.mjs +4 -0
- package/es/components/pagination/index.d.ts +446 -0
- package/es/components/pagination/index.mjs +5 -0
- package/es/components/pagination/src/index.vue.d.ts +458 -0
- package/es/components/pagination/src/index.vue.mjs +6 -0
- package/es/components/pagination/src/index.vue2.mjs +77 -0
- package/es/components/pagination/style/css.d.ts +2 -0
- package/es/components/pagination/style/css.mjs +2 -0
- package/es/components/pagination/style/index.d.ts +2 -0
- package/es/components/pagination/style/index.mjs +2 -0
- package/es/components/popover/index.d.ts +1125 -0
- package/es/components/popover/index.mjs +5 -0
- package/es/components/popover/src/index.vue.d.ts +1135 -0
- package/es/components/popover/src/index.vue.mjs +6 -0
- package/es/components/popover/src/index.vue2.mjs +97 -0
- package/es/components/popover/style/css.d.ts +3 -0
- package/es/components/popover/style/css.mjs +3 -0
- package/es/components/popover/style/index.d.ts +3 -0
- package/es/components/popover/style/index.mjs +3 -0
- package/es/components/radio/index.d.ts +1593 -0
- package/es/components/radio/index.mjs +5 -0
- package/es/components/radio/src/index.vue.d.ts +1608 -0
- package/es/components/radio/src/index.vue.mjs +6 -0
- package/es/components/radio/src/index.vue2.mjs +202 -0
- package/es/components/radio/style/css.d.ts +3 -0
- package/es/components/radio/style/css.mjs +3 -0
- package/es/components/radio/style/index.d.ts +3 -0
- package/es/components/radio/style/index.mjs +3 -0
- package/es/components/render/index.d.ts +71 -0
- package/es/components/render/index.mjs +5 -0
- package/es/components/render/src/index.vue.d.ts +86 -0
- package/es/components/render/src/index.vue.mjs +6 -0
- package/es/components/render/src/index.vue2.mjs +73 -0
- package/es/components/search/index.d.ts +8778 -0
- package/es/components/search/index.mjs +5 -0
- package/es/components/search/src/index.vue.d.ts +8807 -0
- package/es/components/search/src/index.vue.mjs +6 -0
- package/es/components/search/src/index.vue2.mjs +216 -0
- package/es/components/search/style/css.d.ts +3 -0
- package/es/components/search/style/css.mjs +3 -0
- package/es/components/search/style/index.d.ts +3 -0
- package/es/components/search/style/index.mjs +3 -0
- package/es/components/sidebar/index.d.ts +3009 -0
- package/es/components/sidebar/index.mjs +7 -0
- package/es/components/sidebar/src/index.vue.d.ts +2557 -0
- package/es/components/sidebar/src/index.vue.mjs +6 -0
- package/es/components/sidebar/src/index.vue2.mjs +175 -0
- package/es/components/sidebar/src/sidebar-item.vue.d.ts +513 -0
- package/es/components/sidebar/src/sidebar-item.vue.mjs +6 -0
- package/es/components/sidebar/src/sidebar-item.vue2.mjs +270 -0
- package/es/components/sidebar/style/css.d.ts +6 -0
- package/es/components/sidebar/style/css.mjs +6 -0
- package/es/components/sidebar/style/index.d.ts +6 -0
- package/es/components/sidebar/style/index.mjs +6 -0
- package/es/components/steps-form/index.d.ts +8350 -0
- package/es/components/steps-form/index.mjs +5 -0
- package/es/components/steps-form/src/index.vue.d.ts +8370 -0
- package/es/components/steps-form/src/index.vue.mjs +6 -0
- package/es/components/steps-form/src/index.vue2.mjs +124 -0
- package/es/components/steps-form/style/css.d.ts +4 -0
- package/es/components/steps-form/style/css.mjs +4 -0
- package/es/components/steps-form/style/index.d.ts +4 -0
- package/es/components/steps-form/style/index.mjs +4 -0
- package/es/components/table/index.d.ts +6 -0
- package/es/components/table/index.mjs +6 -0
- package/es/components/table/src/index.vue.mjs +6 -0
- package/es/components/table/src/index.vue2.mjs +338 -0
- package/es/components/table/src/table-action-bar.vue.mjs +6 -0
- package/es/components/table/src/table-action-bar.vue2.mjs +217 -0
- package/es/components/table/src/table-column-drag-sort.vue.mjs +6 -0
- package/es/components/table/src/table-column-drag-sort.vue2.mjs +74 -0
- package/es/components/table/src/table-column-index.vue.mjs +6 -0
- package/es/components/table/src/table-column-index.vue2.mjs +91 -0
- package/es/components/table/src/table-column.vue.mjs +6 -0
- package/es/components/table/src/table-column.vue2.mjs +161 -0
- package/es/components/table/src/table-title-bar.vue.d.ts +3594 -0
- package/es/components/table/src/table-title-bar.vue.mjs +6 -0
- package/es/components/table/src/table-title-bar.vue2.mjs +435 -0
- package/es/components/table/src/type.d.ts +208 -0
- package/es/components/table/src/type.mjs +1 -0
- package/es/components/table/style/css.d.ts +13 -0
- package/es/components/table/style/css.mjs +13 -0
- package/es/components/table/style/index.d.ts +13 -0
- package/es/components/table/style/index.mjs +13 -0
- package/es/components/utils/format.d.ts +9 -0
- package/es/components/utils/format.mjs +10 -0
- package/es/components/utils/index.d.ts +92 -0
- package/es/components/utils/index.mjs +111 -0
- package/es/components/utils/is.d.ts +98 -0
- package/es/components/utils/is.mjs +29 -0
- package/es/constants/form.d.ts +20 -0
- package/es/constants/form.mjs +13 -0
- package/es/constants/index.d.ts +2 -0
- package/es/constants/index.mjs +2 -0
- package/es/constants/page.d.ts +9 -0
- package/es/constants/page.mjs +7 -0
- package/es/defaults.d.ts +4 -0
- package/es/defaults.mjs +7 -0
- package/es/directive.d.ts +3 -0
- package/es/directive.mjs +8 -0
- package/es/directives/click/hook/useClickControl.d.ts +11 -0
- package/es/directives/click/hook/useClickControl.mjs +75 -0
- package/es/directives/click/index.d.ts +3 -0
- package/es/directives/click/index.mjs +51 -0
- package/es/directives/click/type/index.d.ts +16 -0
- package/es/directives/click/type/index.mjs +17 -0
- package/es/directives/index.d.ts +1 -0
- package/es/directives/index.mjs +1 -0
- package/es/hooks/index.d.ts +3 -0
- package/es/hooks/index.mjs +3 -0
- package/es/hooks/useGetOptions.d.ts +6 -0
- package/es/hooks/useGetOptions.mjs +62 -0
- package/es/hooks/useLocale.d.ts +18 -0
- package/es/hooks/useLocale.mjs +28 -0
- package/es/hooks/useTable.d.ts +20 -0
- package/es/hooks/useTable.mjs +21 -0
- package/es/index.css +21 -0
- package/es/index.d.ts +9 -0
- package/es/index.mjs +39 -0
- package/es/locale/index.d.ts +9 -0
- package/es/locale/index.mjs +2 -0
- package/es/locale/lang/en.d.ts +66 -0
- package/es/locale/lang/en.mjs +67 -0
- package/es/locale/lang/zh-cn.d.ts +66 -0
- package/es/locale/lang/zh-cn.mjs +67 -0
- package/es/make-installer.d.ts +4 -0
- package/es/make-installer.mjs +11 -0
- package/es/theme-chalk/src/breadcrumb.scss.mjs +3 -0
- package/es/theme-chalk/src/check-card-group.scss.mjs +3 -0
- package/es/theme-chalk/src/check-card.scss.mjs +3 -0
- package/es/theme-chalk/src/date-picker.scss.mjs +3 -0
- package/es/theme-chalk/src/descriptions.scss.mjs +3 -0
- package/es/theme-chalk/src/dialog-form.scss.mjs +3 -0
- package/es/theme-chalk/src/dialog.scss.mjs +3 -0
- package/es/theme-chalk/src/display-item.scss.mjs +3 -0
- package/es/theme-chalk/src/drawer-form.scss.mjs +3 -0
- package/es/theme-chalk/src/form-item.scss.mjs +3 -0
- package/es/theme-chalk/src/form.scss.mjs +3 -0
- package/es/theme-chalk/src/header.scss.mjs +3 -0
- package/es/theme-chalk/src/input-tag.scss.mjs +3 -0
- package/es/theme-chalk/src/layout.scss.mjs +3 -0
- package/es/theme-chalk/src/page.scss.mjs +3 -0
- package/es/theme-chalk/src/pagination.scss.mjs +3 -0
- package/es/theme-chalk/src/popover.scss.mjs +3 -0
- package/es/theme-chalk/src/radio.scss.mjs +3 -0
- package/es/theme-chalk/src/search.scss.mjs +3 -0
- package/es/theme-chalk/src/sidebar.scss.mjs +3 -0
- package/es/theme-chalk/src/steps-form.scss.mjs +3 -0
- package/es/theme-chalk/src/table.scss.mjs +3 -0
- package/es/types/form.d.ts +234 -0
- package/es/types/form.mjs +1 -0
- package/es/types/global.d.ts +29 -0
- package/es/types/global.mjs +1 -0
- package/es/types/index.d.ts +5 -0
- package/es/types/index.mjs +5 -0
- package/es/types/layout.d.ts +43 -0
- package/es/types/layout.mjs +1 -0
- package/es/types/plus.d.ts +217 -0
- package/es/types/plus.mjs +1 -0
- package/es/types/table.d.ts +36 -0
- package/es/types/table.mjs +1 -0
- package/es/version.d.ts +1 -0
- package/es/version.mjs +3 -0
- package/global.d.ts +29 -0
- package/index.css +1 -0
- package/index.d.ts +2 -0
- package/index.js +12352 -0
- package/index.min.js +7 -0
- package/index.min.mjs +7 -0
- package/index.mjs +12306 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/component.d.ts +3 -0
- package/lib/component.js +53 -0
- package/lib/components/breadcrumb/index.d.ts +14102 -0
- package/lib/components/breadcrumb/index.js +7 -0
- package/lib/components/breadcrumb/src/index.vue.d.ts +14110 -0
- package/lib/components/breadcrumb/src/index.vue.js +10 -0
- package/lib/components/breadcrumb/src/index.vue2.js +105 -0
- package/lib/components/breadcrumb/style/css.d.ts +3 -0
- package/lib/components/breadcrumb/style/css.js +6 -0
- package/lib/components/breadcrumb/style/index.d.ts +3 -0
- package/lib/components/breadcrumb/style/index.js +6 -0
- package/lib/components/check-card/index.d.ts +272 -0
- package/lib/components/check-card/index.js +7 -0
- package/lib/components/check-card/src/index.vue.d.ts +293 -0
- package/lib/components/check-card/src/index.vue.js +10 -0
- package/lib/components/check-card/src/index.vue2.js +170 -0
- package/lib/components/check-card/style/css.d.ts +2 -0
- package/lib/components/check-card/style/css.js +5 -0
- package/lib/components/check-card/style/index.d.ts +2 -0
- package/lib/components/check-card/style/index.js +5 -0
- package/lib/components/check-card-group/index.d.ts +344 -0
- package/lib/components/check-card-group/index.js +7 -0
- package/lib/components/check-card-group/src/index.vue.d.ts +369 -0
- package/lib/components/check-card-group/src/index.vue.js +10 -0
- package/lib/components/check-card-group/src/index.vue2.js +146 -0
- package/lib/components/check-card-group/style/css.d.ts +2 -0
- package/lib/components/check-card-group/style/css.js +5 -0
- package/lib/components/check-card-group/style/index.d.ts +2 -0
- package/lib/components/check-card-group/style/index.js +5 -0
- package/lib/components/date-picker/index.d.ts +2739 -0
- package/lib/components/date-picker/index.js +7 -0
- package/lib/components/date-picker/src/index.vue.d.ts +2757 -0
- package/lib/components/date-picker/src/index.vue.js +10 -0
- package/lib/components/date-picker/src/index.vue2.js +144 -0
- package/lib/components/date-picker/style/css.d.ts +2 -0
- package/lib/components/date-picker/style/css.js +5 -0
- package/lib/components/date-picker/style/index.d.ts +2 -0
- package/lib/components/date-picker/style/index.js +5 -0
- package/lib/components/descriptions/index.d.ts +9802 -0
- package/lib/components/descriptions/index.js +7 -0
- package/lib/components/descriptions/src/index.vue.d.ts +9814 -0
- package/lib/components/descriptions/src/index.vue.js +10 -0
- package/lib/components/descriptions/src/index.vue2.js +137 -0
- package/lib/components/descriptions/style/css.d.ts +3 -0
- package/lib/components/descriptions/style/css.js +6 -0
- package/lib/components/descriptions/style/index.d.ts +3 -0
- package/lib/components/descriptions/style/index.js +6 -0
- package/lib/components/dialog/index.d.ts +1056 -0
- package/lib/components/dialog/index.js +7 -0
- package/lib/components/dialog/src/index.vue.d.ts +1071 -0
- package/lib/components/dialog/src/index.vue.js +10 -0
- package/lib/components/dialog/src/index.vue2.js +124 -0
- package/lib/components/dialog/style/css.d.ts +3 -0
- package/lib/components/dialog/style/css.js +6 -0
- package/lib/components/dialog/style/index.d.ts +3 -0
- package/lib/components/dialog/style/index.js +6 -0
- package/lib/components/dialog-form/index.d.ts +8990 -0
- package/lib/components/dialog-form/index.js +7 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +9009 -0
- package/lib/components/dialog-form/src/index.vue.js +10 -0
- package/lib/components/dialog-form/src/index.vue2.js +174 -0
- package/lib/components/dialog-form/style/css.d.ts +3 -0
- package/lib/components/dialog-form/style/css.js +6 -0
- package/lib/components/dialog-form/style/index.d.ts +3 -0
- package/lib/components/dialog-form/style/index.js +6 -0
- package/lib/components/display-item/index.d.ts +9114 -0
- package/lib/components/display-item/index.js +7 -0
- package/lib/components/display-item/src/index.vue.d.ts +9127 -0
- package/lib/components/display-item/src/index.vue.js +10 -0
- package/lib/components/display-item/src/index.vue2.js +528 -0
- package/lib/components/display-item/style/css.d.ts +6 -0
- package/lib/components/display-item/style/css.js +9 -0
- package/lib/components/display-item/style/index.d.ts +6 -0
- package/lib/components/display-item/style/index.js +9 -0
- package/lib/components/drawer-form/index.d.ts +9643 -0
- package/lib/components/drawer-form/index.js +7 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +9666 -0
- package/lib/components/drawer-form/src/index.vue.js +10 -0
- package/lib/components/drawer-form/src/index.vue2.js +173 -0
- package/lib/components/drawer-form/style/css.d.ts +3 -0
- package/lib/components/drawer-form/style/css.js +6 -0
- package/lib/components/drawer-form/style/index.d.ts +3 -0
- package/lib/components/drawer-form/style/index.js +6 -0
- package/lib/components/form/index.d.ts +7860 -0
- package/lib/components/form/index.js +7 -0
- package/lib/components/form/src/form-content.vue.d.ts +6452 -0
- package/lib/components/form/src/form-content.vue.js +10 -0
- package/lib/components/form/src/form-content.vue2.js +142 -0
- package/lib/components/form/src/index.vue.d.ts +7900 -0
- package/lib/components/form/src/index.vue.js +10 -0
- package/lib/components/form/src/index.vue2.js +324 -0
- package/lib/components/form/style/css.d.ts +7 -0
- package/lib/components/form/style/css.js +10 -0
- package/lib/components/form/style/index.d.ts +7 -0
- package/lib/components/form/style/index.js +10 -0
- package/lib/components/form-item/index.d.ts +5951 -0
- package/lib/components/form-item/index.js +7 -0
- package/lib/components/form-item/src/index.vue.d.ts +5976 -0
- package/lib/components/form-item/src/index.vue.js +10 -0
- package/lib/components/form-item/src/index.vue2.js +955 -0
- package/lib/components/form-item/style/css.d.ts +24 -0
- package/lib/components/form-item/style/css.js +27 -0
- package/lib/components/form-item/style/index.d.ts +24 -0
- package/lib/components/form-item/style/index.js +27 -0
- package/lib/components/header/index.d.ts +1142 -0
- package/lib/components/header/index.js +7 -0
- package/lib/components/header/src/index.vue.d.ts +1174 -0
- package/lib/components/header/src/index.vue.js +10 -0
- package/lib/components/header/src/index.vue2.js +214 -0
- package/lib/components/header/style/css.d.ts +6 -0
- package/lib/components/header/style/css.js +9 -0
- package/lib/components/header/style/index.d.ts +6 -0
- package/lib/components/header/style/index.js +9 -0
- package/lib/components/index.d.ts +22 -0
- package/lib/components/index.js +50 -0
- package/lib/components/input-tag/index.d.ts +893 -0
- package/lib/components/input-tag/index.js +7 -0
- package/lib/components/input-tag/src/index.vue.d.ts +917 -0
- package/lib/components/input-tag/src/index.vue.js +10 -0
- package/lib/components/input-tag/src/index.vue2.js +140 -0
- package/lib/components/input-tag/style/css.d.ts +3 -0
- package/lib/components/input-tag/style/css.js +6 -0
- package/lib/components/input-tag/style/index.d.ts +3 -0
- package/lib/components/input-tag/style/index.js +6 -0
- package/lib/components/layout/index.d.ts +10618 -0
- package/lib/components/layout/index.js +7 -0
- package/lib/components/layout/src/index.vue.d.ts +10643 -0
- package/lib/components/layout/src/index.vue.js +10 -0
- package/lib/components/layout/src/index.vue2.js +173 -0
- package/lib/components/layout/style/css.d.ts +8 -0
- package/lib/components/layout/style/css.js +11 -0
- package/lib/components/layout/style/index.d.ts +8 -0
- package/lib/components/layout/style/index.js +11 -0
- package/lib/components/page/index.d.ts +219 -0
- package/lib/components/page/index.js +7 -0
- package/lib/components/page/src/index.vue.d.ts +291 -0
- package/lib/components/page/src/index.vue.js +10 -0
- package/lib/components/page/src/index.vue2.js +279 -0
- package/lib/components/page/style/css.d.ts +4 -0
- package/lib/components/page/style/css.js +7 -0
- package/lib/components/page/style/index.d.ts +4 -0
- package/lib/components/page/style/index.js +7 -0
- package/lib/components/pagination/index.d.ts +446 -0
- package/lib/components/pagination/index.js +7 -0
- package/lib/components/pagination/src/index.vue.d.ts +458 -0
- package/lib/components/pagination/src/index.vue.js +10 -0
- package/lib/components/pagination/src/index.vue2.js +81 -0
- package/lib/components/pagination/style/css.d.ts +2 -0
- package/lib/components/pagination/style/css.js +5 -0
- package/lib/components/pagination/style/index.d.ts +2 -0
- package/lib/components/pagination/style/index.js +5 -0
- package/lib/components/popover/index.d.ts +1125 -0
- package/lib/components/popover/index.js +7 -0
- package/lib/components/popover/src/index.vue.d.ts +1135 -0
- package/lib/components/popover/src/index.vue.js +10 -0
- package/lib/components/popover/src/index.vue2.js +101 -0
- package/lib/components/popover/style/css.d.ts +3 -0
- package/lib/components/popover/style/css.js +6 -0
- package/lib/components/popover/style/index.d.ts +3 -0
- package/lib/components/popover/style/index.js +6 -0
- package/lib/components/radio/index.d.ts +1593 -0
- package/lib/components/radio/index.js +7 -0
- package/lib/components/radio/src/index.vue.d.ts +1608 -0
- package/lib/components/radio/src/index.vue.js +10 -0
- package/lib/components/radio/src/index.vue2.js +206 -0
- package/lib/components/radio/style/css.d.ts +3 -0
- package/lib/components/radio/style/css.js +6 -0
- package/lib/components/radio/style/index.d.ts +3 -0
- package/lib/components/radio/style/index.js +6 -0
- package/lib/components/render/index.d.ts +71 -0
- package/lib/components/render/index.js +7 -0
- package/lib/components/render/src/index.vue.d.ts +86 -0
- package/lib/components/render/src/index.vue.js +10 -0
- package/lib/components/render/src/index.vue2.js +77 -0
- package/lib/components/search/index.d.ts +8778 -0
- package/lib/components/search/index.js +7 -0
- package/lib/components/search/src/index.vue.d.ts +8807 -0
- package/lib/components/search/src/index.vue.js +10 -0
- package/lib/components/search/src/index.vue2.js +220 -0
- package/lib/components/search/style/css.d.ts +3 -0
- package/lib/components/search/style/css.js +6 -0
- package/lib/components/search/style/index.d.ts +3 -0
- package/lib/components/search/style/index.js +6 -0
- package/lib/components/sidebar/index.d.ts +3009 -0
- package/lib/components/sidebar/index.js +10 -0
- package/lib/components/sidebar/src/index.vue.d.ts +2557 -0
- package/lib/components/sidebar/src/index.vue.js +10 -0
- package/lib/components/sidebar/src/index.vue2.js +179 -0
- package/lib/components/sidebar/src/sidebar-item.vue.d.ts +513 -0
- package/lib/components/sidebar/src/sidebar-item.vue.js +10 -0
- package/lib/components/sidebar/src/sidebar-item.vue2.js +274 -0
- package/lib/components/sidebar/style/css.d.ts +6 -0
- package/lib/components/sidebar/style/css.js +9 -0
- package/lib/components/sidebar/style/index.d.ts +6 -0
- package/lib/components/sidebar/style/index.js +9 -0
- package/lib/components/steps-form/index.d.ts +8350 -0
- package/lib/components/steps-form/index.js +7 -0
- package/lib/components/steps-form/src/index.vue.d.ts +8370 -0
- package/lib/components/steps-form/src/index.vue.js +10 -0
- package/lib/components/steps-form/src/index.vue2.js +128 -0
- package/lib/components/steps-form/style/css.d.ts +4 -0
- package/lib/components/steps-form/style/css.js +7 -0
- package/lib/components/steps-form/style/index.d.ts +4 -0
- package/lib/components/steps-form/style/index.js +7 -0
- package/lib/components/table/index.d.ts +6 -0
- package/lib/components/table/index.js +8 -0
- package/lib/components/table/src/index.vue.js +10 -0
- package/lib/components/table/src/index.vue2.js +342 -0
- package/lib/components/table/src/table-action-bar.vue.js +10 -0
- package/lib/components/table/src/table-action-bar.vue2.js +221 -0
- package/lib/components/table/src/table-column-drag-sort.vue.js +10 -0
- package/lib/components/table/src/table-column-drag-sort.vue2.js +78 -0
- package/lib/components/table/src/table-column-index.vue.js +10 -0
- package/lib/components/table/src/table-column-index.vue2.js +95 -0
- package/lib/components/table/src/table-column.vue.js +10 -0
- package/lib/components/table/src/table-column.vue2.js +165 -0
- package/lib/components/table/src/table-title-bar.vue.d.ts +3594 -0
- package/lib/components/table/src/table-title-bar.vue.js +10 -0
- package/lib/components/table/src/table-title-bar.vue2.js +439 -0
- package/lib/components/table/src/type.d.ts +208 -0
- package/lib/components/table/src/type.js +2 -0
- package/lib/components/table/style/css.d.ts +13 -0
- package/lib/components/table/style/css.js +16 -0
- package/lib/components/table/style/index.d.ts +13 -0
- package/lib/components/table/style/index.js +16 -0
- package/lib/components/utils/format.d.ts +9 -0
- package/lib/components/utils/format.js +13 -0
- package/lib/components/utils/index.d.ts +92 -0
- package/lib/components/utils/index.js +147 -0
- package/lib/components/utils/is.d.ts +98 -0
- package/lib/components/utils/is.js +47 -0
- package/lib/constants/form.d.ts +20 -0
- package/lib/constants/form.js +19 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +14 -0
- package/lib/constants/page.d.ts +9 -0
- package/lib/constants/page.js +10 -0
- package/lib/defaults.d.ts +4 -0
- package/lib/defaults.js +11 -0
- package/lib/directive.d.ts +3 -0
- package/lib/directive.js +12 -0
- package/lib/directives/click/hook/useClickControl.d.ts +11 -0
- package/lib/directives/click/hook/useClickControl.js +77 -0
- package/lib/directives/click/index.d.ts +3 -0
- package/lib/directives/click/index.js +55 -0
- package/lib/directives/click/type/index.d.ts +16 -0
- package/lib/directives/click/type/index.js +19 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +7 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.js +14 -0
- package/lib/hooks/useGetOptions.d.ts +6 -0
- package/lib/hooks/useGetOptions.js +64 -0
- package/lib/hooks/useLocale.d.ts +18 -0
- package/lib/hooks/useLocale.js +33 -0
- package/lib/hooks/useTable.d.ts +20 -0
- package/lib/hooks/useTable.js +23 -0
- package/lib/index.css +22 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +82 -0
- package/lib/locale/index.d.ts +9 -0
- package/lib/locale/index.js +9 -0
- package/lib/locale/lang/en.d.ts +66 -0
- package/lib/locale/lang/en.js +71 -0
- package/lib/locale/lang/zh-cn.d.ts +66 -0
- package/lib/locale/lang/zh-cn.js +71 -0
- package/lib/make-installer.d.ts +4 -0
- package/lib/make-installer.js +13 -0
- package/lib/theme-chalk/src/breadcrumb.scss.js +7 -0
- package/lib/theme-chalk/src/check-card-group.scss.js +7 -0
- package/lib/theme-chalk/src/check-card.scss.js +7 -0
- package/lib/theme-chalk/src/date-picker.scss.js +7 -0
- package/lib/theme-chalk/src/descriptions.scss.js +7 -0
- package/lib/theme-chalk/src/dialog-form.scss.js +7 -0
- package/lib/theme-chalk/src/dialog.scss.js +7 -0
- package/lib/theme-chalk/src/display-item.scss.js +7 -0
- package/lib/theme-chalk/src/drawer-form.scss.js +7 -0
- package/lib/theme-chalk/src/form-item.scss.js +7 -0
- package/lib/theme-chalk/src/form.scss.js +7 -0
- package/lib/theme-chalk/src/header.scss.js +7 -0
- package/lib/theme-chalk/src/input-tag.scss.js +7 -0
- package/lib/theme-chalk/src/layout.scss.js +7 -0
- package/lib/theme-chalk/src/page.scss.js +7 -0
- package/lib/theme-chalk/src/pagination.scss.js +7 -0
- package/lib/theme-chalk/src/popover.scss.js +7 -0
- package/lib/theme-chalk/src/radio.scss.js +7 -0
- package/lib/theme-chalk/src/search.scss.js +7 -0
- package/lib/theme-chalk/src/sidebar.scss.js +7 -0
- package/lib/theme-chalk/src/steps-form.scss.js +7 -0
- package/lib/theme-chalk/src/table.scss.js +7 -0
- package/lib/types/form.d.ts +234 -0
- package/lib/types/form.js +2 -0
- package/lib/types/global.d.ts +29 -0
- package/lib/types/global.js +2 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/index.js +8 -0
- package/lib/types/layout.d.ts +43 -0
- package/lib/types/layout.js +2 -0
- package/lib/types/plus.d.ts +217 -0
- package/lib/types/plus.js +2 -0
- package/lib/types/table.d.ts +36 -0
- package/lib/types/table.js +2 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +5 -0
- package/locale/en.d.ts +66 -0
- package/locale/en.js +77 -0
- package/locale/en.min.js +1 -0
- package/locale/en.min.mjs +1 -0
- package/locale/en.mjs +69 -0
- package/locale/zh-cn.d.ts +66 -0
- package/locale/zh-cn.js +77 -0
- package/locale/zh-cn.min.js +1 -0
- package/locale/zh-cn.min.mjs +1 -0
- package/locale/zh-cn.mjs +69 -0
- package/package.json +103 -0
- package/theme-chalk/index.css +1 -0
- package/theme-chalk/plus-breadcrumb.css +1 -0
- package/theme-chalk/plus-check-card-group.css +1 -0
- package/theme-chalk/plus-check-card.css +1 -0
- package/theme-chalk/plus-date-picker.css +1 -0
- package/theme-chalk/plus-descriptions.css +1 -0
- package/theme-chalk/plus-dialog-form.css +0 -0
- package/theme-chalk/plus-dialog.css +1 -0
- package/theme-chalk/plus-display-item.css +1 -0
- package/theme-chalk/plus-drawer-form.css +0 -0
- package/theme-chalk/plus-form-item.css +1 -0
- package/theme-chalk/plus-form.css +1 -0
- package/theme-chalk/plus-header.css +1 -0
- package/theme-chalk/plus-input-tag.css +1 -0
- package/theme-chalk/plus-layout.css +1 -0
- package/theme-chalk/plus-page.css +1 -0
- package/theme-chalk/plus-pagination.css +1 -0
- package/theme-chalk/plus-popover.css +0 -0
- package/theme-chalk/plus-radio.css +0 -0
- package/theme-chalk/plus-search.css +1 -0
- package/theme-chalk/plus-sidebar.css +1 -0
- package/theme-chalk/plus-steps-form.css +1 -0
- package/theme-chalk/plus-table.css +1 -0
- package/theme-chalk/src/breadcrumb.scss +5 -0
- package/theme-chalk/src/check-card-group.scss +12 -0
- package/theme-chalk/src/check-card.scss +81 -0
- package/theme-chalk/src/date-picker.scss +75 -0
- package/theme-chalk/src/descriptions.scss +11 -0
- package/theme-chalk/src/dialog-form.scss +1 -0
- package/theme-chalk/src/dialog.scss +8 -0
- package/theme-chalk/src/display-item.scss +70 -0
- package/theme-chalk/src/drawer-form.scss +0 -0
- package/theme-chalk/src/form-item.scss +23 -0
- package/theme-chalk/src/form.scss +36 -0
- package/theme-chalk/src/header.scss +61 -0
- package/theme-chalk/src/index.scss +22 -0
- package/theme-chalk/src/input-tag.scss +74 -0
- package/theme-chalk/src/layout.scss +24 -0
- package/theme-chalk/src/mixins/config.scss +8 -0
- package/theme-chalk/src/mixins/function.scss +73 -0
- package/theme-chalk/src/mixins/mixins.scss +79 -0
- package/theme-chalk/src/page.scss +7 -0
- package/theme-chalk/src/pagination.scss +8 -0
- package/theme-chalk/src/popover.scss +1 -0
- package/theme-chalk/src/radio.scss +1 -0
- package/theme-chalk/src/search.scss +28 -0
- package/theme-chalk/src/sidebar.scss +79 -0
- package/theme-chalk/src/steps-form.scss +18 -0
- package/theme-chalk/src/table.scss +145 -0
- package/theme-chalk/src/var/index.scss +4 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const useClickControl = require('./hook/useClickControl.js');
|
|
7
|
+
const index = require('./type/index.js');
|
|
8
|
+
|
|
9
|
+
const click = {
|
|
10
|
+
mounted(el, binding) {
|
|
11
|
+
const handler = binding.value;
|
|
12
|
+
if (!handler) {
|
|
13
|
+
console.warn(index.CLICK_CONST.ERROR_MESSAGE.NO_HANDLER);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const delay = Object.keys(binding.modifiers).find((key) => /^\d+$/.test(key));
|
|
17
|
+
const mode = binding.modifiers[index.CLICK_CONST.MODIFIERS.DEBOUNCE] ? index.CLICK_CONST.MODIFIERS.DEBOUNCE : index.CLICK_CONST.MODIFIERS.THROTTLE;
|
|
18
|
+
el._clickControl = useClickControl.useClickControl();
|
|
19
|
+
el._clickHandler = (event) => {
|
|
20
|
+
var _a;
|
|
21
|
+
(_a = el._clickControl) == null ? void 0 : _a.executeHandler(() => handler(event), {
|
|
22
|
+
delay: delay ? parseInt(delay) : void 0,
|
|
23
|
+
mode
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
el.addEventListener("click", el._clickHandler);
|
|
27
|
+
const unwatch = vue.watch(
|
|
28
|
+
() => {
|
|
29
|
+
var _a;
|
|
30
|
+
return (_a = el._clickControl) == null ? void 0 : _a.isProcessing.value;
|
|
31
|
+
},
|
|
32
|
+
(isProcessing) => {
|
|
33
|
+
if (isProcessing) {
|
|
34
|
+
el.classList.add("is-clicking");
|
|
35
|
+
} else {
|
|
36
|
+
el.classList.remove("is-clicking");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
el._unwatchLoading = unwatch;
|
|
41
|
+
},
|
|
42
|
+
unmounted(el) {
|
|
43
|
+
if (el._clickHandler) {
|
|
44
|
+
el.removeEventListener("click", el._clickHandler);
|
|
45
|
+
}
|
|
46
|
+
if (el._clickControl) {
|
|
47
|
+
el._clickControl.cleanup();
|
|
48
|
+
}
|
|
49
|
+
if (el._unwatchLoading) {
|
|
50
|
+
el._unwatchLoading();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.default = click;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const CLICK_CONST: {
|
|
2
|
+
readonly MODIFIERS: {
|
|
3
|
+
readonly DEBOUNCE: "debounce";
|
|
4
|
+
readonly THROTTLE: "throttle";
|
|
5
|
+
};
|
|
6
|
+
readonly DEFAULT: {
|
|
7
|
+
readonly DELAY: 300;
|
|
8
|
+
readonly MODE: "throttle";
|
|
9
|
+
};
|
|
10
|
+
readonly ERROR_MESSAGE: {
|
|
11
|
+
readonly NO_HANDLER: "[v-click] handler is required";
|
|
12
|
+
readonly INVALID_HANDLER: "[v-click] handler must be a function";
|
|
13
|
+
readonly INVALID_DELAY: "[v-click] delay must be a positive number";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type ClickMode = (typeof CLICK_CONST.MODIFIERS)[keyof typeof CLICK_CONST.MODIFIERS];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CLICK_CONST = {
|
|
4
|
+
MODIFIERS: {
|
|
5
|
+
DEBOUNCE: "debounce",
|
|
6
|
+
THROTTLE: "throttle"
|
|
7
|
+
},
|
|
8
|
+
DEFAULT: {
|
|
9
|
+
DELAY: 300,
|
|
10
|
+
MODE: "throttle"
|
|
11
|
+
},
|
|
12
|
+
ERROR_MESSAGE: {
|
|
13
|
+
NO_HANDLER: "[v-click] handler is required",
|
|
14
|
+
INVALID_HANDLER: "[v-click] handler must be a function",
|
|
15
|
+
INVALID_DELAY: "[v-click] delay must be a positive number"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.CLICK_CONST = CLICK_CONST;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Click } from './click';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const useGetOptions = require('./useGetOptions.js');
|
|
4
|
+
const useLocale = require('./useLocale.js');
|
|
5
|
+
const useTable = require('./useTable.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.useGetOptions = useGetOptions.useGetOptions;
|
|
10
|
+
exports.buildLocaleContext = useLocale.buildLocaleContext;
|
|
11
|
+
exports.buildTranslator = useLocale.buildTranslator;
|
|
12
|
+
exports.translate = useLocale.translate;
|
|
13
|
+
exports.useLocale = useLocale.useLocale;
|
|
14
|
+
exports.useTable = useTable.useTable;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const vue = require('vue');
|
|
4
|
+
require('../components/utils/index.js');
|
|
5
|
+
const is = require('../components/utils/is.js');
|
|
6
|
+
|
|
7
|
+
const throwError = (data) => {
|
|
8
|
+
if (!is.isArray(data)) {
|
|
9
|
+
console.error("Uncaught TypeError: ", `options expected Array but got ${is.toRawType(data)}`);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const useGetOptions = (props) => {
|
|
13
|
+
const options = vue.ref([]);
|
|
14
|
+
const optionsIsReady = vue.ref(false);
|
|
15
|
+
if (!props.options) {
|
|
16
|
+
options.value = [];
|
|
17
|
+
optionsIsReady.value = true;
|
|
18
|
+
} else if (vue.isRef(props.options)) {
|
|
19
|
+
vue.watch(
|
|
20
|
+
props.options,
|
|
21
|
+
(val) => {
|
|
22
|
+
options.value = val;
|
|
23
|
+
optionsIsReady.value = true;
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
immediate: true
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
} else if (is.isArray(props.options)) {
|
|
30
|
+
options.value = [...props.options];
|
|
31
|
+
optionsIsReady.value = true;
|
|
32
|
+
} else if (is.isFunction(props.options)) {
|
|
33
|
+
const getValue = props.options;
|
|
34
|
+
const result = getValue(props);
|
|
35
|
+
if (is.isPromise(result)) {
|
|
36
|
+
;
|
|
37
|
+
result.then((res) => {
|
|
38
|
+
options.value = res;
|
|
39
|
+
optionsIsReady.value = true;
|
|
40
|
+
throwError(options.value);
|
|
41
|
+
}).catch((err) => {
|
|
42
|
+
throw err;
|
|
43
|
+
});
|
|
44
|
+
} else {
|
|
45
|
+
options.value = result;
|
|
46
|
+
optionsIsReady.value = true;
|
|
47
|
+
}
|
|
48
|
+
} else if (is.isPromise(props.options)) {
|
|
49
|
+
const getValue = props.options;
|
|
50
|
+
getValue.then((res) => {
|
|
51
|
+
options.value = res;
|
|
52
|
+
optionsIsReady.value = true;
|
|
53
|
+
throwError(options.value);
|
|
54
|
+
}).catch((err) => {
|
|
55
|
+
throw err;
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
optionsIsReady.value = true;
|
|
59
|
+
throwError(props.options);
|
|
60
|
+
}
|
|
61
|
+
return { customOptions: options, customOptionsIsReady: optionsIsReady };
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.useGetOptions = useGetOptions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fork = require( https://github.com/element-plus/element-plus/blob/dev/packages/hooks/use-locale/index.ts)
|
|
3
|
+
*/
|
|
4
|
+
import type { Ref } from 'vue';
|
|
5
|
+
import type { Language } from '@wlydfe/pro-ui-locale';
|
|
6
|
+
type MaybeRef<T> = T | Ref<T>;
|
|
7
|
+
export type TranslatorOption = Record<string, string | number>;
|
|
8
|
+
export type Translator = (path: string, option?: TranslatorOption) => string;
|
|
9
|
+
export type LocaleContext = {
|
|
10
|
+
locale: Ref<Language>;
|
|
11
|
+
lang: Ref<string>;
|
|
12
|
+
t: Translator;
|
|
13
|
+
};
|
|
14
|
+
export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
|
|
15
|
+
export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
|
|
16
|
+
export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
|
|
17
|
+
export declare const useLocale: (localeOverrides?: Ref<Language | undefined>) => LocaleContext;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const vue = require('vue');
|
|
4
|
+
const lodashEs = require('lodash-es');
|
|
5
|
+
const elementPlus = require('element-plus');
|
|
6
|
+
const en = require('../locale/lang/en.js');
|
|
7
|
+
|
|
8
|
+
const buildTranslator = (locale) => (path, option) => translate(path, option, vue.unref(locale));
|
|
9
|
+
const translate = (path, option, locale) => lodashEs.get(locale, path, path).replace(
|
|
10
|
+
/\{(\w+)\}/g,
|
|
11
|
+
(_, key) => {
|
|
12
|
+
var _a;
|
|
13
|
+
return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
const buildLocaleContext = (locale) => {
|
|
17
|
+
const lang = vue.computed(() => vue.unref(locale).name);
|
|
18
|
+
const localeRef = vue.isRef(locale) ? locale : vue.ref(locale);
|
|
19
|
+
return {
|
|
20
|
+
lang,
|
|
21
|
+
locale: localeRef,
|
|
22
|
+
t: buildTranslator(locale)
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const useLocale = (localeOverrides) => {
|
|
26
|
+
const locale = localeOverrides || vue.inject(elementPlus.localeContextKey, vue.ref());
|
|
27
|
+
return buildLocaleContext(vue.computed(() => locale.value || en.default));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.buildLocaleContext = buildLocaleContext;
|
|
31
|
+
exports.buildTranslator = buildTranslator;
|
|
32
|
+
exports.translate = translate;
|
|
33
|
+
exports.useLocale = useLocale;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { ActionBarButtonsRow } from '@wlydfe/pro-ui-components/table';
|
|
3
|
+
import type { PageInfo } from '@wlydfe/pro-ui-types';
|
|
4
|
+
/**
|
|
5
|
+
* 初始化表格基本数据
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare function useTable<T extends Record<string, any>[] = any>(_pageInfo?: PageInfo | Ref<PageInfo>): {
|
|
9
|
+
tableData: [T] extends [Ref<any, any>] ? import("@vue/shared").IfAny<T, Ref<T, T>, T> : Ref<import("vue").UnwrapRef<T>, T | import("vue").UnwrapRef<T>>;
|
|
10
|
+
pageInfo: Ref<{
|
|
11
|
+
page: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
}, PageInfo | {
|
|
14
|
+
page: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
}>;
|
|
17
|
+
total: Ref<number, number>;
|
|
18
|
+
loadingStatus: Ref<boolean, boolean>;
|
|
19
|
+
buttons: import("vue").ShallowRef<ActionBarButtonsRow[], ActionBarButtonsRow[]>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const vue = require('vue');
|
|
4
|
+
require('../constants/index.js');
|
|
5
|
+
const page = require('../constants/page.js');
|
|
6
|
+
|
|
7
|
+
function useTable(_pageInfo) {
|
|
8
|
+
const defaultPageInfo = vue.unref(_pageInfo) || page.DefaultPageInfo;
|
|
9
|
+
const tableData = vue.ref([]);
|
|
10
|
+
const pageInfo = vue.ref({ ...defaultPageInfo });
|
|
11
|
+
const total = vue.ref(0);
|
|
12
|
+
const loadingStatus = vue.ref(false);
|
|
13
|
+
const buttons = vue.shallowRef([]);
|
|
14
|
+
return {
|
|
15
|
+
tableData,
|
|
16
|
+
pageInfo,
|
|
17
|
+
total,
|
|
18
|
+
loadingStatus,
|
|
19
|
+
buttons
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.useTable = useTable;
|
package/lib/index.css
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
.plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{color:var(--el-color-primary);cursor:pointer;outline:none;text-decoration:none;-webkit-transition:color .3s;transition:color .3s;-webkit-margin-start:4px;margin-inline-start:4px;vertical-align:sub}.plus-display-item__pre{background-color:var(--el-color-primary-light-9);border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:0;width:unset}.plus-display-item__badge .plus-display-item__badge__dot{border-radius:50%;display:inline-block;height:6px;position:relative;top:-1px;vertical-align:middle;width:6px}.plus-display-item__badge .plus-display-item__badge__dot--primary{background-color:var(--el-color-primary)}.plus-display-item__badge .plus-display-item__badge__dot--success{background-color:var(--el-color-success)}.plus-display-item__badge .plus-display-item__badge__dot--info{background-color:var(--el-color-info)}.plus-display-item__badge .plus-display-item__badge__dot--warning{background-color:var(--el-color-warning)}.plus-display-item__badge .plus-display-item__badge__dot--danger{background-color:var(--el-color-danger)}.plus-display-item__form .plus-form-item{margin-bottom:0}.plus-display-item__link{max-width:100%}.plus-display-item__link .el-link__inner{display:inline-block;width:100%}
|
|
3
|
+
.plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-check-card--large{width:440px}.plus-check-card--default{width:320px}.plus-check-card--small{width:200px}.plus-check-card--checked{background-color:rgba(var(--el-color-primary-rgb),.1);border-color:var(--el-color-primary);position:relative}.plus-check-card--checked:after{border:10px solid var(--el-color-primary);height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;-webkit-border-after:10px solid transparent;border-block-end:10px solid transparent;-webkit-border-start:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:""}.plus-check-card--disabled{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);cursor:not-allowed}.plus-check-card--disabled:after{border-right-color:var(--el-color-info-light-5);border-top-color:var(--el-color-info-light-5)}.plus-check-card .plus-check-card__avatar-wrapper{-webkit-padding-end:8px;padding-inline-end:8px}.plus-check-card .plus-check-card__right-content{overflow:hidden;width:100%}.plus-check-card .plus-check-card__title{width:100%;-webkit-margin-after:4px;color:var(--el-text-color-primary);margin-block-end:4px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.plus-check-card .plus-check-card__title,.plus-check-card .plus-check-card__title-left,.plus-check-card .plus-check-card__title-right{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-check-card .plus-check-card__title-right{vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
|
|
4
|
+
.plus-date-picker{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-date-picker:hover{border-color:var(--el-border-color-hover)}.plus-date-picker.is-focus{border-color:var(--el-color-primary)}.plus-date-picker .plus-date-picker__middle{color:var(--el-text-color-placeholder)}.plus-date-picker .plus-date-picker__start{font-size:14px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.plus-date-picker .plus-date-picker__start .el-input__wrapper{border:none;-webkit-box-shadow:none;box-shadow:none}.plus-date-picker .el-input__wrapper{width:100%}.plus-date-picker .el-input__wrapper.is-focus,.plus-date-picker .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}.plus-date-picker .plus-date-picker__end{font-size:14px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.plus-date-picker .plus-date-picker__end .el-input__wrapper{border:none;-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-date-picker{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-date-picker .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-date-picker .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-date-picker .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
|
|
5
|
+
.plus-description .plus-description__name{max-width:200px;word-wrap:break-word}.plus-description .plus-description__label{min-width:80px}
|
|
6
|
+
|
|
7
|
+
.plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__row{width:100%}.plus-form .plus-form__footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form .plus-form__group__item .plus-form__group__item__icon .el-icon{margin-right:5px}.plus-form .plus-form-item-extra{color:var(--el-text-color-placeholder);font-size:var(--el-font-size-base);margin-bottom:18px}
|
|
8
|
+
.plus-check-card-group{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
|
|
9
|
+
.plus-breadcrumb{margin-bottom:8px}
|
|
10
|
+
|
|
11
|
+
:root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--el-border-color)}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__left .plus-header__logo{height:28px}.plus-header .plus-header__left .plus-header__title{color:var(--el-text-color-regular);font-size:18px;font-weight:600;margin:0 0 0 12px;padding:0}.plus-header .plus-header__placeholder{-webkit-box-flex:1;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%}.plus-header .plus-header__right,.plus-header .plus-header__right .plus-header__dropdown-area{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__right .plus-header__dropdown-area{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-header .plus-header__right .plus-header__avatar{border-radius:50%;height:24px;margin-right:4px;width:24px}.plus-header-placeholder{height:var(--plus-header-height);width:100%}
|
|
12
|
+
.plus-pagination{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:16px 0}
|
|
13
|
+
|
|
14
|
+
.plus-dialog .plus-dialog-footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}
|
|
15
|
+
.plus-form-item{width:100%}.plus-form-item .plus-form-item__label{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form-item .plus-form-item__label .plus-table-column__label__icon{margin-left:2px}.plus-form-item .plus-form-item-field,.plus-form-item .plus-form-item-field.el-date-editor{width:100%}
|
|
16
|
+
.plus-search.el-form--inline .el-form-item{margin-right:0}.plus-search .plus-search__button__wrapper{-webkit-box-flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-search .plus-search__button__wrapper.el-form-item{margin-right:10px}.plus-search .plus-search__button__wrapper .el-form-item__content{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}
|
|
17
|
+
:root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.plus-layout .el-main{padding-right:10px}.plus-layout .el-main,.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height))}
|
|
18
|
+
.plus-page .plus-page__table_wrapper{margin-top:20px}
|
|
19
|
+
.plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}
|
|
20
|
+
.plus-input-tag{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 2px}.plus-input-tag:hover{border-color:var(--el-border-color-hover)}.plus-input-tag.is-focus{border-color:var(--el-color-primary)}.plus-input-tag .plus-input-tag__tag{margin-bottom:1px;margin-right:4px;margin-top:1px}.plus-input-tag .plus-input-tag__input{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1;min-width:85px;padding:0}.plus-input-tag .plus-input-tag__input .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 4px}.plus-input-tag .plus-input-tag__input .el-input__inner{height:24px;line-height:24px}.plus-input-tag .el-input.is-disabled .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-input-tag .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-input-tag .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
|
|
21
|
+
:root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){-webkit-flex-shrink:0;width:var(--plus-sidebar-width);-ms-flex-negative:0;flex-shrink:0}.plus-sidebar.is-vertical.el-menu--collapse .plus-sidebar__item-title{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.plus-sidebar.is-vertical.el-menu--collapse .el-sub-menu__icon-arrow{display:none}.plus-sidebar.is-vertical .el-scrollbar{height:calc(100% - var(--plus-sidebar-collapse-height))}.plus-sidebar.is-vertical .plus-sidebar__collapse{background-color:var(--el-menu-bg-color);bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 1px);-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2 - 1px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-active{background-color:var(--el-menu-bg-color)}.plus-sidebar.is-vertical .plus-sidebar__collapse [class*=-icon]{cursor:pointer;font-size:20px;margin-top:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-sidebar.is-horizontal,.plus-sidebar.is-horizontal .el-scrollbar,.plus-sidebar.is-horizontal .el-scrollbar__wrap{width:100%}.plus-sidebar.is-horizontal .el-scrollbar__view{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
|
|
22
|
+
.plus-table .plus-table-column .plus-table-column__header .plus-table-column__header__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table .plus-table-action-bar.el-table-fixed-column--right{background-color:var(--el-bg-color)}.plus-table .plus-table-action-bar .cell{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown__link{cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-table .plus-table-action-bar .plus-table-action-bar__more-text{margin-right:2px}.plus-table .plus-table-action-bar .plus-table-action-bar__column__link{margin-right:10px}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown{cursor:pointer;margin-left:12px;vertical-align:baseline}.plus-table .plus-table-action-bar .el-link+.el-link{margin-left:12px}.plus-table .plus-table-action-bar .el-icon{cursor:pointer}.plus-table .plus-table-action-bar .el-icon+.el-icon{margin-left:12px}.plus-table .plus-table-column-drag-sort .plus-table-column-drag-icon{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:move;font-size:18px;padding:4px}.plus-table .plus-table-column-index .plus-table-index-column{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;height:20px;white-space:nowrap;width:20px;word-break:keep-all}.plus-table .plus-table-column-index .cell .plus-table-column-index__content,.plus-table .plus-table-column-index .plus-table-index-column{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.plus-table .plus-table-column-index .cell .plus-table-column-index__content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.plus-table .plus-table-title-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:10px}.plus-table .el-popper{max-width:200px}.plus-table-title-bar__toolbar__density{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-table-title-bar__toolbar__density .el-button{margin-top:10px;width:80px}.plus-table-title-bar__toolbar__density .el-button+.el-button{margin-left:0}.plus-table-title-bar__toolbar__icon{color:var(--el-text-color-regular);cursor:pointer;margin-left:10px;vertical-align:middle}.plus-table-title-bar__toolbar__checkbox__item{margin-left:6px}.plus-table-checkbox-item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:20px}.plus-table-checkbox-handle{cursor:move;font-size:18px}.plus-table-ghost-class{background-color:#fff;border:1px dashed var(--el-color-primary);padding:0 5px}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import installer from './defaults';
|
|
2
|
+
export * from '@wlydfe/pro-ui-components';
|
|
3
|
+
export * from '@wlydfe/pro-ui-hooks';
|
|
4
|
+
export * from '@wlydfe/pro-ui-types';
|
|
5
|
+
export * from '@wlydfe/pro-ui-constants';
|
|
6
|
+
export * from '@wlydfe/pro-ui-directives';
|
|
7
|
+
export { version } from './version';
|
|
8
|
+
export declare const install: (app: import("vue").App<any>) => void;
|
|
9
|
+
export default installer;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const defaults = require('./defaults.js');
|
|
6
|
+
require('./components/index.js');
|
|
7
|
+
require('./hooks/index.js');
|
|
8
|
+
require('./types/index.js');
|
|
9
|
+
require('./constants/index.js');
|
|
10
|
+
require('./directives/index.js');
|
|
11
|
+
const version = require('./version.js');
|
|
12
|
+
const index = require('./components/dialog/index.js');
|
|
13
|
+
const index$1 = require('./components/pagination/index.js');
|
|
14
|
+
const index$2 = require('./components/table/index.js');
|
|
15
|
+
const index$3 = require('./components/radio/index.js');
|
|
16
|
+
const index$4 = require('./components/date-picker/index.js');
|
|
17
|
+
const index$5 = require('./components/descriptions/index.js');
|
|
18
|
+
const index$6 = require('./components/display-item/index.js');
|
|
19
|
+
const index$7 = require('./components/form/index.js');
|
|
20
|
+
const index$8 = require('./components/form-item/index.js');
|
|
21
|
+
const index$9 = require('./components/search/index.js');
|
|
22
|
+
const index$a = require('./components/dialog-form/index.js');
|
|
23
|
+
const index$b = require('./components/drawer-form/index.js');
|
|
24
|
+
const index$c = require('./components/page/index.js');
|
|
25
|
+
const index$d = require('./components/popover/index.js');
|
|
26
|
+
const index$e = require('./components/steps-form/index.js');
|
|
27
|
+
const index$f = require('./components/input-tag/index.js');
|
|
28
|
+
const index$g = require('./components/breadcrumb/index.js');
|
|
29
|
+
const index$h = require('./components/sidebar/index.js');
|
|
30
|
+
const index$i = require('./components/header/index.js');
|
|
31
|
+
const index$j = require('./components/layout/index.js');
|
|
32
|
+
const index$k = require('./components/check-card/index.js');
|
|
33
|
+
const index$l = require('./components/check-card-group/index.js');
|
|
34
|
+
const useGetOptions = require('./hooks/useGetOptions.js');
|
|
35
|
+
const useLocale = require('./hooks/useLocale.js');
|
|
36
|
+
const useTable = require('./hooks/useTable.js');
|
|
37
|
+
const page = require('./constants/page.js');
|
|
38
|
+
const form = require('./constants/form.js');
|
|
39
|
+
const index$m = require('./directives/click/index.js');
|
|
40
|
+
|
|
41
|
+
const install = defaults.default.install;
|
|
42
|
+
|
|
43
|
+
exports.default = defaults.default;
|
|
44
|
+
exports.version = version.version;
|
|
45
|
+
exports.PlusDialog = index.PlusDialog;
|
|
46
|
+
exports.PlusPagination = index$1.PlusPagination;
|
|
47
|
+
exports.PlusTable = index$2.PlusTable;
|
|
48
|
+
exports.PlusRadio = index$3.PlusRadio;
|
|
49
|
+
exports.PlusDatePicker = index$4.PlusDatePicker;
|
|
50
|
+
exports.PlusDescriptions = index$5.PlusDescriptions;
|
|
51
|
+
exports.PlusDisplayItem = index$6.PlusDisplayItem;
|
|
52
|
+
exports.PlusForm = index$7.PlusForm;
|
|
53
|
+
exports.PlusFormItem = index$8.PlusFormItem;
|
|
54
|
+
exports.PlusSearch = index$9.PlusSearch;
|
|
55
|
+
exports.PlusDialogForm = index$a.PlusDialogForm;
|
|
56
|
+
exports.PlusDrawerForm = index$b.PlusDrawerForm;
|
|
57
|
+
exports.PlusPage = index$c.PlusPage;
|
|
58
|
+
exports.PlusPopover = index$d.PlusPopover;
|
|
59
|
+
exports.PlusStepsForm = index$e.PlusStepsForm;
|
|
60
|
+
exports.PlusInputTag = index$f.PlusInputTag;
|
|
61
|
+
exports.PlusBreadcrumb = index$g.PlusBreadcrumb;
|
|
62
|
+
exports.PlusSidebar = index$h.PlusSidebar;
|
|
63
|
+
exports.PlusSidebarItem = index$h.PlusSidebarItem;
|
|
64
|
+
exports.PlusHeader = index$i.PlusHeader;
|
|
65
|
+
exports.PlusLayout = index$j.PlusLayout;
|
|
66
|
+
exports.PlusCheckCard = index$k.PlusCheckCard;
|
|
67
|
+
exports.PlusCheckCardGroup = index$l.PlusCheckCardGroup;
|
|
68
|
+
exports.useGetOptions = useGetOptions.useGetOptions;
|
|
69
|
+
exports.buildLocaleContext = useLocale.buildLocaleContext;
|
|
70
|
+
exports.buildTranslator = useLocale.buildTranslator;
|
|
71
|
+
exports.translate = useLocale.translate;
|
|
72
|
+
exports.useLocale = useLocale.useLocale;
|
|
73
|
+
exports.useTable = useTable.useTable;
|
|
74
|
+
exports.DefaultPageInfo = page.DefaultPageInfo;
|
|
75
|
+
exports.DefaultPageSizeList = page.DefaultPageSizeList;
|
|
76
|
+
exports.DatePickerValueIsArrayList = form.DatePickerValueIsArrayList;
|
|
77
|
+
exports.TableFormRefInjectionKey = form.TableFormRefInjectionKey;
|
|
78
|
+
exports.ValueIsArrayList = form.ValueIsArrayList;
|
|
79
|
+
exports.ValueIsBooleanList = form.ValueIsBooleanList;
|
|
80
|
+
exports.ValueIsNumberList = form.ValueIsNumberList;
|
|
81
|
+
exports.Click = index$m.default;
|
|
82
|
+
exports.install = install;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
plus: {
|
|
4
|
+
dialog: {
|
|
5
|
+
confirmText: string;
|
|
6
|
+
cancelText: string;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
datepicker: {
|
|
10
|
+
startPlaceholder: string;
|
|
11
|
+
endPlaceholder: string;
|
|
12
|
+
};
|
|
13
|
+
dialogForm: {
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
drawerForm: {
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
form: {
|
|
20
|
+
submitText: string;
|
|
21
|
+
resetText: string;
|
|
22
|
+
errorTip: string;
|
|
23
|
+
};
|
|
24
|
+
field: {
|
|
25
|
+
pleaseEnter: string;
|
|
26
|
+
pleaseSelect: string;
|
|
27
|
+
};
|
|
28
|
+
popover: {
|
|
29
|
+
confirmText: string;
|
|
30
|
+
cancelText: string;
|
|
31
|
+
};
|
|
32
|
+
search: {
|
|
33
|
+
searchText: string;
|
|
34
|
+
resetText: string;
|
|
35
|
+
expand: string;
|
|
36
|
+
retract: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
title: string;
|
|
40
|
+
density: string;
|
|
41
|
+
refresh: string;
|
|
42
|
+
columnSettings: string;
|
|
43
|
+
selectAll: string;
|
|
44
|
+
default: string;
|
|
45
|
+
loose: string;
|
|
46
|
+
compact: string;
|
|
47
|
+
action: string;
|
|
48
|
+
more: string;
|
|
49
|
+
confirmToPerformThisOperation: string;
|
|
50
|
+
prompt: string;
|
|
51
|
+
sort: string;
|
|
52
|
+
};
|
|
53
|
+
stepsForm: {
|
|
54
|
+
nextText: string;
|
|
55
|
+
preText: string;
|
|
56
|
+
submitText: string;
|
|
57
|
+
};
|
|
58
|
+
inputTag: {
|
|
59
|
+
placeholder: string;
|
|
60
|
+
};
|
|
61
|
+
header: {
|
|
62
|
+
logout: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const English = {
|
|
6
|
+
name: "en",
|
|
7
|
+
plus: {
|
|
8
|
+
dialog: {
|
|
9
|
+
confirmText: "Yes",
|
|
10
|
+
cancelText: "No",
|
|
11
|
+
title: "Dialog"
|
|
12
|
+
},
|
|
13
|
+
datepicker: {
|
|
14
|
+
startPlaceholder: "Please select start time",
|
|
15
|
+
endPlaceholder: "Please select end time"
|
|
16
|
+
},
|
|
17
|
+
dialogForm: {
|
|
18
|
+
title: "Dialog form"
|
|
19
|
+
},
|
|
20
|
+
drawerForm: {
|
|
21
|
+
title: "Drawer form"
|
|
22
|
+
},
|
|
23
|
+
form: {
|
|
24
|
+
submitText: "Submit",
|
|
25
|
+
resetText: "Reset",
|
|
26
|
+
errorTip: "Please complete the form and submit again!"
|
|
27
|
+
},
|
|
28
|
+
field: {
|
|
29
|
+
pleaseEnter: "Please enter",
|
|
30
|
+
pleaseSelect: "Please select"
|
|
31
|
+
},
|
|
32
|
+
popover: {
|
|
33
|
+
confirmText: "Yes",
|
|
34
|
+
cancelText: "No"
|
|
35
|
+
},
|
|
36
|
+
search: {
|
|
37
|
+
searchText: "Search",
|
|
38
|
+
resetText: "Reset",
|
|
39
|
+
expand: "Expand",
|
|
40
|
+
retract: "Retract"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
title: "Table",
|
|
44
|
+
density: "Density",
|
|
45
|
+
refresh: "Refresh",
|
|
46
|
+
columnSettings: "Column settings",
|
|
47
|
+
selectAll: "Select all",
|
|
48
|
+
default: "Default",
|
|
49
|
+
loose: "Loose",
|
|
50
|
+
compact: "Compact",
|
|
51
|
+
action: "Action",
|
|
52
|
+
more: "More",
|
|
53
|
+
confirmToPerformThisOperation: "Confirm to perform this operation?",
|
|
54
|
+
prompt: "Prompt",
|
|
55
|
+
sort: "Sort"
|
|
56
|
+
},
|
|
57
|
+
stepsForm: {
|
|
58
|
+
nextText: "Next step",
|
|
59
|
+
preText: "Previous step",
|
|
60
|
+
submitText: "Submit"
|
|
61
|
+
},
|
|
62
|
+
inputTag: {
|
|
63
|
+
placeholder: "Please enter keywords and press enter or space key"
|
|
64
|
+
},
|
|
65
|
+
header: {
|
|
66
|
+
logout: "logout"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.default = English;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
plus: {
|
|
4
|
+
dialog: {
|
|
5
|
+
confirmText: string;
|
|
6
|
+
cancelText: string;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
datepicker: {
|
|
10
|
+
startPlaceholder: string;
|
|
11
|
+
endPlaceholder: string;
|
|
12
|
+
};
|
|
13
|
+
dialogForm: {
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
drawerForm: {
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
form: {
|
|
20
|
+
submitText: string;
|
|
21
|
+
resetText: string;
|
|
22
|
+
errorTip: string;
|
|
23
|
+
};
|
|
24
|
+
field: {
|
|
25
|
+
pleaseEnter: string;
|
|
26
|
+
pleaseSelect: string;
|
|
27
|
+
};
|
|
28
|
+
popover: {
|
|
29
|
+
confirmText: string;
|
|
30
|
+
cancelText: string;
|
|
31
|
+
};
|
|
32
|
+
search: {
|
|
33
|
+
searchText: string;
|
|
34
|
+
resetText: string;
|
|
35
|
+
expand: string;
|
|
36
|
+
retract: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
title: string;
|
|
40
|
+
density: string;
|
|
41
|
+
refresh: string;
|
|
42
|
+
columnSettings: string;
|
|
43
|
+
selectAll: string;
|
|
44
|
+
default: string;
|
|
45
|
+
loose: string;
|
|
46
|
+
compact: string;
|
|
47
|
+
action: string;
|
|
48
|
+
more: string;
|
|
49
|
+
confirmToPerformThisOperation: string;
|
|
50
|
+
prompt: string;
|
|
51
|
+
sort: string;
|
|
52
|
+
};
|
|
53
|
+
stepsForm: {
|
|
54
|
+
nextText: string;
|
|
55
|
+
preText: string;
|
|
56
|
+
submitText: string;
|
|
57
|
+
};
|
|
58
|
+
inputTag: {
|
|
59
|
+
placeholder: string;
|
|
60
|
+
};
|
|
61
|
+
header: {
|
|
62
|
+
logout: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|