@aplus-frontend/ui 0.1.20 → 0.1.22
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 +176 -170
- package/es/src/ap-action/group/index.vue.d.ts +7 -6
- package/es/src/ap-action/item/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/es/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/es/src/ap-custom-column/column-select.vue.mjs +47 -46
- package/es/src/ap-custom-column/custom-column.vue.mjs +36 -35
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/es/src/ap-download/ap-download.vue.d.ts +17 -12
- package/es/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/es/src/ap-field/date/index.vue.d.ts +18 -12
- package/es/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/es/src/ap-field/number/index.vue.d.ts +459 -12
- package/es/src/ap-field/radio/index.vue.d.ts +6 -5
- package/es/src/ap-field/rate/index.vue.d.ts +138 -16
- package/es/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/es/src/ap-field/select/index.vue.d.ts +597 -16
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +375 -12
- package/es/src/ap-field/switch/index.vue.d.ts +16 -11
- package/es/src/ap-field/text/index.vue.d.ts +19 -13
- package/es/src/ap-field/text/password.vue.d.ts +19 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/es/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/es/src/ap-form/ap-form-item.vue.mjs +47 -44
- package/es/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/es/src/ap-form/ap-form.vue.d.ts +884 -13
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/es/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/es/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/es/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/es/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/es/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/es/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/es/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/es/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/es/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/es/src/ap-list/index.vue.d.ts +5 -5
- package/es/src/ap-modal/interface.d.ts +3 -3
- package/es/src/ap-modal/utils/createModal.mjs +4 -4
- package/es/src/ap-table/ap-table.vue.d.ts +5 -5
- package/es/src/ap-table/ap-table.vue.mjs +107 -107
- package/es/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/es/src/ap-table/constants.d.ts +1071 -1072
- package/es/src/ap-table/constants.mjs +11 -9
- package/es/src/ap-table/hooks/use-table-paging.d.ts +14 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +115 -103
- package/es/src/ap-table/interface.d.ts +13 -4
- package/es/src/ap-table/style/ap-table.css +9 -0
- package/es/src/ap-table/utils.d.ts +597 -598
- package/es/src/ap-table/utils.mjs +44 -39
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/es/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/es/src/base-button/button.vue.d.ts +17 -12
- package/es/src/base-button/index.d.ts +30 -30
- package/es/src/basic/index.d.ts +6 -6
- package/es/src/basic/title.vue.d.ts +16 -11
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/es/src/business/ap-image/ApImage.vue.d.ts +31 -62
- package/es/src/business/ap-image/ApImage.vue2.mjs +30 -26
- package/es/src/business/ap-image/interface.d.ts +17 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/es/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +41 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +29 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +28 -0
- package/es/src/business/ap-table-modal/index.d.ts +538 -0
- package/es/src/business/ap-table-modal/index.mjs +11 -0
- package/es/src/business/ap-table-modal/interface.d.ts +63 -0
- package/es/src/business/ap-table-modal/interface.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/es/src/business/ap-table-modal/modal-title.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +50 -0
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/es/src/business/ap-table-modal/table-modal.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +177 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/es/src/business/index.d.ts +160 -152
- package/es/src/business/index.mjs +18 -16
- package/es/src/business/title/ApTitle.vue.d.ts +17 -12
- package/es/src/button/button.vue.d.ts +12 -7
- package/es/src/button/index.d.ts +2 -2
- package/es/src/check-card/group.vue.d.ts +18 -13
- package/es/src/check-card/index.vue.d.ts +16 -11
- package/es/src/config-provider/config-provider-props.d.ts +6 -4
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/config-provider.mjs +9 -9
- package/es/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/es/src/config-provider/index.d.ts +17 -17
- package/es/src/container/index.d.ts +4 -4
- package/es/src/container/scroll-container.vue.d.ts +181 -8
- package/es/src/count-down/button.vue.d.ts +4 -4
- package/es/src/count-down/index.d.ts +8 -8
- package/es/src/count-down/input.vue.d.ts +16 -11
- package/es/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/es/src/cropper/cropper-image.vue.d.ts +4 -4
- package/es/src/cropper/index.d.ts +4 -4
- package/es/src/description/index.d.ts +2 -2
- package/es/src/dropdown/dropdown.vue.d.ts +16 -11
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +5 -5
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/icon/icon.vue.d.ts +4 -5
- package/es/src/icon/index.d.ts +16 -16
- package/es/src/icon/svg-icon.vue.d.ts +4 -4
- package/es/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/es/src/icon-picker/index.d.ts +2 -2
- package/es/src/index.mjs +69 -63
- package/es/src/locale/lang/en.mjs +29 -2
- package/es/src/locale/lang/zh-cn.mjs +29 -2
- package/es/src/modal/basic.vue.d.ts +210 -5
- package/es/src/modal/components/modal-close.vue.d.ts +4 -4
- package/es/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/es/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +5 -5
- package/es/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/es/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/es/src/pro-form/pro-form.vue.d.ts +888 -15
- package/es/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/es/src/pro-form/table-form.vue.d.ts +6 -5
- package/es/src/pro-form/types/form.d.ts +4 -4
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/es/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/es/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/es/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/es/src/prompt/utils.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +2 -2
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/es/src/strength-meter/index.d.ts +2 -2
- package/es/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/es/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/es/src/theme/ap-table/ap-table.css +9 -0
- package/es/src/theme/css-var/index.mjs +23 -7
- package/es/src/transition/collapse-transition.vue.d.ts +7 -2
- package/es/src/utils/config-provider-preset.d.ts +5 -5
- package/es/src/work-order-modal/createWorkOrder.mjs +20 -12
- package/es/src/work-order-modal/help-message.vue2.mjs +21 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +64 -62
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +7 -6
- package/lib/src/ap-action/item/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/lib/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/lib/src/ap-download/ap-download.vue.d.ts +17 -12
- package/lib/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/lib/src/ap-field/date/index.vue.d.ts +18 -12
- package/lib/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/lib/src/ap-field/number/index.vue.d.ts +459 -12
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -5
- package/lib/src/ap-field/rate/index.vue.d.ts +138 -16
- package/lib/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/lib/src/ap-field/select/index.vue.d.ts +597 -16
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +375 -12
- package/lib/src/ap-field/switch/index.vue.d.ts +16 -11
- package/lib/src/ap-field/text/index.vue.d.ts +19 -13
- package/lib/src/ap-field/text/password.vue.d.ts +19 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/lib/src/ap-form/ap-form.vue.d.ts +884 -13
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/lib/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/lib/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/lib/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/lib/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/lib/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/lib/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/lib/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/lib/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/lib/src/ap-list/index.vue.d.ts +5 -5
- package/lib/src/ap-modal/interface.d.ts +3 -3
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +5 -5
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/lib/src/ap-table/constants.d.ts +1071 -1072
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +14 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -4
- package/lib/src/ap-table/style/ap-table.css +9 -0
- package/lib/src/ap-table/utils.d.ts +597 -598
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/lib/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/lib/src/base-button/button.vue.d.ts +17 -12
- package/lib/src/base-button/index.d.ts +30 -30
- package/lib/src/basic/index.d.ts +6 -6
- package/lib/src/basic/title.vue.d.ts +16 -11
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/lib/src/business/ap-image/ApImage.vue.d.ts +31 -62
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +17 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -0
- package/lib/src/business/ap-table-modal/index.d.ts +538 -0
- package/lib/src/business/ap-table-modal/index.js +1 -0
- package/lib/src/business/ap-table-modal/interface.d.ts +63 -0
- package/lib/src/business/ap-table-modal/interface.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/lib/src/business/index.d.ts +160 -152
- package/lib/src/business/index.js +1 -1
- package/lib/src/business/title/ApTitle.vue.d.ts +17 -12
- package/lib/src/button/button.vue.d.ts +12 -7
- package/lib/src/button/index.d.ts +2 -2
- package/lib/src/check-card/group.vue.d.ts +18 -13
- package/lib/src/check-card/index.vue.d.ts +16 -11
- package/lib/src/config-provider/config-provider-props.d.ts +6 -4
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/lib/src/config-provider/index.d.ts +17 -17
- package/lib/src/container/index.d.ts +4 -4
- package/lib/src/container/scroll-container.vue.d.ts +181 -8
- package/lib/src/count-down/button.vue.d.ts +4 -4
- package/lib/src/count-down/index.d.ts +8 -8
- package/lib/src/count-down/input.vue.d.ts +16 -11
- package/lib/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/lib/src/cropper/cropper-image.vue.d.ts +4 -4
- package/lib/src/cropper/index.d.ts +4 -4
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/dropdown/dropdown.vue.d.ts +16 -11
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +5 -5
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/icon/icon.vue.d.ts +4 -5
- package/lib/src/icon/index.d.ts +16 -16
- package/lib/src/icon/svg-icon.vue.d.ts +4 -4
- package/lib/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/lib/src/icon-picker/index.d.ts +2 -2
- 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 +210 -5
- package/lib/src/modal/components/modal-close.vue.d.ts +4 -4
- package/lib/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +5 -5
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/lib/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/lib/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/lib/src/pro-form/pro-form.vue.d.ts +888 -15
- package/lib/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/lib/src/pro-form/table-form.vue.d.ts +6 -5
- package/lib/src/pro-form/types/form.d.ts +4 -4
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/lib/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/lib/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/lib/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/lib/src/prompt/utils.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +2 -2
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/lib/src/strength-meter/index.d.ts +2 -2
- package/lib/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/lib/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/lib/src/theme/ap-table/ap-table.css +9 -0
- package/lib/src/theme/css-var/index.js +1 -1
- package/lib/src/transition/collapse-transition.vue.d.ts +7 -2
- package/lib/src/utils/config-provider-preset.d.ts +5 -5
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +4 -4
package/es/src/prompt/utils.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ export declare const Scrollbar: {
|
|
|
164
164
|
viewClass: string | string[];
|
|
165
165
|
viewStyle: string | string[];
|
|
166
166
|
tag: string;
|
|
167
|
-
}, {}, string, {}> &
|
|
167
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
168
168
|
$slots: {
|
|
169
169
|
default?(_: {}): any;
|
|
170
170
|
};
|
|
@@ -172,5 +172,5 @@ export declare const Scrollbar: {
|
|
|
172
172
|
$props: {
|
|
173
173
|
onClick?: () => void;
|
|
174
174
|
};
|
|
175
|
-
}))
|
|
175
|
+
}));
|
|
176
176
|
export default Scrollbar;
|
|
@@ -2,8 +2,16 @@ import { ScrollbarProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { StyleValue } from '../type';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {
|
|
9
|
+
wrap: HTMLDivElement;
|
|
10
|
+
resize: unknown;
|
|
11
|
+
};
|
|
12
|
+
attrs: Partial<{}>;
|
|
6
13
|
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
7
15
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ScrollbarProps>, {
|
|
8
16
|
wrapStyle: string;
|
|
9
17
|
wrapClass: string;
|
|
@@ -28,21 +36,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
28
36
|
viewStyle: string | string[];
|
|
29
37
|
tag: string;
|
|
30
38
|
}, {}>;
|
|
31
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
40
|
export default _default;
|
|
33
41
|
type __VLS_WithDefaults<P, D> = {
|
|
34
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
35
43
|
default: D[K];
|
|
36
44
|
}> : P[K];
|
|
37
45
|
};
|
|
38
|
-
type __VLS_Prettify<T> = {
|
|
39
|
-
[K in keyof T]: T[K];
|
|
40
|
-
} & {};
|
|
41
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
-
new (): {
|
|
43
|
-
$slots: S;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
46
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
47
|
type __VLS_TypePropsToOption<T> = {
|
|
48
48
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -52,3 +52,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
52
52
|
required: true;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type __VLS_PrettifyLocal<T> = {
|
|
61
|
+
[K in keyof T]: T[K];
|
|
62
|
+
} & {};
|
|
@@ -80,10 +80,10 @@ export declare const StrengthMeter: {
|
|
|
80
80
|
"score-change": (...args: any[]) => void;
|
|
81
81
|
}, string, {
|
|
82
82
|
showInput: boolean;
|
|
83
|
-
}, {}, string, {}> &
|
|
83
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
84
84
|
$slots: Partial<Record<string, (_: any) => any>>;
|
|
85
85
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
86
86
|
$props: {
|
|
87
87
|
onClick?: () => void;
|
|
88
88
|
};
|
|
89
|
-
}))
|
|
89
|
+
}));
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { StrengthMeterProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
declare function __VLS_template():
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
9
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<StrengthMeterProps>, {
|
|
5
10
|
showInput: boolean;
|
|
6
11
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -14,21 +19,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
14
19
|
}, {
|
|
15
20
|
showInput: boolean;
|
|
16
21
|
}, {}>;
|
|
17
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
23
|
export default _default;
|
|
19
24
|
type __VLS_WithDefaults<P, D> = {
|
|
20
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
21
26
|
default: D[K];
|
|
22
27
|
}> : P[K];
|
|
23
28
|
};
|
|
24
|
-
type __VLS_Prettify<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
30
|
type __VLS_TypePropsToOption<T> = {
|
|
34
31
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -38,3 +35,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
38
35
|
required: true;
|
|
39
36
|
};
|
|
40
37
|
};
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_PrettifyLocal<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
@@ -745,6 +745,7 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
|
|
|
745
745
|
position: sticky;
|
|
746
746
|
top: 0;
|
|
747
747
|
z-index: 99;
|
|
748
|
+
border-top: 4px solid #ffffff;
|
|
748
749
|
}
|
|
749
750
|
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
750
751
|
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
@@ -219,6 +219,7 @@
|
|
|
219
219
|
position: sticky;
|
|
220
220
|
top: 0;
|
|
221
221
|
z-index: 99;
|
|
222
|
+
border-top: 4px solid #ffffff;
|
|
222
223
|
}
|
|
223
224
|
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
224
225
|
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
@@ -781,6 +781,7 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
|
|
|
781
781
|
position: sticky;
|
|
782
782
|
top: 0;
|
|
783
783
|
z-index: 99;
|
|
784
|
+
border-top: 4px solid #ffffff;
|
|
784
785
|
}
|
|
785
786
|
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
786
787
|
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
@@ -204,6 +204,7 @@
|
|
|
204
204
|
position: sticky;
|
|
205
205
|
top: 0;
|
|
206
206
|
z-index: 99;
|
|
207
|
+
border-top: 4px solid #ffffff;
|
|
207
208
|
}
|
|
208
209
|
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
209
210
|
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
@@ -86,3 +86,12 @@
|
|
|
86
86
|
.aplus-ap-table .ant-table-cell .ant-typography {
|
|
87
87
|
margin-bottom: 0;
|
|
88
88
|
}
|
|
89
|
+
.aplus-ap-table-pagination-count-text {
|
|
90
|
+
color: var(--ap-table-pagination-total-count-color, #182948);
|
|
91
|
+
}
|
|
92
|
+
.aplus-ap-table-pagination--total-right {
|
|
93
|
+
padding-left: 12px;
|
|
94
|
+
}
|
|
95
|
+
.aplus-ap-table-pagination-total-wrapper {
|
|
96
|
+
color: var(--ap-table-pagination-total-color, #526A90);
|
|
97
|
+
}
|
|
@@ -39,6 +39,14 @@ const i = {
|
|
|
39
39
|
"ap-table": {
|
|
40
40
|
header: {
|
|
41
41
|
bg: "#F2F6F9"
|
|
42
|
+
},
|
|
43
|
+
pagination: {
|
|
44
|
+
total: {
|
|
45
|
+
color: "#526A90",
|
|
46
|
+
count: {
|
|
47
|
+
color: "#182948"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
},
|
|
44
52
|
"ap-batch-action": {
|
|
@@ -88,6 +96,14 @@ const i = {
|
|
|
88
96
|
"ap-table": {
|
|
89
97
|
header: {
|
|
90
98
|
bg: "#FAFAFA"
|
|
99
|
+
},
|
|
100
|
+
pagination: {
|
|
101
|
+
total: {
|
|
102
|
+
color: "#666666",
|
|
103
|
+
count: {
|
|
104
|
+
color: "#333333"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
91
107
|
}
|
|
92
108
|
},
|
|
93
109
|
"ap-batch-action": {
|
|
@@ -97,18 +113,18 @@ const i = {
|
|
|
97
113
|
}
|
|
98
114
|
}
|
|
99
115
|
};
|
|
100
|
-
function
|
|
116
|
+
function s(c) {
|
|
101
117
|
const o = {};
|
|
102
|
-
function e(t,
|
|
103
|
-
const
|
|
104
|
-
for (const a of
|
|
105
|
-
const r = t[a],
|
|
106
|
-
r !== null && typeof r == "object" ? e(r,
|
|
118
|
+
function e(t, l) {
|
|
119
|
+
const F = Object.keys(t);
|
|
120
|
+
for (const a of F) {
|
|
121
|
+
const r = t[a], n = [...l, a];
|
|
122
|
+
r !== null && typeof r == "object" ? e(r, n) : o[`--${n.join("-")}`] = r;
|
|
107
123
|
}
|
|
108
124
|
}
|
|
109
125
|
return e(c, []), o;
|
|
110
126
|
}
|
|
111
|
-
const u =
|
|
127
|
+
const u = s(i), d = s(b);
|
|
112
128
|
function h(c) {
|
|
113
129
|
Object.entries(c).forEach(([o, e]) => {
|
|
114
130
|
document.documentElement.style.setProperty(o, e);
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
4
8
|
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
5
10
|
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
6
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
7
12
|
export default _default;
|
|
8
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
9
14
|
new (): {
|
|
@@ -2,9 +2,9 @@ import { TransformCellTextProps } from 'ant-design-vue/lib/table/interface';
|
|
|
2
2
|
import { ConfigProviderProps } from 'ant-design-vue';
|
|
3
3
|
import { ValidateMessages } from 'ant-design-vue/es/form/interface';
|
|
4
4
|
import { RequiredMark } from 'ant-design-vue/es/form/Form';
|
|
5
|
+
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
5
6
|
import { CSPConfig } from 'ant-design-vue/es/config-provider';
|
|
6
7
|
import { Locale } from 'ant-design-vue/es/locale';
|
|
7
|
-
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
8
8
|
import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
|
|
9
9
|
import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
|
|
10
10
|
import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
|
|
@@ -47,15 +47,15 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
|
|
|
47
47
|
requiredMark?: RequiredMark;
|
|
48
48
|
colon?: boolean;
|
|
49
49
|
} | undefined;
|
|
50
|
+
space?: {
|
|
51
|
+
size?: ButtonSize | number;
|
|
52
|
+
} | undefined;
|
|
53
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
50
54
|
csp?: CSPConfig | undefined;
|
|
51
55
|
locale?: Locale | undefined;
|
|
52
56
|
pageHeader?: {
|
|
53
57
|
ghost?: boolean;
|
|
54
58
|
} | undefined;
|
|
55
|
-
direction?: "ltr" | "rtl" | undefined;
|
|
56
|
-
space?: {
|
|
57
|
-
size?: ButtonSize | number;
|
|
58
|
-
} | undefined;
|
|
59
59
|
dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
60
60
|
pagination?: {
|
|
61
61
|
showSizeChanger?: boolean;
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import { render as
|
|
1
|
+
import { defineComponent as l, createVNode as r, render as n, h as m } from "vue";
|
|
2
2
|
import "./work-order-modal.vue2.mjs";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import "../config-provider/index.mjs";
|
|
4
|
+
import { ConfigProvider as i, globalConfigCached as c } from "../config-provider/config-provider.mjs";
|
|
5
|
+
import p from "./work-order-modal.vue.mjs";
|
|
6
|
+
function v(t, d) {
|
|
5
7
|
const o = document.getElementsByTagName("body")[0], e = document.createElement("div");
|
|
6
|
-
o.appendChild(e),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
o.appendChild(e), n(m(/* @__PURE__ */ l({
|
|
9
|
+
render() {
|
|
10
|
+
return r(i, c.value, {
|
|
11
|
+
default: () => [r(p, {
|
|
12
|
+
api: t,
|
|
13
|
+
getOssAccess: d,
|
|
14
|
+
onModalClose: a,
|
|
15
|
+
open: !0
|
|
16
|
+
}, null)]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
})), e);
|
|
20
|
+
function a() {
|
|
13
21
|
setTimeout(() => {
|
|
14
|
-
|
|
22
|
+
n(null, e), o.removeChild(e);
|
|
15
23
|
}, 500);
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
export {
|
|
19
|
-
|
|
27
|
+
v as createWorkOrderModal
|
|
20
28
|
};
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { createElementVNode as e, defineComponent as
|
|
2
|
-
import { QuestionCircleOutlined as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* @__PURE__ */ e("div", null, "单个文件大小限制:50MB")
|
|
8
|
-
]),
|
|
9
|
-
/* @__PURE__ */ e("div", { class: "flex" }, [
|
|
10
|
-
/* @__PURE__ */ e("div", null, "2."),
|
|
11
|
-
/* @__PURE__ */ e("div", null, "单次数量限制:10个")
|
|
12
|
-
])
|
|
13
|
-
], -1), v = /* @__PURE__ */ o({
|
|
1
|
+
import { createElementVNode as e, defineComponent as r, openBlock as s, createBlock as n, unref as t, withCtx as l, toDisplayString as i, createVNode as a } from "vue";
|
|
2
|
+
import { QuestionCircleOutlined as c } from "@ant-design/icons-vue";
|
|
3
|
+
import { Tooltip as d } from "ant-design-vue";
|
|
4
|
+
import "../config-provider/index.mjs";
|
|
5
|
+
import { useLocale as p } from "../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
const _ = { class: "title" }, m = { class: "flex" }, f = /* @__PURE__ */ e("div", null, "1.", -1), u = { class: "flex" }, x = /* @__PURE__ */ e("div", null, "2.", -1), O = /* @__PURE__ */ r({
|
|
14
7
|
__name: "help-message",
|
|
15
|
-
setup(
|
|
16
|
-
|
|
8
|
+
setup(h) {
|
|
9
|
+
const { t: o } = p();
|
|
10
|
+
return (v, M) => (s(), n(t(d), { placement: "right" }, {
|
|
17
11
|
title: l(() => [
|
|
18
|
-
|
|
12
|
+
e("div", _, [
|
|
13
|
+
e("div", m, [
|
|
14
|
+
f,
|
|
15
|
+
e("div", null, i(t(o)("ap.workOrderModal.fileSizeMax")) + ":50MB", 1)
|
|
16
|
+
]),
|
|
17
|
+
e("div", u, [
|
|
18
|
+
x,
|
|
19
|
+
e("div", null, i(t(o)("ap.workOrderModal.fileCountMax", { x: 10 })), 1)
|
|
20
|
+
])
|
|
21
|
+
])
|
|
19
22
|
]),
|
|
20
23
|
default: l(() => [
|
|
21
|
-
|
|
24
|
+
a(t(c), { style: {
|
|
22
25
|
color: "#1890FF",
|
|
23
26
|
fontSize: "16px",
|
|
24
27
|
transform: "translateX(-6px)"
|
|
@@ -29,5 +32,5 @@ const c = /* @__PURE__ */ e("div", { class: "title" }, [
|
|
|
29
32
|
}
|
|
30
33
|
});
|
|
31
34
|
export {
|
|
32
|
-
|
|
35
|
+
O as default
|
|
33
36
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WorkOrderModalProps } from './interfaces';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<__VLS_TypePropsToOption<WorkOrderModalProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
-
modalClose: () => void;
|
|
5
4
|
"update:open": () => void;
|
|
5
|
+
modalClose: () => void;
|
|
6
6
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<WorkOrderModalProps>>> & {
|
|
7
7
|
"onUpdate:open"?: (() => any) | undefined;
|
|
8
8
|
onModalClose?: (() => any) | undefined;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { message as
|
|
1
|
+
import { defineComponent as B, ref as g, openBlock as F, createElementBlock as M, createVNode as t, unref as e, mergeProps as N, withCtx as n, h as E } from "vue";
|
|
2
|
+
import { message as L, Modal as A, Input as P, Textarea as q } from "ant-design-vue";
|
|
3
3
|
import { ApForm as i } from "../ap-form/index.mjs";
|
|
4
4
|
import "./help-message.vue.mjs";
|
|
5
5
|
import "../ap-upload/index.mjs";
|
|
6
|
-
import { DictCode as
|
|
6
|
+
import { DictCode as w } from "./interfaces.mjs";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
8
|
import "./style/index.css";
|
|
9
9
|
import "../hooks/index.mjs";
|
|
10
|
+
import { useLocale as b } from "../config-provider/hooks/use-locale.mjs";
|
|
10
11
|
import { useNamespace as I } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
12
|
import { useGlobalConfig as V } from "../config-provider/hooks/use-global-config.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import $ from "../ap-form/items/
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
const ne = /* @__PURE__ */ F({
|
|
13
|
+
import { useControllableValue as R } from "../hooks/useControllableValue.mjs";
|
|
14
|
+
import S from "../ap-form/items/select/index.vue.mjs";
|
|
15
|
+
import $ from "../ap-form/items/radio/index.vue.mjs";
|
|
16
|
+
import D from "../ap-upload/apUpload.vue.mjs";
|
|
17
|
+
import j from "./help-message.vue2.mjs";
|
|
18
|
+
const ne = /* @__PURE__ */ B({
|
|
19
19
|
__name: "work-order-modal",
|
|
20
20
|
props: {
|
|
21
21
|
api: { type: Function },
|
|
@@ -59,105 +59,107 @@ const ne = /* @__PURE__ */ F({
|
|
|
59
59
|
modalRender: { type: Function },
|
|
60
60
|
mousePosition: {}
|
|
61
61
|
},
|
|
62
|
-
emits: ["
|
|
63
|
-
setup(
|
|
64
|
-
const { b:
|
|
62
|
+
emits: ["update:open", "modalClose"],
|
|
63
|
+
setup(v, { emit: C }) {
|
|
64
|
+
const { t: o } = b(), { b: x } = I("work-order-modal"), m = C, u = g(), l = g(!1), s = v, O = V("api"), { lang: h } = b(), { value: c, updateValue: _ } = R(s, m, {
|
|
65
65
|
valuePropName: "open",
|
|
66
66
|
defaultValue: !0
|
|
67
|
-
}),
|
|
68
|
-
var
|
|
69
|
-
const
|
|
70
|
-
dictCode:
|
|
71
|
-
locale:
|
|
67
|
+
}), d = async (r) => {
|
|
68
|
+
var p, k;
|
|
69
|
+
const a = await ((k = (p = O.value) == null ? void 0 : p.select) == null ? void 0 : k.call(p, {
|
|
70
|
+
dictCode: r,
|
|
71
|
+
locale: h.value
|
|
72
72
|
}));
|
|
73
|
-
return
|
|
74
|
-
},
|
|
75
|
-
var
|
|
76
|
-
if (!
|
|
73
|
+
return a == null ? void 0 : a.map((y) => ({ label: y.itemText, value: y.itemValue }));
|
|
74
|
+
}, T = async () => {
|
|
75
|
+
var r;
|
|
76
|
+
if (!l.value)
|
|
77
77
|
try {
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
await
|
|
78
|
+
l.value = !0;
|
|
79
|
+
const a = await ((r = u.value) == null ? void 0 : r.validateFields());
|
|
80
|
+
await s.api(a), l.value = !1, L.success("操作成功"), f();
|
|
81
81
|
} catch {
|
|
82
|
-
|
|
82
|
+
l.value = !1;
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
}, f = () => {
|
|
86
|
-
|
|
86
|
+
_(!1), c.value = !1, setTimeout(() => {
|
|
87
|
+
console.log(c.value);
|
|
88
|
+
}, 500), m("modalClose");
|
|
87
89
|
};
|
|
88
|
-
return (
|
|
89
|
-
t(e(
|
|
90
|
+
return (r, a) => (F(), M("div", null, [
|
|
91
|
+
t(e(A), N(s, {
|
|
90
92
|
width: 600,
|
|
91
93
|
centered: !0,
|
|
92
|
-
open: e(
|
|
93
|
-
title: "
|
|
94
|
-
"ok-text":
|
|
95
|
-
"cancel-text":
|
|
94
|
+
open: e(c),
|
|
95
|
+
title: e(o)("ap.workOrderModal.createTickets"),
|
|
96
|
+
"ok-text": e(o)("ap.workOrderModal.submit"),
|
|
97
|
+
"cancel-text": e(o)("ap.workOrderModal.cancel"),
|
|
96
98
|
mask: !0,
|
|
97
99
|
"mask-closable": !0,
|
|
98
|
-
wrapClassName: e(
|
|
100
|
+
wrapClassName: e(x)(),
|
|
99
101
|
closable: !0,
|
|
100
|
-
onOk:
|
|
101
|
-
confirmLoading:
|
|
102
|
+
onOk: T,
|
|
103
|
+
confirmLoading: l.value,
|
|
102
104
|
onCancel: f
|
|
103
105
|
}), {
|
|
104
106
|
default: n(() => [
|
|
105
107
|
t(e(i), {
|
|
106
108
|
ref_key: "formRef",
|
|
107
|
-
ref:
|
|
109
|
+
ref: u,
|
|
108
110
|
colon: !1
|
|
109
111
|
}, {
|
|
110
112
|
default: n(() => [
|
|
111
113
|
t(e(i).FormItem, {
|
|
112
|
-
label: "
|
|
114
|
+
label: e(o)("ap.workOrderModal.ticketsTitle"),
|
|
113
115
|
name: "ticketsTitle",
|
|
114
|
-
rules: [{ required: !0, message: "
|
|
116
|
+
rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }]
|
|
115
117
|
}, {
|
|
116
118
|
default: n(() => [
|
|
117
119
|
t(e(P), {
|
|
118
|
-
placeholder: "
|
|
120
|
+
placeholder: e(o)("ap.workOrderModal.pleaseEntry"),
|
|
119
121
|
maxlength: 50,
|
|
120
122
|
"show-count": !0
|
|
121
|
-
})
|
|
123
|
+
}, null, 8, ["placeholder"])
|
|
122
124
|
]),
|
|
123
125
|
_: 1
|
|
124
|
-
}),
|
|
125
|
-
t(e(
|
|
126
|
-
label: "
|
|
126
|
+
}, 8, ["label", "rules"]),
|
|
127
|
+
t(e(S), {
|
|
128
|
+
label: e(o)("ap.workOrderModal.ticketsType"),
|
|
127
129
|
name: "ticketsType",
|
|
128
|
-
rules: [{ required: !0, message: "
|
|
130
|
+
rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }],
|
|
129
131
|
field: {
|
|
130
|
-
placeholder: "
|
|
131
|
-
request: () =>
|
|
132
|
+
placeholder: e(o)("ap.workOrderModal.pleaseEntry"),
|
|
133
|
+
request: () => d(e(w).TicketsType)
|
|
132
134
|
}
|
|
133
|
-
}, null, 8, ["field"]),
|
|
135
|
+
}, null, 8, ["label", "rules", "field"]),
|
|
134
136
|
t(e(i).FormItem, {
|
|
135
|
-
label: "
|
|
137
|
+
label: e(o)("ap.workOrderModal.ticketsDetail"),
|
|
136
138
|
name: "ticketsContent",
|
|
137
|
-
rules: [{ required: !0, message: "
|
|
139
|
+
rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }]
|
|
138
140
|
}, {
|
|
139
141
|
default: n(() => [
|
|
140
142
|
t(e(q), {
|
|
141
|
-
placeholder: "
|
|
143
|
+
placeholder: e(o)("ap.workOrderModal.pleaseEntry"),
|
|
142
144
|
maxlength: 300,
|
|
143
145
|
"show-count": !0
|
|
144
|
-
})
|
|
146
|
+
}, null, 8, ["placeholder"])
|
|
145
147
|
]),
|
|
146
148
|
_: 1
|
|
147
|
-
}),
|
|
148
|
-
t(e(
|
|
149
|
-
label: "
|
|
149
|
+
}, 8, ["label", "rules"]),
|
|
150
|
+
t(e($), {
|
|
151
|
+
label: e(o)("ap.workOrderModal.ticketsLevel"),
|
|
150
152
|
name: "ticketsLevel",
|
|
151
|
-
rules: [{ required: !0, message: "
|
|
153
|
+
rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }],
|
|
152
154
|
field: {
|
|
153
|
-
request: () =>
|
|
155
|
+
request: () => d(e(w).TicketsLevel)
|
|
154
156
|
}
|
|
155
|
-
}, null, 8, ["field"]),
|
|
157
|
+
}, null, 8, ["label", "rules", "field"]),
|
|
156
158
|
t(e(i).FormItem, { name: "files" }, {
|
|
157
159
|
default: n(() => [
|
|
158
|
-
t(e(
|
|
160
|
+
t(e(D), {
|
|
159
161
|
dirName: "WorkOrder",
|
|
160
|
-
getOssAccess:
|
|
162
|
+
getOssAccess: s.getOssAccess,
|
|
161
163
|
type: "multipleFile",
|
|
162
164
|
needName: {
|
|
163
165
|
pathKey: "filePath",
|
|
@@ -166,7 +168,7 @@ const ne = /* @__PURE__ */ F({
|
|
|
166
168
|
accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
|
|
167
169
|
maxCount: 10,
|
|
168
170
|
maxSize: 50,
|
|
169
|
-
subTitle:
|
|
171
|
+
subTitle: E(j)
|
|
170
172
|
}, null, 8, ["getOssAccess", "subTitle"])
|
|
171
173
|
]),
|
|
172
174
|
_: 1
|
|
@@ -176,7 +178,7 @@ const ne = /* @__PURE__ */ F({
|
|
|
176
178
|
}, 512)
|
|
177
179
|
]),
|
|
178
180
|
_: 1
|
|
179
|
-
}, 16, ["open", "ok-text", "cancel-text", "wrapClassName", "confirmLoading"])
|
|
181
|
+
}, 16, ["open", "title", "ok-text", "cancel-text", "wrapClassName", "confirmLoading"])
|
|
180
182
|
]));
|
|
181
183
|
}
|
|
182
184
|
});
|