@aplus-frontend/ui 0.0.1-beta.9 → 0.0.1
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 +196 -138
- package/es/src/ap-action/group/index.vue.mjs +35 -27
- package/es/src/ap-action/interface.d.ts +2 -1
- package/es/src/ap-action/item/index.vue2.mjs +19 -19
- package/es/src/ap-action/item-dropdown/index.vue.mjs +34 -34
- package/es/src/ap-action/style/item.css +6 -1
- 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 +86 -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-download/ap-download.vue.d.ts +41 -0
- package/es/src/ap-download/ap-download.vue.mjs +56 -0
- package/es/src/ap-download/ap-download.vue2.mjs +4 -0
- package/es/src/ap-download/hooks/index.d.ts +9 -0
- package/es/src/ap-download/hooks/index.mjs +20 -0
- package/es/src/ap-download/index.d.ts +4 -0
- package/es/src/ap-download/index.mjs +2 -0
- package/es/src/ap-download/interface.d.ts +33 -0
- package/es/src/ap-download/interface.mjs +1 -0
- package/es/src/ap-download/style/ap-download.css +51 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +16 -16
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +54 -48
- package/es/src/ap-field/interface.d.ts +3 -3
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +6 -6
- package/es/src/ap-field/switch/index.vue.d.ts +2 -2
- package/es/src/ap-field/switch/index.vue.mjs +31 -31
- package/es/src/ap-field/text/index.vue.d.ts +4 -1
- package/es/src/ap-field/text/index.vue.mjs +11 -10
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +8 -8
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +10 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -11
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +60 -2
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +2 -56
- package/es/src/ap-form/ap-form-item.vue.d.ts +23 -5
- package/es/src/ap-form/ap-form-item.vue.mjs +149 -2
- package/es/src/ap-form/ap-form-item.vue2.mjs +2 -80
- 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/context.d.ts +11 -0
- package/es/src/ap-form/context.mjs +17 -0
- package/es/src/ap-form/index.d.ts +15 -939
- package/es/src/ap-form/index.mjs +24 -11
- package/es/src/ap-form/interface.d.ts +62 -1
- package/es/src/ap-form/interface.mjs +1 -0
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +61 -0
- package/es/src/ap-form/items/checkbox/index.vue2.mjs +4 -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 +9 -1
- package/es/src/ap-form/items/index.mjs +8 -0
- package/es/src/ap-form/items/interface.d.ts +39 -6
- 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 +0 -3
- package/es/src/ap-form/items/text/index.vue.mjs +24 -31
- 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/modal-form/index.vue.d.ts +378 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +239 -0
- package/es/src/ap-form/modal-form/index.vue2.mjs +4 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +79 -0
- package/es/src/ap-form/search-form/index.vue.mjs +209 -0
- package/es/src/ap-form/search-form/index.vue2.mjs +4 -0
- package/es/src/ap-form/style/ap-form-item.css +46 -0
- package/es/src/ap-form/style/modal-form.css +17 -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 +42 -0
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +62 -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 +19 -0
- package/es/src/ap-table/ap-table.vue.d.ts +189 -0
- package/es/src/ap-table/ap-table.vue.mjs +267 -0
- package/es/src/ap-table/ap-table.vue2.mjs +4 -0
- package/es/src/ap-table/components/index/index.vue.d.ts +28 -0
- package/es/src/ap-table/components/index/index.vue.mjs +4 -0
- package/es/src/ap-table/components/index/index.vue2.mjs +21 -0
- package/es/src/ap-table/components/interface.d.ts +20 -0
- package/es/src/ap-table/components/style/index.css +12 -0
- package/es/src/ap-table/components/style/pagination.css +12 -0
- package/es/src/ap-table/constants.d.ts +11075 -0
- package/es/src/ap-table/constants.mjs +55 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +82 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +142 -0
- package/es/src/ap-table/index.d.ts +5 -0
- package/es/src/ap-table/index.mjs +6 -0
- package/es/src/ap-table/interface.d.ts +184 -0
- package/es/src/ap-table/interface.mjs +1 -0
- package/es/src/ap-table/style/ap-table.css +46 -0
- package/es/src/ap-table/utils.d.ts +14 -0
- package/es/src/ap-table/utils.mjs +35 -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/basic/help.vue.d.ts +4 -4
- package/es/src/basic/index.d.ts +8 -8
- package/es/src/components.d.ts +2 -0
- package/es/src/config-provider/config-provider-props.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +11 -11
- package/es/src/config-provider/config-provider.mjs +26 -33
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +31 -31
- package/es/src/design-token/index.mjs +8 -2
- package/es/src/hooks/useControllableValue.mjs +11 -14
- package/es/src/icon-picker/icon-picker.vue.d.ts +1 -1
- package/es/src/icon-picker/index.d.ts +15 -15
- package/es/src/index.d.ts +7 -0
- package/es/src/index.mjs +226 -161
- package/es/src/locale/lang/en.mjs +14 -1
- package/es/src/locale/lang/zh-cn.mjs +14 -1
- package/es/src/modal/basic.vue.d.ts +1 -2
- package/es/src/modal/basic.vue2.mjs +10 -11
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/index.d.ts +2 -2
- package/es/src/modal/style/index.css +0 -103
- package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +3 -3
- package/es/src/pro-form/index.d.ts +4 -1
- package/es/src/pro-form/index.mjs +12 -9
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/style/index.css +0 -3
- package/es/src/pro-form/style/table-form.css +104 -0
- package/es/src/pro-form/table-form-inner.vue.d.ts +44 -0
- package/es/src/pro-form/table-form-inner.vue.mjs +176 -0
- package/es/src/pro-form/table-form-inner.vue2.mjs +4 -0
- package/es/src/pro-form/table-form.vue.d.ts +42 -0
- package/es/src/pro-form/table-form.vue.mjs +41 -0
- package/es/src/pro-form/table-form.vue2.mjs +4 -0
- package/es/src/pro-form/types/form.d.ts +1 -1
- package/es/src/pro-form/types/table-form.d.ts +37 -0
- package/es/src/pro-form/types/table-form.mjs +1 -0
- package/es/src/pro-table/hooks/use-data-source.mjs +45 -46
- package/es/src/prompt/utils.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +12 -12
- package/es/src/theme/antd-global-overwrite/admin/alert.css +47 -0
- package/es/src/theme/antd-global-overwrite/admin/button.css +38 -0
- package/es/src/theme/antd-global-overwrite/admin/form.css +65 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +536 -0
- package/es/src/theme/antd-global-overwrite/admin/message.css +17 -0
- package/es/src/theme/antd-global-overwrite/admin/modal.css +117 -0
- package/es/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
- package/es/src/theme/antd-global-overwrite/admin/steps.css +103 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +81 -0
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +47 -0
- package/es/src/theme/antd-global-overwrite/aplus/button.css +38 -0
- package/es/src/theme/antd-global-overwrite/aplus/form.css +90 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +565 -0
- package/es/src/theme/antd-global-overwrite/aplus/message.css +17 -0
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +111 -0
- package/es/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +103 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/es/src/theme/ap-action/item.css +6 -1
- package/es/src/theme/ap-download/ap-download.css +51 -0
- package/es/src/theme/ap-form/ap-form-item.css +46 -0
- package/es/src/theme/ap-form/modal-form.css +17 -0
- package/es/src/theme/ap-form/search-form.css +3 -0
- package/es/src/theme/ap-layout/ap-info-layout.css +19 -0
- package/es/src/theme/ap-table/ap-table-index.css +12 -0
- package/es/src/theme/ap-table/ap-table-pagination.css +12 -0
- package/es/src/theme/ap-table/ap-table.css +46 -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/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 +0 -103
- package/es/src/theme/pro-form/form.css +0 -3
- package/es/src/theme/pro-form/table-form-inner.css +104 -0
- package/es/src/theme/work-order-modal/index.css +3 -0
- package/es/src/utils/config-provider-preset.d.ts +79 -0
- package/es/src/utils/config-provider-preset.mjs +30 -0
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/utils/index.mjs +29 -17
- package/es/src/utils/slot.d.ts +7 -1
- package/es/src/utils/slot.mjs +25 -15
- 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 +182 -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/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +2 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/style/item.css +6 -1
- 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-download/ap-download.vue.d.ts +41 -0
- package/lib/src/ap-download/ap-download.vue.js +1 -0
- package/lib/src/ap-download/ap-download.vue2.js +1 -0
- package/lib/src/ap-download/hooks/index.d.ts +9 -0
- package/lib/src/ap-download/hooks/index.js +1 -0
- package/lib/src/ap-download/index.d.ts +4 -0
- package/lib/src/ap-download/index.js +1 -0
- package/lib/src/ap-download/interface.d.ts +33 -0
- package/lib/src/ap-download/interface.js +1 -0
- package/lib/src/ap-download/style/ap-download.css +51 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +3 -3
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +4 -1
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +10 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +23 -5
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- 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/context.d.ts +11 -0
- package/lib/src/ap-form/context.js +1 -0
- package/lib/src/ap-form/index.d.ts +15 -939
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +62 -1
- package/lib/src/ap-form/interface.js +1 -0
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -0
- package/lib/src/ap-form/items/checkbox/index.vue2.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 +9 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +39 -6
- 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 +0 -3
- package/lib/src/ap-form/items/text/index.vue.js +1 -1
- 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/modal-form/index.vue.d.ts +378 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +79 -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.css +46 -0
- package/lib/src/ap-form/style/modal-form.css +17 -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 +42 -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 +19 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +189 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -0
- package/lib/src/ap-table/components/index/index.vue.d.ts +28 -0
- package/lib/src/ap-table/components/index/index.vue.js +1 -0
- package/lib/src/ap-table/components/index/index.vue2.js +1 -0
- package/lib/src/ap-table/components/interface.d.ts +20 -0
- package/lib/src/ap-table/components/style/index.css +12 -0
- package/lib/src/ap-table/components/style/pagination.css +12 -0
- package/lib/src/ap-table/constants.d.ts +11075 -0
- package/lib/src/ap-table/constants.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +82 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -0
- package/lib/src/ap-table/index.d.ts +5 -0
- package/lib/src/ap-table/index.js +1 -0
- package/lib/src/ap-table/interface.d.ts +184 -0
- package/lib/src/ap-table/interface.js +1 -0
- package/lib/src/ap-table/style/ap-table.css +46 -0
- package/lib/src/ap-table/utils.d.ts +14 -0
- package/lib/src/ap-table/utils.js +1 -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/basic/help.vue.d.ts +4 -4
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.d.ts +8 -8
- package/lib/src/components.d.ts +2 -0
- package/lib/src/config-provider/config-provider-props.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +11 -11
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +31 -31
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.d.ts +1 -1
- package/lib/src/icon-picker/index.d.ts +15 -15
- package/lib/src/index.d.ts +7 -0
- package/lib/src/index.js +1 -1
- 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 +1 -2
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/index.d.ts +2 -2
- package/lib/src/modal/style/index.css +0 -103
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-cascader.vue.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +3 -3
- package/lib/src/pro-form/index.d.ts +4 -1
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/style/index.css +0 -3
- package/lib/src/pro-form/style/table-form.css +104 -0
- package/lib/src/pro-form/table-form-inner.vue.d.ts +44 -0
- package/lib/src/pro-form/table-form-inner.vue.js +1 -0
- package/lib/src/pro-form/table-form-inner.vue2.js +1 -0
- package/lib/src/pro-form/table-form.vue.d.ts +42 -0
- package/lib/src/pro-form/table-form.vue.js +1 -0
- package/lib/src/pro-form/table-form.vue2.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +1 -1
- package/lib/src/pro-form/types/table-form.d.ts +37 -0
- package/lib/src/pro-form/types/table-form.js +1 -0
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.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.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/hooks/use-data-source.js +1 -1
- package/lib/src/prompt/utils.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +12 -12
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +47 -0
- package/lib/src/theme/antd-global-overwrite/admin/button.css +38 -0
- package/lib/src/theme/antd-global-overwrite/admin/form.css +65 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +536 -0
- package/lib/src/theme/antd-global-overwrite/admin/message.css +17 -0
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +117 -0
- package/lib/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +103 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +81 -0
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +47 -0
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +38 -0
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +90 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +565 -0
- package/lib/src/theme/antd-global-overwrite/aplus/message.css +17 -0
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +111 -0
- package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +103 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/lib/src/theme/ap-action/item.css +6 -1
- package/lib/src/theme/ap-download/ap-download.css +51 -0
- package/lib/src/theme/ap-form/ap-form-item.css +46 -0
- package/lib/src/theme/ap-form/modal-form.css +17 -0
- package/lib/src/theme/ap-form/search-form.css +3 -0
- package/lib/src/theme/ap-layout/ap-info-layout.css +19 -0
- package/lib/src/theme/ap-table/ap-table-index.css +12 -0
- package/lib/src/theme/ap-table/ap-table-pagination.css +12 -0
- package/lib/src/theme/ap-table/ap-table.css +46 -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/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 +0 -103
- package/lib/src/theme/pro-form/form.css +0 -3
- package/lib/src/theme/pro-form/table-form-inner.css +104 -0
- package/lib/src/theme/work-order-modal/index.css +3 -0
- 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/slot.d.ts +7 -1
- package/lib/src/utils/slot.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 +17 -7
- package/es/src/ap-form/ap-form.d.ts +0 -1681
- package/es/src/ap-form/ap-form.mjs +0 -5
- package/lib/src/ap-form/ap-form.d.ts +0 -1681
- package/lib/src/ap-form/ap-form.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./apUpload.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type FileUploadType = 'picture' | 'singleFile' | 'multipleFile';
|
|
4
|
+
/**
|
|
5
|
+
* 是否需要返回图片名称
|
|
6
|
+
*/
|
|
7
|
+
export type NeedNameModel = boolean & {
|
|
8
|
+
nameKey?: string;
|
|
9
|
+
pathKey?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 是否需要返回图片名称 - 默认值
|
|
13
|
+
*/
|
|
14
|
+
export declare enum NeedNameKeyDefault {
|
|
15
|
+
nameKey = "name",
|
|
16
|
+
pathKey = "path"
|
|
17
|
+
}
|
|
18
|
+
export type FileUploadProps = {
|
|
19
|
+
/**
|
|
20
|
+
* oss DirName 必填
|
|
21
|
+
*/
|
|
22
|
+
dirName: string;
|
|
23
|
+
/**
|
|
24
|
+
* 组件类型
|
|
25
|
+
* singlePicture - 单图片
|
|
26
|
+
* multiplePicture - 多图片
|
|
27
|
+
* singleFile - 单文件
|
|
28
|
+
* multipleFile - 多文件
|
|
29
|
+
* 默认单文件
|
|
30
|
+
*/
|
|
31
|
+
type?: FileUploadType;
|
|
32
|
+
/**
|
|
33
|
+
* 文件大小限制,单位(MB)
|
|
34
|
+
* 默认500MB
|
|
35
|
+
*/
|
|
36
|
+
maxSize?: number;
|
|
37
|
+
/**
|
|
38
|
+
* 接受上传的文件类型
|
|
39
|
+
* 默认不限制
|
|
40
|
+
*/
|
|
41
|
+
accept?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 是否需要返回图片名称
|
|
44
|
+
* 默认false
|
|
45
|
+
* 可以传配置项nameKey,pathKey
|
|
46
|
+
* 默认为name,path
|
|
47
|
+
*/
|
|
48
|
+
needName?: NeedNameModel;
|
|
49
|
+
};
|
|
50
|
+
export type SingleFileProps = FileUploadProps & {
|
|
51
|
+
/**
|
|
52
|
+
* 主标题
|
|
53
|
+
*/
|
|
54
|
+
title?: string;
|
|
55
|
+
/**
|
|
56
|
+
* 副标题
|
|
57
|
+
*/
|
|
58
|
+
subTitle?: string;
|
|
59
|
+
};
|
|
60
|
+
export type MultipleFileProps = FileUploadProps & {
|
|
61
|
+
/**
|
|
62
|
+
* 主标题
|
|
63
|
+
*/
|
|
64
|
+
title?: string;
|
|
65
|
+
/**
|
|
66
|
+
* 副标题
|
|
67
|
+
*/
|
|
68
|
+
subTitle?: string | VNode;
|
|
69
|
+
/**
|
|
70
|
+
* 限制上传数量
|
|
71
|
+
*/
|
|
72
|
+
maxCount?: number;
|
|
73
|
+
};
|
|
74
|
+
export type PictureProps = FileUploadProps & {
|
|
75
|
+
/**
|
|
76
|
+
* 标题
|
|
77
|
+
*/
|
|
78
|
+
title?: string;
|
|
79
|
+
/**
|
|
80
|
+
* 限制上传数量
|
|
81
|
+
*/
|
|
82
|
+
maxCount?: number;
|
|
83
|
+
};
|
|
84
|
+
export type BeforeUpload = (file: File) => boolean;
|
|
85
|
+
export type CustomRequest = (cb: {
|
|
86
|
+
onProgress: (p: number) => void;
|
|
87
|
+
onError: (msg: string) => void;
|
|
88
|
+
onSuccess: (saveUrl: string) => void;
|
|
89
|
+
file: File;
|
|
90
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=(e=>(e.nameKey="name",e.pathKey="path",e))(t||{});exports.NeedNameKeyDefault=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXtSURBVHic7Z3NbxtFGMafWW/sfDjBtKEp4suFIIrEwT5QWolDe0Kc6AEkEBJtkDhwa/6Ckr8g7RUkWigIaEHkxJHAAVFailMOVSWQ6p6golSu2rQ0ifflsHE8s+vY61l7d8Z+f9Jm/K73Y/I++3g+1psADMMwDMMwDMMwDMMwTDKIdm9+W6GiJ3BcCJQIKAIoJFMtbWqbyxJ5+PH1slhKu0L9ZlsBv7lMiwQcS7IyvUYANc/DwhtlcSLtuvSLlgKeW6EKgFLCdeknP2wQ5t4qi2raFek1TnDFOd95JdqMSVosjg9mBJbPVmiQLkoAAQeerVCJgIr8JgU2tj32gPk3B+gjVXEgAUcCMQYtFsDiV5foAwwIigO//I2uwe9tDj4Cp+8D83NlUUu7KnFQHOgBBbkNGeiFcHSMsPxFhYqxMpgyaieGUCAChmXxCCXysHzmIh1MJ/3xUT5CP79EwWZjmFhaczA/Z9lQQxHws1+HWsAGVQGskECVPNxO+uRC4JrwcPntfWIl0vZycIYFNAYCqiCcfOfF9kMeRcBPL7KAxiFQra/j0NyB1h/toZkYuafGsQExoehksHzq59a9ZcWBpy+wAw2mSvWwE0MOVC4FLk0qiyKD4wigOPDUL/oOdB1gahTIuf5rJsyGB6zXgdp9/7UWHvbILgzOhfqDXEhLhDjjANN5YDwLZET3+w9LnHGAUdfPVcbROx4EXpM1cxUBg7ZFtPih0U3hNPcftjgjgMkccOue1v6HAZxsBG5oO0LzPkzE0s2Ez8m0J+vq5ZtIvdnQ3oERS27zusd1tPNdVI4jB7oO1N1v2EvtvG0roKYDdfcb9lI7bxKKgI2rousLosWBmQjo5lsi9BEa9SLI54DyY8DuKf810z13HwD/3gMuXAfuPPDXdWvClm3g1saidTyRA159noWLSz7nLzvHge+uAHfXECn/MupAnpoupDbxS0+xeL0knwPKj0fPv0zrTkwHdkzErjMTYPdU9PzLhD9CIzDJ7us5kzm9vqCWA5n+kJgDmf7ADrQcaxx4b82fide+J9YljgB25YHRkWTOp4tO/oNf7PWvgk5lTG6uJiceAHjkn9N4NPKvONBrHqdtGRdH+ElNkqTPp4NO/kMOjLTEZMe4L2JSuA4wbcPYVSP/qbSB41ngyWxCJ7OI+L3Qxo9upsOZnqGTf737gUxf0Mk/jwMNYsuBDTo9Mw6eiTGKkIE6xeA20Ci4DbQcbgMtx5q50JurwJ//AP9tJHTChHAd4IVHgcKY3v49mQtNYibm6o3BEw/w53ev3ohxAFtmYlwn2cnsJInze8V2YNQ/zxGX2UcG8+v4oy6wd0Z/f538p+LA6Qng5acTOplFxJ8L5V5oqljTC2VaE9uBoOaAXz5oMGb6hEb+296R324npj/o5D/kQCZFetEG8lx2eujkv2UvlOey00En/9wLNQgeB1pOT8eBs9PAs9P+VwCzalcH129p1I7pyNF9arxWB26tAn/dAa787cdBQg7Mbz59O5FtNpqNBwsN+eMOQ1OOOMCuSWBmEniiAHz/h/9Y9rYCjmSAQ7PA+EhTNIBLE8qHx4BXngO+/h0KioB7Z/ybkTZ8DX0YGc8Cz+xU1ykC7sqzeKazp52A7D7zCX5dQxHQdVhA0wneCFcns1k862ABLYdnYiyHHWg5LKDlsICWwwJaDgtoOaFeqAmz8Fy2L7cVsE7Slg04Ni+W6Mk//uA44Vgi3AbKGwc9y7FZMTp1Yjg2O0ZQwAF9Zm+Q4WGE5bCAlrPtOHBrHcfGxTIhBzZ24NLcsq2AkDbi0sxShttAy2EBLSc4F1oTQCGtyjCdIaAmx8EndKseUEq0RkxXiHYC1oEVEAtoOEtyoAq4jgUng6OJVofpCg/4RI5FcINTF2gRhGPJVYmJjMCJuX1iXl3Vgo/PU4W4LTQKAay8u1+UW6xvzUfn2YnGIHDivf2q85pvteHDn6hEAkcAHBaEAgkeYiSBINQgUIXASh1YeP+AqKZdJ4ZhGIZhGIZhGMYM/gdZdKFsttMx9gAAAABJRU5ErkJggg==";exports.default=A;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./MultipleFile.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("../utils/returnData.js"),N=require("../hooks/useOss.js"),u=require("ant-design-vue"),F=require("@ant-design/icons-vue"),j=require("../utils/accept.js");require("../styles/multiple-file.css");const P=require("../../config-provider/hooks/use-namespace.js"),A={class:"multiple-file-context"},I={key:0},L={key:1},O=e.defineComponent({__name:"MultipleFile",setup(M){const{b:k}=P.useNamespace("ap-upload-multiple-file"),{put:B}=N.useOss(),T=e.inject("theme"),q=e.inject("dirName"),v=e.inject("accept")||"*",C=e.inject("maxSize")||500,R=e.inject("title")||"上传文件",f=e.inject("subTitle"),o=e.inject("maxCount"),i=e.inject("uploadingCount"),y=e.inject("beforeUpload"),_=e.inject("customRequest"),b=e.inject("getOssAccess"),a=e.inject("value"),p=[],c=e.inject("needName"),m=e.ref(null);e.watch(()=>a==null?void 0:a.value,function(t){!m.value.fileList.length&&t&&e.nextTick(()=>{const s=t.map(n=>{const r=d.getPath(c,n),h=d.getName(c,n),x=new File([n],h,{});return x.response=r,x.uid=r,x});if(o&&s.length>o){u.message.warning(`文件初始化个数超过${o}个,后续上传的文件会与数据不同步`);return}s.forEach(n=>{l.push(n),p.push({uid:n.uid,path:n.response})}),m.value.fileList=s})});let l=[],w;function g(t){setTimeout(()=>{const s=m.value.fileList.findIndex(n=>n.uid===t.uid);s>=0&&m.value.fileList.splice(s,1)})}function E(t){if(o&&o>1&&l.length>=o)return clearTimeout(w),w=setTimeout(()=>{u.message.warning(`最多上传${o}个文件`)}),g(t),!1;if(typeof y=="function"){if(y(t)===!1)return g(t),!1}else{if(t.size>C*1024*1024)return u.message.warning(`文件大小不超过${C}MB`),g(t),!1;if(!j.fileMatchesAccept(t,v))return u.message.warning("不支持该格式的文件"),g(t),!1}o&&o===1&&(l=[],a.value=void 0),l.push(t)}async function D(t){if(i.value++,typeof _=="function"){_({onProgress:s=>{setTimeout(()=>{t.onProgress({percent:s})})},onError:s=>{u.message.warning(s||"网络异常"),setTimeout(()=>{t.onError({name:s,message:s})}),i.value--},onSuccess:s=>{setTimeout(()=>{t.onSuccess(s)}),a.value?a.value.push(d.getReturnData(c,s,t.file.name)):a.value=[d.getReturnData(c,s,t.file.name)],p.push({uid:t.file.uid,path:s}),i.value--},file:t.file});return}try{const s=await N.getOssInstance(b);t.file.oss=s,B({file:t.file,dirName:q,oss:s,successCallBack(n){t.onSuccess(n),a.value?a.value.push(d.getReturnData(c,n,t.file.name)):a.value=[d.getReturnData(c,n,t.file.name)],p.push({uid:t.file.uid,path:n}),i.value--},errorCallBack(n){u.message.warning(n||"网络异常"),t.onError({name:n,message:n}),i.value--},progressCallBack(n){t.onProgress({percent:n})}})}catch(s){u.message.warning(typeof(s==null?void 0:s.message)=="string"?s.message:"网络异常"),t.onError({name:(s==null?void 0:s.message)||"网络异常",message:(s==null?void 0:s.message)||"网络异常"}),i.value--}}function S(t){var n;if(t.response){if(Array.isArray(a.value)){const r=p.findIndex(h=>h.uid===t.uid);r>=0&&(a==null||a.value.splice(r,1),p.splice(r,1)),a.value.length===0&&(a.value=void 0)}}else(n=t==null?void 0:t.oss)==null||n.pauseUpload();const s=l.findIndex(r=>r.uid===t.uid);return l.splice(s,1),Promise.resolve(!0)}return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(k)()]:!0,[e.unref(k)("admin")]:e.unref(T)==="admin"})},[e.createVNode(e.unref(u.Upload),{ref_key:"uploadRef",ref:m,accept:e.unref(v),multiple:"",maxCount:e.unref(o),progress:{strokeWidth:3,showInfo:!1,strokeColor:"#0070FF"},beforeUpload:E,customRequest:D,onRemove:S},{default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createVNode(e.unref(u.Button),{class:"file-btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(F.UploadOutlined)),e.createTextVNode(" "+e.toDisplayString(e.unref(R)),1)]),_:1}),e.createElementVNode("div",{class:"sub-title",onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"]))},[typeof e.unref(f)=="string"?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(e.unref(f)||`支持扩展名:${e.unref(j.getAcceptText)(e.unref(v))}`),1)):e.unref(f)?(e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f))))])):e.createCommentVNode("",!0)])])]),_:1},8,["accept","maxCount"])],2))}});exports.default=O;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Picture.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const m=require("../utils/returnData.js"),B=require("@ant-design/icons-vue"),_=require("../hooks/useOss.js"),E=require("../utils/accept.js"),r=require("ant-design-vue");require("../styles/picture.css");const A=require("../../config-provider/hooks/use-namespace.js"),M=["accept"],T={class:"picture-context"},z={class:"picture-item-box"},L=["src"],U={class:"picture-item-shadow"},G=["onClick"],H={key:0,class:"picture-item-uploading"},J=e.createElementVNode("div",null,"上传",-1),K={class:"picture-title"},Q={key:0},W={key:1},X=e.defineComponent({__name:"Picture",setup(Y){const{b:k}=A.useNamespace("ap-upload-picture"),{put:j}=_.useOss(),V=e.inject("theme"),q=e.inject("dirName"),h=e.inject("accept")||"image/*",v=e.inject("maxSize")||5,y=e.inject("title"),o=e.inject("maxCount"),d=e.inject("uploadingCount"),w=e.inject("beforeUpload"),C=e.inject("customRequest"),N=e.inject("getOssAccess"),g=e.ref(null),i=e.inject("value"),f=e.inject("needName");let u=e.ref([]);const p=[];e.watch(()=>i==null?void 0:i.value,async function(t){if(!u.value.length&&t){const c=[];for(let n of t){const s=m.getPath(f,n),a=m.getName(f,n),l=await _.getOssInstance(N),P=await l.getSignatureUrl(s),S={...new File([n],a,{}),uid:`${new Date().getTime()}-${Math.random()}`,thumbUrl:P,status:"success",percent:100,path:s};c.push(S),l.destroy()}if(o&&c.length>o){r.message.warning(`文件初始化个数超过${o}个,后续上传的文件会与数据不同步`);return}c.forEach(n=>{u.value.push(n),p.push({uid:n.uid,path:n.path})})}});function D(){var t;(t=g.value)==null||t.click()}function R(t){const c=t.target;b(c==null?void 0:c.files)}function b(t){if(t!=null&&t.length)for(let c=0;c<t.length;c++)$(t[c]);g.value&&(g.value.value="")}let x;function $(t){if(o&&o>1&&u.value.length>=o)return clearTimeout(x),x=setTimeout(()=>{r.message.warning(`最多上传${o}个图片`)}),!1;if(typeof w=="function"){if(w(t)===!1)return!1}else{if(t.size>v*1024*1024)return r.message.warning(`文件大小不超过${v}MB`),!1;if(!/image\/\w+/.test(t.type)||!E.fileMatchesAccept(t,h))return r.message.warning("不支持该格式的图片"),!1}const c=new FileReader;c.readAsDataURL(t),c.onload=function(){const n={...t,uid:`${new Date().getTime()}-${Math.random()}`,thumbUrl:this.result,status:"uploading",percent:0};I(n,t)},c.onerror=function(){r.message.warning("图片解析失败")}}async function I(t,c){if(d.value++,typeof C=="function"){C({onProgress:n=>{const s=u.value.find(a=>a.uid===t.uid);s&&(s.percent=n)},onError:n=>{r.message.warning(n||"网络异常");const s=u.value.findIndex(a=>a.uid===t.uid);s>-1&&u.value.splice(s,1),d.value--},onSuccess:n=>{const s=u.value.find(a=>a.uid===t.uid);s&&(s.status="success",s.path=n),i.value?i.value.push(m.getReturnData(f,n,c.name)):i.value=[m.getReturnData(f,n,c.name)],p.push({uid:t.uid,path:n}),d.value--},file:c});return}try{const n=await _.getOssInstance(N);t.oss=n,u.value.push(t),j({file:c,dirName:q,oss:n,successCallBack(s){const a=u.value.find(l=>l.uid===t.uid);a&&(a.status="success",a.path=s),i.value?i.value.push(m.getReturnData(f,s,c.name)):i.value=[m.getReturnData(f,s,c.name)],p.push({uid:t.uid,path:s}),d.value--},errorCallBack(s){r.message.warning(s||"网络异常");const a=u.value.findIndex(l=>l.uid===t.uid);a>-1&&u.value.splice(a,1),d.value--},progressCallBack(s){const a=u.value.find(l=>l.uid===t.uid);a&&(a.percent=s)}})}catch(n){r.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:"网络异常");const s=u.value.findIndex(a=>a.uid===t.uid);s>-1&&u.value.splice(s,1),d.value--}}function O(t){var n;if(t.path){if(Array.isArray(i.value)){const s=p.findIndex(a=>a.uid===t.uid);s>=0&&(i==null||i.value.splice(s,1),p.splice(s,1)),i.value.length===0&&(i.value=void 0)}}else(n=t==null?void 0:t.oss)==null||n.pauseUpload();const c=u.value.findIndex(s=>s.uid===t.uid);return u.value.splice(c,1),Promise.resolve(!0)}return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(k)()]:!0,[e.unref(k)("admin")]:e.unref(V)==="admin"})},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:g,accept:e.unref(h),onChange:R},null,40,M),e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),n=>(e.openBlock(),e.createElementBlock("div",{class:"picture-item",key:n.uid},[e.createElementVNode("div",z,[e.createElementVNode("img",{src:n.thumbUrl,alt:""},null,8,L),e.withDirectives(e.createElementVNode("div",U,[e.createElementVNode("div",{class:"picture-item-close",onClick:s=>O(n)},[e.createVNode(e.unref(B.CloseOutlined))],8,G),n.status==="uploading"?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(e.unref(r.Progress),{percent:n.percent,strokeColor:"#ffffff",trailColor:"rgba(255, 255, 255, 0.3)",size:4,showInfo:!1},null,8,["percent"])])):e.createCommentVNode("",!0)],512),[[e.vShow,n.status==="uploading"]])])]))),128)),e.unref(o)===void 0||e.unref(u).length<e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"picture-upload",onClick:D},[e.createVNode(e.unref(B.PlusOutlined)),J])):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.unref(y)?(e.openBlock(),e.createElementBlock("div",Q,e.toDisplayString(e.unref(y)),1)):(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(`支持扩展名:${e.unref(E.getAcceptText)(e.unref(h))},图片大小小于${e.unref(v)}MB`),1))])],2))}});exports.default=X;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SingleFile.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const E=require("../utils/returnData.js"),A=require("../hooks/useOss.js"),O=require("../utils/accept.js"),l=require("ant-design-vue"),J=require("@ant-design/icons-vue"),P=require("../assets/single-file-icon.png.js");require("../styles/single-file.css");const K=require("../../config-provider/hooks/use-namespace.js"),Q=["accept"],W={key:0,class:"state-un"},X=["src"],Y={class:"state-un-title"},Z={class:"state-un-subtitle"},ee={key:1,class:"state-ing"},te={class:"left"},ne=["src"],ae={class:"center"},se={class:"center-progress"},re=e.defineComponent({__name:"SingleFile",setup(le){const{b:p}=K.useNamespace("ap-upload-single-file"),{put:z,client:w}=A.useOss(),g=e.inject("theme"),M=e.inject("dirName"),m=e.inject("accept")||"*",h=e.inject("maxSize")||500,R=e.inject("title")||"点击或将文件拖拽到这里上传",_=e.inject("subTitle"),a=e.inject("value"),D=e.inject("needName"),c=e.inject("uploadingCount"),F=e.inject("beforeUpload"),B=e.inject("customRequest"),T=e.inject("getOssAccess"),s=e.ref(null);e.watch(()=>a==null?void 0:a.value,function(t){const n=E.getName(D,t);s.value===null&&t&&(r.value=3,s.value=new File([t],n,{}))});const r=e.ref(1),f=e.ref(0),v=e.ref(null),j=e.computed(()=>s.value&&(a==null?void 0:a.value));function x(){var t;r.value===1&&((t=v.value)==null||t.click())}function q(t){t.preventDefault(),t.stopPropagation()}function I(t){t.dataTransfer.dropEffect="copy",t.preventDefault(),t.stopPropagation()}function L(t){S(t)}function U(t){if(t.preventDefault(),t.stopPropagation(),r.value!==1)return;var n=t.dataTransfer,o=[],b=0,V=n.files.length;function u(){b===V-1&&L(o),b++}if(n.items!==void 0)for(var k=0;k<n.items.length;k++){var y=n.items[k];if(y.kind==="file"&&y.webkitGetAsEntry().isFile){var H=y.getAsFile();o.push(H),u()}}else for(let N=0;N<V;N++){var d=n.files[N];if(d.type)o.push(d),u();else try{var C=new FileReader;C.readAsDataURL(d.slice(0,3)),C.addEventListener("load",function(i){console.warn(i,"load"),o.push(d),u()},!1),C.addEventListener("error",function(i){console.warn(i,"error"),l.message.warning("不支持上传文件夹"),u()},!1)}catch(i){console.warn(i),l.message.warning("不支持上传文件夹"),u()}}}function $(t){const n=t.target;S(n==null?void 0:n.files),v.value&&(v.value.value="")}async function S(t){if(t!=null&&t.length){if(typeof F=="function"){if(F(t[0])===!1)return}else{if(t[0].size>h*1024*1024){l.message.warning(`文件大小不超过${h}MB`);return}if(!O.fileMatchesAccept(t[0],m)){l.message.warning("不支持该格式的文件");return}}if(s.value=t[0],r.value=2,f.value=0,a.value="",c.value++,typeof B=="function"){B({onProgress:n=>{f.value=n},onError:n=>{l.message.warning(n||"网络异常"),r.value=1,s.value=null,c.value--},onSuccess:n=>{a.value=E.getReturnData(D,n,s.value.name),r.value=3,c.value--},file:t[0]});return}try{await A.useOssInit(T),z({file:s.value,dirName:M,oss:w,successCallBack(n){a.value=E.getReturnData(D,n,s.value.name),r.value=3,c.value--},errorCallBack(n){l.message.warning(n||"网络异常"),r.value=1,s.value=null,c.value--},progressCallBack(n){f.value=n}})}catch(n){l.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:"网络异常"),r.value=1,s.value=null,c.value--}}}function G(){s.value&&!(a!=null&&a.value)&&w.pauseUpload(),r.value=1,s.value=null,a.value=void 0}return(t,n)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(p)()]:!0,[e.unref(p)("admin")]:e.unref(g)==="admin",[e.unref(p)("un")]:r.value===1}),onClick:x,onDragenter:q,onDragover:I,onDragleave:q,onDrop:U},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:v,accept:e.unref(m),onChange:$},null,40,Q),r.value===1?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("img",{class:"state-un-icon",src:e.unref(P.default)},null,8,X),e.createElementVNode("div",Y,e.toDisplayString(e.unref(R)),1),e.createElementVNode("div",Z,e.toDisplayString(typeof e.unref(_)=="string"&&e.unref(_).length>0?e.unref(_):`支持扩展名:${e.unref(O.getAcceptText)(e.unref(m))},文件大小小于${e.unref(h)}MB`),1)])):e.createCommentVNode("",!0),[2,3].includes(r.value)?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("img",{src:e.unref(P.default)},null,8,ne)]),e.createElementVNode("div",ae,[e.createElementVNode("div",{class:"center-title",style:e.normalizeStyle({color:j.value?"#0070FF":"#182948"})},e.toDisplayString((o=s.value)==null?void 0:o.name),5),e.createElementVNode("div",se,[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.Progress),{key:0,percent:f.value,size:4,showInfo:!1,trailColor:e.unref(g)==="admin"?"#D9D9D9":"#DEE4ED",strokeColor:e.unref(g)==="admin"?"#34B77C":"#0070FF"},null,8,["percent","trailColor","strokeColor"]))])]),e.createElementVNode("div",{class:"right",onClick:e.withModifiers(G,["stop"])},[e.createVNode(e.unref(J.DeleteOutlined))])])):e.createCommentVNode("",!0)],34)}}});exports.default=re;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Oss } from '@aplus-frontend/oss';
|
|
2
|
+
export type { Oss } from '@aplus-frontend/oss';
|
|
3
|
+
declare function put({ file, dirName, oss, successCallBack, errorCallBack, progressCallBack }: {
|
|
4
|
+
file: File;
|
|
5
|
+
dirName: string;
|
|
6
|
+
oss: any;
|
|
7
|
+
successCallBack: (saveUrl: string, previewUrl: string) => void;
|
|
8
|
+
errorCallBack: (msg: string) => void;
|
|
9
|
+
progressCallBack: (p: number) => void;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
export declare function useOss(): {
|
|
12
|
+
client: Oss;
|
|
13
|
+
put: typeof put;
|
|
14
|
+
};
|
|
15
|
+
export declare function useOssInit(getOssAccess: any): Promise<{
|
|
16
|
+
client: Oss;
|
|
17
|
+
put: typeof put;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function getOssInstance(getOssAccess: any): Promise< Oss>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@aplus-frontend/oss");async function l({file:t,dirName:s,oss:e,successCallBack:u,errorCallBack:o,progressCallBack:r}){try{const n=await e.put({fileName:t.name,dirName:s,data:t,progressCallBack:i=>{r(i)}});if(n.status===204)return;if(n.status===200){const{saveUrl:i,previewUrl:g}=n;u(i,g)}else o((n==null?void 0:n.message)||"网络异常")}catch(n){o(n)}}function c(){return{client:a.client,put:l}}async function w(t){if(!t)throw new Error("请传入getOssAccess");return await a.client.initOssClient({getOssAccess:t,onFailure:s=>{throw new Error(typeof(s==null?void 0:s.message)=="string"?s.message:"获取oss临时权限失败")}}),c()}async function f(t){if(!t)throw new Error("请传入getOssAccess");const s=a.createOssInstance();return await s.initOssClient({getOssAccess:t,onFailure:e=>{throw new Error(typeof(e==null?void 0:e.message)=="string"?e.message:"获取oss临时权限失败")}}),s}exports.getOssInstance=f;exports.useOss=c;exports.useOssInit=w;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./apUpload.vue2.js");const u=require("./apUploadTypes.js"),e=require("./apUpload.vue.js");e.default.install=function(t){return t.component(e.default.name,e.default),t};exports.NeedNameKeyDefault=u.NeedNameKeyDefault;exports.ApUpload=e.default;exports.default=e.default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.aplus-ap-upload-multiple-file .multiple-file-context {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
.aplus-ap-upload-multiple-file .multiple-file-context .file-btn {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: 7px 16px;
|
|
9
|
+
transition: all 0.3s;
|
|
10
|
+
border: 1px solid #dee4ed;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
color: #182948;
|
|
13
|
+
}
|
|
14
|
+
.aplus-ap-upload-multiple-file .multiple-file-context .file-btn:hover {
|
|
15
|
+
border-color: #0070ff;
|
|
16
|
+
color: #0070ff;
|
|
17
|
+
}
|
|
18
|
+
.aplus-ap-upload-multiple-file .multiple-file-context .sub-title {
|
|
19
|
+
margin-left: 16px;
|
|
20
|
+
color: #8896b0;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
}
|
|
23
|
+
.aplus-ap-upload-multiple-file .ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover {
|
|
24
|
+
background: #f5f9fa;
|
|
25
|
+
}
|
|
26
|
+
.aplus-ap-upload-multiple-file .ant-upload-text-icon {
|
|
27
|
+
color: #abb7cc;
|
|
28
|
+
}
|
|
29
|
+
.aplus-ap-upload-multiple-file .ant-upload-wrapper .ant-upload-list .ant-upload-list-item-error .ant-upload-list-item-name,
|
|
30
|
+
.aplus-ap-upload-multiple-file .ant-upload-wrapper .ant-upload-list .ant-upload-list-item-error .ant-upload-icon .anticon,
|
|
31
|
+
.aplus-ap-upload-multiple-file .ant-upload-list-item-error .ant-upload-text-icon {
|
|
32
|
+
color: #ff4d4f;
|
|
33
|
+
}
|
|
34
|
+
.aplus-ap-upload-multiple-file .ant-upload-list-item-done {
|
|
35
|
+
color: #0070ff;
|
|
36
|
+
}
|
|
37
|
+
.aplus-ap-upload-multiple-file .ant-upload-list-item-undefined {
|
|
38
|
+
color: #0070ff;
|
|
39
|
+
}
|
|
40
|
+
.aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn {
|
|
41
|
+
border: 1px solid #d9d9d9;
|
|
42
|
+
}
|
|
43
|
+
.aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn:hover {
|
|
44
|
+
border-color: #34b77c;
|
|
45
|
+
color: #34b77c;
|
|
46
|
+
}
|
|
47
|
+
.aplus-ap-upload-multiple-file-admin .ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover {
|
|
48
|
+
background: #fafafa;
|
|
49
|
+
}
|
|
50
|
+
.aplus-ap-upload-multiple-file-admin .ant-upload-text-icon {
|
|
51
|
+
color: #bfbfbf;
|
|
52
|
+
}
|
|
53
|
+
.aplus-ap-upload-multiple-file-admin .ant-upload-list-item-done {
|
|
54
|
+
color: #1890ff;
|
|
55
|
+
}
|
|
56
|
+
.aplus-ap-upload-multiple-file-admin .ant-upload-list-item-undefined {
|
|
57
|
+
color: #1890ff;
|
|
58
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.aplus-ap-upload-picture .picture-context {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-gap: 16px;
|
|
4
|
+
grid-template-columns: repeat(auto-fill, 100px);
|
|
5
|
+
-webkit-user-select: none;
|
|
6
|
+
-moz-user-select: none;
|
|
7
|
+
user-select: none;
|
|
8
|
+
}
|
|
9
|
+
.aplus-ap-upload-picture .picture-context .picture-upload {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
width: 100px;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
transition: all 0.2s;
|
|
17
|
+
border: 1px dashed #dee4ed;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
background: #f2f6f9;
|
|
20
|
+
color: #abb7cc;
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
aspect-ratio: 1 / 1;
|
|
24
|
+
}
|
|
25
|
+
.aplus-ap-upload-picture .picture-context .picture-upload > * + * {
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
}
|
|
29
|
+
.aplus-ap-upload-picture .picture-context .picture-upload:hover {
|
|
30
|
+
border: 1px dashed #0070ff;
|
|
31
|
+
}
|
|
32
|
+
.aplus-ap-upload-picture .picture-context .picture-item {
|
|
33
|
+
width: 100px;
|
|
34
|
+
padding: 8px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
border: 1px solid #dee4ed;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
background: #fff;
|
|
39
|
+
aspect-ratio: 1 / 1;
|
|
40
|
+
}
|
|
41
|
+
.aplus-ap-upload-picture .picture-context .picture-item .picture-item-box {
|
|
42
|
+
position: relative;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
border-radius: 2px;
|
|
46
|
+
}
|
|
47
|
+
.aplus-ap-upload-picture .picture-context .picture-item .picture-item-box > img {
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
border-radius: 2px;
|
|
51
|
+
-o-object-fit: cover;
|
|
52
|
+
object-fit: cover;
|
|
53
|
+
}
|
|
54
|
+
.aplus-ap-upload-picture .picture-context .picture-item .picture-item-box:hover > .picture-item-shadow {
|
|
55
|
+
display: block !important;
|
|
56
|
+
}
|
|
57
|
+
.aplus-ap-upload-picture .picture-context .picture-item .picture-item-box .picture-item-shadow {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
border-radius: 2px;
|
|
64
|
+
background: rgba(0, 0, 0, 0.5);
|
|
65
|
+
color: #fff;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
}
|
|
68
|
+
.aplus-ap-upload-picture .picture-context .picture-item .picture-item-box .picture-item-shadow .picture-item-close {
|
|
69
|
+
display: flex;
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 0;
|
|
72
|
+
right: 0;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
width: 16px;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
transform: translate(30%, -30%);
|
|
78
|
+
border: 1px solid #fff;
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
background: #ff4d4f;
|
|
81
|
+
color: #fff;
|
|
82
|
+
font-size: 10px;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
aspect-ratio: 1 / 1;
|
|
85
|
+
}
|
|
86
|
+
.aplus-ap-upload-picture .picture-context .picture-item .picture-item-box .picture-item-shadow .picture-item-uploading {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 50%;
|
|
89
|
+
left: 50%;
|
|
90
|
+
width: 84%;
|
|
91
|
+
transform: translate(-50%, -50%);
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
.aplus-ap-upload-picture .picture-title {
|
|
95
|
+
margin-top: 8px;
|
|
96
|
+
color: #8896b0;
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
}
|
|
99
|
+
.aplus-ap-upload-picture-admin .picture-context .picture-upload {
|
|
100
|
+
border: 1px dashed #d9d9d9;
|
|
101
|
+
background: #fafafa;
|
|
102
|
+
color: #bfbfbf;
|
|
103
|
+
}
|
|
104
|
+
.aplus-ap-upload-picture-admin .picture-context .picture-upload:hover {
|
|
105
|
+
border: 1px dashed #34b77c;
|
|
106
|
+
}
|
|
107
|
+
.aplus-ap-upload-picture-admin .picture-context .picture-item {
|
|
108
|
+
border: 1px solid #d9d9d9;
|
|
109
|
+
}
|
|
110
|
+
.aplus-ap-upload-picture-admin .picture-context .picture-title {
|
|
111
|
+
color: #999;
|
|
112
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.aplus-ap-upload-single-file {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 200px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
transition: all 0.3s;
|
|
9
|
+
border: 1px dashed #dee4ed;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
background: #f2f6f9;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
-moz-user-select: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
.aplus-ap-upload-single-file > div {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
.aplus-ap-upload-single-file .state-un {
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
}
|
|
24
|
+
.aplus-ap-upload-single-file .state-un .state-un-icon {
|
|
25
|
+
display: block;
|
|
26
|
+
width: 56px;
|
|
27
|
+
}
|
|
28
|
+
.aplus-ap-upload-single-file .state-un .state-un-title {
|
|
29
|
+
margin-top: 10px;
|
|
30
|
+
color: #182948;
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
}
|
|
34
|
+
.aplus-ap-upload-single-file .state-un .state-un-subtitle {
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
color: #abb7cc;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
line-height: 18px;
|
|
39
|
+
}
|
|
40
|
+
.aplus-ap-upload-single-file .state-ing {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
width: min(516px, 77.24%);
|
|
44
|
+
height: 96px;
|
|
45
|
+
padding: 0 24px;
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
background: #fff;
|
|
48
|
+
}
|
|
49
|
+
.aplus-ap-upload-single-file .state-ing .left {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
width: 48px;
|
|
52
|
+
margin-right: 16px;
|
|
53
|
+
}
|
|
54
|
+
.aplus-ap-upload-single-file .state-ing .left img {
|
|
55
|
+
display: block;
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
.aplus-ap-upload-single-file .state-ing .center {
|
|
59
|
+
flex: 1;
|
|
60
|
+
}
|
|
61
|
+
.aplus-ap-upload-single-file .state-ing .center .center-title {
|
|
62
|
+
display: -webkit-box;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
text-align: start;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
word-wrap: break-word;
|
|
68
|
+
word-break: break-all;
|
|
69
|
+
-webkit-box-orient: vertical;
|
|
70
|
+
-webkit-line-clamp: 2;
|
|
71
|
+
}
|
|
72
|
+
.aplus-ap-upload-single-file .state-ing .center .center-progress .ant-progress-line {
|
|
73
|
+
margin-right: 0;
|
|
74
|
+
margin-bottom: 0;
|
|
75
|
+
}
|
|
76
|
+
.aplus-ap-upload-single-file .state-ing .right {
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
margin-left: 24px;
|
|
79
|
+
color: #ff4d4f;
|
|
80
|
+
font-size: 20px;
|
|
81
|
+
cursor: pointer !important;
|
|
82
|
+
}
|
|
83
|
+
.aplus-ap-upload-single-file-un {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.aplus-ap-upload-single-file-un:hover {
|
|
87
|
+
border: 1px dashed #0070ff;
|
|
88
|
+
background: rgba(0, 112, 255, 0.1);
|
|
89
|
+
}
|
|
90
|
+
.aplus-ap-upload-single-file-admin {
|
|
91
|
+
border: 1px dashed #D9D9D9;
|
|
92
|
+
}
|
|
93
|
+
.aplus-ap-upload-single-file-admin .state-un .state-un-title {
|
|
94
|
+
color: #333;
|
|
95
|
+
}
|
|
96
|
+
.aplus-ap-upload-single-file-admin .state-un .state-un-subtitle {
|
|
97
|
+
color: #BFBFBF;
|
|
98
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 校验文件是否满足指定的格式
|
|
3
|
+
* @param file
|
|
4
|
+
* @param accept
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function fileMatchesAccept(file: File, accept: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 根据accept获取支持的后缀名
|
|
10
|
+
* @param accept
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function getAcceptText(accept: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("mime");function f(n,i){var s,c,o,u;const e=i.split(",").map(t=>t.trim());for(const t of e){if(t==="*")return!0;if(t.endsWith("/*")){const[r]=t.split("/"),[a]=n.type.split("/");if(r===a)return!0}else if(/^\./.test(t)){if(n.type===p.getType(t))return!0;const r=(s=n.name)==null?void 0:s.lastIndexOf(".");if(r>-1&&((c=n.name)==null?void 0:c.slice(r))===t)return!0}else{if(n.type===t)return!0;const r=(o=n.name)==null?void 0:o.lastIndexOf(".");if(r>-1&&[...p.getAllExtensions(t)||[]].map(l=>`.${l}`).includes((u=n.name)==null?void 0:u.slice(r)))return!0}}return!1}function m(n){const i={image:"图片类型",video:"视频类型",audio:"音频类型",application:"文档类型","*":"全部类型"};return n.split(",").map(e=>e.trim()).map(e=>{if(e==="*")return i[e];if(e.endsWith("/*")){const[s]=e.split("/");return i[s]||s}else return/^\./.test(e)?e:[...p.getAllExtensions(e)||[]].map(s=>`.${s}`).join(",")||e}).join(",")}exports.fileMatchesAccept=f;exports.getAcceptText=m;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 根据needName获取单条数据的数据结构
|
|
3
|
+
*/
|
|
4
|
+
export declare function getReturnData(needName: any, path: string, fileName: string): string | {
|
|
5
|
+
name: string;
|
|
6
|
+
path: string;
|
|
7
|
+
} | {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
name?: undefined;
|
|
10
|
+
path?: undefined;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 根据needName获取path
|
|
14
|
+
*/
|
|
15
|
+
export declare function getPath(needName: any, scoure: any): any;
|
|
16
|
+
/**
|
|
17
|
+
* 根据needName获取name
|
|
18
|
+
*/
|
|
19
|
+
export declare function getName(needName: any, scoure: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../apUploadTypes.js");function e(t,y,K){return t===!0?{[f.NeedNameKeyDefault.nameKey]:K,[f.NeedNameKeyDefault.pathKey]:y}:typeof t=="object"?{[(t==null?void 0:t.nameKey)||f.NeedNameKeyDefault.nameKey]:K,[(t==null?void 0:t.pathKey)||f.NeedNameKeyDefault.pathKey]:y}:y}function l(t,y){return t===!0?y==null?void 0:y[f.NeedNameKeyDefault.pathKey]:typeof t=="object"?y==null?void 0:y[(t==null?void 0:t.pathKey)||f.NeedNameKeyDefault.pathKey]:y}function a(t,y){return t===!0?y==null?void 0:y[f.NeedNameKeyDefault.nameKey]:typeof t=="object"?y==null?void 0:y[(t==null?void 0:t.nameKey)||f.NeedNameKeyDefault.nameKey]:y}exports.getName=a;exports.getPath=l;exports.getReturnData=e;
|
|
@@ -44,9 +44,9 @@ declare const _default: DefineComponent<{
|
|
|
44
44
|
* Help text list
|
|
45
45
|
*/
|
|
46
46
|
text: {
|
|
47
|
-
type: PropType<
|
|
47
|
+
type: PropType<VNode< RendererNode, RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
|
-
}> | VNodeChild>;
|
|
49
|
+
}> | string[] | VNodeChild>;
|
|
50
50
|
};
|
|
51
51
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
52
52
|
/**
|
|
@@ -91,9 +91,9 @@ declare const _default: DefineComponent<{
|
|
|
91
91
|
* Help text list
|
|
92
92
|
*/
|
|
93
93
|
text: {
|
|
94
|
-
type: PropType<
|
|
94
|
+
type: PropType<VNode< RendererNode, RendererElement, {
|
|
95
95
|
[key: string]: any;
|
|
96
|
-
}> | VNodeChild>;
|
|
96
|
+
}> | string[] | VNodeChild>;
|
|
97
97
|
};
|
|
98
98
|
}>>, {
|
|
99
99
|
color: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue"),f=require("@ant-design/icons-vue"),y=require("../utils/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue"),f=require("@ant-design/icons-vue"),y=require("../utils/index.js"),l=require("@fruits-chain/utils"),m=require("../utils/slot.js");require("../config-provider/index.js");require("./style/help.css");const g=require("../config-provider/hooks/use-namespace.js"),S={maxWidth:{type:String,default:"600px"},showIndex:{type:Boolean},color:{type:String,default:"#ffffff"},fontSize:{type:String,default:"14px"},placement:{type:String,default:"right"},text:{type:[Array,String,Object]}},x=e.defineComponent({name:"ApBasicHelp",components:{Tooltip:i.Tooltip},props:S,setup(t,{slots:u}){const{b:a,be:n}=g.useNamespace("basic-help"),c=e.computed(()=>({color:t.color,fontSize:t.fontSize})),s=e.computed(()=>({maxWidth:t.maxWidth}));function d(){const r=t.text;return l.isType("String")(r)?r:l.isArray(r)?r.map((o,p)=>e.createVNode("p",{key:o,class:n("content","row")},[t.showIndex?`${p+1}. `:"",o])):r}return()=>e.createVNode(i.Tooltip,{overlayClassName:`${n("wrap")}`,title:e.createVNode("div",{style:e.unref(c)},[d()]),autoAdjustOverflow:!0,overlayStyle:e.unref(s),placement:t.placement,getPopupContainer:()=>y.getPopupContainer()},{default:()=>[e.createVNode("span",{class:a()},[m.getSlot(u)||e.createVNode(f.InfoCircleOutlined,null,null)])]})}});exports.default=x;
|
package/lib/src/basic/index.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare const BasicHelp: {
|
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
text: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
27
27
|
[key: string]: any;
|
|
28
|
-
}> | VNodeChild>;
|
|
28
|
+
}> | string[] | VNodeChild>;
|
|
29
29
|
};
|
|
30
30
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
31
31
|
maxWidth: {
|
|
@@ -48,9 +48,9 @@ export declare const BasicHelp: {
|
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
50
|
text: {
|
|
51
|
-
type: PropType<
|
|
51
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
52
52
|
[key: string]: any;
|
|
53
|
-
}> | VNodeChild>;
|
|
53
|
+
}> | string[] | VNodeChild>;
|
|
54
54
|
};
|
|
55
55
|
}>>, {
|
|
56
56
|
color: string;
|
|
@@ -86,9 +86,9 @@ export declare const BasicHelp: {
|
|
|
86
86
|
default: string;
|
|
87
87
|
};
|
|
88
88
|
text: {
|
|
89
|
-
type: PropType<
|
|
89
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
90
90
|
[key: string]: any;
|
|
91
|
-
}> | VNodeChild>;
|
|
91
|
+
}> | string[] | VNodeChild>;
|
|
92
92
|
};
|
|
93
93
|
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
94
94
|
color: string;
|
|
@@ -121,9 +121,9 @@ export declare const BasicHelp: {
|
|
|
121
121
|
default: string;
|
|
122
122
|
};
|
|
123
123
|
text: {
|
|
124
|
-
type: PropType<
|
|
124
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
125
125
|
[key: string]: any;
|
|
126
|
-
}> | VNodeChild>;
|
|
126
|
+
}> | string[] | VNodeChild>;
|
|
127
127
|
};
|
|
128
128
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
129
129
|
color: string;
|
package/lib/src/components.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ declare module '@vue/runtime-core' {
|
|
|
34
34
|
ApCountdownButton: typeof components.CountdownButton;
|
|
35
35
|
ApCountdownInput: typeof components.CountdownInput;
|
|
36
36
|
ApDropdown: typeof components.Dropdown;
|
|
37
|
+
ProTableForm: typeof components.ProTableForm;
|
|
38
|
+
ProTableFormInner: typeof components.ProTableFormInner;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -11,7 +11,7 @@ import { RequiredMark } from 'ant-design-vue/es/form/Form';
|
|
|
11
11
|
export declare const configProviderProps: () => {
|
|
12
12
|
iconPrefixCls: StringConstructor;
|
|
13
13
|
getTargetContainer: {
|
|
14
|
-
type: PropType<() =>
|
|
14
|
+
type: PropType<() => HTMLElement | Window>;
|
|
15
15
|
};
|
|
16
16
|
getPopupContainer: {
|
|
17
17
|
type: PropType<(triggerNode?: HTMLElement | undefined) => HTMLElement>;
|