@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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
.fullscreen-modal {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
}
|
|
4
|
-
.fullscreen-modal .ant-modal {
|
|
5
|
-
inset: 0 !important;
|
|
6
|
-
width: 100% !important;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
.fullscreen-modal .ant-modal-content {
|
|
11
|
-
height: 100%;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
}
|
|
14
|
-
.fullscreen-modal .ant-modal-footer {
|
|
15
|
-
margin-top: 0;
|
|
16
|
-
}
|
|
17
|
-
.aplus-basic-modal {
|
|
18
|
-
width: 520px;
|
|
19
|
-
padding-bottom: 0;
|
|
20
|
-
}
|
|
21
|
-
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
|
-
padding: 20px;
|
|
23
|
-
padding-bottom: 0;
|
|
24
|
-
}
|
|
25
|
-
.aplus-basic-modal .ant-modal-title {
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
font-weight: bold;
|
|
28
|
-
}
|
|
29
|
-
.aplus-basic-modal .ant-modal-title .aplus-basic-title {
|
|
30
|
-
cursor: move !important;
|
|
31
|
-
padding-left: 0;
|
|
32
|
-
}
|
|
33
|
-
.aplus-basic-modal .ant-modal-body {
|
|
34
|
-
padding: 0;
|
|
35
|
-
}
|
|
36
|
-
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
.aplus-basic-modal .ant-modal-large {
|
|
40
|
-
top: 60px;
|
|
41
|
-
}
|
|
42
|
-
.aplus-basic-modal .ant-modal-large .ant-modal--mini {
|
|
43
|
-
top: 16px;
|
|
44
|
-
}
|
|
45
|
-
.aplus-basic-modal .ant-modal-header {
|
|
46
|
-
padding: 15px 20px;
|
|
47
|
-
margin-bottom: 0;
|
|
48
|
-
border-bottom: 1px solid #dee4ed;
|
|
49
|
-
}
|
|
50
|
-
.aplus-basic-modal .ant-modal-content {
|
|
51
|
-
padding: 0 !important;
|
|
52
|
-
}
|
|
53
|
-
.aplus-basic-modal .ant-modal-footer {
|
|
54
|
-
padding: 20px;
|
|
55
|
-
margin-top: 0;
|
|
56
|
-
}
|
|
57
|
-
.aplus-basic-modal .ant-modal-footer button + button {
|
|
58
|
-
margin-left: 10px;
|
|
59
|
-
}
|
|
60
|
-
.aplus-basic-modal .ant-modal-close {
|
|
61
|
-
top: 0 !important;
|
|
62
|
-
right: 0 !important;
|
|
63
|
-
width: auto !important;
|
|
64
|
-
outline: none;
|
|
65
|
-
background: transparent !important;
|
|
66
|
-
font-weight: normal;
|
|
67
|
-
}
|
|
68
|
-
.aplus-basic-modal .ant-modal-close-x {
|
|
69
|
-
display: inline-block;
|
|
70
|
-
width: 96px;
|
|
71
|
-
height: 56px;
|
|
72
|
-
line-height: 56px !important;
|
|
73
|
-
}
|
|
74
|
-
.aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
75
|
-
color: #909399;
|
|
76
|
-
}
|
|
77
|
-
.aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
78
|
-
color: #ed6f6f;
|
|
79
|
-
}
|
|
80
|
-
.aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
|
|
81
|
-
margin-right: 0;
|
|
82
|
-
}
|
|
83
|
-
.aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
84
|
-
color: #efbd47;
|
|
85
|
-
}
|
|
86
|
-
.aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
87
|
-
color: #34b77c;
|
|
88
|
-
}
|
|
89
|
-
@media screen and (height <= 600px) {
|
|
90
|
-
.ant-modal {
|
|
91
|
-
top: 60px;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
@media screen and (height <= 540px) {
|
|
95
|
-
.ant-modal {
|
|
96
|
-
top: 30px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
@media screen and (height <= 480px) {
|
|
100
|
-
.ant-modal {
|
|
101
|
-
top: 10px;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -24,10 +24,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
24
24
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
onDefaultChange?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
immediate: boolean;
|
|
28
27
|
resultField: string;
|
|
29
28
|
labelField: string;
|
|
30
29
|
valueField: string;
|
|
30
|
+
immediate: boolean;
|
|
31
31
|
childrenField: string;
|
|
32
32
|
apiParamKey: string;
|
|
33
33
|
initFetchParams: Record<string, any>;
|
|
@@ -24,11 +24,11 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
24
24
|
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
immediate: boolean;
|
|
28
27
|
params: string | Record<string, any>;
|
|
29
28
|
resultField: string;
|
|
30
29
|
labelField: string;
|
|
31
30
|
valueField: string;
|
|
31
|
+
immediate: boolean;
|
|
32
32
|
isBtn: boolean;
|
|
33
33
|
}, {}>;
|
|
34
34
|
export default _default;
|
|
@@ -40,13 +40,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
40
40
|
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
immediate: boolean;
|
|
44
|
-
options: ApiSelectOption[];
|
|
45
43
|
params: Record<string, any>;
|
|
46
44
|
resultField: string;
|
|
47
45
|
labelField: string;
|
|
48
46
|
valueField: string;
|
|
47
|
+
immediate: boolean;
|
|
49
48
|
alwaysLoad: boolean;
|
|
49
|
+
options: ApiSelectOption[];
|
|
50
50
|
}, {}>, Partial<Record<NonNullable<keyof SelectSlotsType>, (_: any) => any>>>;
|
|
51
51
|
export default _default;
|
|
52
52
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -27,10 +27,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
27
27
|
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
disabled: boolean;
|
|
30
|
-
immediate: boolean;
|
|
31
30
|
resultField: string;
|
|
32
31
|
labelField: string;
|
|
33
32
|
valueField: string;
|
|
33
|
+
immediate: boolean;
|
|
34
34
|
alwaysLoad: boolean;
|
|
35
35
|
showSearch: boolean;
|
|
36
36
|
showSelectAll: boolean;
|
|
@@ -25,10 +25,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
25
25
|
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
"onLoad-data"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
immediate: boolean;
|
|
29
28
|
resultField: string;
|
|
30
29
|
labelField: string;
|
|
31
30
|
valueField: string;
|
|
31
|
+
immediate: boolean;
|
|
32
32
|
async: boolean;
|
|
33
33
|
childrenField: string;
|
|
34
34
|
}, {}>, Partial<Record<NonNullable<AntdTreeSelectSlotNames>, (_: any) => any>>>;
|
|
@@ -17,8 +17,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
17
17
|
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
18
18
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
immediate: boolean;
|
|
21
20
|
resultField: string;
|
|
21
|
+
immediate: boolean;
|
|
22
22
|
}, {}>, Partial<Record<NonNullable<AntdTreeSlotNames>, (_: any) => any>>>;
|
|
23
23
|
export default _default;
|
|
24
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -96,8 +96,8 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
96
96
|
offset: string | number;
|
|
97
97
|
} | ColSize | undefined;
|
|
98
98
|
prefixCls?: string | undefined;
|
|
99
|
-
span?: (string | number) | undefined;
|
|
100
99
|
push?: (string | number) | undefined;
|
|
100
|
+
span?: (string | number) | undefined;
|
|
101
101
|
flex?: (string | number) | undefined;
|
|
102
102
|
order?: (string | number) | undefined;
|
|
103
103
|
offset?: (string | number) | undefined;
|
|
@@ -152,7 +152,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
152
152
|
'aria-colindex'?: (string | number) | undefined;
|
|
153
153
|
'aria-colspan'?: (string | number) | undefined;
|
|
154
154
|
'aria-controls'?: string | undefined;
|
|
155
|
-
'aria-current'?: "time" |
|
|
155
|
+
'aria-current'?: "time" | (boolean | "true" | "false") | "page" | "date" | "step" | "location" | undefined;
|
|
156
156
|
'aria-describedby'?: string | undefined;
|
|
157
157
|
'aria-details'?: string | undefined;
|
|
158
158
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -301,8 +301,8 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
301
301
|
offset: string | number;
|
|
302
302
|
} | ColSize | undefined;
|
|
303
303
|
prefixCls?: string | undefined;
|
|
304
|
-
span?: (string | number) | undefined;
|
|
305
304
|
push?: (string | number) | undefined;
|
|
305
|
+
span?: (string | number) | undefined;
|
|
306
306
|
flex?: (string | number) | undefined;
|
|
307
307
|
order?: (string | number) | undefined;
|
|
308
308
|
offset?: (string | number) | undefined;
|
|
@@ -6,6 +6,8 @@ import { default as ApiTree } from './components/api-tree.vue';
|
|
|
6
6
|
import { default as ApiTreeSelect } from './components/api-tree-select.vue';
|
|
7
7
|
import { default as RadioButtonGroup } from './components/radio-button-group.vue';
|
|
8
8
|
import { default as ProForm } from './pro-form.vue';
|
|
9
|
+
import { default as ProTableForm } from './table-form.vue';
|
|
10
|
+
import { default as ProTableFormInner } from './table-form-inner.vue';
|
|
9
11
|
|
|
10
12
|
type FieldType = {
|
|
11
13
|
ApiCascader: typeof ApiCascader;
|
|
@@ -20,6 +22,7 @@ declare const Field: FieldType;
|
|
|
20
22
|
export * from './components/interface';
|
|
21
23
|
export * from './types/form';
|
|
22
24
|
export * from './types/form-item';
|
|
25
|
+
export * from './types/table-form';
|
|
23
26
|
export { useComponentRegister } from './hooks/use-component-register';
|
|
24
27
|
export { useForm } from './hooks/use-form';
|
|
25
|
-
export { Field, ApiCascader, ApiRadioGroup, ApiSelect, ApiTransfer, ApiTree, RadioButtonGroup, ProForm, ApiTreeSelect };
|
|
28
|
+
export { Field, ApiCascader, ApiRadioGroup, ApiSelect, ApiTransfer, ApiTree, RadioButtonGroup, ProForm, ApiTreeSelect, ProTableForm, ProTableFormInner };
|
|
@@ -6,11 +6,14 @@ import "./components/api-tree.vue2.mjs";
|
|
|
6
6
|
import "./components/api-tree-select.vue2.mjs";
|
|
7
7
|
import "./components/radio-button-group.vue2.mjs";
|
|
8
8
|
import "./pro-form.vue2.mjs";
|
|
9
|
+
import "./table-form.vue2.mjs";
|
|
10
|
+
import "./table-form-inner.vue2.mjs";
|
|
9
11
|
import "./components/interface.mjs";
|
|
10
|
-
import { isComponentFormSchema as
|
|
12
|
+
import { isComponentFormSchema as k, isSlotFormSchema as q } from "./types/form.mjs";
|
|
11
13
|
import "./types/form-item.mjs";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
+
import "./types/table-form.mjs";
|
|
15
|
+
import { useComponentRegister as w } from "./hooks/use-component-register.mjs";
|
|
16
|
+
import { useForm as z } from "./hooks/use-form.mjs";
|
|
14
17
|
import o from "./components/api-cascader.vue.mjs";
|
|
15
18
|
import r from "./components/api-radio-group.vue.mjs";
|
|
16
19
|
import i from "./components/api-select.vue.mjs";
|
|
@@ -18,7 +21,7 @@ import m from "./components/api-transfer.vue.mjs";
|
|
|
18
21
|
import p from "./components/api-tree.vue.mjs";
|
|
19
22
|
import t from "./components/api-tree-select.vue.mjs";
|
|
20
23
|
import e from "./components/radio-button-group.vue.mjs";
|
|
21
|
-
const
|
|
24
|
+
const g = {
|
|
22
25
|
ApiCascader: o,
|
|
23
26
|
ApiRadioGroup: r,
|
|
24
27
|
ApiSelect: i,
|
|
@@ -34,10 +37,10 @@ export {
|
|
|
34
37
|
m as ApiTransfer,
|
|
35
38
|
p as ApiTree,
|
|
36
39
|
t as ApiTreeSelect,
|
|
37
|
-
|
|
40
|
+
g as Field,
|
|
38
41
|
e as RadioButtonGroup,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
k as isComponentFormSchema,
|
|
43
|
+
q as isSlotFormSchema,
|
|
44
|
+
w as useComponentRegister,
|
|
45
|
+
z as useForm
|
|
43
46
|
};
|
|
@@ -37,8 +37,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
37
37
|
submit: (e?: Event | undefined) => Promise<void>;
|
|
38
38
|
scrollToField: (name: NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
39
39
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
40
|
-
reset: (...args: any[]) => void;
|
|
41
40
|
submit: (...args: any[]) => void;
|
|
41
|
+
reset: (...args: any[]) => void;
|
|
42
42
|
register: (...args: any[]) => void;
|
|
43
43
|
"advanced-change": (...args: any[]) => void;
|
|
44
44
|
"field-value-change": (...args: any[]) => void;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
.aplus-pro-table-form .table-form-admin .ant-table-wrapper {
|
|
2
|
+
padding: 0;
|
|
3
|
+
}
|
|
4
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-table-tbody > tr > td,
|
|
5
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
|
|
6
|
+
padding: 18px 16px 0px ;
|
|
7
|
+
}
|
|
8
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-table-body .ant-table-tbody > tr.ant-table-row > td:first-child {
|
|
9
|
+
padding: 18px 16px 0 ;
|
|
10
|
+
}
|
|
11
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-form-item {
|
|
12
|
+
margin-bottom: 18px;
|
|
13
|
+
}
|
|
14
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-form-item .ant-form-item-explain {
|
|
15
|
+
line-height: 18px;
|
|
16
|
+
}
|
|
17
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-form-item .ant-form-item-explain + div {
|
|
18
|
+
height: 18px ;
|
|
19
|
+
}
|
|
20
|
+
.aplus-pro-table-form .table-form-admin .ant-table .ant-table-thead > tr > th {
|
|
21
|
+
padding: 10.5px 16px !important;
|
|
22
|
+
background: #fafafa;
|
|
23
|
+
color: #182948;
|
|
24
|
+
}
|
|
25
|
+
.aplus-pro-table-form .table-form-aplus .ant-form-item {
|
|
26
|
+
margin-bottom: 0;
|
|
27
|
+
}
|
|
28
|
+
.aplus-pro-table-form .table-form-aplus .ant-form-item-has-error.ant-form-item {
|
|
29
|
+
margin-bottom: 24px;
|
|
30
|
+
}
|
|
31
|
+
.aplus-pro-table-form .table-form-aplus .ant-table-tbody > tr > td,
|
|
32
|
+
.aplus-pro-table-form .table-form-aplus .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
|
|
33
|
+
padding: 16px 8px ;
|
|
34
|
+
}
|
|
35
|
+
.aplus-pro-table-form .table-form-aplus .ant-table-body .ant-table-tbody > tr.ant-table-row > td:first-child {
|
|
36
|
+
padding: 16px 8px ;
|
|
37
|
+
}
|
|
38
|
+
.aplus-pro-table-form .ant-table {
|
|
39
|
+
border-radius: 0 !important;
|
|
40
|
+
}
|
|
41
|
+
.aplus-pro-table-form .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
|
|
42
|
+
border-start-start-radius: 0;
|
|
43
|
+
}
|
|
44
|
+
.aplus-pro-table-form .ant-table .ant-table-container table > thead > tr:first-child > *:last-child {
|
|
45
|
+
border-start-end-radius: 0;
|
|
46
|
+
}
|
|
47
|
+
.aplus-pro-table-form .ant-table .ant-table-container,
|
|
48
|
+
.aplus-pro-table-form .ant-table .ant-table-thead {
|
|
49
|
+
border-start-start-radius: 0;
|
|
50
|
+
border-start-end-radius: 0;
|
|
51
|
+
}
|
|
52
|
+
.aplus-pro-table-form .ant-table .ant-table-thead > tr > th {
|
|
53
|
+
padding: 15.5px 8px !important;
|
|
54
|
+
background: #f2f6f9;
|
|
55
|
+
color: #182948;
|
|
56
|
+
text-align: left !important;
|
|
57
|
+
}
|
|
58
|
+
.aplus-pro-table-form .ant-table .ant-table-thead > tr > th::before {
|
|
59
|
+
display: none;
|
|
60
|
+
visibility: hidden;
|
|
61
|
+
width: 0;
|
|
62
|
+
}
|
|
63
|
+
.aplus-pro-table-form .ant-table .ant-table-content {
|
|
64
|
+
overflow-x: scroll;
|
|
65
|
+
}
|
|
66
|
+
.aplus-pro-table-form .ant-table-row.ant-table-row-level-0 .ant-table-cell {
|
|
67
|
+
vertical-align: top;
|
|
68
|
+
}
|
|
69
|
+
.aplus-pro-table-form--required {
|
|
70
|
+
color: #FF4D4F;
|
|
71
|
+
margin-top: 4px;
|
|
72
|
+
}
|
|
73
|
+
.aplus-pro-table-form--edit-cell {
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: flex-start;
|
|
78
|
+
justify-content: flex-start;
|
|
79
|
+
}
|
|
80
|
+
.aplus-pro-table-form--form-item {
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
.aplus-pro-table-form--edit-wraper {
|
|
84
|
+
display: flex;
|
|
85
|
+
}
|
|
86
|
+
.aplus-pro-table-form--field-error .ant-input-number,
|
|
87
|
+
.aplus-pro-table-form--field-error .ant-input {
|
|
88
|
+
border-color: #ff4d4f;
|
|
89
|
+
}
|
|
90
|
+
.aplus-pro-table-form--text-cell {
|
|
91
|
+
margin-top: 5px;
|
|
92
|
+
}
|
|
93
|
+
.aplus-pro-table-form--action-cell {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
margin-top: 5px;
|
|
97
|
+
}
|
|
98
|
+
.aplus-pro-table-form--error-tip {
|
|
99
|
+
margin-left: 8px;
|
|
100
|
+
color: #FF4D4F;
|
|
101
|
+
}
|
|
102
|
+
.aplus-pro-table-form .ant-input-number {
|
|
103
|
+
width: 100% !important;
|
|
104
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EditColumn, Recordable, ProTableFormInnerProps, TableActionTypes } from './types/table-form';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableFormInnerProps>, {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
dataPath: () => never[];
|
|
7
|
+
actions: () => never[];
|
|
8
|
+
bordered: boolean;
|
|
9
|
+
editableFunc: () => true;
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
editChange: (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableFormInnerProps>, {
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
dataPath: () => never[];
|
|
15
|
+
actions: () => never[];
|
|
16
|
+
bordered: boolean;
|
|
17
|
+
editableFunc: () => true;
|
|
18
|
+
}>>> & {
|
|
19
|
+
onEditChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
bordered: boolean;
|
|
23
|
+
actions: TableActionTypes;
|
|
24
|
+
dataPath: string[];
|
|
25
|
+
editableFunc: (column: EditColumn<any>, record: Recordable) => boolean;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithDefaults<P, D> = {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
|
+
default: D[K];
|
|
40
|
+
}> : P[K];
|
|
41
|
+
};
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent as V, computed as j, openBlock as l, createElementBlock as c, normalizeClass as i, unref as r, createVNode as m, withCtx as d, normalizeStyle as P, createCommentVNode as p, createElementVNode as u, toDisplayString as g, createBlock as f, resolveDynamicComponent as O, mergeProps as z, createTextVNode as L } from "vue";
|
|
2
|
+
import { componentMap as R } from "./component-map.mjs";
|
|
3
|
+
import { createPlaceholderMessage as U } from "./helper.mjs";
|
|
4
|
+
import { QuestionCircleOutlined as $, ExclamationCircleOutlined as C } from "@ant-design/icons-vue";
|
|
5
|
+
import { Table as A, Tooltip as h, FormItem as G } from "ant-design-vue";
|
|
6
|
+
import "../ap-action/index.mjs";
|
|
7
|
+
import { isFunction as H } from "lodash-unified";
|
|
8
|
+
import { useLocale as Q } from "../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import "../config-provider/index.mjs";
|
|
10
|
+
import "./style/table-form.css";
|
|
11
|
+
import { useNamespace as J } from "../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import { useGlobalConfig as K } from "../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import W from "../ap-action/group/index.vue.mjs";
|
|
14
|
+
const pe = /* @__PURE__ */ V({
|
|
15
|
+
__name: "table-form-inner",
|
|
16
|
+
props: {
|
|
17
|
+
columns: {},
|
|
18
|
+
dataSource: {},
|
|
19
|
+
disabled: { type: Boolean, default: !1 },
|
|
20
|
+
dataPath: { default: () => [] },
|
|
21
|
+
actions: { type: Function, default: () => [] },
|
|
22
|
+
editableFunc: { type: Function, default: () => !0 },
|
|
23
|
+
bordered: { type: Boolean, default: !0 }
|
|
24
|
+
},
|
|
25
|
+
emits: ["editChange"],
|
|
26
|
+
setup(x, { emit: I }) {
|
|
27
|
+
const { b: v, m: o } = J("pro-table-form"), k = K("uiMode"), { t: E } = Q(), F = I, y = x, _ = j(() => y.dataSource), w = () => y.columns, M = (t, n) => {
|
|
28
|
+
if (!t.editProps)
|
|
29
|
+
return console.warn("column has No editProps"), [];
|
|
30
|
+
const e = t.editProps.rules || [];
|
|
31
|
+
return typeof e == "function" ? e(n) : e == null ? void 0 : e.map((a) => (a.required && !a.message && (typeof t.editProps.component == "string" && t.editProps.component.indexOf("Input") >= 0 ? a.message = t.title + "不能为空" : a.message = "请选择" + t.title), a));
|
|
32
|
+
}, N = (t) => {
|
|
33
|
+
var n;
|
|
34
|
+
return ((n = t.editProps.componentProps) == null ? void 0 : n.placeholder) || U(
|
|
35
|
+
t.editProps.component,
|
|
36
|
+
t.title,
|
|
37
|
+
E
|
|
38
|
+
);
|
|
39
|
+
}, S = (t, n, e) => {
|
|
40
|
+
F("editChange", { record: t, index: n, dataIndex: e });
|
|
41
|
+
}, B = (t, n) => {
|
|
42
|
+
var a, s;
|
|
43
|
+
const e = (s = (a = t.editProps) == null ? void 0 : a.componentProps) == null ? void 0 : s.disabled;
|
|
44
|
+
return y.disabled || (H(e) ? e(n) : e);
|
|
45
|
+
}, q = (t) => {
|
|
46
|
+
const n = t.align == "center" ? t.align : t.align == "right" ? "flex-end" : "flex-start";
|
|
47
|
+
return {
|
|
48
|
+
width: t.width + "px",
|
|
49
|
+
display: "flex",
|
|
50
|
+
justifyContent: n,
|
|
51
|
+
alignItems: "center"
|
|
52
|
+
};
|
|
53
|
+
}, D = (t) => ({
|
|
54
|
+
// width: column.width + 'px',
|
|
55
|
+
display: "flex",
|
|
56
|
+
justifyContent: t.align == "center" ? t.align : t.align == "right" ? "flex-end" : "flex-start",
|
|
57
|
+
alignItems: "center"
|
|
58
|
+
}), T = () => {
|
|
59
|
+
};
|
|
60
|
+
return (t, n) => (l(), c("div", {
|
|
61
|
+
class: i(r(v)())
|
|
62
|
+
}, [
|
|
63
|
+
m(r(A), {
|
|
64
|
+
class: i("table-form-" + (r(k) || "admin")),
|
|
65
|
+
bordered: t.bordered,
|
|
66
|
+
columns: w(),
|
|
67
|
+
pagination: !1,
|
|
68
|
+
"data-source": _.value,
|
|
69
|
+
onChange: T
|
|
70
|
+
}, {
|
|
71
|
+
headerCell: d(({ title: e, column: a }) => [
|
|
72
|
+
a.editProps && a.editProps.required || a.helpMessage || a.width ? (l(), c("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
style: P(q(a))
|
|
75
|
+
}, [
|
|
76
|
+
a.editProps && a.editProps.required ? (l(), c("span", {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: i(r(o)("required"))
|
|
79
|
+
}, "*", 2)) : p("", !0),
|
|
80
|
+
u("span", null, g(e), 1),
|
|
81
|
+
a.helpMessage ? (l(), f(r(h), {
|
|
82
|
+
key: 1,
|
|
83
|
+
placement: "top"
|
|
84
|
+
}, {
|
|
85
|
+
title: d(() => [
|
|
86
|
+
u("span", null, g(a.helpMessage), 1)
|
|
87
|
+
]),
|
|
88
|
+
default: d(() => [
|
|
89
|
+
m(r($), { style: { color: "#0070ff" } })
|
|
90
|
+
]),
|
|
91
|
+
_: 2
|
|
92
|
+
}, 1024)) : p("", !0)
|
|
93
|
+
], 4)) : p("", !0)
|
|
94
|
+
]),
|
|
95
|
+
bodyCell: d(({
|
|
96
|
+
column: e,
|
|
97
|
+
index: a,
|
|
98
|
+
record: s
|
|
99
|
+
}) => [
|
|
100
|
+
t.editableFunc && t.editableFunc(e, s) && !e.customRender ? (l(), c("div", {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: i(r(o)("edit-cell")),
|
|
103
|
+
style: P(D(e))
|
|
104
|
+
}, [
|
|
105
|
+
e.editProps ? (l(), f(r(G), {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: i(r(o)("form-item")),
|
|
108
|
+
label: "",
|
|
109
|
+
labelAlign: "left",
|
|
110
|
+
name: [
|
|
111
|
+
...t.dataPath,
|
|
112
|
+
a,
|
|
113
|
+
e.dataIndex
|
|
114
|
+
],
|
|
115
|
+
rules: M(e, s)
|
|
116
|
+
}, {
|
|
117
|
+
default: d(() => [
|
|
118
|
+
u("div", {
|
|
119
|
+
class: i({
|
|
120
|
+
[r(o)("edit-wraper")]: !0,
|
|
121
|
+
[r(o)("field-error")]: !!s[e.dataIndex + "Error"]
|
|
122
|
+
})
|
|
123
|
+
}, [
|
|
124
|
+
(l(), f(O(r(R).get(e.editProps.component)), z({
|
|
125
|
+
value: s[e.dataIndex],
|
|
126
|
+
"onUpdate:value": (b) => s[e.dataIndex] = b
|
|
127
|
+
}, e.editProps.componentProps || {}, {
|
|
128
|
+
placeholder: N(e),
|
|
129
|
+
disabled: B(e, s),
|
|
130
|
+
onChange: (b) => S(s, a, e.dataIndex)
|
|
131
|
+
}), null, 16, ["value", "onUpdate:value", "placeholder", "disabled", "onChange"])),
|
|
132
|
+
s[e.dataIndex + "Error"] ? (l(), f(r(h), { key: 0 }, {
|
|
133
|
+
title: d(() => [
|
|
134
|
+
u("div", null, g(s[e.dataIndex + "Error"]), 1)
|
|
135
|
+
]),
|
|
136
|
+
default: d(() => [
|
|
137
|
+
m(r(C), {
|
|
138
|
+
class: i(r(o)("error-tip"))
|
|
139
|
+
}, null, 8, ["class"])
|
|
140
|
+
]),
|
|
141
|
+
_: 2
|
|
142
|
+
}, 1024)) : p("", !0)
|
|
143
|
+
], 2)
|
|
144
|
+
]),
|
|
145
|
+
_: 2
|
|
146
|
+
}, 1032, ["class", "name", "rules"])) : e.dataIndex !== "action" ? (l(), c("div", {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: i(r(o)("text-cell"))
|
|
149
|
+
}, [
|
|
150
|
+
L(g(s[e.dataIndex] || "--") + " ", 1),
|
|
151
|
+
s[e.dataIndex + "Error"] ? (l(), f(r(h), { key: 0 }, {
|
|
152
|
+
title: d(() => [
|
|
153
|
+
u("div", null, g(s[e.dataIndex + "Error"]), 1)
|
|
154
|
+
]),
|
|
155
|
+
default: d(() => [
|
|
156
|
+
m(r(C), {
|
|
157
|
+
class: i(r(o)("error-tip"))
|
|
158
|
+
}, null, 8, ["class"])
|
|
159
|
+
]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1024)) : p("", !0)
|
|
162
|
+
], 2)) : (l(), f(r(W), {
|
|
163
|
+
key: 2,
|
|
164
|
+
class: i(r(o)("action-cell")),
|
|
165
|
+
actions: t.actions(s, a)
|
|
166
|
+
}, null, 8, ["class", "actions"]))
|
|
167
|
+
], 6)) : p("", !0)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["class", "bordered", "columns", "data-source"])
|
|
171
|
+
], 2));
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
pe as default
|
|
176
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ProTableFormProps, TableActionTypes } from './types/table-form';
|
|
2
|
+
import { ValidateOptions } from 'ant-design-vue/lib/form/interface';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableFormProps>, {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
actions: () => never[];
|
|
8
|
+
bordered: boolean;
|
|
9
|
+
}>, {
|
|
10
|
+
validate: () => Promise<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
} | undefined>;
|
|
13
|
+
validateFields: (fields: (string | string[])[], options?: ValidateOptions) => Promise<{
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
} | undefined>;
|
|
16
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableFormProps>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
actions: () => never[];
|
|
19
|
+
bordered: boolean;
|
|
20
|
+
}>>>, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
bordered: boolean;
|
|
23
|
+
actions: TableActionTypes;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|