@aplus-frontend/ui 0.5.37 → 0.6.0-beta.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 +74 -72
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/ap-form.vue2.mjs +57 -58
- package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +35 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/item/index.vue.mjs +33 -28
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.mjs +8 -7
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/number/index.vue.mjs +9 -8
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/select/index.vue.mjs +7 -6
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- 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 +35 -35
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
- package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/render/item.vue.mjs +5 -4
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/es/src/ap-form/search-form/index.vue.mjs +128 -127
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ap-grid/editable/index.vue.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +113 -108
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-table/ap-table.vue2.mjs +108 -104
- package/es/src/ap-table/constants.d.ts +161 -161
- package/es/src/ap-table/context.d.ts +5 -0
- package/es/src/ap-table/context.mjs +13 -5
- package/es/src/ap-table/utils.d.ts +147 -147
- package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/index.d.ts +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +174 -0
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +177 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
- package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
- package/es/src/business/ap-view/index.d.ts +27 -0
- package/es/src/business/ap-view/index.mjs +8 -0
- package/es/src/business/ap-view/interface.d.ts +54 -0
- package/es/src/business/ap-view/interface.mjs +1 -0
- package/es/src/business/ap-view/style/css.d.ts +0 -0
- package/es/src/business/ap-view/style/css.js +1 -0
- package/es/src/business/ap-view/style/index.d.ts +0 -0
- package/es/src/business/ap-view/style/index.js +1 -0
- package/es/src/business/ap-view/utils/enum.d.ts +1 -0
- package/es/src/business/ap-view/utils/enum.mjs +4 -0
- package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/es/src/business/ap-view/utils/uuid.mjs +22 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +25 -23
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +5 -0
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +25 -1
- package/es/src/config-provider/config-provider.mjs +21 -20
- package/es/src/config-provider/css-var.d.ts +14 -0
- package/es/src/config-provider/css-var.mjs +40 -12
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/es/src/config-provider/index.d.ts +89 -3
- package/es/src/design-token/index.mjs +9 -3
- package/es/src/editable-table/form-item.vue.mjs +1 -1
- package/es/src/editable-table/index.vue.mjs +27 -27
- package/es/src/full-screen/interface.d.ts +1 -1
- package/es/src/index.mjs +61 -59
- package/es/src/locale/lang/en.mjs +22 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/config-provider-preset.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +35 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- 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 +35 -35
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/lib/src/ap-form/search-form/index.vue.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/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +161 -161
- package/lib/src/ap-table/context.d.ts +5 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +147 -147
- package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/index.d.ts +15 -15
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/lib/src/business/ap-view/ap-view.vue.js +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +27 -0
- package/lib/src/business/ap-view/index.js +1 -0
- package/lib/src/business/ap-view/interface.d.ts +54 -0
- package/lib/src/business/ap-view/interface.js +1 -0
- package/lib/src/business/ap-view/style/css.cjs +1 -0
- package/lib/src/business/ap-view/style/css.d.ts +0 -0
- package/lib/src/business/ap-view/style/index.cjs +1 -0
- package/lib/src/business/ap-view/style/index.d.ts +0 -0
- package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
- package/lib/src/business/ap-view/utils/enum.js +1 -0
- package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/lib/src/business/ap-view/utils/uuid.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/css-var.d.ts +14 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/lib/src/config-provider/index.d.ts +89 -3
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/full-screen/interface.d.ts +1 -1
- 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/path-map.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/package.json +7 -7
- package/theme/ap-action/item-dropdown.css +30 -2
- package/theme/ap-action/item-dropdown.less +2 -2
- package/theme/ap-action/item.css +36 -2
- package/theme/ap-action/item.less +2 -3
- package/theme/ap-appendix/ap-appendix.css +28 -0
- package/theme/ap-attachment/ap-attachment.css +28 -0
- package/theme/ap-batch-action/ap-batch-action.css +28 -0
- package/theme/ap-button/ap-button.css +28 -0
- package/theme/ap-card/ap-card.css +28 -0
- package/theme/ap-descriptions/ap-descriptions.css +28 -0
- package/theme/ap-download/ap-download.css +28 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
- package/theme/ap-field/checkbox.css +29 -1
- package/theme/ap-field/checkbox.less +2 -1
- package/theme/ap-field/index.css +30 -2
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +29 -1
- package/theme/ap-field/radio.less +1 -1
- package/theme/ap-field/text-area.css +28 -0
- package/theme/ap-form/ap-form-item-group.css +28 -0
- package/theme/ap-form/ap-form-item.css +35 -5
- package/theme/ap-form/ap-form-item.less +8 -6
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +177 -6
- package/theme/ap-form/item-text-group.css +28 -0
- package/theme/ap-form/item-text.css +28 -0
- package/theme/ap-form/modal-form.css +28 -0
- package/theme/ap-form/search-form-sorter.css +120 -0
- package/theme/ap-form/search-form-sorter.less +71 -0
- package/theme/ap-form/search-form.css +177 -6
- package/theme/ap-form/search-form.less +57 -1
- package/theme/ap-grid/editable.css +30 -2
- package/theme/ap-grid/editable.less +2 -2
- package/theme/ap-grid/index.css +206 -20
- package/theme/ap-grid/index.less +17 -8
- package/theme/ap-group-search/ap-extension-select.css +28 -0
- package/theme/ap-group-search/ap-group-search.css +28 -0
- package/theme/ap-group-search/ap-popover-select.css +28 -0
- package/theme/ap-image/ap-image.css +28 -0
- package/theme/ap-input-radio/ap-input-radio.css +28 -0
- package/theme/ap-label/ap-label.css +28 -0
- package/theme/ap-ladder/ap-ladder.css +28 -0
- package/theme/ap-layout/ap-info-layout.css +28 -0
- package/theme/ap-list/index.css +29 -1
- package/theme/ap-list/index.less +2 -1
- package/theme/ap-product-info/ap-product-info.css +28 -0
- package/theme/ap-select-layout/ap-select-layout.css +28 -0
- package/theme/ap-size-input/ap-size-input.css +28 -0
- package/theme/ap-status/ap-status.css +28 -0
- package/theme/ap-summary/index.css +28 -0
- package/theme/ap-table/ap-table-index.css +28 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
- package/theme/ap-table/ap-table.css +217 -34
- package/theme/ap-table/ap-table.less +12 -9
- package/theme/ap-table/setting/index.css +44 -2
- package/theme/ap-table/setting/modal.css +36 -0
- package/theme/ap-table/setting/modal.less +1 -0
- package/theme/ap-table/setting/select-group.css +28 -0
- package/theme/ap-table/setting/sortable-item-meta.css +28 -0
- package/theme/ap-table/setting/sortable-item.css +28 -0
- package/theme/ap-table/setting/sorter.css +36 -2
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +217 -34
- package/theme/ap-tag/ap-tag-group.css +28 -0
- package/theme/ap-tag/ap-tag.css +28 -0
- package/theme/ap-title/ap-title.css +28 -0
- package/theme/ap-upload/index.css +28 -0
- package/theme/ap-upload/multiple-file.css +28 -0
- package/theme/ap-upload/picture.css +28 -0
- package/theme/ap-upload/single-file.css +28 -0
- package/theme/ap-upload/upload.css +28 -0
- package/theme/ap-upload-single/index.css +28 -0
- package/theme/ap-view/ap-view.css +149 -0
- package/theme/ap-view/ap-view.less +128 -0
- package/theme/batch-input-group/index.css +30 -2
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +65 -17
- package/theme/check-card/index.less +20 -19
- package/theme/editable-table/index.css +198 -19
- package/theme/editable-table/index.less +9 -7
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +417 -75
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +26 -3
- package/theme/mixins/mixins.css +28 -0
- package/theme/mixins/mixins.less +35 -0
- package/theme/scroll-bar/index.css +28 -0
- package/theme/scroll-view/index.css +28 -0
- package/theme/splitter/index.css +33 -5
- package/theme/text/group.css +28 -0
- package/theme/text/index.css +36 -1
- package/theme/text/index.less +1 -1
- package/theme/work-order-modal/index.css +28 -0
|
@@ -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;
|
|
@@ -136,6 +140,7 @@ export type ApFormListProps = {
|
|
|
136
140
|
initialValue?: any[];
|
|
137
141
|
transform?: ApFormItemTransformType;
|
|
138
142
|
};
|
|
143
|
+
type AllowCountPerRowType = 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
|
|
139
144
|
export type ApFormSearchFormProps = ApFormProps & {
|
|
140
145
|
collapse?: boolean;
|
|
141
146
|
defaultCollapse?: boolean;
|
|
@@ -147,8 +152,37 @@ export type ApFormSearchFormProps = ApFormProps & {
|
|
|
147
152
|
customReset?: boolean;
|
|
148
153
|
extraInAction?: boolean;
|
|
149
154
|
forceExpand?: boolean;
|
|
150
|
-
countPerRow?:
|
|
155
|
+
countPerRow?: AllowCountPerRowType;
|
|
151
156
|
submitLoading?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* 最大显示的行(超出后将会收起进入更多筛选)
|
|
159
|
+
*/
|
|
160
|
+
maxRows?: number;
|
|
161
|
+
/**
|
|
162
|
+
* 是否可排序
|
|
163
|
+
*/
|
|
164
|
+
sortable?: boolean;
|
|
165
|
+
};
|
|
166
|
+
export type ApFormSearchFormPopoverFilterProps = {
|
|
167
|
+
config: Array<{
|
|
168
|
+
node: VNode;
|
|
169
|
+
key: string;
|
|
170
|
+
span: number;
|
|
171
|
+
}>;
|
|
172
|
+
onSubmit: () => void;
|
|
173
|
+
submitLoading: boolean;
|
|
174
|
+
};
|
|
175
|
+
export type ApFormSearchFormPopoverSorterProps = {
|
|
176
|
+
/**
|
|
177
|
+
* 需要排序的全量节点
|
|
178
|
+
*/
|
|
179
|
+
children: VNode[];
|
|
180
|
+
/**
|
|
181
|
+
* 点击确定
|
|
182
|
+
* @param sortedChildren
|
|
183
|
+
* @returns
|
|
184
|
+
*/
|
|
185
|
+
onClickConfirm: (sortedChildren: VNode[]) => void;
|
|
152
186
|
};
|
|
153
187
|
export type ApFormSearchFormExpose = {
|
|
154
188
|
apForm: ApFormExpose;
|
|
@@ -35,9 +35,6 @@ declare function __VLS_template(): {
|
|
|
35
35
|
readonly help?: any;
|
|
36
36
|
readonly tooltip?: string | undefined;
|
|
37
37
|
readonly prefixCls?: string | undefined;
|
|
38
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
39
|
-
readonly colon?: boolean | undefined;
|
|
40
|
-
readonly required?: boolean | undefined;
|
|
41
38
|
readonly htmlFor?: string | undefined;
|
|
42
39
|
readonly extra?: any;
|
|
43
40
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
@@ -106,14 +103,17 @@ declare function __VLS_template(): {
|
|
|
106
103
|
prefixCls: StringConstructor;
|
|
107
104
|
flex: (StringConstructor | NumberConstructor)[];
|
|
108
105
|
}>> & HTMLAttributes) | undefined;
|
|
106
|
+
readonly colon?: boolean | undefined;
|
|
109
107
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
110
108
|
readonly prop?: string | number | (string | number)[] | undefined;
|
|
109
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
111
110
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
111
|
+
readonly required?: boolean | undefined;
|
|
112
112
|
readonly validateFirst?: boolean | undefined;
|
|
113
113
|
readonly validateStatus?: string | undefined;
|
|
114
114
|
readonly validateTrigger?: string | string[] | undefined;
|
|
115
115
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
116
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
116
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle">;
|
|
117
117
|
$attrs: {
|
|
118
118
|
[x: string]: unknown;
|
|
119
119
|
};
|
|
@@ -402,7 +402,7 @@ declare function __VLS_template(): {
|
|
|
402
402
|
hidden: BooleanConstructor;
|
|
403
403
|
noStyle: BooleanConstructor;
|
|
404
404
|
tooltip: StringConstructor;
|
|
405
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
405
|
+
}>> & Readonly<{}>, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any> & {} & ComponentCustomProperties & {} & {
|
|
406
406
|
$: ComponentInternalInstance;
|
|
407
407
|
$data: {};
|
|
408
408
|
$props: Partial<{
|
|
@@ -422,9 +422,6 @@ declare function __VLS_template(): {
|
|
|
422
422
|
readonly help?: any;
|
|
423
423
|
readonly tooltip?: string | undefined;
|
|
424
424
|
readonly prefixCls?: string | undefined;
|
|
425
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
426
|
-
readonly colon?: boolean | undefined;
|
|
427
|
-
readonly required?: boolean | undefined;
|
|
428
425
|
readonly htmlFor?: string | undefined;
|
|
429
426
|
readonly extra?: any;
|
|
430
427
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
@@ -493,14 +490,17 @@ declare function __VLS_template(): {
|
|
|
493
490
|
prefixCls: StringConstructor;
|
|
494
491
|
flex: (StringConstructor | NumberConstructor)[];
|
|
495
492
|
}>> & HTMLAttributes) | undefined;
|
|
493
|
+
readonly colon?: boolean | undefined;
|
|
496
494
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
497
495
|
readonly prop?: string | number | (string | number)[] | undefined;
|
|
496
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
498
497
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
498
|
+
readonly required?: boolean | undefined;
|
|
499
499
|
readonly validateFirst?: boolean | undefined;
|
|
500
500
|
readonly validateStatus?: string | undefined;
|
|
501
501
|
readonly validateTrigger?: string | string[] | undefined;
|
|
502
502
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
503
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
503
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle">;
|
|
504
504
|
$attrs: {
|
|
505
505
|
[x: string]: unknown;
|
|
506
506
|
};
|
|
@@ -789,7 +789,7 @@ declare function __VLS_template(): {
|
|
|
789
789
|
hidden: BooleanConstructor;
|
|
790
790
|
noStyle: BooleanConstructor;
|
|
791
791
|
tooltip: StringConstructor;
|
|
792
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
792
|
+
}>> & Readonly<{}>, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
793
793
|
};
|
|
794
794
|
rootEl: any;
|
|
795
795
|
};
|
|
@@ -802,10 +802,10 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
802
802
|
getFieldValue: typeof getFieldValue;
|
|
803
803
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
804
804
|
bordered: boolean;
|
|
805
|
-
colon: boolean;
|
|
806
|
-
required: boolean;
|
|
807
805
|
hasFeedback: boolean;
|
|
806
|
+
colon: boolean;
|
|
808
807
|
autoLink: boolean;
|
|
808
|
+
required: boolean;
|
|
809
809
|
validateFirst: boolean;
|
|
810
810
|
valuePropName: string;
|
|
811
811
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -829,9 +829,6 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
829
829
|
readonly help?: any;
|
|
830
830
|
readonly tooltip?: string | undefined;
|
|
831
831
|
readonly prefixCls?: string | undefined;
|
|
832
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
833
|
-
readonly colon?: boolean | undefined;
|
|
834
|
-
readonly required?: boolean | undefined;
|
|
835
832
|
readonly htmlFor?: string | undefined;
|
|
836
833
|
readonly extra?: any;
|
|
837
834
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
@@ -900,14 +897,17 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
900
897
|
prefixCls: StringConstructor;
|
|
901
898
|
flex: (StringConstructor | NumberConstructor)[];
|
|
902
899
|
}>> & HTMLAttributes) | undefined;
|
|
900
|
+
readonly colon?: boolean | undefined;
|
|
903
901
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
904
902
|
readonly prop?: string | number | (string | number)[] | undefined;
|
|
903
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
905
904
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
905
|
+
readonly required?: boolean | undefined;
|
|
906
906
|
readonly validateFirst?: boolean | undefined;
|
|
907
907
|
readonly validateStatus?: string | undefined;
|
|
908
908
|
readonly validateTrigger?: string | string[] | undefined;
|
|
909
909
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
910
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
910
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle">;
|
|
911
911
|
$attrs: {
|
|
912
912
|
[x: string]: unknown;
|
|
913
913
|
};
|
|
@@ -1196,7 +1196,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1196
1196
|
hidden: BooleanConstructor;
|
|
1197
1197
|
noStyle: BooleanConstructor;
|
|
1198
1198
|
tooltip: StringConstructor;
|
|
1199
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
1199
|
+
}>> & Readonly<{}>, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any> & {} & ComponentCustomProperties & {} & {
|
|
1200
1200
|
$: ComponentInternalInstance;
|
|
1201
1201
|
$data: {};
|
|
1202
1202
|
$props: Partial<{
|
|
@@ -1216,9 +1216,6 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1216
1216
|
readonly help?: any;
|
|
1217
1217
|
readonly tooltip?: string | undefined;
|
|
1218
1218
|
readonly prefixCls?: string | undefined;
|
|
1219
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
1220
|
-
readonly colon?: boolean | undefined;
|
|
1221
|
-
readonly required?: boolean | undefined;
|
|
1222
1219
|
readonly htmlFor?: string | undefined;
|
|
1223
1220
|
readonly extra?: any;
|
|
1224
1221
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
@@ -1287,14 +1284,17 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1287
1284
|
prefixCls: StringConstructor;
|
|
1288
1285
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1289
1286
|
}>> & HTMLAttributes) | undefined;
|
|
1287
|
+
readonly colon?: boolean | undefined;
|
|
1290
1288
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1291
1289
|
readonly prop?: string | number | (string | number)[] | undefined;
|
|
1290
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
1292
1291
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
1292
|
+
readonly required?: boolean | undefined;
|
|
1293
1293
|
readonly validateFirst?: boolean | undefined;
|
|
1294
1294
|
readonly validateStatus?: string | undefined;
|
|
1295
1295
|
readonly validateTrigger?: string | string[] | undefined;
|
|
1296
1296
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
1297
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
1297
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle">;
|
|
1298
1298
|
$attrs: {
|
|
1299
1299
|
[x: string]: unknown;
|
|
1300
1300
|
};
|
|
@@ -1583,7 +1583,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1583
1583
|
hidden: BooleanConstructor;
|
|
1584
1584
|
noStyle: BooleanConstructor;
|
|
1585
1585
|
tooltip: StringConstructor;
|
|
1586
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
1586
|
+
}>> & Readonly<{}>, "hidden" | "hasFeedback" | "colon" | "autoLink" | "required" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
1587
1587
|
}, any>;
|
|
1588
1588
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1589
1589
|
export default _default;
|
|
@@ -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(_ || {})))
|
|
@@ -12,12 +12,12 @@ declare function __VLS_template(): {
|
|
|
12
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
13
|
declare const __VLS_component: DefineComponent<ApFormItemCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemCheckboxProps> & Readonly<{}>, {
|
|
14
14
|
disabled: boolean;
|
|
15
|
-
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
16
|
-
colon: boolean;
|
|
17
|
-
required: boolean;
|
|
18
15
|
hasFeedback: boolean;
|
|
16
|
+
colon: boolean;
|
|
19
17
|
autoLink: boolean;
|
|
18
|
+
required: boolean;
|
|
20
19
|
validateFirst: boolean;
|
|
20
|
+
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
21
21
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
23
|
export default _default;
|
|
@@ -35,12 +35,12 @@ declare function __VLS_template(): {
|
|
|
35
35
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
36
|
declare const __VLS_component: DefineComponent<ApFormItemDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateProps> & Readonly<{}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
|
|
39
|
-
colon: boolean;
|
|
40
|
-
required: boolean;
|
|
41
38
|
hasFeedback: boolean;
|
|
39
|
+
colon: boolean;
|
|
42
40
|
autoLink: boolean;
|
|
41
|
+
required: boolean;
|
|
43
42
|
validateFirst: boolean;
|
|
43
|
+
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
|
|
44
44
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
46
|
export default _default;
|
|
@@ -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));
|
|
@@ -33,12 +33,12 @@ declare function __VLS_template(): {
|
|
|
33
33
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
34
|
declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateRangeProps> & Readonly<{}>, {
|
|
35
35
|
disabled: boolean;
|
|
36
|
-
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
|
|
37
|
-
colon: boolean;
|
|
38
|
-
required: boolean;
|
|
39
36
|
hasFeedback: boolean;
|
|
37
|
+
colon: boolean;
|
|
40
38
|
autoLink: boolean;
|
|
39
|
+
required: boolean;
|
|
41
40
|
validateFirst: boolean;
|
|
41
|
+
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
|
|
42
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
44
|
export default _default;
|
|
@@ -43,7 +43,6 @@ declare function __VLS_template(): {
|
|
|
43
43
|
readonly disabled?: boolean | undefined;
|
|
44
44
|
readonly bordered?: boolean | undefined;
|
|
45
45
|
readonly prefixCls?: string | undefined;
|
|
46
|
-
readonly status?: "" | "error" | "warning" | undefined;
|
|
47
46
|
readonly keyboard?: boolean | undefined;
|
|
48
47
|
readonly autofocus?: boolean | undefined;
|
|
49
48
|
readonly 'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
@@ -51,6 +50,7 @@ declare function __VLS_template(): {
|
|
|
51
50
|
readonly min?: ValueType | undefined;
|
|
52
51
|
readonly defaultValue?: ValueType | undefined;
|
|
53
52
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
53
|
+
readonly status?: "" | "error" | "warning" | undefined;
|
|
54
54
|
readonly readonly?: boolean | undefined;
|
|
55
55
|
readonly stringMode?: boolean | undefined;
|
|
56
56
|
readonly controls?: boolean | undefined;
|
|
@@ -65,14 +65,14 @@ declare function __VLS_template(): {
|
|
|
65
65
|
}) => void) | undefined;
|
|
66
66
|
readonly type?: string | undefined;
|
|
67
67
|
readonly name?: string | undefined;
|
|
68
|
-
readonly id?: string | undefined;
|
|
69
|
-
readonly placeholder?: string | undefined;
|
|
70
|
-
readonly tabindex?: number | undefined;
|
|
71
|
-
readonly prefix?: any;
|
|
72
68
|
readonly suffix?: any;
|
|
69
|
+
readonly placeholder?: string | undefined;
|
|
70
|
+
readonly id?: string | undefined;
|
|
73
71
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
74
72
|
readonly addonBefore?: any;
|
|
75
73
|
readonly addonAfter?: any;
|
|
74
|
+
readonly prefix?: any;
|
|
75
|
+
readonly tabindex?: number | undefined;
|
|
76
76
|
readonly precision?: number | undefined;
|
|
77
77
|
readonly decimalSeparator?: string | undefined;
|
|
78
78
|
readonly emptyText?: string | undefined;
|
|
@@ -492,12 +492,12 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
492
492
|
blur: () => void;
|
|
493
493
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemNumberProps> & Readonly<{}>, {
|
|
494
494
|
disabled: boolean;
|
|
495
|
-
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
|
|
496
|
-
colon: boolean;
|
|
497
|
-
required: boolean;
|
|
498
495
|
hasFeedback: boolean;
|
|
496
|
+
colon: boolean;
|
|
499
497
|
autoLink: boolean;
|
|
498
|
+
required: boolean;
|
|
500
499
|
validateFirst: boolean;
|
|
500
|
+
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
|
|
501
501
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
502
502
|
inputNumberRef: ({
|
|
503
503
|
$: ComponentInternalInstance;
|
|
@@ -516,7 +516,6 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
516
516
|
readonly disabled?: boolean | undefined;
|
|
517
517
|
readonly bordered?: boolean | undefined;
|
|
518
518
|
readonly prefixCls?: string | undefined;
|
|
519
|
-
readonly status?: "" | "error" | "warning" | undefined;
|
|
520
519
|
readonly keyboard?: boolean | undefined;
|
|
521
520
|
readonly autofocus?: boolean | undefined;
|
|
522
521
|
readonly 'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
@@ -524,6 +523,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
524
523
|
readonly min?: ValueType | undefined;
|
|
525
524
|
readonly defaultValue?: ValueType | undefined;
|
|
526
525
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
526
|
+
readonly status?: "" | "error" | "warning" | undefined;
|
|
527
527
|
readonly readonly?: boolean | undefined;
|
|
528
528
|
readonly stringMode?: boolean | undefined;
|
|
529
529
|
readonly controls?: boolean | undefined;
|
|
@@ -538,14 +538,14 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
538
538
|
}) => void) | undefined;
|
|
539
539
|
readonly type?: string | undefined;
|
|
540
540
|
readonly name?: string | undefined;
|
|
541
|
-
readonly id?: string | undefined;
|
|
542
|
-
readonly placeholder?: string | undefined;
|
|
543
|
-
readonly tabindex?: number | undefined;
|
|
544
|
-
readonly prefix?: any;
|
|
545
541
|
readonly suffix?: any;
|
|
542
|
+
readonly placeholder?: string | undefined;
|
|
543
|
+
readonly id?: string | undefined;
|
|
546
544
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
547
545
|
readonly addonBefore?: any;
|
|
548
546
|
readonly addonAfter?: any;
|
|
547
|
+
readonly prefix?: any;
|
|
548
|
+
readonly tabindex?: number | undefined;
|
|
549
549
|
readonly precision?: number | undefined;
|
|
550
550
|
readonly decimalSeparator?: string | undefined;
|
|
551
551
|
readonly emptyText?: string | undefined;
|
|
@@ -48,33 +48,34 @@ const T = /* @__PURE__ */ y({
|
|
|
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 }
|
|
54
55
|
},
|
|
55
56
|
setup(c, { expose: b }) {
|
|
56
|
-
const h = c, p = B(),
|
|
57
|
+
const h = c, p = B(), r = _();
|
|
57
58
|
return b({
|
|
58
59
|
focus: () => {
|
|
59
60
|
var e;
|
|
60
|
-
(e =
|
|
61
|
+
(e = r.value) == null || e.focus();
|
|
61
62
|
},
|
|
62
63
|
blur: () => {
|
|
63
64
|
var e;
|
|
64
|
-
(e =
|
|
65
|
+
(e = r.value) == null || e.blur();
|
|
65
66
|
}
|
|
66
67
|
}), (e, R) => (x(), g(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), d({
|
|
67
68
|
default: n(() => [
|
|
68
69
|
k(F, N({
|
|
69
70
|
ref_key: "inputNumberRef",
|
|
70
|
-
ref:
|
|
71
|
+
ref: r,
|
|
71
72
|
placeholder: e.placeholder,
|
|
72
73
|
disabled: e.disabled
|
|
73
74
|
}, e.field), d({ _: 2 }, [
|
|
74
75
|
i(l(f)(p, l(m)), (v, o) => ({
|
|
75
76
|
name: o,
|
|
76
|
-
fn: n((
|
|
77
|
-
u(e.$slots, o, t(s(
|
|
77
|
+
fn: n((a) => [
|
|
78
|
+
u(e.$slots, o, t(s(a || {})))
|
|
78
79
|
])
|
|
79
80
|
}))
|
|
80
81
|
]), 1040, ["placeholder", "disabled"])
|
|
@@ -83,8 +84,8 @@ const T = /* @__PURE__ */ y({
|
|
|
83
84
|
}, [
|
|
84
85
|
i(l(S)(p, l(m)), (v, o) => ({
|
|
85
86
|
name: o,
|
|
86
|
-
fn: n((
|
|
87
|
-
u(e.$slots, o, t(s(
|
|
87
|
+
fn: n((a) => [
|
|
88
|
+
u(e.$slots, o, t(s(a || {})))
|
|
88
89
|
])
|
|
89
90
|
}))
|
|
90
91
|
]), 1040));
|
|
@@ -142,12 +142,12 @@ declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
|
|
|
142
142
|
blur: () => void;
|
|
143
143
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemRadioProps> & Readonly<{}>, {
|
|
144
144
|
disabled: boolean;
|
|
145
|
-
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
146
|
-
colon: boolean;
|
|
147
|
-
required: boolean;
|
|
148
145
|
hasFeedback: boolean;
|
|
146
|
+
colon: boolean;
|
|
149
147
|
autoLink: boolean;
|
|
148
|
+
required: boolean;
|
|
150
149
|
validateFirst: boolean;
|
|
150
|
+
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
151
151
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
152
152
|
radioRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldRadioProps> & Readonly<{
|
|
153
153
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|