@aplus-frontend/ui 0.6.0-beta.0 → 0.6.0-beta.10
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/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-field/date/helper.mjs +12 -12
- 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/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +57 -58
- package/es/src/ap-form/interface.d.ts +8 -0
- package/es/src/ap-form/item/index.vue.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.mjs +33 -28
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.mjs +8 -7
- package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/number/index.vue.mjs +9 -8
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.mjs +7 -6
- package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-form/render/item.vue.mjs +5 -4
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +41 -37
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +8 -8
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +91 -89
- package/es/src/ap-grid/constants.d.ts +3 -3
- package/es/src/ap-grid/constants.mjs +9 -9
- package/es/src/ap-grid/editable/form-item.vue.mjs +95 -84
- package/es/src/ap-grid/editable/index.vue.mjs +90 -79
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
- package/es/src/ap-grid/index.vue.mjs +171 -148
- package/es/src/ap-grid/interface.d.ts +3 -3
- package/es/src/ap-grid/utils/table.mjs +32 -32
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +209 -198
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +30 -30
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +147 -130
- package/es/src/ap-table/utils.d.ts +14 -14
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
- package/es/src/ap-tag/interface.d.ts +4 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +93 -73
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +109 -99
- package/es/src/business/ap-export-group/index.d.ts +3 -0
- package/es/src/business/ap-export-group/interface.d.ts +7 -2
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +3 -3
- package/es/src/business/ap-status/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +136 -117
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +60 -48
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +86 -80
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/ap-view/index.d.ts +3 -0
- package/es/src/business/ap-view/interface.d.ts +8 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/hooks/usePageListApGrid.mjs +3 -5
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +0 -5
- package/es/src/config-provider/config-provider-props.mjs +0 -4
- package/es/src/config-provider/config-provider.d.ts +0 -138
- package/es/src/config-provider/config-provider.mjs +21 -26
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/es/src/config-provider/index.d.ts +0 -652
- package/es/src/design-token/index.mjs +9 -3
- package/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +85 -77
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +86 -78
- package/es/src/editable-table/interface.d.ts +7 -0
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-field/date/helper.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/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +8 -0
- package/lib/src/ap-form/item/index.vue.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +3 -3
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +3 -3
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +30 -30
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/utils.d.ts +14 -14
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +4 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +3 -0
- package/lib/src/business/ap-export-group/interface.d.ts +7 -2
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +3 -3
- package/lib/src/business/ap-status/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/lib/src/business/ap-view/index.d.ts +3 -0
- package/lib/src/business/ap-view/interface.d.ts +8 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +0 -5
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -138
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/lib/src/config-provider/index.d.ts +0 -652
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -14
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -16
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -0
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +4 -4
- package/theme/antd-global-overwrite/admin/index.css +14 -27
- package/theme/antd-global-overwrite/admin/index.less +1 -0
- package/theme/antd-global-overwrite/admin/modal.css +8 -24
- package/theme/antd-global-overwrite/admin/modal.less +9 -24
- package/theme/antd-global-overwrite/admin/table.css +3 -3
- package/theme/antd-global-overwrite/admin/table.less +3 -3
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/index.css +13 -20
- package/theme/antd-global-overwrite/aplus/index.less +1 -0
- package/theme/antd-global-overwrite/aplus/modal.css +7 -17
- package/theme/antd-global-overwrite/aplus/modal.less +8 -18
- package/theme/antd-global-overwrite/aplus/table.css +3 -3
- package/theme/antd-global-overwrite/aplus/table.less +3 -3
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-action/item-dropdown.css +24 -6
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +25 -7
- package/theme/ap-action/item.less +1 -1
- package/theme/ap-appendix/ap-appendix.css +28 -8
- package/theme/ap-appendix/ap-appendix.less +6 -4
- package/theme/ap-attachment/ap-attachment.css +28 -9
- package/theme/ap-attachment/ap-attachment.less +6 -6
- package/theme/ap-batch-action/ap-batch-action.css +28 -7
- package/theme/ap-batch-action/ap-batch-action.less +6 -3
- package/theme/ap-button/ap-button.css +22 -4
- package/theme/ap-card/ap-card.css +22 -4
- package/theme/ap-descriptions/ap-descriptions.css +27 -9
- package/theme/ap-descriptions/ap-descriptions.less +5 -5
- package/theme/ap-download/ap-download.css +29 -14
- package/theme/ap-download/ap-download.less +8 -11
- package/theme/ap-expand-alert/ap-expand-alert.css +24 -6
- package/theme/ap-expand-alert/ap-expand-alert.less +5 -5
- package/theme/ap-field/checkbox.css +23 -5
- package/theme/ap-field/checkbox.less +2 -1
- package/theme/ap-field/index.css +24 -6
- package/theme/ap-field/number.css +22 -4
- package/theme/ap-field/radio.css +23 -5
- package/theme/ap-field/radio.less +1 -1
- package/theme/ap-field/text-area.css +22 -4
- package/theme/ap-form/ap-form-item-group.css +22 -4
- package/theme/ap-form/ap-form-item.css +33 -10
- package/theme/ap-form/ap-form-item.less +17 -9
- package/theme/ap-form/drawer-form.css +22 -4
- package/theme/ap-form/index.css +61 -26
- package/theme/ap-form/item-text-group.css +22 -4
- package/theme/ap-form/item-text.css +22 -4
- package/theme/ap-form/modal-form.css +22 -4
- package/theme/ap-form/search-form-sorter.css +36 -17
- package/theme/ap-form/search-form-sorter.less +8 -7
- package/theme/ap-form/search-form.css +61 -26
- package/theme/ap-form/search-form.less +17 -6
- package/theme/ap-grid/editable.css +24 -6
- package/theme/ap-grid/editable.less +3 -2
- package/theme/ap-grid/index.css +117 -43
- package/theme/ap-grid/index.less +35 -11
- package/theme/ap-group-search/ap-extension-select.css +22 -4
- package/theme/ap-group-search/ap-group-search.css +22 -4
- package/theme/ap-group-search/ap-popover-select.css +22 -4
- package/theme/ap-image/ap-image.css +22 -4
- package/theme/ap-input-radio/ap-input-radio.css +22 -4
- package/theme/ap-label/ap-label.css +22 -4
- package/theme/ap-ladder/ap-ladder.css +26 -7
- package/theme/ap-ladder/ap-ladder.less +4 -3
- package/theme/ap-layout/ap-info-layout.css +22 -4
- package/theme/ap-list/index.css +23 -5
- package/theme/ap-list/index.less +2 -1
- package/theme/ap-product-info/ap-product-info.css +22 -4
- package/theme/ap-select-layout/ap-select-layout.css +30 -12
- package/theme/ap-select-layout/ap-select-layout.less +8 -8
- package/theme/ap-size-input/ap-size-input.css +22 -4
- package/theme/ap-status/ap-status.css +24 -7
- package/theme/ap-status/ap-status.less +2 -4
- package/theme/ap-summary/index.css +25 -7
- package/theme/ap-summary/index.less +3 -3
- package/theme/ap-table/ap-table-index.css +27 -9
- package/theme/ap-table/ap-table-index.less +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +22 -4
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +109 -55
- package/theme/ap-table/ap-table.less +11 -9
- package/theme/ap-table/setting/index.css +30 -13
- package/theme/ap-table/setting/modal.css +26 -9
- package/theme/ap-table/setting/modal.less +1 -2
- package/theme/ap-table/setting/select-group.css +24 -5
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table/setting/sortable-item-meta.css +22 -4
- package/theme/ap-table/setting/sortable-item.css +22 -4
- package/theme/ap-table/setting/sorter.css +24 -7
- package/theme/ap-table-modal/index.css +109 -55
- package/theme/ap-tag/ap-tag-group.css +24 -6
- package/theme/ap-tag/ap-tag-group.less +4 -5
- package/theme/ap-tag/ap-tag.css +45 -18
- package/theme/ap-tag/ap-tag.less +37 -24
- package/theme/ap-title/ap-title.css +29 -9
- package/theme/ap-title/ap-title.less +7 -5
- package/theme/ap-upload/index.css +30 -12
- package/theme/ap-upload/multiple-file.css +24 -6
- package/theme/ap-upload/multiple-file.less +2 -2
- package/theme/ap-upload/picture.css +26 -8
- package/theme/ap-upload/picture.less +4 -4
- package/theme/ap-upload/single-file.css +24 -6
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +22 -4
- package/theme/ap-upload-single/index.css +22 -4
- package/theme/ap-view/ap-view.css +26 -4
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/batch-input-group/index.css +25 -6
- package/theme/batch-input-group/popover-input.css +23 -4
- package/theme/batch-input-group/popover-input.less +1 -0
- package/theme/check-card/index.css +44 -26
- package/theme/check-card/index.less +17 -15
- package/theme/editable-table/index.css +77 -40
- package/theme/editable-table/index.less +9 -7
- package/theme/full-screen/index.css +22 -4
- package/theme/index.css +390 -182
- package/theme/index.less +1 -0
- package/theme/mask/index.css +22 -4
- package/theme/mixins/config.less +27 -5
- package/theme/mixins/mixins.css +22 -4
- package/theme/mixins/mixins.less +25 -0
- package/theme/scroll-bar/index.css +22 -4
- package/theme/scroll-view/index.css +22 -4
- package/theme/splitter/index.css +29 -11
- package/theme/text/group.css +22 -4
- package/theme/text/index.css +25 -7
- package/theme/ui-mode.css +94 -0
- package/theme/ui-mode.less +95 -0
- package/theme/work-order-modal/index.css +22 -4
- package/es/src/config-provider/css-var.d.ts +0 -139
- package/es/src/config-provider/css-var.mjs +0 -278
- package/lib/src/config-provider/css-var.d.ts +0 -139
- package/lib/src/config-provider/css-var.js +0 -1
|
@@ -4,8 +4,8 @@ import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
|
4
4
|
import { GroupActionTypes } from '..';
|
|
5
5
|
declare const _default: DefineComponent<ApActionGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApActionGroupProps> & Readonly<{}>, {
|
|
6
6
|
placement: "top" | "topLeft" | "bottom" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter";
|
|
7
|
-
count: number;
|
|
8
7
|
trigger: Trigger | Trigger[];
|
|
9
8
|
actions: GroupActionTypes[];
|
|
9
|
+
count: number;
|
|
10
10
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -16,8 +16,8 @@ declare const __VLS_component: DefineComponent<ApActionItemDropdownProps, {}, {}
|
|
|
16
16
|
visible: boolean;
|
|
17
17
|
color: ActionColor;
|
|
18
18
|
disabled: boolean;
|
|
19
|
-
trigger: Trigger | Trigger[];
|
|
20
19
|
loading: boolean;
|
|
20
|
+
trigger: Trigger | Trigger[];
|
|
21
21
|
actions: MixedActionTypes[];
|
|
22
22
|
showIcon: boolean;
|
|
23
23
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -6,7 +6,7 @@ import { omit as F } from "lodash-unified";
|
|
|
6
6
|
import { transferOpacityColor as O, isAsynchronous as j } from "./utils/index.mjs";
|
|
7
7
|
import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
import { useGlobalConfig as R } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
|
-
const q =
|
|
9
|
+
const q = 72, E = 300, Y = /* @__PURE__ */ W({
|
|
10
10
|
__name: "ap-button",
|
|
11
11
|
props: {
|
|
12
12
|
prefixCls: {},
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { getUtcTimestamp as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
if (!
|
|
1
|
+
import { getUtcTimestamp as f } from "@aplus-frontend/utils";
|
|
2
|
+
import m from "dayjs";
|
|
3
|
+
const a = (e, o, r = !0) => {
|
|
4
|
+
if (!e)
|
|
5
5
|
return null;
|
|
6
|
-
let t =
|
|
7
|
-
return t = t.millisecond(
|
|
6
|
+
let t = e.clone();
|
|
7
|
+
return t = t.millisecond(r ? 0 : 999), o.indexOf("ss") === -1 && (t = t.second(r ? 0 : 59)), o.indexOf("mm") === -1 && (t = t.minute(r ? 0 : 59)), o.indexOf("HH") === -1 && (t = t.hour(r ? 0 : 23)), o.indexOf("DD") === -1 && (t = t.date(r ? 1 : t.daysInMonth())), o.indexOf("MM") === -1 && (t = t.month(r ? 0 : 12)), t.valueOf();
|
|
8
8
|
};
|
|
9
|
-
function d(
|
|
10
|
-
return (
|
|
11
|
-
const
|
|
12
|
-
return
|
|
9
|
+
function d(e) {
|
|
10
|
+
return (o, r, t = !0) => {
|
|
11
|
+
const n = r ? a(o, r, t) : o.valueOf();
|
|
12
|
+
return e ? f(m(n), e) : n;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const l = (
|
|
15
|
+
const l = (e) => e && e.valueOf();
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
a as formatDay,
|
|
18
18
|
d as formatDayWithTimezone,
|
|
19
19
|
l as formatValue
|
|
20
20
|
};
|
|
@@ -33,8 +33,8 @@ declare const __VLS_component: DefineComponent<ApFieldDateProps, {}, {}, {}, {},
|
|
|
33
33
|
mode: FieldMode;
|
|
34
34
|
open: boolean;
|
|
35
35
|
disabled: boolean;
|
|
36
|
-
bordered: boolean;
|
|
37
36
|
autofocus: boolean;
|
|
37
|
+
bordered: boolean;
|
|
38
38
|
format: LiteralUnion<ApFormatPresetType, string>;
|
|
39
39
|
clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
40
40
|
[key: string]: any;
|
|
@@ -41,8 +41,8 @@ declare const __VLS_component: DefineComponent<ApFieldDateRangeProps, {}, {}, {}
|
|
|
41
41
|
[key: string]: any;
|
|
42
42
|
}> | null;
|
|
43
43
|
disabled: boolean | [boolean, boolean];
|
|
44
|
-
bordered: boolean;
|
|
45
44
|
autofocus: boolean;
|
|
45
|
+
bordered: boolean;
|
|
46
46
|
format: LiteralUnion<ApFormatPresetType, string>;
|
|
47
47
|
clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
@@ -353,8 +353,8 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
|
353
353
|
}>, {
|
|
354
354
|
step: ValueType;
|
|
355
355
|
disabled: boolean;
|
|
356
|
-
bordered: boolean;
|
|
357
356
|
keyboard: boolean;
|
|
357
|
+
bordered: boolean;
|
|
358
358
|
max: ValueType;
|
|
359
359
|
min: ValueType;
|
|
360
360
|
controls: boolean;
|
|
@@ -109,9 +109,9 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
|
|
|
109
109
|
}>, {
|
|
110
110
|
mode: FieldMode;
|
|
111
111
|
disabled: boolean;
|
|
112
|
-
count: number;
|
|
113
112
|
autofocus: boolean;
|
|
114
113
|
allowClear: boolean;
|
|
114
|
+
count: number;
|
|
115
115
|
allowHalf: boolean;
|
|
116
116
|
character: any;
|
|
117
117
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -449,9 +449,9 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
449
449
|
open: boolean;
|
|
450
450
|
multiple: boolean;
|
|
451
451
|
disabled: boolean;
|
|
452
|
-
bordered: boolean;
|
|
453
452
|
loading: boolean;
|
|
454
453
|
autofocus: boolean;
|
|
454
|
+
bordered: boolean;
|
|
455
455
|
virtual: boolean;
|
|
456
456
|
lazy: boolean;
|
|
457
457
|
allowClear: boolean;
|
|
@@ -593,9 +593,9 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
593
593
|
open: boolean;
|
|
594
594
|
multiple: boolean;
|
|
595
595
|
disabled: boolean;
|
|
596
|
-
bordered: boolean;
|
|
597
596
|
loading: boolean;
|
|
598
597
|
autofocus: boolean;
|
|
598
|
+
bordered: boolean;
|
|
599
599
|
virtual: boolean;
|
|
600
600
|
dropdownMatchSelectWidth: number | boolean;
|
|
601
601
|
allowClear: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Q, reactive as X, ref as
|
|
2
|
-
import { Form as
|
|
3
|
-
import { useProvideForm as
|
|
4
|
-
import { isArray as f, cloneDeep as ae, isFunction as
|
|
1
|
+
import { defineComponent as Q, reactive as X, ref as E, unref as p, nextTick as Y, toRaw as _, watch as Z, onWatcherCleanup as z, computed as ee, createBlock as te, openBlock as re, mergeProps as le, withCtx as oe, renderSlot as se } from "vue";
|
|
2
|
+
import { Form as ne } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useProvideForm as ie } from "./context.mjs";
|
|
4
|
+
import { isArray as f, cloneDeep as ae, isFunction as B, isPlainObject as M, omit as ue } from "lodash-unified";
|
|
5
5
|
import { useUrlSearchParams as ce } from "@vueuse/core";
|
|
6
6
|
import { INTERNAL_FORM_INSTANCE_MARK as fe } from "./constant.mjs";
|
|
7
7
|
import { getRouteType as de, isDef as V } from "../utils/index.mjs";
|
|
8
8
|
import ge from "./utils/set.mjs";
|
|
9
|
-
import { genParams as
|
|
10
|
-
import { useInjectFormProvider as
|
|
9
|
+
import { genParams as b, setToParams as A } from "./utils/params.mjs";
|
|
10
|
+
import { useInjectFormProvider as he } from "./provider/context.mjs";
|
|
11
11
|
const Re = /* @__PURE__ */ Q({
|
|
12
12
|
__name: "ap-form",
|
|
13
13
|
props: {
|
|
@@ -38,11 +38,11 @@ const Re = /* @__PURE__ */ Q({
|
|
|
38
38
|
syncToUrl: { type: [Boolean, Function], default: !1 },
|
|
39
39
|
syncToUrlPriority: { type: Boolean }
|
|
40
40
|
},
|
|
41
|
-
setup(
|
|
42
|
-
function
|
|
41
|
+
setup(C, { expose: N }) {
|
|
42
|
+
function S(e, t) {
|
|
43
43
|
return f(t) ? t.reduce((r, o) => r == null ? void 0 : r[o], e) : e == null ? void 0 : e[t];
|
|
44
44
|
}
|
|
45
|
-
const l =
|
|
45
|
+
const l = C;
|
|
46
46
|
function v(e, t, r = !0, o) {
|
|
47
47
|
var s;
|
|
48
48
|
if (f(e)) {
|
|
@@ -59,13 +59,13 @@ const Re = /* @__PURE__ */ Q({
|
|
|
59
59
|
}
|
|
60
60
|
T();
|
|
61
61
|
}
|
|
62
|
-
const u =
|
|
63
|
-
l.syncToUrl ?
|
|
62
|
+
const u = E(), I = ce(de()), y = he(), P = E(
|
|
63
|
+
l.syncToUrl ? b(l.syncToUrl, I, "get") : {}
|
|
64
64
|
);
|
|
65
|
-
let m = ae(
|
|
66
|
-
const n = X(
|
|
67
|
-
let
|
|
68
|
-
function
|
|
65
|
+
let m = ae(w()), g = {};
|
|
66
|
+
const n = X(w());
|
|
67
|
+
let h = [];
|
|
68
|
+
function w() {
|
|
69
69
|
const e = l.initialValues || {};
|
|
70
70
|
return l.syncToUrlPriority ? {
|
|
71
71
|
...e,
|
|
@@ -75,43 +75,42 @@ const Re = /* @__PURE__ */ Q({
|
|
|
75
75
|
...e
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function W(e) {
|
|
79
79
|
var r;
|
|
80
|
-
const t =
|
|
81
|
-
y.triggerFormFinish(l.name, e), l.syncToUrl &&
|
|
80
|
+
const t = F(e, g);
|
|
81
|
+
y.triggerFormFinish(l.name, e), l.syncToUrl && A(I, b(l.syncToUrl, t, "set")), (r = l.onFinish) == null || r.call(l, t);
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const q = async () => {
|
|
84
84
|
var e;
|
|
85
85
|
(e = u.value) == null || e.resetFields(), await Y(() => {
|
|
86
|
-
Object.keys(n).forEach((t) => delete n[t]), Object.assign(n, m), T(), l.syncToUrl &&
|
|
86
|
+
Object.keys(n).forEach((t) => delete n[t]), Object.assign(n, m), T(), l.syncToUrl && A(
|
|
87
87
|
I,
|
|
88
|
-
|
|
88
|
+
b(
|
|
89
89
|
l.syncToUrl,
|
|
90
|
-
|
|
90
|
+
F(m, g),
|
|
91
91
|
"set"
|
|
92
92
|
)
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
|
-
},
|
|
95
|
+
}, D = (e) => {
|
|
96
96
|
var t;
|
|
97
97
|
(t = u.value) == null || t.clearValidate(e);
|
|
98
|
-
},
|
|
98
|
+
}, k = (e, t) => {
|
|
99
99
|
var r;
|
|
100
100
|
return (r = u.value) == null ? void 0 : r.validateFields(e, t);
|
|
101
|
-
},
|
|
101
|
+
}, K = async (e, t) => {
|
|
102
102
|
var o;
|
|
103
103
|
const r = await ((o = u.value) == null ? void 0 : o.validateFields(
|
|
104
104
|
e,
|
|
105
105
|
t
|
|
106
106
|
));
|
|
107
|
-
return
|
|
108
|
-
},
|
|
107
|
+
return F(r, g);
|
|
108
|
+
}, O = (e) => {
|
|
109
109
|
var t;
|
|
110
|
-
return (t = u.value) == null ? void 0 : t.getFieldsValue(e);
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return h(t, g);
|
|
110
|
+
return e === !0 ? _(n) : (t = u.value) == null ? void 0 : t.getFieldsValue(e);
|
|
111
|
+
}, L = (e) => {
|
|
112
|
+
const t = O(e);
|
|
113
|
+
return F(t, g);
|
|
115
114
|
}, $ = (e, t) => {
|
|
116
115
|
var r;
|
|
117
116
|
return (r = u.value) == null ? void 0 : r.validate(e, t);
|
|
@@ -124,13 +123,13 @@ const Re = /* @__PURE__ */ Q({
|
|
|
124
123
|
v(e, t, r, o), T();
|
|
125
124
|
};
|
|
126
125
|
function R(e, t) {
|
|
127
|
-
return t || e(
|
|
128
|
-
|
|
126
|
+
return t || e(_(n)), h.push(e), () => {
|
|
127
|
+
h = h.filter((r) => r !== e);
|
|
129
128
|
};
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function j({ initialValue: e, name: t, transform: r }) {
|
|
132
131
|
if (V(e) && V(t)) {
|
|
133
|
-
const o =
|
|
132
|
+
const o = S(p(P), t);
|
|
134
133
|
if (!V(o) || !l.syncToUrlPriority)
|
|
135
134
|
if (v(t, e, !1), f(t)) {
|
|
136
135
|
let i = m;
|
|
@@ -153,33 +152,33 @@ const Re = /* @__PURE__ */ Q({
|
|
|
153
152
|
return;
|
|
154
153
|
}
|
|
155
154
|
return {
|
|
156
|
-
registerField:
|
|
155
|
+
registerField: j,
|
|
157
156
|
registerWatch: R,
|
|
158
157
|
setFieldValue: U
|
|
159
158
|
};
|
|
160
159
|
}
|
|
161
160
|
function T() {
|
|
162
|
-
if (
|
|
163
|
-
const e =
|
|
164
|
-
|
|
161
|
+
if (h.length) {
|
|
162
|
+
const e = _(n);
|
|
163
|
+
h.forEach((t) => {
|
|
165
164
|
t(e);
|
|
166
165
|
});
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
|
-
function
|
|
168
|
+
function F(e, t) {
|
|
170
169
|
if (e == null)
|
|
171
170
|
return;
|
|
172
171
|
let r = f(e) ? [] : {};
|
|
173
172
|
return Object.keys(e).forEach((o) => {
|
|
174
|
-
const i = e[o], s = t == null ? void 0 : t[o], a =
|
|
175
|
-
if (
|
|
173
|
+
const i = e[o], s = t == null ? void 0 : t[o], a = B(s) ? s : s == null ? void 0 : s.transformer, d = B(s) ? !0 : s == null ? void 0 : s.flat;
|
|
174
|
+
if (B(a)) {
|
|
176
175
|
const c = a(i);
|
|
177
|
-
d ? f(c) && f(r) ? r = [...r, ...c] :
|
|
176
|
+
d ? f(c) && f(r) ? r = [...r, ...c] : M(c) && M(r) ? r = {
|
|
178
177
|
...r,
|
|
179
178
|
...c
|
|
180
179
|
} : r[o] = c : r[o] = c;
|
|
181
|
-
} else if (
|
|
182
|
-
const c =
|
|
180
|
+
} else if (M(i) || f(i)) {
|
|
181
|
+
const c = F(
|
|
183
182
|
i,
|
|
184
183
|
s
|
|
185
184
|
);
|
|
@@ -188,44 +187,44 @@ const Re = /* @__PURE__ */ Q({
|
|
|
188
187
|
r[o] = i;
|
|
189
188
|
}), r;
|
|
190
189
|
}
|
|
191
|
-
const
|
|
192
|
-
resetFields:
|
|
193
|
-
clearValidate:
|
|
194
|
-
validateFields:
|
|
195
|
-
getFieldsValue:
|
|
190
|
+
const x = {
|
|
191
|
+
resetFields: q,
|
|
192
|
+
clearValidate: D,
|
|
193
|
+
validateFields: k,
|
|
194
|
+
getFieldsValue: O,
|
|
196
195
|
validate: $,
|
|
197
196
|
scrollToField: G,
|
|
198
197
|
setFieldsValue: H,
|
|
199
198
|
setFieldValue: U,
|
|
200
199
|
registerWatch: R,
|
|
201
|
-
validateFieldsReturnTransformed:
|
|
202
|
-
getFieldsValueTransformed:
|
|
200
|
+
validateFieldsReturnTransformed: K,
|
|
201
|
+
getFieldsValueTransformed: L,
|
|
203
202
|
getInternalInstance: J
|
|
204
203
|
};
|
|
205
204
|
return Z(
|
|
206
205
|
() => l.name,
|
|
207
206
|
(e) => {
|
|
208
|
-
e && (y.registerForm(e,
|
|
207
|
+
e && (y.registerForm(e, x), z(() => {
|
|
209
208
|
y.unregisterForm(l.name);
|
|
210
209
|
}));
|
|
211
210
|
},
|
|
212
211
|
{
|
|
213
212
|
immediate: !0
|
|
214
213
|
}
|
|
215
|
-
),
|
|
214
|
+
), ie({
|
|
216
215
|
model: ee(() => n),
|
|
217
216
|
updateModel: v,
|
|
218
217
|
internalInstance: {
|
|
219
218
|
registerWatch: R,
|
|
220
|
-
registerField:
|
|
219
|
+
registerField: j,
|
|
221
220
|
setFieldValue: U
|
|
222
221
|
}
|
|
223
|
-
}),
|
|
222
|
+
}), N(x), (e, t) => (re(), te(p(ne), le({
|
|
224
223
|
ref_key: "formRef",
|
|
225
224
|
ref: u
|
|
226
225
|
}, p(ue)(l, ["initialValues", "onValuesChange", "onFinish"]), {
|
|
227
226
|
model: n,
|
|
228
|
-
onFinish:
|
|
227
|
+
onFinish: W
|
|
229
228
|
}), {
|
|
230
229
|
default: oe(() => [
|
|
231
230
|
se(e.$slots, "default")
|
|
@@ -34,6 +34,10 @@ export type ApFormItemProps = FormItemProps & Partial<ApFormColProps> & {
|
|
|
34
34
|
*/
|
|
35
35
|
transform?: ApFormItemTransformType;
|
|
36
36
|
tooltip?: any;
|
|
37
|
+
/**
|
|
38
|
+
* 此表单项的描述,设置此信息后,在查询表单排序时将优先使用此属性值
|
|
39
|
+
*/
|
|
40
|
+
description?: string;
|
|
37
41
|
};
|
|
38
42
|
export type ApFormItemGroupProps = RowProps & {
|
|
39
43
|
countPerRow?: number;
|
|
@@ -179,6 +183,10 @@ export type ApFormSearchFormPopoverSorterProps = {
|
|
|
179
183
|
* @returns
|
|
180
184
|
*/
|
|
181
185
|
onClickConfirm: (sortedChildren: VNode[]) => void;
|
|
186
|
+
/**
|
|
187
|
+
* 当前的children是否已经排序过了
|
|
188
|
+
*/
|
|
189
|
+
sorted?: boolean;
|
|
182
190
|
};
|
|
183
191
|
export type ApFormSearchFormExpose = {
|
|
184
192
|
apForm: ApFormExpose;
|
|
@@ -801,12 +801,12 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
801
801
|
resetField: typeof resetField;
|
|
802
802
|
getFieldValue: typeof getFieldValue;
|
|
803
803
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
804
|
-
bordered: boolean;
|
|
805
804
|
hasFeedback: boolean;
|
|
806
805
|
colon: boolean;
|
|
807
806
|
autoLink: boolean;
|
|
808
807
|
required: boolean;
|
|
809
808
|
validateFirst: boolean;
|
|
809
|
+
bordered: boolean;
|
|
810
810
|
valuePropName: string;
|
|
811
811
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
812
812
|
formItemRef: ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as D, useSlots as $, ref as
|
|
1
|
+
import { defineComponent as D, useSlots as $, ref as f, onMounted as j, computed as F, unref as l, watch as q, cloneVNode as E, createBlock as g, openBlock as h, mergeProps as K, createSlots as O, withCtx as i, createCommentVNode as Q, resolveDynamicComponent as U, renderList as G, createElementVNode as H, normalizeClass as J, createVNode as p, normalizeStyle as M, renderSlot as W, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
2
|
import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as le } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
-
import { isFunction as B, cloneDeep as te, isArray as
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
4
|
+
import { isFunction as B, cloneDeep as te, isArray as re, omit as C } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as ae } from "../constant.mjs";
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as ie } from "../context.mjs";
|
|
9
9
|
import { isPromise as se } from "@fruits-chain/utils";
|
|
10
10
|
import { getSingleVNode as ue, getValidVNodeList as me } from "../../utils/slot.mjs";
|
|
11
|
-
import { useNamespace as
|
|
11
|
+
import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
const Ce = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
@@ -51,10 +51,11 @@ const Ce = /* @__PURE__ */ D({
|
|
|
51
51
|
valuePropName: { default: "value" },
|
|
52
52
|
initialValue: {},
|
|
53
53
|
_signal: {},
|
|
54
|
-
transform: {}
|
|
54
|
+
transform: {},
|
|
55
|
+
description: {}
|
|
55
56
|
},
|
|
56
57
|
setup(N, { expose: k }) {
|
|
57
|
-
const o = N,
|
|
58
|
+
const o = N, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: P } = de("ap-form-item"), d = f(!1), n = f(), [, x] = le();
|
|
58
59
|
j(async () => {
|
|
59
60
|
let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
60
61
|
se(e) && (e = await e), m == null || m.registerField({
|
|
@@ -63,11 +64,11 @@ const Ce = /* @__PURE__ */ D({
|
|
|
63
64
|
transform: o.transform
|
|
64
65
|
});
|
|
65
66
|
});
|
|
66
|
-
const y = F(() => o.name ?
|
|
67
|
+
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(s)) : s == null ? void 0 : s.value[o.name] : null), v = f(ue(a.default));
|
|
67
68
|
q(
|
|
68
69
|
() => {
|
|
69
70
|
var e;
|
|
70
|
-
return (e =
|
|
71
|
+
return (e = a.default) == null ? void 0 : e.call(a);
|
|
71
72
|
},
|
|
72
73
|
(e) => {
|
|
73
74
|
v.value = me(e)[0];
|
|
@@ -77,20 +78,20 @@ const Ce = /* @__PURE__ */ D({
|
|
|
77
78
|
u == null || u(o.name, e);
|
|
78
79
|
}
|
|
79
80
|
function S() {
|
|
80
|
-
|
|
81
|
+
d.value = !0;
|
|
81
82
|
}
|
|
82
83
|
function I() {
|
|
83
|
-
|
|
84
|
+
d.value = !1;
|
|
84
85
|
}
|
|
85
86
|
const V = F(() => {
|
|
86
|
-
var t,
|
|
87
|
+
var t, r;
|
|
87
88
|
if (!o.name)
|
|
88
|
-
return (t =
|
|
89
|
+
return (t = a.default()) == null ? void 0 : t[0];
|
|
89
90
|
const e = l(v);
|
|
90
91
|
return e ? E(e, {
|
|
91
92
|
[o.valuePropName]: l(y),
|
|
92
93
|
[`onUpdate:${o.valuePropName}`]: w,
|
|
93
|
-
bordered: o.bordered ? !1 : (
|
|
94
|
+
bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
|
|
94
95
|
onFocus: S,
|
|
95
96
|
onBlur: I
|
|
96
97
|
}) : null;
|
|
@@ -115,8 +116,8 @@ const Ce = /* @__PURE__ */ D({
|
|
|
115
116
|
const t = l(y);
|
|
116
117
|
if (!e || !o.transform)
|
|
117
118
|
return t;
|
|
118
|
-
const
|
|
119
|
-
return o.transform ?
|
|
119
|
+
const r = B(o.transform) ? o.transform : o.transform.transformer;
|
|
120
|
+
return o.transform ? r(t) : t;
|
|
120
121
|
}
|
|
121
122
|
return k({
|
|
122
123
|
onFieldBlur: T,
|
|
@@ -124,17 +125,21 @@ const Ce = /* @__PURE__ */ D({
|
|
|
124
125
|
clearValidate: A,
|
|
125
126
|
resetField: L,
|
|
126
127
|
getFieldValue: R
|
|
127
|
-
}), (e, t) => (h(), g(l(Z).Item, K(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
class: {
|
|
132
|
-
[l(c)("bordered")]: e.bordered,
|
|
133
|
-
[l(c)("focused")]: e.bordered && f.value,
|
|
134
|
-
[l(P)()]: !0
|
|
128
|
+
}), (e, t) => (h(), g(l(Z).Item, K(
|
|
129
|
+
{
|
|
130
|
+
ref_key: "formItemRef",
|
|
131
|
+
ref: n
|
|
135
132
|
},
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
l(C)(o, [...l(ae), "tooltip", "label", "description"]),
|
|
134
|
+
{
|
|
135
|
+
class: {
|
|
136
|
+
[l(c)("bordered")]: e.bordered,
|
|
137
|
+
[l(c)("focused")]: e.bordered && d.value,
|
|
138
|
+
[l(P)()]: !0
|
|
139
|
+
},
|
|
140
|
+
colon: e.bordered ? !1 : o.colon
|
|
141
|
+
}
|
|
142
|
+
), O({
|
|
138
143
|
default: i(() => [
|
|
139
144
|
V.value ? (h(), g(U(V.value), { key: 0 })) : Q("", !0)
|
|
140
145
|
]),
|
|
@@ -142,9 +147,9 @@ const Ce = /* @__PURE__ */ D({
|
|
|
142
147
|
}, [
|
|
143
148
|
o.tooltip ? {
|
|
144
149
|
name: "tooltip",
|
|
145
|
-
fn: i(({ class:
|
|
150
|
+
fn: i(({ class: r }) => [
|
|
146
151
|
H("span", {
|
|
147
|
-
class: J(
|
|
152
|
+
class: J(r)
|
|
148
153
|
}, [
|
|
149
154
|
p(l(ee), {
|
|
150
155
|
title: o.tooltip
|
|
@@ -171,7 +176,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
171
176
|
]),
|
|
172
177
|
key: "1"
|
|
173
178
|
} : void 0,
|
|
174
|
-
G(l(C)(
|
|
179
|
+
G(l(C)(a, "default"), (r, b) => ({
|
|
175
180
|
name: b,
|
|
176
181
|
fn: i((_) => [
|
|
177
182
|
W(e.$slots, b, X(Y(_ || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -48,6 +48,7 @@ const L = /* @__PURE__ */ h({
|
|
|
48
48
|
initialValue: {},
|
|
49
49
|
_signal: {},
|
|
50
50
|
transform: {},
|
|
51
|
+
description: {},
|
|
51
52
|
field: { default: () => ({}) },
|
|
52
53
|
placeholder: {},
|
|
53
54
|
disabled: { type: Boolean, default: void 0 }
|
|
@@ -62,23 +63,23 @@ const L = /* @__PURE__ */ h({
|
|
|
62
63
|
bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
|
|
63
64
|
};
|
|
64
65
|
});
|
|
65
|
-
return (o, P) => (x(), y(k,
|
|
66
|
+
return (o, P) => (x(), y(k, a(t(r(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
66
67
|
default: i(() => [
|
|
67
|
-
g(C,
|
|
68
|
-
p(
|
|
68
|
+
g(C, a(t(b.value)), s({ _: 2 }, [
|
|
69
|
+
p(r(m)(n, r(u)), (_, l) => ({
|
|
69
70
|
name: l,
|
|
70
71
|
fn: i((d) => [
|
|
71
|
-
f(o.$slots, l,
|
|
72
|
+
f(o.$slots, l, a(t(d || {})))
|
|
72
73
|
])
|
|
73
74
|
}))
|
|
74
75
|
]), 1040)
|
|
75
76
|
]),
|
|
76
77
|
_: 2
|
|
77
78
|
}, [
|
|
78
|
-
p(
|
|
79
|
+
p(r(S)(n, r(u)), (_, l) => ({
|
|
79
80
|
name: l,
|
|
80
81
|
fn: i((d) => [
|
|
81
|
-
f(o.$slots, l,
|
|
82
|
+
f(o.$slots, l, a(t(d || {})))
|
|
82
83
|
])
|
|
83
84
|
}))
|
|
84
85
|
]), 1040));
|