@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,56 @@
|
|
|
1
|
+
import { defineComponent as _, computed as n, onMounted as y, openBlock as z, createElementBlock as I, normalizeStyle as O, normalizeClass as i, createElementVNode as a, renderSlot as v, toDisplayString as B } from "vue";
|
|
2
|
+
import "../config-provider/index.mjs";
|
|
3
|
+
import { useOssInit as M, useOss as N } from "./hooks/index.mjs";
|
|
4
|
+
import "./style/ap-download.css";
|
|
5
|
+
import { useGlobalConfig as k } from "../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
import { useNamespace as A } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const F = { class: "icon" }, W = { class: "text" }, q = /* @__PURE__ */ _({
|
|
8
|
+
name: "ApDownload",
|
|
9
|
+
__name: "ap-download",
|
|
10
|
+
props: {
|
|
11
|
+
text: {},
|
|
12
|
+
color: { default: "#0070FF" },
|
|
13
|
+
size: { default: "middle" },
|
|
14
|
+
disabled: { type: Boolean, default: !1 },
|
|
15
|
+
fileName: {},
|
|
16
|
+
getOssAccess: {}
|
|
17
|
+
},
|
|
18
|
+
setup(l) {
|
|
19
|
+
const t = l, p = k("uiMode"), { b: o, bm: s } = A("download");
|
|
20
|
+
function c(e, r) {
|
|
21
|
+
e.length === 4 && (e = `#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);
|
|
22
|
+
const w = parseInt(e.slice(1, 3), 16), S = parseInt(e.slice(3, 5), 16), $ = parseInt(e.slice(5, 7), 16), b = Math.round(r * 255).toString(16).padStart(2, "0");
|
|
23
|
+
return `#${w.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${$.toString(16).padStart(2, "0")}${b}`;
|
|
24
|
+
}
|
|
25
|
+
const d = n(() => ({
|
|
26
|
+
"--download-main-color": t.color,
|
|
27
|
+
"--download-main-color-opacity": c(t.color, 0.6)
|
|
28
|
+
})), u = n(() => [o("wrapper"), s("wrapper", t.size)].filter(Boolean)), m = n(() => {
|
|
29
|
+
const e = [o("inner-wrapper"), s("inner-wrapper", t.size)];
|
|
30
|
+
return t.disabled && (p.value === "aplus" ? e.push(s("inner-wrapper", "disabled")) : e.push(s("inner-wrapper", "disabled-admin"))), e;
|
|
31
|
+
});
|
|
32
|
+
y(() => {
|
|
33
|
+
t.disabled || M(t.getOssAccess);
|
|
34
|
+
});
|
|
35
|
+
const { client: f } = N(), g = () => {
|
|
36
|
+
t.disabled || f.downloadFile(t.fileName);
|
|
37
|
+
};
|
|
38
|
+
return (e, r) => (z(), I("span", {
|
|
39
|
+
style: O(d.value),
|
|
40
|
+
class: i(u.value),
|
|
41
|
+
onClick: g
|
|
42
|
+
}, [
|
|
43
|
+
a("span", {
|
|
44
|
+
class: i(m.value)
|
|
45
|
+
}, [
|
|
46
|
+
a("span", F, [
|
|
47
|
+
v(e.$slots, "icon")
|
|
48
|
+
]),
|
|
49
|
+
a("span", W, B(e.text), 1)
|
|
50
|
+
], 2)
|
|
51
|
+
], 6));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
q as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { client as t } from "@aplus-frontend/oss";
|
|
2
|
+
function i() {
|
|
3
|
+
return { client: t };
|
|
4
|
+
}
|
|
5
|
+
async function e(n) {
|
|
6
|
+
if (!n)
|
|
7
|
+
throw new Error("请传入getOssAccess");
|
|
8
|
+
return await t.initOssClient({
|
|
9
|
+
getOssAccess: n,
|
|
10
|
+
onFailure: (s) => {
|
|
11
|
+
throw new Error(
|
|
12
|
+
typeof (s == null ? void 0 : s.message) == "string" ? s.message : "获取oss临时权限失败"
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
}), i();
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
i as useOss,
|
|
19
|
+
e as useOssInit
|
|
20
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface accessCreate {
|
|
2
|
+
bucket: string;
|
|
3
|
+
regionId: string;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
accessKeyId: string;
|
|
6
|
+
accessKeySecret: string;
|
|
7
|
+
expiration: number;
|
|
8
|
+
extInformation: string;
|
|
9
|
+
fileProvideType: string;
|
|
10
|
+
callbackUrl: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ApDownLoadProps {
|
|
13
|
+
/**
|
|
14
|
+
* 标签内容
|
|
15
|
+
*/
|
|
16
|
+
text: string;
|
|
17
|
+
/**
|
|
18
|
+
* 标签颜色
|
|
19
|
+
*/
|
|
20
|
+
color?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 标签大小
|
|
23
|
+
*/
|
|
24
|
+
size?: 'small' | 'middle' | 'large';
|
|
25
|
+
/**
|
|
26
|
+
* 是否禁用
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
fileName: string;
|
|
31
|
+
getOssAccess: () => Promise<accessCreate>;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.aplus-download-wrapper {
|
|
2
|
+
text-wrap: nowrap;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
.aplus-download-inner-wrapper {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
color: var(--download-main-color);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
.aplus-download-inner-wrapper .icon {
|
|
14
|
+
position: relative;
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
}
|
|
17
|
+
.aplus-download-inner-wrapper .text {
|
|
18
|
+
margin-left: 5px;
|
|
19
|
+
}
|
|
20
|
+
.aplus-download-inner-wrapper:hover {
|
|
21
|
+
color: var(--download-main-color-opacity);
|
|
22
|
+
}
|
|
23
|
+
.aplus-download-inner-wrapper--large {
|
|
24
|
+
line-height: 26px;
|
|
25
|
+
height: 28px;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
}
|
|
28
|
+
.aplus-download-inner-wrapper--middle {
|
|
29
|
+
line-height: 22px;
|
|
30
|
+
height: 24px;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
}
|
|
33
|
+
.aplus-download-inner-wrapper--small {
|
|
34
|
+
line-height: 19px;
|
|
35
|
+
height: 20px;
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
}
|
|
38
|
+
.aplus-download-inner-wrapper--disabled {
|
|
39
|
+
color: #8896b0;
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
.aplus-download-inner-wrapper--disabled:hover {
|
|
43
|
+
color: #8896b0;
|
|
44
|
+
}
|
|
45
|
+
.aplus-download-inner-wrapper--disabled-admin {
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
color: #999;
|
|
48
|
+
}
|
|
49
|
+
.aplus-download-inner-wrapper--disabled-admin:hover {
|
|
50
|
+
color: #999;
|
|
51
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as g, ref as m, onMounted as h, openBlock as o, createElementBlock as a, Fragment as l, unref as e, createTextVNode as d, toDisplayString as f, createBlock as c, mergeProps as C } from "vue";
|
|
2
|
-
import { isFunction as V, isNil as b } from "lodash-unified";
|
|
3
|
-
import { Spin as
|
|
2
|
+
import { isFunction as V, isNil as b, omit as _ } from "lodash-unified";
|
|
3
|
+
import { Spin as B, CheckboxGroup as T } from "ant-design-vue";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { getOptionValue as
|
|
5
|
+
import { getOptionValue as U, getOptionLabel as q } from "./helper.mjs";
|
|
6
6
|
import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
|
|
7
|
-
const
|
|
7
|
+
const E = /* @__PURE__ */ g({
|
|
8
8
|
name: "ApFieldCheckbox",
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "index",
|
|
@@ -24,34 +24,34 @@ const D = /* @__PURE__ */ g({
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:value"],
|
|
26
26
|
setup(v, { emit: y }) {
|
|
27
|
-
const k = y, t = v, n = m(t.options),
|
|
27
|
+
const k = y, t = v, n = m(t.options), u = m(!1);
|
|
28
28
|
h(() => {
|
|
29
|
-
V(t.request) && (
|
|
30
|
-
|
|
29
|
+
V(t.request) && (u.value = !0, t.request().then((p) => n.value = p).finally(() => {
|
|
30
|
+
u.value = !1;
|
|
31
31
|
}));
|
|
32
32
|
});
|
|
33
|
-
const { value:
|
|
33
|
+
const { value: i, updateValue: x } = F(
|
|
34
34
|
t,
|
|
35
35
|
k,
|
|
36
36
|
{
|
|
37
37
|
defaultValue: []
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
return (
|
|
40
|
+
return (p, O) => {
|
|
41
41
|
var s;
|
|
42
|
-
return
|
|
43
|
-
e(b)(e(
|
|
42
|
+
return p.mode === "read" ? (o(), a(l, { key: 0 }, [
|
|
43
|
+
e(b)(e(i)) ? (o(), a(l, { key: 0 }, [
|
|
44
44
|
d(f(t.emptyText), 1)
|
|
45
45
|
], 64)) : (o(), a(l, { key: 1 }, [
|
|
46
|
-
d(f(((s = n.value) == null ? void 0 : s.filter((
|
|
46
|
+
d(f(((s = n.value) == null ? void 0 : s.filter((r) => e(i).indexOf(e(U)(r)) > -1).map((r) => e(q)(r)).join("、")) || t.emptyText), 1)
|
|
47
47
|
], 64))
|
|
48
48
|
], 64)) : (o(), a(l, { key: 1 }, [
|
|
49
|
-
|
|
49
|
+
u.value ? (o(), c(e(B), {
|
|
50
50
|
key: 0,
|
|
51
51
|
size: "small"
|
|
52
|
-
})) : (o(), c(e(
|
|
52
|
+
})) : (o(), c(e(T), C({ key: 1 }, e(_)(t, ["onUpdate:value", "value"]), {
|
|
53
53
|
options: n.value,
|
|
54
|
-
value: e(
|
|
54
|
+
value: e(i),
|
|
55
55
|
"onUpdate:value": e(x)
|
|
56
56
|
}), null, 16, ["options", "value", "onUpdate:value"]))
|
|
57
57
|
], 64));
|
|
@@ -59,5 +59,5 @@ const D = /* @__PURE__ */ g({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
E as default
|
|
63
63
|
};
|
|
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
30
|
}, {
|
|
31
31
|
mode: FieldMode;
|
|
32
32
|
format: string;
|
|
33
|
-
fieldProps: Omit< DatePickerProps, "mode" | "onOk" | "onChange" | "value" | "defaultValue" | "format">;
|
|
33
|
+
fieldProps: Omit< DatePickerProps, "mode" | "onOk" | "onChange" | "value" | "onUpdate:value" | "defaultValue" | "format">;
|
|
34
34
|
}, {}>, Readonly<ApFieldDataSlots> & ApFieldDataSlots>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -32,7 +32,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
32
32
|
mode: FieldMode;
|
|
33
33
|
format: string;
|
|
34
34
|
emptyText: string;
|
|
35
|
-
fieldProps: Omit< RangePickerProps, "onOk" | "onChange" | "value" | "defaultValue" | "renderExtraFooter" | "onPanelChange">;
|
|
35
|
+
fieldProps: Omit< RangePickerProps, "onOk" | "onChange" | "value" | "onUpdate:value" | "defaultValue" | "renderExtraFooter" | "onPanelChange">;
|
|
36
36
|
}, {}>, Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots>;
|
|
37
37
|
export default _default;
|
|
38
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as V, computed as
|
|
2
|
-
import { ApFieldDatePresetFormats as
|
|
1
|
+
import { defineComponent as V, computed as c, unref as t, openBlock as k, createElementBlock as _, Fragment as g, createTextVNode as O, toDisplayString as D, createVNode as x, createBlock as B, mergeProps as N, createSlots as w, renderList as I, withCtx as U, renderSlot as $, normalizeProps as b, guardReactiveProps as j } from "vue";
|
|
2
|
+
import { ApFieldDatePresetFormats as z, PRESET_FORMAT_MAP as K, PRESET_FORMAT_PICK_MAP as L, PRESET_FORMAT_TIME_MAP as Y } from "../date/constant.mjs";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
4
|
+
import { isNil as q, isString as m } from "lodash-unified";
|
|
5
5
|
import u from "dayjs";
|
|
6
|
-
import { DatePicker as
|
|
7
|
-
import { formatDay as
|
|
8
|
-
import { SwapRightOutlined as
|
|
9
|
-
import { useControllableValue as
|
|
10
|
-
const
|
|
6
|
+
import { DatePicker as G } from "ant-design-vue";
|
|
7
|
+
import { formatDay as s, formatValue as h } from "../date/helper.mjs";
|
|
8
|
+
import { SwapRightOutlined as H } from "@ant-design/icons-vue";
|
|
9
|
+
import { useControllableValue as J } from "../../hooks/useControllableValue.mjs";
|
|
10
|
+
const ne = /* @__PURE__ */ V({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
mode: { default: "edit" },
|
|
@@ -20,62 +20,68 @@ const ae = /* @__PURE__ */ V({
|
|
|
20
20
|
format: { default: "Y-D" }
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:value"],
|
|
23
|
-
setup(
|
|
24
|
-
const o =
|
|
25
|
-
() =>
|
|
26
|
-
), n =
|
|
27
|
-
() => l.value ?
|
|
28
|
-
), { value:
|
|
23
|
+
setup(R, { emit: y }) {
|
|
24
|
+
const o = R, C = y, l = c(
|
|
25
|
+
() => z.indexOf(o.format) > -1
|
|
26
|
+
), n = c(
|
|
27
|
+
() => l.value ? K[o.format] : o.format
|
|
28
|
+
), { value: d, updateValue: T } = J(
|
|
29
29
|
o,
|
|
30
|
-
|
|
31
|
-
),
|
|
30
|
+
C
|
|
31
|
+
), p = c(() => {
|
|
32
32
|
var e, r;
|
|
33
|
-
if (!
|
|
33
|
+
if (!q(t(d)))
|
|
34
34
|
return [
|
|
35
|
-
u((e = t(
|
|
36
|
-
u((r = t(
|
|
35
|
+
u((e = t(d)) == null ? void 0 : e[0]),
|
|
36
|
+
u((r = t(d)) == null ? void 0 : r[1])
|
|
37
37
|
];
|
|
38
|
-
}),
|
|
39
|
-
const e = t(l) ?
|
|
38
|
+
}), E = c(() => t(l) ? o.fieldProps.picker ?? L[o.format] : o.fieldProps.picker), S = c(() => {
|
|
39
|
+
const e = t(l) ? Y[o.format] : {};
|
|
40
40
|
return {
|
|
41
41
|
...o.fieldProps,
|
|
42
42
|
...e
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
|
-
function
|
|
46
|
-
e ||
|
|
47
|
-
const r =
|
|
48
|
-
t(l) ?
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
]) :
|
|
45
|
+
function A(e) {
|
|
46
|
+
e || T(null);
|
|
47
|
+
const r = m(e[0]) ? u(e[0]) : e[0], a = m(e[1]) ? u(e[1]) : e[1];
|
|
48
|
+
t(l) ? T([
|
|
49
|
+
s(r, t(n)),
|
|
50
|
+
s(a, t(n), !1)
|
|
51
|
+
]) : T([h(r), h(a)]);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function F(e) {
|
|
54
54
|
var i;
|
|
55
|
-
const r =
|
|
56
|
-
(i = o.onOk) == null || i.call(o, [f,
|
|
55
|
+
const r = m(e[0]) ? u(e[0]) : e[0], a = m(e[1]) ? u(e[1]) : e[1], f = e[0] ? t(l) ? s(r, t(n)) : r.valueOf() : null, v = e[1] ? t(l) ? s(a, t(n), !1) : a.valueOf() : null;
|
|
56
|
+
(i = o.onOk) == null || i.call(o, [f, v]);
|
|
57
|
+
}
|
|
58
|
+
function M(e, r) {
|
|
59
|
+
var P;
|
|
60
|
+
const a = m(e[0]) ? u(e[0]) : e[0], f = m(e[1]) ? u(e[1]) : e[1], v = e[0] ? t(l) ? s(a, t(n)) : a.valueOf() : null, i = e[1] ? t(l) ? s(f, t(n), !1) : f.valueOf() : null;
|
|
61
|
+
(P = o.onChange) == null || P.call(o, [v, i], r);
|
|
57
62
|
}
|
|
58
63
|
return (e, r) => {
|
|
59
64
|
var a, f;
|
|
60
|
-
return e.mode === "read" ? (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
], 64)) : (
|
|
66
|
-
|
|
65
|
+
return e.mode === "read" ? (k(), _(g, { key: 0 }, [
|
|
66
|
+
p.value ? (k(), _(g, { key: 0 }, [
|
|
67
|
+
O(D((a = p.value[0]) == null ? void 0 : a.format(n.value)) + " ", 1),
|
|
68
|
+
x(t(H)),
|
|
69
|
+
O(" " + D((f = p.value[1]) == null ? void 0 : f.format(n.value)), 1)
|
|
70
|
+
], 64)) : (k(), _(g, { key: 1 }, [
|
|
71
|
+
O(D(e.emptyText), 1)
|
|
67
72
|
], 64))
|
|
68
|
-
], 64)) : (
|
|
69
|
-
value:
|
|
70
|
-
"onUpdate:value":
|
|
71
|
-
|
|
73
|
+
], 64)) : (k(), B(t(G).RangePicker, N({ key: 1 }, S.value, {
|
|
74
|
+
value: p.value,
|
|
75
|
+
"onUpdate:value": A,
|
|
76
|
+
onChange: M,
|
|
77
|
+
picker: E.value,
|
|
72
78
|
format: n.value,
|
|
73
|
-
onOk:
|
|
74
|
-
}),
|
|
75
|
-
|
|
79
|
+
onOk: F
|
|
80
|
+
}), w({ _: 2 }, [
|
|
81
|
+
I(e.$slots, (v, i) => ({
|
|
76
82
|
name: i,
|
|
77
|
-
fn:
|
|
78
|
-
|
|
83
|
+
fn: U((P) => [
|
|
84
|
+
$(e.$slots, i, b(j(P || {})))
|
|
79
85
|
])
|
|
80
86
|
}))
|
|
81
87
|
]), 1040, ["value", "picker", "format"]));
|
|
@@ -83,5 +89,5 @@ const ae = /* @__PURE__ */ V({
|
|
|
83
89
|
}
|
|
84
90
|
});
|
|
85
91
|
export {
|
|
86
|
-
|
|
92
|
+
ne as default
|
|
87
93
|
};
|
|
@@ -27,7 +27,7 @@ export type ApFieldCheckboxProps = BasicApFieldProps<CheckboxGroupProps> & {
|
|
|
27
27
|
emptyText?: string;
|
|
28
28
|
request?: () => Promise<CheckboxGroupProps['options']>;
|
|
29
29
|
};
|
|
30
|
-
export type ApFieldDateProps = ApFieldComposedProps<Omit<DatePickerProps, 'mode' | 'value' | 'defaultValue' | 'onChange' | 'onOk' | 'format'>> & {
|
|
30
|
+
export type ApFieldDateProps = ApFieldComposedProps<Omit<DatePickerProps, 'mode' | 'value' | 'defaultValue' | 'onChange' | 'onOk' | 'format' | 'onUpdate:value'>> & {
|
|
31
31
|
emptyText?: string;
|
|
32
32
|
value?: number | null;
|
|
33
33
|
defaultValue?: number;
|
|
@@ -71,11 +71,11 @@ export type ApFieldTextAreaExpose = {
|
|
|
71
71
|
blur: () => void;
|
|
72
72
|
resizableTextArea: any;
|
|
73
73
|
};
|
|
74
|
-
export type ApFieldDateRangeProps = ApFieldComposedProps<Omit<RangePickerProps, 'value' | 'onChange' | 'onPanelChange' | 'defaultValue' | 'onOk' | 'renderExtraFooter'>> & {
|
|
74
|
+
export type ApFieldDateRangeProps = ApFieldComposedProps<Omit<RangePickerProps, 'value' | 'onChange' | 'onPanelChange' | 'defaultValue' | 'onOk' | 'renderExtraFooter' | 'onUpdate:value'>> & {
|
|
75
75
|
emptyText?: string;
|
|
76
76
|
value?: RangeValue<number>;
|
|
77
77
|
defaultValue?: RangeValue<number>;
|
|
78
|
-
onChange?: (ts: RangeValue<number>, dayStr: string) => void;
|
|
78
|
+
onChange?: (ts: RangeValue<number>, dayStr: [string, string]) => void;
|
|
79
79
|
onOk?: (ts: RangeValue<number>) => void;
|
|
80
80
|
format?: LiteralUnion<ApFormatPresetType, string>;
|
|
81
81
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, ref as C, computed as x, unref as o, openBlock as r, createElementBlock as n, Fragment as N, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as V, toDisplayString as $, createBlock as D, mergeProps as P, createSlots as R, renderList as A, withCtx as I, normalizeProps as
|
|
2
|
-
import { InputNumber as
|
|
1
|
+
import { defineComponent as h, ref as C, computed as x, unref as o, openBlock as r, createElementBlock as n, Fragment as N, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as V, toDisplayString as $, createBlock as D, mergeProps as P, createSlots as R, renderList as A, withCtx as I, normalizeProps as U, guardReactiveProps as z } from "vue";
|
|
2
|
+
import { InputNumber as E } from "ant-design-vue";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
5
|
-
import { toDecimalMark as
|
|
4
|
+
import { isNil as F, omit as M } from "lodash-unified";
|
|
5
|
+
import { toDecimalMark as T } from "@fruits-chain/utils";
|
|
6
6
|
import { addZeroToDecimalPlaces as _ } from "./helper.mjs";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import "./style.css";
|
|
@@ -59,9 +59,9 @@ const Y = /* @__PURE__ */ h({
|
|
|
59
59
|
v
|
|
60
60
|
), b = x(() => {
|
|
61
61
|
let e = o(u);
|
|
62
|
-
if (
|
|
62
|
+
if (F(e))
|
|
63
63
|
return t.emptyText;
|
|
64
|
-
let a = t.thousands ?
|
|
64
|
+
let a = t.thousands ? T(e, t.precision) : String(e);
|
|
65
65
|
return t.precision && t.limitDecimalsRetain && (a = _(a, t.precision)), a;
|
|
66
66
|
});
|
|
67
67
|
function k() {
|
|
@@ -86,7 +86,7 @@ const Y = /* @__PURE__ */ h({
|
|
|
86
86
|
}, [
|
|
87
87
|
s(e.$slots, "addonAfter")
|
|
88
88
|
], 2)) : m("", !0)
|
|
89
|
-
], 64)) : (r(), D(o(
|
|
89
|
+
], 64)) : (r(), D(o(E), P({ key: 1 }, o(M)(t, ["value", "onUpdate:value"]), {
|
|
90
90
|
value: o(u),
|
|
91
91
|
"onUpdate:value": o(B),
|
|
92
92
|
ref_key: "inputRef",
|
|
@@ -95,7 +95,7 @@ const Y = /* @__PURE__ */ h({
|
|
|
95
95
|
A(e.$slots, (Z, p) => ({
|
|
96
96
|
name: p,
|
|
97
97
|
fn: I((S) => [
|
|
98
|
-
s(e.$slots, p, z(
|
|
98
|
+
s(e.$slots, p, U(z(S || {})))
|
|
99
99
|
])
|
|
100
100
|
}))
|
|
101
101
|
]), 1040, ["value", "onUpdate:value"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as V, ref as i, onMounted as q, computed as B, unref as o, openBlock as n, createElementBlock as m, Fragment as d, createTextVNode as C, toDisplayString as R, createBlock as f, mergeProps as
|
|
2
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as V, ref as i, onMounted as q, computed as B, unref as o, openBlock as n, createElementBlock as m, Fragment as d, createTextVNode as C, toDisplayString as R, createBlock as f, mergeProps as U } from "vue";
|
|
2
|
+
import { Spin as h, RadioGroup as G } from "ant-design-vue";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
4
|
+
import { isNil as S, omit as z } from "lodash-unified";
|
|
5
5
|
import { getOptionValue as F, getOptionLabel as N } from "./helper.mjs";
|
|
6
6
|
import { useControllableValue as O } from "../../hooks/useControllableValue.mjs";
|
|
7
7
|
const j = /* @__PURE__ */ V({
|
|
@@ -35,7 +35,7 @@ const j = /* @__PURE__ */ V({
|
|
|
35
35
|
const k = B(() => {
|
|
36
36
|
var p;
|
|
37
37
|
const e = o(s);
|
|
38
|
-
if (
|
|
38
|
+
if (S(e))
|
|
39
39
|
return t.emptyText;
|
|
40
40
|
const a = (p = l.value) == null ? void 0 : p.find(
|
|
41
41
|
(_) => e === F(_)
|
|
@@ -56,10 +56,10 @@ const j = /* @__PURE__ */ V({
|
|
|
56
56
|
}), (e, a) => e.mode === "read" ? (n(), m(d, { key: 0 }, [
|
|
57
57
|
C(R(k.value), 1)
|
|
58
58
|
], 64)) : (n(), m(d, { key: 1 }, [
|
|
59
|
-
r.value ? (n(), f(o(
|
|
59
|
+
r.value ? (n(), f(o(h), {
|
|
60
60
|
key: 0,
|
|
61
61
|
size: "small"
|
|
62
|
-
})) : (n(), f(o(
|
|
62
|
+
})) : (n(), f(o(G), U({ key: 1 }, o(z)(t, ["value", "onUpdate:value", "options", "request"]), {
|
|
63
63
|
value: o(s),
|
|
64
64
|
"onUpdate:value": o(x),
|
|
65
65
|
options: l.value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFieldSwitchProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type
|
|
4
|
+
type ApFieldSwitchSlots = {
|
|
5
5
|
checkedChildren: any;
|
|
6
6
|
unCheckedChildren: any;
|
|
7
7
|
default: any;
|
|
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
28
28
|
checkedValue: string | number | boolean;
|
|
29
29
|
unCheckedValue: string | number | boolean;
|
|
30
30
|
emptyText: string;
|
|
31
|
-
}, {}>, Readonly<
|
|
31
|
+
}, {}>, Readonly<ApFieldSwitchSlots> & ApFieldSwitchSlots>;
|
|
32
32
|
export default _default;
|
|
33
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
34
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as U, useSlots as
|
|
1
|
+
import { defineComponent as U, useSlots as z, ref as D, unref as o, computed as T, createVNode as u, Fragment as s, openBlock as h, createBlock as k, resolveDynamicComponent as $, createElementBlock as E, mergeProps as p, createSlots as g, renderList as V, withCtx as C, renderSlot as v, normalizeProps as B, guardReactiveProps as w } from "vue";
|
|
2
2
|
import { Switch as A, Popconfirm as K } from "ant-design-vue";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as L, omit as P } from "lodash-unified";
|
|
@@ -48,14 +48,14 @@ const J = /* @__PURE__ */ U({
|
|
|
48
48
|
},
|
|
49
49
|
emits: ["update:checked"],
|
|
50
50
|
setup(S, {
|
|
51
|
-
emit:
|
|
51
|
+
emit: b
|
|
52
52
|
}) {
|
|
53
|
-
const
|
|
54
|
-
value:
|
|
53
|
+
const c = z(), n = S, N = b, {
|
|
54
|
+
value: l,
|
|
55
55
|
updateValue: a
|
|
56
|
-
} = M(n,
|
|
56
|
+
} = M(n, N, {
|
|
57
57
|
valuePropName: "checked"
|
|
58
|
-
}), i =
|
|
58
|
+
}), i = D(!1);
|
|
59
59
|
async function y(e, r) {
|
|
60
60
|
if (!f(n.confirm)) {
|
|
61
61
|
if (!f(n.onAction)) {
|
|
@@ -70,51 +70,51 @@ const J = /* @__PURE__ */ U({
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
74
|
-
const e = o(
|
|
73
|
+
async function _() {
|
|
74
|
+
const e = o(l) === n.checkedValue ? n.unCheckedValue : n.checkedValue;
|
|
75
75
|
if (!f(n.onAction)) {
|
|
76
76
|
a(e);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
await n.onAction(e) && a(e);
|
|
80
80
|
}
|
|
81
|
-
const F =
|
|
82
|
-
var
|
|
83
|
-
const e = o(
|
|
84
|
-
return L(e) ? u(s, null, [n.emptyText]) : e === n.checkedValue ? u(s, null, [n.checkedChildren || ((
|
|
81
|
+
const F = T(() => {
|
|
82
|
+
var t, d;
|
|
83
|
+
const e = o(l);
|
|
84
|
+
return L(e) ? u(s, null, [n.emptyText]) : e === n.checkedValue ? u(s, null, [n.checkedChildren || ((t = c.checkedChildren) == null ? void 0 : t.call(c)) || n.checkedValue]) : u(s, null, [n.unCheckedChildren || ((d = c.unCheckedChildren) == null ? void 0 : d.call(c)) || n.unCheckedValue]);
|
|
85
85
|
});
|
|
86
|
-
return (e, r) => e.mode === "read" ? (h(), k(
|
|
86
|
+
return (e, r) => e.mode === "read" ? (h(), k($(F.value), {
|
|
87
87
|
key: 0
|
|
88
88
|
})) : (h(), E(s, {
|
|
89
89
|
key: 1
|
|
90
|
-
}, [o(f)(e.confirm) ? (h(), k(o(
|
|
90
|
+
}, [!o(f)(e.confirm) || e.disabled ? (h(), k(o(A), p({
|
|
91
|
+
key: 0
|
|
92
|
+
}, o(P)(n, "onUpdate:checked"), {
|
|
93
|
+
checked: o(l),
|
|
94
|
+
onClick: y,
|
|
95
|
+
loading: e.loading ?? i.value
|
|
96
|
+
}), g({
|
|
97
|
+
_: 2
|
|
98
|
+
}, [V(c, (t, d) => ({
|
|
99
|
+
name: d,
|
|
100
|
+
fn: C((m) => [v(e.$slots, d, B(w(m || {})))])
|
|
101
|
+
}))]), 1040, ["checked", "loading"])) : (h(), k(o(K), p({
|
|
91
102
|
key: 1
|
|
92
103
|
}, e.confirm || {}, {
|
|
93
|
-
onConfirm:
|
|
104
|
+
onConfirm: _
|
|
94
105
|
}), {
|
|
95
106
|
default: C(() => [u(o(A), p(o(P)(n, "onUpdate:checked"), {
|
|
96
|
-
checked: o(
|
|
107
|
+
checked: o(l),
|
|
97
108
|
onClick: y,
|
|
98
109
|
loading: e.loading ?? i.value
|
|
99
110
|
}), g({
|
|
100
111
|
_: 2
|
|
101
|
-
}, [V(
|
|
102
|
-
name:
|
|
103
|
-
fn: C((m) => [v(e.$slots,
|
|
112
|
+
}, [V(c, (t, d) => ({
|
|
113
|
+
name: d,
|
|
114
|
+
fn: C((m) => [v(e.$slots, d, B(w(m || {})))])
|
|
104
115
|
}))]), 1040, ["checked", "loading"])]),
|
|
105
116
|
_: 3
|
|
106
|
-
}, 16))
|
|
107
|
-
key: 0
|
|
108
|
-
}, o(P)(n, "onUpdate:checked"), {
|
|
109
|
-
checked: o(d),
|
|
110
|
-
onClick: y,
|
|
111
|
-
loading: e.loading ?? i.value
|
|
112
|
-
}), g({
|
|
113
|
-
_: 2
|
|
114
|
-
}, [V(e.$slots, (l, c) => ({
|
|
115
|
-
name: c,
|
|
116
|
-
fn: C((m) => [v(e.$slots, c, B(w(m || {})))])
|
|
117
|
-
}))]), 1040, ["checked", "loading"]))], 64));
|
|
117
|
+
}, 16))], 64));
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
export {
|