@aplus-frontend/ui 0.0.1-beta.2 → 0.0.1-beta.21
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/es/index.mjs +206 -118
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +76 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +20 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +4 -0
- package/es/src/ap-action/item/index.vue2.mjs +49 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-custom-column/column-select.vue.d.ts +18 -0
- package/es/src/ap-custom-column/column-select.vue.mjs +102 -0
- package/es/src/ap-custom-column/column-select.vue2.mjs +4 -0
- package/es/src/ap-custom-column/custom-column.vue.d.ts +18 -0
- package/es/src/ap-custom-column/custom-column.vue.mjs +83 -0
- package/es/src/ap-custom-column/custom-column.vue2.mjs +4 -0
- package/es/src/ap-custom-column/index.d.ts +7 -0
- package/es/src/ap-custom-column/index.mjs +9 -0
- package/es/src/ap-custom-column/interfaces.d.ts +41 -0
- package/es/src/ap-custom-column/interfaces.mjs +1 -0
- package/es/src/ap-custom-column/storage.d.ts +8 -0
- package/es/src/ap-custom-column/storage.mjs +29 -0
- package/es/src/ap-custom-column/styles/column-select.css +44 -0
- package/es/src/ap-custom-column/styles/custom-column.css +46 -0
- package/es/src/ap-custom-column/useCacheColumnSetting.d.ts +10 -0
- package/es/src/ap-custom-column/useCacheColumnSetting.mjs +9 -0
- package/es/src/ap-custom-column/utils.d.ts +3 -0
- package/es/src/ap-custom-column/utils.mjs +17 -0
- package/es/src/ap-field/checkbox/helper.d.ts +6 -0
- package/es/src/ap-field/checkbox/helper.mjs +5 -0
- package/es/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +63 -0
- package/es/src/ap-field/checkbox/index.vue2.mjs +4 -0
- package/es/src/ap-field/date/constant.d.ts +11 -0
- package/es/src/ap-field/date/constant.mjs +50 -0
- package/es/src/ap-field/date/helper.d.ts +5 -0
- package/es/src/ap-field/date/helper.mjs +10 -0
- package/es/src/ap-field/date/index.vue.d.ts +57 -0
- package/es/src/ap-field/date/index.vue.mjs +74 -0
- package/es/src/ap-field/date/index.vue2.mjs +4 -0
- package/es/src/ap-field/date/interface.d.ts +2 -0
- package/es/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/es/src/ap-field/date-range/index.vue.mjs +93 -0
- package/es/src/ap-field/date-range/index.vue2.mjs +4 -0
- package/es/src/ap-field/index.d.ts +24 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +92 -0
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.d.ts +1 -0
- package/es/src/ap-field/number/helper.mjs +14 -0
- package/es/src/ap-field/number/index.vue.d.ts +72 -0
- package/es/src/ap-field/number/index.vue.mjs +106 -0
- package/es/src/ap-field/number/index.vue2.mjs +4 -0
- package/es/src/ap-field/number/style.css +6 -0
- package/es/src/ap-field/radio/helper.d.ts +4 -0
- package/es/src/ap-field/radio/helper.mjs +5 -0
- package/es/src/ap-field/radio/index.vue.d.ts +40 -0
- package/es/src/ap-field/radio/index.vue.mjs +74 -0
- package/es/src/ap-field/radio/index.vue2.mjs +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +235 -0
- package/es/src/ap-field/select/index.vue.mjs +114 -0
- package/es/src/ap-field/select/index.vue2.mjs +4 -0
- package/es/src/ap-field/switch/index.vue.d.ts +54 -0
- package/es/src/ap-field/switch/index.vue.mjs +122 -0
- package/es/src/ap-field/switch/index.vue2.mjs +4 -0
- package/es/src/ap-field/text/index.vue.d.ts +66 -0
- package/es/src/ap-field/text/index.vue.mjs +133 -0
- package/es/src/ap-field/text/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/es/src/ap-field/text-area/index.vue.mjs +86 -0
- package/es/src/ap-field/text-area/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/style.css +5 -0
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +18 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +33 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +62 -0
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form-item.vue.d.ts +68 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +151 -0
- package/es/src/ap-form/ap-form-item.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form-list.vue.d.ts +35 -0
- package/es/src/ap-form/ap-form-list.vue.mjs +41 -0
- package/es/src/ap-form/ap-form-list.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form.vue.d.ts +66 -0
- package/es/src/ap-form/ap-form.vue.mjs +4 -0
- package/es/src/ap-form/ap-form.vue2.mjs +89 -0
- package/es/src/ap-form/constant.d.ts +3 -0
- package/es/src/ap-form/constant.mjs +17 -0
- package/es/src/ap-form/context.d.ts +11 -0
- package/es/src/ap-form/context.mjs +17 -0
- package/es/src/ap-form/index.d.ts +16 -0
- package/es/src/ap-form/index.mjs +24 -0
- package/es/src/ap-form/interface.d.ts +49 -0
- package/es/src/ap-form/interface.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.d.ts +65 -0
- package/es/src/ap-form/items/date/index.vue.mjs +80 -0
- package/es/src/ap-form/items/date/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/date-range/index.vue.d.ts +64 -0
- package/es/src/ap-form/items/date-range/index.vue.mjs +80 -0
- package/es/src/ap-form/items/date-range/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/index.d.ts +10 -0
- package/es/src/ap-form/items/index.mjs +8 -0
- package/es/src/ap-form/items/interface.d.ts +41 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +63 -0
- package/es/src/ap-form/items/number/index.vue.mjs +84 -0
- package/es/src/ap-form/items/number/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/radio/index.vue.d.ts +50 -0
- package/es/src/ap-form/items/radio/index.vue.mjs +74 -0
- package/es/src/ap-form/items/radio/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +69 -0
- package/es/src/ap-form/items/select/index.vue.mjs +89 -0
- package/es/src/ap-form/items/select/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/switch/index.vue.d.ts +60 -0
- package/es/src/ap-form/items/switch/index.vue.mjs +68 -0
- package/es/src/ap-form/items/switch/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +66 -0
- package/es/src/ap-form/items/text/index.vue.mjs +95 -0
- package/es/src/ap-form/items/text/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/text-area/index.vue.d.ts +52 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +79 -0
- package/es/src/ap-form/items/text-area/index.vue2.mjs +4 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +76 -0
- package/es/src/ap-form/search-form/index.vue.mjs +201 -0
- package/es/src/ap-form/search-form/index.vue2.mjs +4 -0
- package/es/src/ap-form/style/ap-form-item-group.css +9 -0
- package/es/src/ap-form/style/ap-form-item.css +49 -0
- package/es/src/ap-form/style/search-form.css +3 -0
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +41 -0
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +61 -0
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +4 -0
- package/es/src/ap-layout/index.d.ts +3 -0
- package/es/src/ap-layout/index.mjs +1 -0
- package/es/src/ap-layout/interface.d.ts +4 -0
- package/es/src/ap-layout/style/ap-info-layout.css +64 -0
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +34 -0
- package/es/src/ap-tag/ap-tag-group.vue.mjs +137 -0
- package/es/src/ap-tag/ap-tag-group.vue2.mjs +4 -0
- package/es/src/ap-tag/ap-tag.vue.d.ts +34 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +41 -0
- package/es/src/ap-tag/ap-tag.vue2.mjs +4 -0
- package/es/src/ap-tag/index.d.ts +5 -0
- package/es/src/ap-tag/index.mjs +3 -0
- package/es/src/ap-tag/interface.d.ts +35 -0
- package/es/src/ap-tag/interface.mjs +1 -0
- package/es/src/ap-tag/style/ap-tag-group.css +6 -0
- package/es/src/ap-tag/style/ap-tag.css +40 -0
- package/es/src/ap-upload/apUpload.vue.d.ts +111 -0
- package/es/src/ap-upload/apUpload.vue.mjs +95 -0
- package/es/src/ap-upload/apUpload.vue2.mjs +4 -0
- package/es/src/ap-upload/apUploadTypes.d.ts +90 -0
- package/es/src/ap-upload/apUploadTypes.mjs +4 -0
- package/es/src/ap-upload/assets/single-file-icon.png.mjs +4 -0
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -0
- package/es/src/ap-upload/components/MultipleFile.vue.mjs +4 -0
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +197 -0
- package/es/src/ap-upload/components/Picture.vue.d.ts +4 -0
- package/es/src/ap-upload/components/Picture.vue.mjs +4 -0
- package/es/src/ap-upload/components/Picture.vue2.mjs +219 -0
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -0
- package/es/src/ap-upload/components/SingleFile.vue.mjs +4 -0
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +213 -0
- package/es/src/ap-upload/hooks/useOss.d.ts +19 -0
- package/es/src/ap-upload/hooks/useOss.mjs +62 -0
- package/es/src/ap-upload/index.d.ts +5 -0
- package/es/src/ap-upload/index.mjs +11 -0
- package/es/src/ap-upload/styles/multiple-file.css +58 -0
- package/es/src/ap-upload/styles/picture.css +112 -0
- package/es/src/ap-upload/styles/single-file.css +98 -0
- package/es/src/ap-upload/styles/upload.css +6 -0
- package/es/src/ap-upload/utils/accept.d.ts +13 -0
- package/es/src/ap-upload/utils/accept.mjs +51 -0
- package/es/src/ap-upload/utils/returnData.d.ts +19 -0
- package/es/src/ap-upload/utils/returnData.mjs +21 -0
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider-props.d.ts +11 -1
- package/es/src/config-provider/config-provider-props.mjs +12 -4
- package/es/src/config-provider/config-provider.d.ts +25 -3
- package/es/src/config-provider/config-provider.mjs +21 -16
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +11 -1
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.mjs +26 -12
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.d.ts +1 -1
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/collapse/style/header.css +1 -1
- package/es/src/container/collapse/style/index.css +1 -1
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/cropper/style/avatar.css +1 -1
- package/es/src/cropper/style/modal.css +2 -2
- package/es/src/description/description.vue.d.ts +4 -4
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/design-token/index.d.ts +4 -0
- package/es/src/design-token/index.mjs +65 -0
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.d.ts +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useControllableValue.d.ts +13 -0
- package/es/src/hooks/useControllableValue.mjs +21 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.d.ts +1 -1
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.d.ts +9 -0
- package/es/src/index.mjs +206 -114
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/locale/lang/en.mjs +8 -1
- package/es/src/locale/lang/zh-cn.mjs +8 -1
- package/es/src/modal/basic.vue.d.ts +3 -2
- package/es/src/modal/basic.vue.mjs +2 -191
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.d.ts +1 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.mjs +10 -8
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +30 -31
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +22 -22
- package/es/src/pro-form/hooks/use-form-values.mjs +12 -12
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +9 -9
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +2 -2
- package/es/src/pro-form/pro-form.vue.mjs +59 -57
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/const.d.ts +3 -0
- package/es/src/pro-table/const.mjs +10 -4
- package/es/src/pro-table/hooks/use-columns.mjs +27 -27
- package/es/src/pro-table/hooks/use-data-source.mjs +67 -66
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.d.ts +5 -1
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.d.ts +7 -1
- package/es/src/pro-table/pro-table.vue.mjs +214 -205
- package/es/src/pro-table/style/pro-table.css +10 -5
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +0 -3
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/theme/antd-global-overwrite/admin/alert.css +21 -0
- package/es/src/theme/antd-global-overwrite/admin/button.css +13 -0
- package/es/src/theme/antd-global-overwrite/admin/form.css +40 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +385 -0
- package/es/src/theme/antd-global-overwrite/admin/message.css +17 -0
- package/es/src/theme/antd-global-overwrite/admin/modal.css +107 -0
- package/es/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
- package/es/src/theme/antd-global-overwrite/admin/steps.css +92 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +27 -0
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +21 -0
- package/es/src/theme/antd-global-overwrite/aplus/button.css +13 -0
- package/es/src/theme/antd-global-overwrite/aplus/form.css +40 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +371 -0
- package/es/src/theme/antd-global-overwrite/aplus/message.css +17 -0
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +101 -0
- package/es/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +86 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +12 -0
- package/es/src/theme/ap-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/ap-field/number.css +6 -0
- package/es/src/theme/ap-field/text-area.css +5 -0
- package/es/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/es/src/theme/ap-form/ap-form-item.css +49 -0
- package/es/src/theme/ap-form/search-form.css +3 -0
- package/es/src/theme/ap-layout/ap-info-layout.css +32 -0
- package/es/src/theme/ap-tag/ap-tag-group.css +6 -0
- package/es/src/theme/ap-tag/ap-tag.css +40 -0
- package/es/src/theme/ap-upload/multiple-file.css +58 -0
- package/es/src/theme/ap-upload/picture.css +112 -0
- package/es/src/theme/ap-upload/single-file.css +98 -0
- package/es/src/theme/ap-upload/upload.css +6 -0
- package/es/src/theme/collapse-container/header.css +1 -1
- package/es/src/theme/collapse-container/index.css +1 -1
- package/es/src/theme/cropper/avatar.css +1 -1
- package/es/src/theme/cropper/modal.css +2 -2
- package/es/src/theme/custom-column/column-select.css +44 -0
- package/es/src/theme/custom-column/custom-column.css +46 -0
- package/es/src/theme/modal/index.css +30 -31
- package/es/src/theme/pro-table/pro-table.css +10 -5
- package/es/src/theme/work-order-modal/index.css +3 -0
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +4 -1
- package/es/src/utils/config-provider-preset.d.ts +79 -0
- package/es/src/utils/config-provider-preset.mjs +26 -0
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/es/src/work-order-modal/createWorkOrder.d.ts +1 -0
- package/es/src/work-order-modal/createWorkOrder.mjs +19 -0
- package/es/src/work-order-modal/help-message.vue.d.ts +3 -0
- package/es/src/work-order-modal/help-message.vue.mjs +4 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +33 -0
- package/es/src/work-order-modal/index.d.ts +5 -0
- package/es/src/work-order-modal/index.mjs +7 -0
- package/es/src/work-order-modal/interfaces.d.ts +23 -0
- package/es/src/work-order-modal/interfaces.mjs +4 -0
- package/es/src/work-order-modal/style/index.css +3 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +18 -0
- package/es/src/work-order-modal/work-order-modal.vue.mjs +168 -0
- package/es/src/work-order-modal/work-order-modal.vue2.mjs +4 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-action/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-custom-column/column-select.vue.d.ts +18 -0
- package/lib/src/ap-custom-column/column-select.vue.js +1 -0
- package/lib/src/ap-custom-column/column-select.vue2.js +1 -0
- package/lib/src/ap-custom-column/custom-column.vue.d.ts +18 -0
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -0
- package/lib/src/ap-custom-column/custom-column.vue2.js +1 -0
- package/lib/src/ap-custom-column/index.d.ts +7 -0
- package/lib/src/ap-custom-column/index.js +1 -0
- package/lib/src/ap-custom-column/interfaces.d.ts +41 -0
- package/lib/src/ap-custom-column/interfaces.js +1 -0
- package/lib/src/ap-custom-column/storage.d.ts +8 -0
- package/lib/src/ap-custom-column/storage.js +1 -0
- package/lib/src/ap-custom-column/styles/column-select.css +44 -0
- package/lib/src/ap-custom-column/styles/custom-column.css +46 -0
- package/lib/src/ap-custom-column/useCacheColumnSetting.d.ts +10 -0
- package/lib/src/ap-custom-column/useCacheColumnSetting.js +1 -0
- package/lib/src/ap-custom-column/utils.d.ts +3 -0
- package/lib/src/ap-custom-column/utils.js +1 -0
- package/lib/src/ap-field/checkbox/helper.d.ts +6 -0
- package/lib/src/ap-field/checkbox/helper.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue2.js +1 -0
- package/lib/src/ap-field/date/constant.d.ts +11 -0
- package/lib/src/ap-field/date/constant.js +1 -0
- package/lib/src/ap-field/date/helper.d.ts +5 -0
- package/lib/src/ap-field/date/helper.js +1 -0
- package/lib/src/ap-field/date/index.vue.d.ts +57 -0
- package/lib/src/ap-field/date/index.vue.js +1 -0
- package/lib/src/ap-field/date/index.vue2.js +1 -0
- package/lib/src/ap-field/date/interface.d.ts +2 -0
- package/lib/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/lib/src/ap-field/date-range/index.vue.js +1 -0
- package/lib/src/ap-field/date-range/index.vue2.js +1 -0
- package/lib/src/ap-field/index.d.ts +24 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +92 -0
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.d.ts +1 -0
- package/lib/src/ap-field/number/helper.js +1 -0
- package/lib/src/ap-field/number/index.vue.d.ts +72 -0
- package/lib/src/ap-field/number/index.vue.js +1 -0
- package/lib/src/ap-field/number/index.vue2.js +1 -0
- package/lib/src/ap-field/number/style.css +6 -0
- package/lib/src/ap-field/radio/helper.d.ts +4 -0
- package/lib/src/ap-field/radio/helper.js +1 -0
- package/lib/src/ap-field/radio/index.vue.d.ts +40 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -0
- package/lib/src/ap-field/radio/index.vue2.js +1 -0
- package/lib/src/ap-field/select/index.vue.d.ts +235 -0
- package/lib/src/ap-field/select/index.vue.js +1 -0
- package/lib/src/ap-field/select/index.vue2.js +1 -0
- package/lib/src/ap-field/switch/index.vue.d.ts +54 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -0
- package/lib/src/ap-field/switch/index.vue2.js +1 -0
- package/lib/src/ap-field/text/index.vue.d.ts +66 -0
- package/lib/src/ap-field/text/index.vue.js +1 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -0
- package/lib/src/ap-field/text-area/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/style.css +5 -0
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +18 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue.d.ts +68 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -0
- package/lib/src/ap-form/ap-form-list.vue.d.ts +35 -0
- package/lib/src/ap-form/ap-form-list.vue.js +1 -0
- package/lib/src/ap-form/ap-form-list.vue2.js +1 -0
- package/lib/src/ap-form/ap-form.vue.d.ts +66 -0
- package/lib/src/ap-form/ap-form.vue.js +1 -0
- package/lib/src/ap-form/ap-form.vue2.js +1 -0
- package/lib/src/ap-form/constant.d.ts +3 -0
- package/lib/src/ap-form/constant.js +1 -0
- package/lib/src/ap-form/context.d.ts +11 -0
- package/lib/src/ap-form/context.js +1 -0
- package/lib/src/ap-form/index.d.ts +16 -0
- package/lib/src/ap-form/index.js +1 -0
- package/lib/src/ap-form/interface.d.ts +49 -0
- package/lib/src/ap-form/interface.js +1 -0
- package/lib/src/ap-form/items/date/index.vue.d.ts +65 -0
- package/lib/src/ap-form/items/date/index.vue.js +1 -0
- package/lib/src/ap-form/items/date/index.vue2.js +1 -0
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +64 -0
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -0
- package/lib/src/ap-form/items/date-range/index.vue2.js +1 -0
- package/lib/src/ap-form/items/index.d.ts +10 -0
- package/lib/src/ap-form/items/index.js +1 -0
- package/lib/src/ap-form/items/interface.d.ts +41 -0
- package/lib/src/ap-form/items/number/index.vue.d.ts +63 -0
- package/lib/src/ap-form/items/number/index.vue.js +1 -0
- package/lib/src/ap-form/items/number/index.vue2.js +1 -0
- package/lib/src/ap-form/items/radio/index.vue.d.ts +50 -0
- package/lib/src/ap-form/items/radio/index.vue.js +1 -0
- package/lib/src/ap-form/items/radio/index.vue2.js +1 -0
- package/lib/src/ap-form/items/select/index.vue.d.ts +69 -0
- package/lib/src/ap-form/items/select/index.vue.js +1 -0
- package/lib/src/ap-form/items/select/index.vue2.js +1 -0
- package/lib/src/ap-form/items/switch/index.vue.d.ts +60 -0
- package/lib/src/ap-form/items/switch/index.vue.js +1 -0
- package/lib/src/ap-form/items/switch/index.vue2.js +1 -0
- package/lib/src/ap-form/items/text/index.vue.d.ts +66 -0
- package/lib/src/ap-form/items/text/index.vue.js +1 -0
- package/lib/src/ap-form/items/text/index.vue2.js +1 -0
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +52 -0
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -0
- package/lib/src/ap-form/items/text-area/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +76 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/index.vue2.js +1 -0
- package/lib/src/ap-form/style/ap-form-item-group.css +9 -0
- package/lib/src/ap-form/style/ap-form-item.css +49 -0
- package/lib/src/ap-form/style/search-form.css +3 -0
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +41 -0
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -0
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue2.js +1 -0
- package/lib/src/ap-layout/index.d.ts +3 -0
- package/lib/src/ap-layout/index.js +1 -0
- package/lib/src/ap-layout/interface.d.ts +4 -0
- package/lib/src/ap-layout/style/ap-info-layout.css +64 -0
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +34 -0
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -0
- package/lib/src/ap-tag/ap-tag-group.vue2.js +1 -0
- package/lib/src/ap-tag/ap-tag.vue.d.ts +34 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -0
- package/lib/src/ap-tag/ap-tag.vue2.js +1 -0
- package/lib/src/ap-tag/index.d.ts +5 -0
- package/lib/src/ap-tag/index.js +1 -0
- package/lib/src/ap-tag/interface.d.ts +35 -0
- package/lib/src/ap-tag/interface.js +1 -0
- package/lib/src/ap-tag/style/ap-tag-group.css +6 -0
- package/lib/src/ap-tag/style/ap-tag.css +40 -0
- package/lib/src/ap-upload/apUpload.vue.d.ts +111 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -0
- package/lib/src/ap-upload/apUpload.vue2.js +1 -0
- package/lib/src/ap-upload/apUploadTypes.d.ts +90 -0
- package/lib/src/ap-upload/apUploadTypes.js +1 -0
- package/lib/src/ap-upload/assets/single-file-icon.png.js +1 -0
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -0
- package/lib/src/ap-upload/components/MultipleFile.vue.js +1 -0
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -0
- package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -0
- package/lib/src/ap-upload/components/Picture.vue.js +1 -0
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -0
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -0
- package/lib/src/ap-upload/components/SingleFile.vue.js +1 -0
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -0
- package/lib/src/ap-upload/hooks/useOss.d.ts +19 -0
- package/lib/src/ap-upload/hooks/useOss.js +1 -0
- package/lib/src/ap-upload/index.d.ts +5 -0
- package/lib/src/ap-upload/index.js +1 -0
- package/lib/src/ap-upload/styles/multiple-file.css +58 -0
- package/lib/src/ap-upload/styles/picture.css +112 -0
- package/lib/src/ap-upload/styles/single-file.css +98 -0
- package/lib/src/ap-upload/styles/upload.css +6 -0
- package/lib/src/ap-upload/utils/accept.d.ts +13 -0
- package/lib/src/ap-upload/utils/accept.js +1 -0
- package/lib/src/ap-upload/utils/returnData.d.ts +19 -0
- package/lib/src/ap-upload/utils/returnData.js +1 -0
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +11 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -3
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +11 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.d.ts +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/collapse/style/header.css +1 -1
- package/lib/src/container/collapse/style/index.css +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/cropper/style/avatar.css +1 -1
- package/lib/src/cropper/style/modal.css +2 -2
- package/lib/src/description/description.vue.d.ts +4 -4
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/design-token/index.d.ts +4 -0
- package/lib/src/design-token/index.js +1 -0
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.d.ts +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/hooks/useControllableValue.d.ts +13 -0
- package/lib/src/hooks/useControllableValue.js +1 -0
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.d.ts +1 -1
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.d.ts +9 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +3 -2
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +30 -31
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-cascader.vue.js +1 -1
- package/lib/src/pro-form/components/api-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/hooks/use-form-events.js +1 -1
- package/lib/src/pro-form/hooks/use-form-values.js +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +9 -9
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +2 -2
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/const.d.ts +3 -0
- package/lib/src/pro-table/const.js +1 -1
- package/lib/src/pro-table/hooks/use-columns.js +1 -1
- package/lib/src/pro-table/hooks/use-data-source.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.d.ts +5 -1
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.d.ts +7 -1
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/style/pro-table.css +10 -5
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +0 -3
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +21 -0
- package/lib/src/theme/antd-global-overwrite/admin/button.css +13 -0
- package/lib/src/theme/antd-global-overwrite/admin/form.css +40 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +385 -0
- package/lib/src/theme/antd-global-overwrite/admin/message.css +17 -0
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +107 -0
- package/lib/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +92 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +27 -0
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +21 -0
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +13 -0
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +40 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +371 -0
- package/lib/src/theme/antd-global-overwrite/aplus/message.css +17 -0
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +101 -0
- package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +86 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +12 -0
- package/lib/src/theme/ap-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/ap-field/number.css +6 -0
- package/lib/src/theme/ap-field/text-area.css +5 -0
- package/lib/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/lib/src/theme/ap-form/ap-form-item.css +49 -0
- package/lib/src/theme/ap-form/search-form.css +3 -0
- package/lib/src/theme/ap-layout/ap-info-layout.css +32 -0
- package/lib/src/theme/ap-tag/ap-tag-group.css +6 -0
- package/lib/src/theme/ap-tag/ap-tag.css +40 -0
- package/lib/src/theme/ap-upload/multiple-file.css +58 -0
- package/lib/src/theme/ap-upload/picture.css +112 -0
- package/lib/src/theme/ap-upload/single-file.css +98 -0
- package/lib/src/theme/ap-upload/upload.css +6 -0
- package/lib/src/theme/collapse-container/header.css +1 -1
- package/lib/src/theme/collapse-container/index.css +1 -1
- package/lib/src/theme/cropper/avatar.css +1 -1
- package/lib/src/theme/cropper/modal.css +2 -2
- package/lib/src/theme/custom-column/column-select.css +44 -0
- package/lib/src/theme/custom-column/custom-column.css +46 -0
- package/lib/src/theme/modal/index.css +30 -31
- package/lib/src/theme/pro-table/pro-table.css +10 -5
- package/lib/src/theme/work-order-modal/index.css +3 -0
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +4 -1
- package/lib/src/utils/config-provider-preset.d.ts +79 -0
- package/lib/src/utils/config-provider-preset.js +1 -0
- package/lib/src/utils/index.d.ts +8 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.d.ts +1 -0
- package/lib/src/work-order-modal/createWorkOrder.js +1 -0
- package/lib/src/work-order-modal/help-message.vue.d.ts +3 -0
- package/lib/src/work-order-modal/help-message.vue.js +1 -0
- package/lib/src/work-order-modal/help-message.vue2.js +1 -0
- package/lib/src/work-order-modal/index.d.ts +5 -0
- package/lib/src/work-order-modal/index.js +1 -0
- package/lib/src/work-order-modal/interfaces.d.ts +23 -0
- package/lib/src/work-order-modal/interfaces.js +1 -0
- package/lib/src/work-order-modal/style/index.css +3 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +18 -0
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -0
- package/lib/src/work-order-modal/work-order-modal.vue2.js +1 -0
- package/package.json +16 -6
- package/es/src/base-button/index.d.ts +0 -137
- package/es/src/basic/index.d.ts +0 -278
- package/es/src/button/index.d.ts +0 -51
- package/es/src/config-provider/index.d.ts +0 -645
- package/es/src/constants/component-setting.d.ts +0 -74
- package/es/src/constants/component-setting.mjs +0 -90
- package/es/src/container/index.d.ts +0 -178
- package/es/src/count-down/index.d.ts +0 -150
- package/es/src/cropper/index.d.ts +0 -369
- package/es/src/description/index.d.ts +0 -214
- package/es/src/dropdown/index.d.ts +0 -113
- package/es/src/icon/index.d.ts +0 -208
- package/es/src/icon-picker/index.d.ts +0 -190
- package/es/src/modal/index.d.ts +0 -964
- package/es/src/scroll-bar/index.d.ts +0 -183
- package/es/src/strength-meter/index.d.ts +0 -89
- package/es/src/transition/index.d.ts +0 -369
- package/lib/src/base-button/index.d.ts +0 -137
- package/lib/src/basic/index.d.ts +0 -278
- package/lib/src/button/index.d.ts +0 -51
- package/lib/src/config-provider/index.d.ts +0 -645
- package/lib/src/constants/component-setting.d.ts +0 -74
- package/lib/src/constants/component-setting.js +0 -1
- package/lib/src/container/index.d.ts +0 -178
- package/lib/src/count-down/index.d.ts +0 -150
- package/lib/src/cropper/index.d.ts +0 -369
- package/lib/src/description/index.d.ts +0 -214
- package/lib/src/dropdown/index.d.ts +0 -113
- package/lib/src/icon/index.d.ts +0 -208
- package/lib/src/icon-picker/index.d.ts +0 -190
- package/lib/src/modal/index.d.ts +0 -964
- package/lib/src/scroll-bar/index.d.ts +0 -183
- package/lib/src/strength-meter/index.d.ts +0 -89
- package/lib/src/transition/index.d.ts +0 -369
|
@@ -1,4 +1,354 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { isVNode as ee, defineComponent as te, toRefs as oe, computed as v, unref as n, createVNode as u, createTextVNode as ne, mergeProps as N, withDirectives as se, vShow as le } from "vue";
|
|
2
|
+
import { isComponentFormSchema as re } from "../types/form.mjs";
|
|
3
|
+
import { Col as E, Divider as ae, Form as K } from "ant-design-vue";
|
|
4
|
+
import { componentMap as W } from "../component-map.mjs";
|
|
5
|
+
import { BasicHelp as ce, BasicTitle as ie } from "../../basic/index.mjs";
|
|
6
|
+
import { isFunction as p, isBoolean as I, cloneDeep as de, isNull as fe, upperFirst as me } from "lodash-unified";
|
|
7
|
+
import { getSlot as U } from "../../utils/slot.mjs";
|
|
8
|
+
import { isIncludeSimpleComponents as ue, createPlaceholderMessage as $, NO_AUTO_LINK_COMPONENTS as G, setComponentRuleType as he } from "../helper.mjs";
|
|
9
|
+
import { useItemLabelWidth as pe } from "../hooks/use-label-width.mjs";
|
|
10
|
+
import "../../config-provider/index.mjs";
|
|
11
|
+
import "./style/form-item.css";
|
|
12
|
+
import { useLocale as be } from "../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
function M(t) {
|
|
15
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !ee(t);
|
|
16
|
+
}
|
|
17
|
+
const De = /* @__PURE__ */ te({
|
|
18
|
+
name: "BasicFormItem",
|
|
19
|
+
inheritAttrs: !1,
|
|
20
|
+
props: {
|
|
21
|
+
schema: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
formProps: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
},
|
|
29
|
+
allDefaultValues: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: () => ({})
|
|
32
|
+
},
|
|
33
|
+
formModel: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => ({})
|
|
36
|
+
},
|
|
37
|
+
setFormModel: {
|
|
38
|
+
type: Function,
|
|
39
|
+
default: null
|
|
40
|
+
},
|
|
41
|
+
tableAction: {
|
|
42
|
+
// todo: table Action
|
|
43
|
+
type: Object
|
|
44
|
+
},
|
|
45
|
+
formActionType: {
|
|
46
|
+
type: Object
|
|
47
|
+
},
|
|
48
|
+
isAdvanced: {
|
|
49
|
+
type: Boolean
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setup(t, {
|
|
53
|
+
slots: _
|
|
54
|
+
}) {
|
|
55
|
+
const {
|
|
56
|
+
t: L
|
|
57
|
+
} = be(), {
|
|
58
|
+
b: A
|
|
59
|
+
} = ge("form-item"), {
|
|
60
|
+
schema: V,
|
|
61
|
+
formProps: D
|
|
62
|
+
} = oe(t);
|
|
63
|
+
V.value.component === "CropperAvatar" && typeof D.value.size == "string" && (D.value.size = void 0);
|
|
64
|
+
const Q = pe(V, D), h = v(() => {
|
|
65
|
+
const {
|
|
66
|
+
allDefaultValues: o,
|
|
67
|
+
formModel: e,
|
|
68
|
+
schema: a
|
|
69
|
+
} = t, {
|
|
70
|
+
mergeDynamicData: l
|
|
71
|
+
} = t.formProps;
|
|
72
|
+
return {
|
|
73
|
+
field: a.field,
|
|
74
|
+
model: e,
|
|
75
|
+
values: {
|
|
76
|
+
...l,
|
|
77
|
+
...o,
|
|
78
|
+
...e
|
|
79
|
+
},
|
|
80
|
+
schema: a
|
|
81
|
+
};
|
|
82
|
+
}), x = v(() => {
|
|
83
|
+
const {
|
|
84
|
+
schema: o,
|
|
85
|
+
tableAction: e,
|
|
86
|
+
formModel: a,
|
|
87
|
+
formActionType: l
|
|
88
|
+
} = t;
|
|
89
|
+
let {
|
|
90
|
+
componentProps: s = {}
|
|
91
|
+
} = o;
|
|
92
|
+
return p(s) && (s = s({
|
|
93
|
+
schema: o,
|
|
94
|
+
tableAction: e,
|
|
95
|
+
formModel: a,
|
|
96
|
+
formActionType: l
|
|
97
|
+
}) ?? {}), ue(o.component) && (s = Object.assign({
|
|
98
|
+
type: "horizontal"
|
|
99
|
+
}, {
|
|
100
|
+
orientation: "left",
|
|
101
|
+
plain: !0
|
|
102
|
+
}, s)), s;
|
|
103
|
+
}), R = v(() => {
|
|
104
|
+
const {
|
|
105
|
+
disabled: o
|
|
106
|
+
} = t.formProps, {
|
|
107
|
+
dynamicDisabled: e
|
|
108
|
+
} = t.schema, {
|
|
109
|
+
disabled: a = !1
|
|
110
|
+
} = n(x);
|
|
111
|
+
let l = !!o || a;
|
|
112
|
+
return I(e) && (l = e), p(e) && (l = e(n(h))), l;
|
|
113
|
+
}), j = v(() => {
|
|
114
|
+
const {
|
|
115
|
+
readonly: o
|
|
116
|
+
} = t.formProps, {
|
|
117
|
+
dynamicReadonly: e
|
|
118
|
+
} = t.schema, {
|
|
119
|
+
readonly: a = !1
|
|
120
|
+
} = n(x);
|
|
121
|
+
let l = o || a;
|
|
122
|
+
return I(e) && (l = e), p(e) && (l = e(n(h))), l;
|
|
123
|
+
});
|
|
124
|
+
function B() {
|
|
125
|
+
const {
|
|
126
|
+
show: o,
|
|
127
|
+
ifShow: e
|
|
128
|
+
} = t.schema, {
|
|
129
|
+
showAdvancedButton: a
|
|
130
|
+
} = t.formProps, l = a && I(t.isAdvanced) ? t.isAdvanced : !0;
|
|
131
|
+
let s = !0, c = !0;
|
|
132
|
+
return I(o) && (s = o), I(e) && (c = e), p(o) && (s = o(n(h))), p(e) && (c = e(n(h))), s = s && l, {
|
|
133
|
+
isShow: s,
|
|
134
|
+
isIfShow: c
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function z() {
|
|
138
|
+
var F;
|
|
139
|
+
const {
|
|
140
|
+
rules: o = [],
|
|
141
|
+
component: e,
|
|
142
|
+
rulesMessageJoinLabel: a,
|
|
143
|
+
label: l,
|
|
144
|
+
dynamicRules: s,
|
|
145
|
+
required: c
|
|
146
|
+
} = t.schema;
|
|
147
|
+
if (p(s))
|
|
148
|
+
return s(n(h));
|
|
149
|
+
let r = de(o);
|
|
150
|
+
const {
|
|
151
|
+
rulesMessageJoinLabel: b
|
|
152
|
+
} = t.formProps, g = (Reflect.has(t.schema, "rulesMessageJoinLabel") ? a : b) ? p(l) ? "" : l : "", f = e ? $(e, "", L) + g : g;
|
|
153
|
+
function y(m, i) {
|
|
154
|
+
const C = m.message || f;
|
|
155
|
+
return i === void 0 || fe(i) || Array.isArray(i) && i.length === 0 || typeof i == "string" && i.trim() === "" || typeof i == "object" && Reflect.has(i, "checked") && Reflect.has(i, "halfChecked") && Array.isArray(i.checked) && Array.isArray(i.halfChecked) && i.checked.length === 0 && i.halfChecked.length === 0 ? Promise.reject(C) : Promise.resolve();
|
|
156
|
+
}
|
|
157
|
+
const d = p(c) ? c(n(h)) : c;
|
|
158
|
+
if (d)
|
|
159
|
+
if (!r || r.length === 0) {
|
|
160
|
+
const m = G.includes(e || "Input") ? "blur" : "change";
|
|
161
|
+
r = [{
|
|
162
|
+
required: d,
|
|
163
|
+
validator: y,
|
|
164
|
+
trigger: m
|
|
165
|
+
}];
|
|
166
|
+
} else
|
|
167
|
+
r.findIndex((i) => Reflect.has(i, "required")) === -1 && r.push({
|
|
168
|
+
required: d,
|
|
169
|
+
validator: y
|
|
170
|
+
});
|
|
171
|
+
const k = r.findIndex((m) => Reflect.has(m, "required") && !Reflect.has(m, "validator"));
|
|
172
|
+
if (k !== -1) {
|
|
173
|
+
const m = r[k], {
|
|
174
|
+
isShow: i
|
|
175
|
+
} = B();
|
|
176
|
+
if (i || (m.required = !1), e) {
|
|
177
|
+
m.message = m.message || f, (e.includes("Input") || e.includes("Textarea")) && (m.whitespace = !0);
|
|
178
|
+
const C = (F = n(x)) == null ? void 0 : F.valueFormat;
|
|
179
|
+
he(m, e, C);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const P = r.findIndex((m) => m.max);
|
|
183
|
+
return P !== -1 && !r[P].validator && (r[P].message = r[P].message || L("ap.form.maxTip", {
|
|
184
|
+
count: r[P].max
|
|
185
|
+
})), r;
|
|
186
|
+
}
|
|
187
|
+
function X() {
|
|
188
|
+
var H, J;
|
|
189
|
+
if (!re(t.schema))
|
|
190
|
+
return null;
|
|
191
|
+
const {
|
|
192
|
+
renderComponentContent: o,
|
|
193
|
+
component: e,
|
|
194
|
+
field: a,
|
|
195
|
+
changeEvent: l = "change",
|
|
196
|
+
valueField: s,
|
|
197
|
+
label: c
|
|
198
|
+
} = t.schema, r = e && ["Switch", "Checkbox"].includes(e), b = `on${me(l)}`, S = {
|
|
199
|
+
[b]: (...w) => {
|
|
200
|
+
const [q] = w, T = q ? q.target : null, Z = T ? r ? T.checked : T.value : q;
|
|
201
|
+
t.setFormModel(a, Z, t.schema), d[b] && d[b](...w);
|
|
202
|
+
}
|
|
203
|
+
}, g = W.get(e), {
|
|
204
|
+
autoSetPlaceHolder: f = !0,
|
|
205
|
+
size: y
|
|
206
|
+
} = t.formProps, d = {
|
|
207
|
+
allowClear: !0,
|
|
208
|
+
size: y,
|
|
209
|
+
...n(x),
|
|
210
|
+
disabled: n(R),
|
|
211
|
+
readonly: n(j)
|
|
212
|
+
}, P = (H = z().find((w) => w.max)) == null ? void 0 : H.max;
|
|
213
|
+
if (P && (d["show-count"] = d["show-count"] ?? !0, d.maxlength = d.maxlength ?? P), !d.disabled && f && e !== "RangePicker" && e) {
|
|
214
|
+
const w = typeof c == "string" ? c : "";
|
|
215
|
+
d.placeholder = ((J = n(x)) == null ? void 0 : J.placeholder) || $(e, w, L);
|
|
216
|
+
}
|
|
217
|
+
d.codeField = a, d.formValues = n(h);
|
|
218
|
+
const m = {
|
|
219
|
+
[s || (r ? "checked" : "value")]: t.formModel[a]
|
|
220
|
+
}, i = {
|
|
221
|
+
...d,
|
|
222
|
+
...S,
|
|
223
|
+
...m
|
|
224
|
+
};
|
|
225
|
+
if (!o)
|
|
226
|
+
return u(g, i, null);
|
|
227
|
+
const C = p(o) ? {
|
|
228
|
+
...o(n(h), {
|
|
229
|
+
disabled: n(R),
|
|
230
|
+
readonly: n(j)
|
|
231
|
+
})
|
|
232
|
+
} : {
|
|
233
|
+
default: () => o
|
|
234
|
+
};
|
|
235
|
+
return u(g, i, M(C) ? C : {
|
|
236
|
+
default: () => [C]
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function O() {
|
|
240
|
+
const {
|
|
241
|
+
label: o,
|
|
242
|
+
helpMessage: e,
|
|
243
|
+
helpComponentProps: a,
|
|
244
|
+
subLabel: l
|
|
245
|
+
} = t.schema, s = p(o) ? o(n(h)) : o, c = l ? u("span", null, [s, ne(" "), u("span", {
|
|
246
|
+
class: A("text-secondary")
|
|
247
|
+
}, [l])]) : s, r = p(e) ? e(n(h)) : e;
|
|
248
|
+
return !r || Array.isArray(r) && r.length === 0 ? c : u("span", null, [c, u(ce, N({
|
|
249
|
+
placement: "top",
|
|
250
|
+
class: A("label-help"),
|
|
251
|
+
text: r
|
|
252
|
+
}, a), null)]);
|
|
253
|
+
}
|
|
254
|
+
function Y() {
|
|
255
|
+
const {
|
|
256
|
+
itemProps: o = {},
|
|
257
|
+
slot: e,
|
|
258
|
+
render: a,
|
|
259
|
+
field: l,
|
|
260
|
+
suffix: s,
|
|
261
|
+
component: c
|
|
262
|
+
} = t.schema, {
|
|
263
|
+
labelCol: r,
|
|
264
|
+
wrapperCol: b
|
|
265
|
+
} = n(Q), {
|
|
266
|
+
colon: S
|
|
267
|
+
} = t.formProps, g = {
|
|
268
|
+
disabled: n(R),
|
|
269
|
+
readonly: n(j)
|
|
270
|
+
};
|
|
271
|
+
if (c === "Divider") {
|
|
272
|
+
let f;
|
|
273
|
+
return u(E, {
|
|
274
|
+
span: 24
|
|
275
|
+
}, {
|
|
276
|
+
default: () => [u(ae, n(x), M(f = O()) ? f : {
|
|
277
|
+
default: () => [f]
|
|
278
|
+
})]
|
|
279
|
+
});
|
|
280
|
+
} else if (c === "BasicTitle") {
|
|
281
|
+
let f;
|
|
282
|
+
return u(K.Item, {
|
|
283
|
+
labelCol: r,
|
|
284
|
+
wrapperCol: b,
|
|
285
|
+
name: l,
|
|
286
|
+
class: {
|
|
287
|
+
[A("suffix-item")]: !!s
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
default: () => [u(ie, n(x), M(f = O()) ? f : {
|
|
291
|
+
default: () => [f]
|
|
292
|
+
})]
|
|
293
|
+
});
|
|
294
|
+
} else {
|
|
295
|
+
const f = () => e ? U(_, e, n(h), g) : a ? a(n(h), g) : X(), y = !!s, d = p(s) ? s(n(h)) : s;
|
|
296
|
+
return c && G.includes(c) && t.schema && (t.schema.itemProps = {
|
|
297
|
+
autoLink: !1,
|
|
298
|
+
...t.schema.itemProps
|
|
299
|
+
}), u(K.Item, N({
|
|
300
|
+
name: l,
|
|
301
|
+
colon: S,
|
|
302
|
+
class: {
|
|
303
|
+
[A("suffix-item")]: y
|
|
304
|
+
}
|
|
305
|
+
}, o, {
|
|
306
|
+
label: O(),
|
|
307
|
+
rules: z(),
|
|
308
|
+
labelCol: r,
|
|
309
|
+
wrapperCol: b
|
|
310
|
+
}), {
|
|
311
|
+
default: () => [u("div", {
|
|
312
|
+
style: "display:flex"
|
|
313
|
+
}, [u("div", {
|
|
314
|
+
style: "flex:1;"
|
|
315
|
+
}, [f()]), y && u("span", {
|
|
316
|
+
class: A("suffix")
|
|
317
|
+
}, [d])])]
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
return () => {
|
|
322
|
+
let o;
|
|
323
|
+
const {
|
|
324
|
+
colProps: e = {},
|
|
325
|
+
colSlot: a,
|
|
326
|
+
renderColContent: l,
|
|
327
|
+
component: s,
|
|
328
|
+
slot: c
|
|
329
|
+
} = t.schema;
|
|
330
|
+
if (!(s && W.has(s) || c))
|
|
331
|
+
return null;
|
|
332
|
+
const {
|
|
333
|
+
baseColProps: r = {}
|
|
334
|
+
} = t.formProps, b = {
|
|
335
|
+
...r,
|
|
336
|
+
...e
|
|
337
|
+
}, {
|
|
338
|
+
isIfShow: S,
|
|
339
|
+
isShow: g
|
|
340
|
+
} = B(), f = n(h), y = {
|
|
341
|
+
disabled: n(R),
|
|
342
|
+
readonly: n(j)
|
|
343
|
+
}, d = () => a ? U(_, a, f, y) : l ? l(f, y) : Y();
|
|
344
|
+
return S && se(u(E, N(b, {
|
|
345
|
+
class: A()
|
|
346
|
+
}), M(o = d()) ? o : {
|
|
347
|
+
default: () => [o]
|
|
348
|
+
}), [[le, g]]);
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
});
|
|
2
352
|
export {
|
|
3
|
-
|
|
353
|
+
De as default
|
|
4
354
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Grid as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { useEventListener as
|
|
4
|
-
const { useBreakpoint:
|
|
5
|
-
var
|
|
1
|
+
import { Grid as f } from "ant-design-vue";
|
|
2
|
+
import { ref as c, computed as L, unref as p } from "vue";
|
|
3
|
+
import { useEventListener as l } from "@aplus-frontend/hooks";
|
|
4
|
+
const { useBreakpoint: h } = f;
|
|
5
|
+
var w = /* @__PURE__ */ ((t) => (t.XS = "XS", t.SM = "SM", t.MD = "MD", t.LG = "LG", t.XL = "XL", t.XXL = "XXL", t))(w || {}), v = /* @__PURE__ */ ((t) => (t[t.XS = 320] = "XS", t[t.SM = 640] = "SM", t[t.MD = 768] = "MD", t[t.LG = 960] = "LG", t[t.XL = 1280] = "XL", t[t.XXL = 1536] = "XXL", t))(v || {});
|
|
6
6
|
const e = /* @__PURE__ */ new Map();
|
|
7
7
|
e.set(
|
|
8
8
|
"XS",
|
|
@@ -34,7 +34,7 @@ e.set(
|
|
|
34
34
|
1536
|
|
35
35
|
/* XXL */
|
|
36
36
|
);
|
|
37
|
-
const
|
|
37
|
+
const n = [
|
|
38
38
|
"XS",
|
|
39
39
|
"SM",
|
|
40
40
|
"MD",
|
|
@@ -44,35 +44,36 @@ const X = [
|
|
|
44
44
|
/* XXL */
|
|
45
45
|
];
|
|
46
46
|
function W() {
|
|
47
|
-
const t =
|
|
48
|
-
const
|
|
49
|
-
for (let s =
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
47
|
+
const t = c(window.innerWidth), d = h(), r = L(() => {
|
|
48
|
+
const o = p(d);
|
|
49
|
+
for (let s = n.length - 1; s > 0; s--) {
|
|
50
|
+
const X = n[s], M = X.toLowerCase();
|
|
51
|
+
if (o[M])
|
|
52
|
+
return X;
|
|
53
53
|
}
|
|
54
|
-
}), a =
|
|
55
|
-
if (
|
|
56
|
-
return e.get(
|
|
54
|
+
}), a = L(() => {
|
|
55
|
+
if (r.value)
|
|
56
|
+
return e.get(r.value);
|
|
57
57
|
});
|
|
58
58
|
function i() {
|
|
59
|
-
const
|
|
60
|
-
t.value =
|
|
59
|
+
const o = document.body.clientWidth;
|
|
60
|
+
t.value = o;
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return l({
|
|
63
63
|
el: window,
|
|
64
64
|
name: "resize",
|
|
65
65
|
listener: () => {
|
|
66
66
|
i();
|
|
67
67
|
}
|
|
68
68
|
}), i(), {
|
|
69
|
-
screenRef:
|
|
69
|
+
screenRef: r,
|
|
70
70
|
widthRef: a,
|
|
71
71
|
realWidthRef: t
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
v as ScreenEnum,
|
|
76
|
+
w as SizeEnum,
|
|
76
77
|
e as screenMap,
|
|
77
78
|
W as useBreakpoint
|
|
78
79
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { tryOnUnmounted as t } from "@vueuse/core";
|
|
2
|
+
import { add as e, del as n } from "../component-map.mjs";
|
|
3
|
+
import { isPascalCase as i } from "../../utils/index.mjs";
|
|
4
|
+
function f(r, o) {
|
|
5
|
+
if (!i(r))
|
|
6
|
+
throw new Error("compName must be in PascalCase");
|
|
7
|
+
e(r, o), t(() => {
|
|
8
|
+
n(r);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
f as useComponentRegister
|
|
13
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { unref as o, nextTick as tt, toRaw as
|
|
2
|
-
import { isFunction as
|
|
1
|
+
import { unref as o, nextTick as tt, toRaw as J } from "vue";
|
|
2
|
+
import { set as Y, isFunction as Q, get as nt, cloneDeep as I, isString as D, isObject as A, isArray as T, uniqBy as et, isNil as U } from "lodash-unified";
|
|
3
3
|
import { isDef as W } from "../../utils/index.mjs";
|
|
4
4
|
import { deepMerge as it } from "@aplus-frontend/utils";
|
|
5
5
|
import { handleInputNumberValue as ot, isIncludeSimpleComponents as B, dateItemType as ct, defaultValueComponents as rt } from "../helper.mjs";
|
|
@@ -46,12 +46,12 @@ function bt({
|
|
|
46
46
|
}) {
|
|
47
47
|
async function x() {
|
|
48
48
|
const { resetFunc: t, submitOnReset: n } = o(F);
|
|
49
|
-
t &&
|
|
49
|
+
t && Q(t) && await t(), o(f) && (Object.keys(u).forEach((e) => {
|
|
50
50
|
const l = o(s).find((a) => a.field === e), i = l == null ? void 0 : l.defaultValueObj, p = Object.keys(i || {});
|
|
51
51
|
p.length && p.map((a) => {
|
|
52
52
|
u[a] = i[a];
|
|
53
53
|
}), u[e] = ut(l, y, e);
|
|
54
|
-
}), tt(() =>
|
|
54
|
+
}), tt(() => j()), r("reset", J(u)), n && S());
|
|
55
55
|
}
|
|
56
56
|
const C = () => o(s).map((t) => [...t.fields || [], t.field]).flat(1).filter(Boolean);
|
|
57
57
|
async function V(t) {
|
|
@@ -65,15 +65,15 @@ function bt({
|
|
|
65
65
|
let a = nt(t, i);
|
|
66
66
|
const R = Reflect.has(t, i);
|
|
67
67
|
a = ot(p == null ? void 0 : p.component, a);
|
|
68
|
-
const { componentProps:
|
|
69
|
-
let h =
|
|
70
|
-
typeof
|
|
68
|
+
const { componentProps: G } = p || {};
|
|
69
|
+
let h = G;
|
|
70
|
+
typeof G == "function" && (h = h({
|
|
71
71
|
formModel: o(u),
|
|
72
72
|
formActionType: k
|
|
73
73
|
}));
|
|
74
|
-
const
|
|
75
|
-
if (R ||
|
|
76
|
-
const d =
|
|
74
|
+
const H = st(i, t) || lt(i, t);
|
|
75
|
+
if (R || H) {
|
|
76
|
+
const d = H || a;
|
|
77
77
|
if (_(i))
|
|
78
78
|
if (Array.isArray(d)) {
|
|
79
79
|
const b = [];
|
|
@@ -157,11 +157,11 @@ function bt({
|
|
|
157
157
|
A(t) && n.push(t), T(t) && (n = [...t]);
|
|
158
158
|
const c = {}, e = E();
|
|
159
159
|
n.forEach((l) => {
|
|
160
|
-
!B(l.component) && Reflect.has(l, "field") && l.field && !
|
|
160
|
+
!B(l.component) && Reflect.has(l, "field") && l.field && !U(l.defaultValue) && (!(l.field in e) || U(e[l.field])) && (c[l.field] = l.defaultValue);
|
|
161
161
|
}), V(c);
|
|
162
162
|
}
|
|
163
163
|
function E() {
|
|
164
|
-
return o(f) ? w(
|
|
164
|
+
return o(f) ? w(J(o(u))) : {};
|
|
165
165
|
}
|
|
166
166
|
function _(t) {
|
|
167
167
|
return o(s).some((n) => n.field === t && n.component ? ct.includes(n.component) : !1);
|
|
@@ -182,18 +182,18 @@ function bt({
|
|
|
182
182
|
const c = await ((e = o(f)) == null ? void 0 : e.validate(n));
|
|
183
183
|
return w(c);
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
185
|
+
async function j(t) {
|
|
186
186
|
var n;
|
|
187
187
|
await ((n = o(f)) == null ? void 0 : n.clearValidate(t));
|
|
188
188
|
}
|
|
189
|
-
async function
|
|
189
|
+
async function z(t, n) {
|
|
190
190
|
var c;
|
|
191
191
|
await ((c = o(f)) == null ? void 0 : c.scrollToField(t, n));
|
|
192
192
|
}
|
|
193
|
-
async function
|
|
193
|
+
async function S(t) {
|
|
194
194
|
t && t.preventDefault();
|
|
195
195
|
const { submitFunc: n } = o(F);
|
|
196
|
-
if (n &&
|
|
196
|
+
if (n && Q(n)) {
|
|
197
197
|
await n();
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
@@ -216,15 +216,15 @@ function bt({
|
|
|
216
216
|
setProps: K,
|
|
217
217
|
removeSchemaByField: P,
|
|
218
218
|
appendSchemaByField: N,
|
|
219
|
-
clearValidate:
|
|
219
|
+
clearValidate: j,
|
|
220
220
|
validateFields: O,
|
|
221
221
|
validate: g,
|
|
222
|
-
submit:
|
|
223
|
-
scrollToField:
|
|
222
|
+
submit: S,
|
|
223
|
+
scrollToField: z
|
|
224
224
|
};
|
|
225
225
|
return {
|
|
226
|
-
handleSubmit:
|
|
227
|
-
clearValidate:
|
|
226
|
+
handleSubmit: S,
|
|
227
|
+
clearValidate: j,
|
|
228
228
|
validate: g,
|
|
229
229
|
validateFields: O,
|
|
230
230
|
getFieldsValue: E,
|
|
@@ -234,7 +234,7 @@ function bt({
|
|
|
234
234
|
removeSchemaByField: P,
|
|
235
235
|
resetFields: x,
|
|
236
236
|
setFieldsValue: V,
|
|
237
|
-
scrollToField:
|
|
237
|
+
scrollToField: z
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
function ut(r, F, u) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isObject as
|
|
2
|
-
import
|
|
3
|
-
import { unref as
|
|
1
|
+
import { set as T, isObject as l, isArray as D, isFunction as x, isString as F, get as V, unset as g, isNil as j, isEmpty as E, cloneDeep as K } from "lodash-unified";
|
|
2
|
+
import b from "dayjs";
|
|
3
|
+
import { unref as O } from "vue";
|
|
4
4
|
function S(y, o, m) {
|
|
5
5
|
const u = /^\[(.+)\]$/;
|
|
6
6
|
if (u.test(y)) {
|
|
@@ -19,7 +19,7 @@ function $(y, o, m) {
|
|
|
19
19
|
const f = y.match(u);
|
|
20
20
|
if (f && f[1]) {
|
|
21
21
|
const h = f[1].split(",");
|
|
22
|
-
return o =
|
|
22
|
+
return o = l(o) ? o : {}, h.forEach((p) => {
|
|
23
23
|
T(m, p.trim(), o[p.trim()]);
|
|
24
24
|
}), !0;
|
|
25
25
|
}
|
|
@@ -33,7 +33,7 @@ function R({
|
|
|
33
33
|
}) {
|
|
34
34
|
function f(i) {
|
|
35
35
|
var e, s;
|
|
36
|
-
if (!
|
|
36
|
+
if (!l(i))
|
|
37
37
|
return {};
|
|
38
38
|
const r = {};
|
|
39
39
|
for (const a of Object.entries(i)) {
|
|
@@ -41,13 +41,13 @@ function R({
|
|
|
41
41
|
const [n] = a;
|
|
42
42
|
if (!n || D(t) && t.length === 0 || x(t))
|
|
43
43
|
continue;
|
|
44
|
-
const c =
|
|
45
|
-
|
|
44
|
+
const c = O(u).transformDateFunc;
|
|
45
|
+
l(t) && (t = c == null ? void 0 : c(t)), D(t) && ((e = t[0]) != null && e.format) && ((s = t[1]) != null && s.format) && (t = t.map((A) => c == null ? void 0 : c(A))), F(t) && (t = t.trim()), !S(n, t, r) && !$(n, t, r) && T(r, n, t);
|
|
46
46
|
}
|
|
47
47
|
return h(r);
|
|
48
48
|
}
|
|
49
49
|
function h(i) {
|
|
50
|
-
const r =
|
|
50
|
+
const r = O(u).fieldMapToTime;
|
|
51
51
|
if (!r || !Array.isArray(r))
|
|
52
52
|
return i;
|
|
53
53
|
for (const [
|
|
@@ -62,20 +62,20 @@ function R({
|
|
|
62
62
|
continue;
|
|
63
63
|
}
|
|
64
64
|
const [n, c] = V(i, e), [A, Y] = Array.isArray(t) ? t : [t, t];
|
|
65
|
-
!
|
|
65
|
+
!j(n) && !E(n) && T(i, s, p(n, A)), !j(c) && !E(c) && T(i, a, p(c, Y)), g(i, e);
|
|
66
66
|
}
|
|
67
67
|
return i;
|
|
68
68
|
}
|
|
69
69
|
function p(i, r) {
|
|
70
|
-
return r === "timestamp" ?
|
|
70
|
+
return r === "timestamp" ? b(i).unix() : r === "timestampStartDay" ? b(i).startOf("day").unix() : b(i).format(r);
|
|
71
71
|
}
|
|
72
72
|
function d() {
|
|
73
|
-
const i =
|
|
73
|
+
const i = O(o), r = {};
|
|
74
74
|
i.forEach((e) => {
|
|
75
75
|
const { defaultValue: s, defaultValueObj: a } = e, t = Object.keys(a || {});
|
|
76
76
|
t.length && t.map((n) => {
|
|
77
77
|
r[n] = a[n], m[n] === void 0 && (m[n] = a[n]);
|
|
78
|
-
}),
|
|
78
|
+
}), j(s) || (r[e.field] = s, m[e.field] === void 0 && (m[e.field] = s));
|
|
79
79
|
}), y.value = K(r);
|
|
80
80
|
}
|
|
81
81
|
return { handleFormValues: f, initDefault: d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as i,
|
|
1
|
+
import { ref as i, unref as o, nextTick as f, onUnmounted as d, watch as u } from "vue";
|
|
2
2
|
import { isProdMode as c } from "@aplus-frontend/utils";
|
|
3
3
|
import { getDynamicProps as h } from "../../utils/index.mjs";
|
|
4
4
|
function S(n) {
|
|
@@ -9,12 +9,12 @@ function S(n) {
|
|
|
9
9
|
throw new Error(
|
|
10
10
|
"The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"
|
|
11
11
|
);
|
|
12
|
-
return await
|
|
12
|
+
return await f(), e;
|
|
13
13
|
}
|
|
14
14
|
function l(e) {
|
|
15
|
-
c() &&
|
|
15
|
+
c() && d(() => {
|
|
16
16
|
r.value = null, s.value = null;
|
|
17
|
-
}), !(o(s) && c() && e === o(r)) && (r.value = e, s.value = !0,
|
|
17
|
+
}), !(o(s) && c() && e === o(r)) && (r.value = e, s.value = !0, u(
|
|
18
18
|
() => n,
|
|
19
19
|
() => {
|
|
20
20
|
n && e.setProps(h(n));
|