@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.21
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 +307 -289
- 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-descriptions/ap-descriptions.vue.mjs +9 -8
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
- package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
- package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
- package/es/src/ap-drawer/index.d.ts +3 -7
- package/es/src/ap-drawer/index.mjs +10 -5
- package/es/src/ap-drawer/interface.d.ts +4 -0
- package/es/src/ap-drawer/style/css.d.ts +0 -1
- package/es/src/ap-drawer/style/css.js +1 -1
- package/es/src/ap-drawer/style/index.d.ts +0 -1
- package/es/src/ap-drawer/style/index.js +1 -1
- package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
- 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/date-range/index.vue.mjs +8 -7
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-field/number/index.vue.d.ts +3 -5
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +3 -5
- package/es/src/ap-field/select/index.vue.d.ts +4 -7
- package/es/src/ap-field/slider/index.vue.d.ts +2 -4
- package/es/src/ap-field/text/index.vue2.mjs +42 -44
- package/es/src/ap-field/text/password.vue.mjs +15 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
- package/es/src/ap-form/ap-form.vue2.mjs +89 -77
- package/es/src/ap-form/dependency/index.vue.mjs +29 -23
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +13 -5
- package/es/src/ap-form/item/index.vue.d.ts +6 -11
- package/es/src/ap-form/item/index.vue.mjs +43 -39
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +9 -9
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- 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 +12 -14
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
- package/es/src/ap-form/provider/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- 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 +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +33 -13
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.mjs +99 -97
- package/es/src/ap-form/set/index.vue.mjs +7 -6
- 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 +97 -83
- package/es/src/ap-grid/editable/index.vue.mjs +100 -86
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
- 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/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
- package/es/src/ap-grid/index.vue.mjs +291 -224
- package/es/src/ap-grid/interface.d.ts +31 -2
- package/es/src/ap-grid/utils/table.mjs +31 -31
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +116 -106
- package/es/src/ap-list/interface.d.ts +20 -0
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +78 -70
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +52 -52
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +152 -124
- package/es/src/ap-table/interface.d.ts +14 -1
- package/es/src/ap-table/utils.d.ts +35 -35
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
- package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/es/src/business/ap-copy/ApCopy.mjs +79 -0
- package/es/src/business/ap-copy/constans.d.ts +24 -0
- package/es/src/business/ap-copy/constans.mjs +25 -0
- package/es/src/business/ap-copy/index.d.ts +102 -0
- package/es/src/business/ap-copy/index.mjs +7 -0
- package/es/src/business/ap-copy/interface.d.ts +8 -0
- package/es/src/business/ap-copy/interface.mjs +1 -0
- package/es/src/business/ap-copy/style/css.d.ts +0 -0
- package/es/src/business/ap-copy/style/css.js +1 -0
- package/es/src/business/ap-copy/style/index.d.ts +0 -0
- package/es/src/business/ap-copy/style/index.js +1 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +94 -73
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
- package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/es/src/business/ap-keep-alive/hook.mjs +33 -0
- package/es/src/business/ap-keep-alive/index.d.ts +107 -0
- package/es/src/business/ap-keep-alive/index.mjs +13 -0
- package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/es/src/business/ap-keep-alive/interface.mjs +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/es/src/business/ap-keep-alive/utils.mjs +41 -0
- 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/group/ApLabelGroup.mjs +15 -16
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-label/interface.d.ts +2 -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-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
- package/es/src/business/ap-radio-group/index.d.ts +60 -0
- package/es/src/business/ap-radio-group/index.mjs +8 -0
- package/es/src/business/ap-radio-group/interface.d.ts +11 -0
- package/es/src/business/ap-radio-group/interface.mjs +1 -0
- package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/css.js +1 -0
- package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/index.js +1 -0
- package/es/src/business/ap-status/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/index.d.ts +32 -5
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
- package/es/src/business/ap-view/ap-view.vue.d.ts +5 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +162 -129
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/ap-view/index.d.ts +15 -3
- package/es/src/business/ap-view/interface.d.ts +11 -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 +14 -13
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.mjs +10 -9
- package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
- package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/es/src/business/index.d.ts +3 -0
- package/es/src/business/index.mjs +36 -30
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/components.d.ts +1 -0
- 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/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +86 -78
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +91 -83
- package/es/src/editable-table/interface.d.ts +7 -0
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +269 -253
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/mask/index.vue.mjs +21 -20
- package/es/src/path-map.mjs +3 -1
- package/es/src/resize-observer/interface.d.ts +2 -3
- package/es/src/scroll-bar/interface.d.ts +7 -7
- package/es/src/scroll-view/interface.d.ts +2 -3
- package/es/src/splitter/SplitBar.vue2.mjs +1 -0
- package/es/src/splitter/Splitter.vue2.mjs +1 -0
- package/es/src/tests/mock-resize-observer.d.ts +2 -0
- package/es/src/tests/utils.d.ts +8 -0
- package/es/src/text/group.vue.mjs +7 -6
- package/es/src/text/index.vue.mjs +20 -19
- package/es/src/version.d.ts +2 -0
- package/es/src/version.mjs +4 -0
- package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
- package/es/src/work-order-modal/interfaces.d.ts +4 -0
- 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 +120 -105
- package/es/test/setup.d.ts +5 -0
- package/lib/index.js +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-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
- package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
- package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
- package/lib/src/ap-drawer/index.d.ts +3 -7
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/interface.d.ts +4 -0
- package/lib/src/ap-drawer/style/css.cjs +1 -1
- package/lib/src/ap-drawer/style/css.d.ts +0 -1
- package/lib/src/ap-drawer/style/index.cjs +1 -1
- package/lib/src/ap-drawer/style/index.d.ts +0 -1
- package/lib/src/ap-drawer/utils/createDrawer.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/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +3 -5
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +3 -5
- package/lib/src/ap-field/select/index.vue.d.ts +4 -7
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +13 -5
- package/lib/src/ap-form/item/index.vue.d.ts +6 -11
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- 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/text/index.vue.d.ts +2 -2
- 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.d.ts +5 -5
- 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/modal-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +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/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/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-editable-columns.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/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +31 -2
- 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-list/index.vue.d.ts +2 -9
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +20 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.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 +52 -52
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +14 -1
- package/lib/src/ap-table/utils.d.ts +35 -35
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/lib/src/business/ap-copy/ApCopy.js +1 -0
- package/lib/src/business/ap-copy/constans.d.ts +24 -0
- package/lib/src/business/ap-copy/constans.js +1 -0
- package/lib/src/business/ap-copy/index.d.ts +102 -0
- package/lib/src/business/ap-copy/index.js +1 -0
- package/lib/src/business/ap-copy/interface.d.ts +8 -0
- package/lib/src/business/ap-copy/interface.js +1 -0
- package/lib/src/business/ap-copy/style/css.cjs +1 -0
- package/lib/src/business/ap-copy/style/css.d.ts +0 -0
- package/lib/src/business/ap-copy/style/index.cjs +1 -0
- package/lib/src/business/ap-copy/style/index.d.ts +0 -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.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
- package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/hook.js +1 -0
- package/lib/src/business/ap-keep-alive/index.d.ts +107 -0
- package/lib/src/business/ap-keep-alive/index.js +1 -0
- package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/lib/src/business/ap-keep-alive/interface.js +1 -0
- package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- 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/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-label/interface.d.ts +2 -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-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
- package/lib/src/business/ap-radio-group/index.d.ts +60 -0
- package/lib/src/business/ap-radio-group/index.js +1 -0
- package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
- package/lib/src/business/ap-radio-group/interface.js +1 -0
- package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/lib/src/business/ap-status/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/index.d.ts +32 -5
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +5 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +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.vue.d.ts +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 +15 -3
- package/lib/src/business/ap-view/interface.d.ts +11 -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/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/lib/src/business/index.d.ts +3 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/components.d.ts +1 -0
- 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/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/full-screen/interface.d.ts +5 -6
- 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/mask/index.vue.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/resize-observer/interface.d.ts +2 -3
- package/lib/src/scroll-bar/interface.d.ts +7 -7
- package/lib/src/scroll-view/interface.d.ts +2 -3
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/tests/mock-resize-observer.d.ts +2 -0
- package/lib/src/tests/utils.d.ts +8 -0
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +2 -0
- package/lib/src/version.js +1 -0
- package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +4 -0
- 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/lib/test/setup.d.ts +5 -0
- package/package.json +18 -14
- package/theme/antd-global-overwrite/admin/alert.css +6 -19
- package/theme/antd-global-overwrite/admin/alert.less +25 -36
- package/theme/antd-global-overwrite/admin/button.css +13 -13
- package/theme/antd-global-overwrite/admin/button.less +24 -24
- package/theme/antd-global-overwrite/admin/field.css +39 -0
- package/theme/antd-global-overwrite/admin/field.less +39 -0
- package/theme/antd-global-overwrite/admin/index.css +89 -646
- package/theme/antd-global-overwrite/admin/index.less +2 -3
- package/theme/antd-global-overwrite/admin/message.css +2 -9
- package/theme/antd-global-overwrite/admin/message.less +2 -10
- package/theme/antd-global-overwrite/admin/modal.css +15 -48
- package/theme/antd-global-overwrite/admin/modal.less +13 -54
- package/theme/antd-global-overwrite/admin/table.css +11 -251
- package/theme/antd-global-overwrite/admin/table.less +4 -132
- 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/alert.css +9 -19
- package/theme/antd-global-overwrite/aplus/alert.less +27 -34
- package/theme/antd-global-overwrite/aplus/button.css +20 -20
- package/theme/antd-global-overwrite/aplus/button.less +24 -24
- package/theme/antd-global-overwrite/aplus/field.css +33 -0
- package/theme/antd-global-overwrite/aplus/field.less +32 -0
- package/theme/antd-global-overwrite/aplus/index.css +91 -690
- package/theme/antd-global-overwrite/aplus/index.less +1 -3
- package/theme/antd-global-overwrite/aplus/message.css +2 -9
- package/theme/antd-global-overwrite/aplus/message.less +2 -10
- package/theme/antd-global-overwrite/aplus/modal.css +15 -49
- package/theme/antd-global-overwrite/aplus/modal.less +14 -58
- package/theme/antd-global-overwrite/aplus/table.css +11 -236
- package/theme/antd-global-overwrite/aplus/table.less +4 -134
- 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 +19 -1
- package/theme/ap-action/item.css +37 -8
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +27 -9
- package/theme/ap-appendix/ap-appendix.less +8 -8
- package/theme/ap-attachment/ap-attachment.css +21 -2
- package/theme/ap-attachment/ap-attachment.less +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +22 -4
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +19 -1
- package/theme/ap-card/ap-card.css +20 -2
- package/theme/ap-card/ap-card.less +1 -1
- package/theme/ap-copy/ap-copy.css +96 -0
- package/theme/ap-copy/ap-copy.less +61 -0
- package/theme/ap-descriptions/ap-descriptions.css +25 -5
- package/theme/ap-descriptions/ap-descriptions.less +6 -4
- package/theme/ap-download/ap-download.css +19 -1
- package/theme/ap-drawer/ap-drawer.css +75 -0
- package/theme/ap-drawer/ap-drawer.less +42 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +21 -2
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
- package/theme/ap-field/checkbox.css +19 -1
- package/theme/ap-field/index.css +19 -1
- package/theme/ap-field/number.css +19 -1
- package/theme/ap-field/radio.css +19 -1
- package/theme/ap-field/text-area.css +19 -1
- package/theme/ap-form/ap-form-item-group.css +19 -1
- package/theme/ap-form/ap-form-item.css +30 -9
- package/theme/ap-form/ap-form-item.less +15 -9
- package/theme/ap-form/drawer-form.css +19 -1
- package/theme/ap-form/index.css +51 -18
- package/theme/ap-form/item-text-group.css +19 -1
- package/theme/ap-form/item-text.css +19 -1
- package/theme/ap-form/modal-form.css +19 -1
- package/theme/ap-form/search-form-sorter.css +28 -9
- package/theme/ap-form/search-form-sorter.less +5 -4
- package/theme/ap-form/search-form.css +51 -18
- package/theme/ap-form/search-form.less +12 -1
- package/theme/ap-grid/editable.css +19 -1
- package/theme/ap-grid/index.css +118 -31
- package/theme/ap-grid/index.less +34 -5
- package/theme/ap-group-search/ap-extension-select.css +19 -1
- package/theme/ap-group-search/ap-group-search.css +19 -1
- package/theme/ap-group-search/ap-popover-select.css +19 -1
- package/theme/ap-image/ap-image.css +19 -1
- package/theme/ap-input-radio/ap-input-radio.css +19 -1
- package/theme/ap-label/ap-label.css +19 -1
- package/theme/ap-ladder/ap-ladder.css +20 -1
- package/theme/ap-ladder/ap-ladder.less +1 -0
- package/theme/ap-layout/ap-info-layout.css +19 -1
- package/theme/ap-list/index.css +19 -1
- package/theme/ap-product-info/ap-product-info.css +39 -31
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +65 -0
- package/theme/ap-radio-group/ap-radio-group.less +25 -0
- package/theme/ap-select-layout/ap-select-layout.css +19 -1
- package/theme/ap-size-input/ap-size-input.css +19 -1
- package/theme/ap-status/ap-status.css +20 -2
- package/theme/ap-status/ap-status.less +1 -1
- package/theme/ap-summary/index.css +19 -1
- package/theme/ap-table/ap-table-index.css +19 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +20 -2
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +127 -50
- package/theme/ap-table/ap-table.less +24 -11
- package/theme/ap-table/setting/index.css +35 -13
- package/theme/ap-table/setting/modal.css +26 -5
- package/theme/ap-table/setting/modal.less +6 -3
- package/theme/ap-table/setting/select-group.css +21 -2
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table/setting/sortable-item-meta.css +21 -3
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +19 -1
- package/theme/ap-table/setting/sorter.css +24 -6
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +142 -63
- package/theme/ap-table-modal/index.less +15 -13
- package/theme/ap-tag/ap-tag-group.css +21 -3
- package/theme/ap-tag/ap-tag-group.less +2 -3
- package/theme/ap-tag/ap-tag.css +23 -5
- package/theme/ap-tag/ap-tag.less +4 -4
- package/theme/ap-title/ap-title.css +24 -4
- package/theme/ap-title/ap-title.less +5 -3
- package/theme/ap-upload/index.css +24 -6
- package/theme/ap-upload/multiple-file.css +20 -2
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +21 -3
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +21 -3
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +19 -1
- package/theme/ap-upload-single/index.css +23 -5
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +26 -8
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +22 -3
- package/theme/batch-input-group/popover-input.css +22 -3
- package/theme/batch-input-group/popover-input.less +3 -2
- package/theme/check-card/index.css +27 -9
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +69 -25
- package/theme/full-screen/index.css +19 -1
- package/theme/index.css +439 -163
- package/theme/index.less +4 -0
- package/theme/mask/index.css +19 -1
- package/theme/mixins/config.less +1 -1
- package/theme/mixins/mixins.css +19 -1
- package/theme/mixins/mixins.less +25 -0
- package/theme/scroll-bar/index.css +19 -1
- package/theme/scroll-view/index.css +19 -1
- package/theme/splitter/index.css +24 -6
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +19 -1
- package/theme/text/index.css +24 -6
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +58 -0
- package/theme/ui-mode.less +107 -0
- package/theme/work-order-modal/index.css +19 -1
- 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
|
@@ -162,6 +162,10 @@ export type ApFormSearchFormProps = ApFormProps & {
|
|
|
162
162
|
* 是否可排序
|
|
163
163
|
*/
|
|
164
164
|
sortable?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* 尺寸监听目标元素(用于响应式)
|
|
167
|
+
*/
|
|
168
|
+
resizeTarget?: HTMLElement | null;
|
|
165
169
|
};
|
|
166
170
|
export type ApFormSearchFormPopoverFilterProps = {
|
|
167
171
|
config: Array<{
|
|
@@ -183,6 +187,10 @@ export type ApFormSearchFormPopoverSorterProps = {
|
|
|
183
187
|
* @returns
|
|
184
188
|
*/
|
|
185
189
|
onClickConfirm: (sortedChildren: VNode[]) => void;
|
|
190
|
+
/**
|
|
191
|
+
* 当前的children是否已经排序过了
|
|
192
|
+
*/
|
|
193
|
+
sorted?: boolean;
|
|
186
194
|
};
|
|
187
195
|
export type ApFormSearchFormExpose = {
|
|
188
196
|
apForm: ApFormExpose;
|
|
@@ -233,15 +241,15 @@ export type ApFormDrawerFormProps = Omit<ApFormProps, 'onFinish'> & {
|
|
|
233
241
|
*/
|
|
234
242
|
resize?: CustomizeResizeType | boolean;
|
|
235
243
|
};
|
|
236
|
-
export type ApFormModalFormExpose = ApFormExpose
|
|
237
|
-
export type ApFormDrawerFormExpose =
|
|
244
|
+
export type ApFormModalFormExpose = Omit<ApFormExpose, 'registerWatch'>;
|
|
245
|
+
export type ApFormDrawerFormExpose = ApFormModalFormExpose;
|
|
238
246
|
/**
|
|
239
247
|
* ApFormItem支持的插槽
|
|
240
248
|
*/
|
|
241
249
|
export type ApFormItemSlots = {
|
|
242
|
-
help
|
|
243
|
-
label
|
|
244
|
-
extra
|
|
250
|
+
help?: any;
|
|
251
|
+
label?: any;
|
|
252
|
+
extra?: any;
|
|
245
253
|
default: () => VNode[];
|
|
246
254
|
};
|
|
247
255
|
export type ApFormDependencyProps = {
|
|
@@ -6,11 +6,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
|
6
6
|
import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
|
|
7
7
|
import { CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
8
|
import { OnCleanup } from '@vue/reactivity';
|
|
9
|
-
declare function onFieldBlur(): void;
|
|
10
|
-
declare function onFieldChange(): void;
|
|
11
|
-
declare function clearValidate(): void;
|
|
12
|
-
declare function resetField(): void;
|
|
13
|
-
declare function getFieldValue(shouldFormat?: boolean): any;
|
|
14
9
|
declare function __VLS_template(): {
|
|
15
10
|
attrs: Partial<{}>;
|
|
16
11
|
slots: Readonly<ApFormItemSlots> & ApFormItemSlots;
|
|
@@ -795,18 +790,18 @@ declare function __VLS_template(): {
|
|
|
795
790
|
};
|
|
796
791
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
797
792
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
798
|
-
onFieldBlur:
|
|
799
|
-
onFieldChange:
|
|
800
|
-
clearValidate:
|
|
801
|
-
resetField:
|
|
802
|
-
getFieldValue:
|
|
793
|
+
onFieldBlur: () => void;
|
|
794
|
+
onFieldChange: () => void;
|
|
795
|
+
clearValidate: () => void;
|
|
796
|
+
resetField: () => void;
|
|
797
|
+
getFieldValue: (shouldFormat?: boolean) => any;
|
|
803
798
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
804
|
-
bordered: boolean;
|
|
805
799
|
hasFeedback: boolean;
|
|
806
800
|
colon: boolean;
|
|
807
801
|
autoLink: boolean;
|
|
808
802
|
required: boolean;
|
|
809
803
|
validateFirst: boolean;
|
|
804
|
+
bordered: boolean;
|
|
810
805
|
valuePropName: string;
|
|
811
806
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
812
807
|
formItemRef: ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as D, useSlots as $, ref as
|
|
1
|
+
import { defineComponent as D, useSlots as $, ref as d, onMounted as j, computed as F, unref as t, 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 Y, createElementVNode as G, normalizeClass as H, createVNode as p, normalizeStyle as J, renderSlot as M, normalizeProps as W, guardReactiveProps as X } from "vue";
|
|
2
2
|
import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { isFunction as B, cloneDeep as
|
|
3
|
+
import { useToken as te } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { isFunction as B, cloneDeep as le, isArray as re, omit as C } from "lodash-unified";
|
|
5
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 fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
const Ce = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
@@ -54,17 +54,17 @@ const Ce = /* @__PURE__ */ D({
|
|
|
54
54
|
transform: {},
|
|
55
55
|
description: {}
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const o =
|
|
57
|
+
setup(x, { expose: N }) {
|
|
58
|
+
const o = x, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: k } = fe("ap-form-item"), f = d(!1), n = d(), [, P] = te();
|
|
59
59
|
j(async () => {
|
|
60
60
|
let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
61
61
|
se(e) && (e = await e), m == null || m.registerField({
|
|
62
62
|
name: o.name,
|
|
63
|
-
initialValue:
|
|
63
|
+
initialValue: le(e),
|
|
64
64
|
transform: o.transform
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e,
|
|
67
|
+
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e, l) => e == null ? void 0 : e[l], t(s)) : s == null ? void 0 : s.value[o.name] : null), v = d(ue(a.default));
|
|
68
68
|
q(
|
|
69
69
|
() => {
|
|
70
70
|
var e;
|
|
@@ -74,29 +74,29 @@ const Ce = /* @__PURE__ */ D({
|
|
|
74
74
|
v.value = me(e)[0];
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
function
|
|
77
|
+
function S(e) {
|
|
78
78
|
u == null || u(o.name, e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
80
|
+
function w() {
|
|
81
|
+
f.value = !0;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
83
|
+
function T() {
|
|
84
|
+
f.value = !1;
|
|
85
85
|
}
|
|
86
86
|
const V = F(() => {
|
|
87
|
-
var
|
|
87
|
+
var l, r;
|
|
88
88
|
if (!o.name)
|
|
89
|
-
return (
|
|
90
|
-
const e =
|
|
89
|
+
return (l = a.default()) == null ? void 0 : l[0];
|
|
90
|
+
const e = t(v);
|
|
91
91
|
return e ? E(e, {
|
|
92
|
-
[o.valuePropName]:
|
|
93
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
92
|
+
[o.valuePropName]: t(y),
|
|
93
|
+
[`onUpdate:${o.valuePropName}`]: S,
|
|
94
94
|
bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
|
|
95
|
-
onFocus:
|
|
96
|
-
onBlur:
|
|
95
|
+
onFocus: w,
|
|
96
|
+
onBlur: T
|
|
97
97
|
}) : null;
|
|
98
98
|
});
|
|
99
|
-
function
|
|
99
|
+
function I() {
|
|
100
100
|
var e;
|
|
101
101
|
(e = n.value) == null || e.onFieldBlur();
|
|
102
102
|
}
|
|
@@ -113,29 +113,29 @@ const Ce = /* @__PURE__ */ D({
|
|
|
113
113
|
(e = n.value) == null || e.resetField();
|
|
114
114
|
}
|
|
115
115
|
function R(e = !1) {
|
|
116
|
-
const
|
|
116
|
+
const l = t(y);
|
|
117
117
|
if (!e || !o.transform)
|
|
118
|
-
return
|
|
118
|
+
return l;
|
|
119
119
|
const r = B(o.transform) ? o.transform : o.transform.transformer;
|
|
120
|
-
return o.transform ? r(
|
|
120
|
+
return o.transform ? r(l) : l;
|
|
121
121
|
}
|
|
122
|
-
return
|
|
123
|
-
onFieldBlur:
|
|
122
|
+
return N({
|
|
123
|
+
onFieldBlur: I,
|
|
124
124
|
onFieldChange: z,
|
|
125
125
|
clearValidate: A,
|
|
126
126
|
resetField: L,
|
|
127
127
|
getFieldValue: R
|
|
128
|
-
}), (e,
|
|
128
|
+
}), (e, l) => (h(), g(t(Z).Item, K(
|
|
129
129
|
{
|
|
130
130
|
ref_key: "formItemRef",
|
|
131
131
|
ref: n
|
|
132
132
|
},
|
|
133
|
-
|
|
133
|
+
t(C)(o, [...t(ae), "tooltip", "label", "description"]),
|
|
134
134
|
{
|
|
135
135
|
class: {
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
136
|
+
[t(c)("bordered")]: e.bordered,
|
|
137
|
+
[t(c)("focused")]: e.bordered && f.value,
|
|
138
|
+
[t(k)()]: !0
|
|
139
139
|
},
|
|
140
140
|
colon: e.bordered ? !1 : o.colon
|
|
141
141
|
}
|
|
@@ -148,15 +148,19 @@ const Ce = /* @__PURE__ */ D({
|
|
|
148
148
|
o.tooltip ? {
|
|
149
149
|
name: "tooltip",
|
|
150
150
|
fn: i(({ class: r }) => [
|
|
151
|
-
|
|
152
|
-
class:
|
|
151
|
+
G("span", {
|
|
152
|
+
class: H(r)
|
|
153
153
|
}, [
|
|
154
|
-
p(
|
|
154
|
+
p(t(ee), {
|
|
155
155
|
title: o.tooltip
|
|
156
156
|
}, {
|
|
157
157
|
default: i(() => [
|
|
158
|
-
p(
|
|
159
|
-
style:
|
|
158
|
+
p(t(ne), {
|
|
159
|
+
style: J({
|
|
160
|
+
color: t(P).colorTextTertiary,
|
|
161
|
+
fontSize: "14px",
|
|
162
|
+
transform: "translateY(1px)"
|
|
163
|
+
})
|
|
160
164
|
}, null, 8, ["style"])
|
|
161
165
|
]),
|
|
162
166
|
_: 1
|
|
@@ -168,7 +172,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
168
172
|
e.label ? {
|
|
169
173
|
name: "label",
|
|
170
174
|
fn: i(() => [
|
|
171
|
-
p(
|
|
175
|
+
p(t(oe), {
|
|
172
176
|
content: e.label,
|
|
173
177
|
ellipsis: { tooltip: e.label },
|
|
174
178
|
style: { "min-width": "0px", flex: "1" }
|
|
@@ -176,10 +180,10 @@ const Ce = /* @__PURE__ */ D({
|
|
|
176
180
|
]),
|
|
177
181
|
key: "1"
|
|
178
182
|
} : void 0,
|
|
179
|
-
|
|
183
|
+
Y(t(C)(a, "default"), (r, b) => ({
|
|
180
184
|
name: b,
|
|
181
185
|
fn: i((_) => [
|
|
182
|
-
|
|
186
|
+
M(e.$slots, b, W(X(_ || {})))
|
|
183
187
|
])
|
|
184
188
|
}))
|
|
185
189
|
]), 1040, ["class", "colon"]));
|
|
@@ -41,11 +41,11 @@ declare function __VLS_template(): {
|
|
|
41
41
|
readonly onInput?: ((text: string) => void) | undefined;
|
|
42
42
|
readonly value?: ValueType | undefined;
|
|
43
43
|
readonly disabled?: boolean | undefined;
|
|
44
|
-
readonly bordered?: boolean | undefined;
|
|
45
44
|
readonly prefixCls?: string | undefined;
|
|
46
45
|
readonly keyboard?: boolean | undefined;
|
|
47
46
|
readonly autofocus?: boolean | undefined;
|
|
48
47
|
readonly 'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
48
|
+
readonly bordered?: boolean | undefined;
|
|
49
49
|
readonly max?: ValueType | undefined;
|
|
50
50
|
readonly min?: ValueType | undefined;
|
|
51
51
|
readonly defaultValue?: ValueType | undefined;
|
|
@@ -424,8 +424,8 @@ declare function __VLS_template(): {
|
|
|
424
424
|
}, string, {
|
|
425
425
|
step: ValueType;
|
|
426
426
|
disabled: boolean;
|
|
427
|
-
bordered: boolean;
|
|
428
427
|
keyboard: boolean;
|
|
428
|
+
bordered: boolean;
|
|
429
429
|
max: ValueType;
|
|
430
430
|
min: ValueType;
|
|
431
431
|
controls: boolean;
|
|
@@ -454,8 +454,8 @@ declare function __VLS_template(): {
|
|
|
454
454
|
} & Readonly<{
|
|
455
455
|
step: ValueType;
|
|
456
456
|
disabled: boolean;
|
|
457
|
-
bordered: boolean;
|
|
458
457
|
keyboard: boolean;
|
|
458
|
+
bordered: boolean;
|
|
459
459
|
max: ValueType;
|
|
460
460
|
min: ValueType;
|
|
461
461
|
controls: boolean;
|
|
@@ -463,7 +463,7 @@ declare function __VLS_template(): {
|
|
|
463
463
|
thousands: boolean;
|
|
464
464
|
}> & Omit<Readonly< ApFieldNumberProps> & Readonly<{
|
|
465
465
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
466
|
-
}>, "blur" | "focus" | ("step" | "disabled" | "
|
|
466
|
+
}>, "blur" | "focus" | ("step" | "disabled" | "keyboard" | "bordered" | "max" | "min" | "controls" | "emptyText" | "thousands")> & ShallowUnwrapRef<{
|
|
467
467
|
focus: () => void;
|
|
468
468
|
blur: () => void;
|
|
469
469
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -514,11 +514,11 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
514
514
|
readonly onInput?: ((text: string) => void) | undefined;
|
|
515
515
|
readonly value?: ValueType | undefined;
|
|
516
516
|
readonly disabled?: boolean | undefined;
|
|
517
|
-
readonly bordered?: boolean | undefined;
|
|
518
517
|
readonly prefixCls?: string | undefined;
|
|
519
518
|
readonly keyboard?: boolean | undefined;
|
|
520
519
|
readonly autofocus?: boolean | undefined;
|
|
521
520
|
readonly 'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
521
|
+
readonly bordered?: boolean | undefined;
|
|
522
522
|
readonly max?: ValueType | undefined;
|
|
523
523
|
readonly min?: ValueType | undefined;
|
|
524
524
|
readonly defaultValue?: ValueType | undefined;
|
|
@@ -897,8 +897,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
897
897
|
}, string, {
|
|
898
898
|
step: ValueType;
|
|
899
899
|
disabled: boolean;
|
|
900
|
-
bordered: boolean;
|
|
901
900
|
keyboard: boolean;
|
|
901
|
+
bordered: boolean;
|
|
902
902
|
max: ValueType;
|
|
903
903
|
min: ValueType;
|
|
904
904
|
controls: boolean;
|
|
@@ -927,8 +927,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
927
927
|
} & Readonly<{
|
|
928
928
|
step: ValueType;
|
|
929
929
|
disabled: boolean;
|
|
930
|
-
bordered: boolean;
|
|
931
930
|
keyboard: boolean;
|
|
931
|
+
bordered: boolean;
|
|
932
932
|
max: ValueType;
|
|
933
933
|
min: ValueType;
|
|
934
934
|
controls: boolean;
|
|
@@ -936,7 +936,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
936
936
|
thousands: boolean;
|
|
937
937
|
}> & Omit<Readonly< ApFieldNumberProps> & Readonly<{
|
|
938
938
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
939
|
-
}>, "blur" | "focus" | ("step" | "disabled" | "
|
|
939
|
+
}>, "blur" | "focus" | ("step" | "disabled" | "keyboard" | "bordered" | "max" | "min" | "controls" | "emptyText" | "thousands")> & ShallowUnwrapRef<{
|
|
940
940
|
focus: () => void;
|
|
941
941
|
blur: () => void;
|
|
942
942
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -66,11 +66,11 @@ declare function __VLS_template(): {
|
|
|
66
66
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
67
67
|
readonly animation?: string | undefined;
|
|
68
68
|
readonly children?: VueNode[] | undefined;
|
|
69
|
-
readonly bordered?: boolean | undefined;
|
|
70
69
|
readonly prefixCls?: string | undefined;
|
|
71
70
|
readonly loading?: boolean | undefined;
|
|
72
71
|
readonly transitionName?: string | undefined;
|
|
73
72
|
readonly autofocus?: boolean | undefined;
|
|
73
|
+
readonly bordered?: boolean | undefined;
|
|
74
74
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
75
75
|
readonly placeholder?: any;
|
|
76
76
|
readonly defaultValue?: SelectValue;
|
|
@@ -564,9 +564,9 @@ declare function __VLS_template(): {
|
|
|
564
564
|
open: boolean;
|
|
565
565
|
multiple: boolean;
|
|
566
566
|
disabled: boolean;
|
|
567
|
-
bordered: boolean;
|
|
568
567
|
loading: boolean;
|
|
569
568
|
autofocus: boolean;
|
|
569
|
+
bordered: boolean;
|
|
570
570
|
virtual: boolean;
|
|
571
571
|
lazy: boolean;
|
|
572
572
|
allowClear: boolean;
|
|
@@ -605,9 +605,9 @@ declare function __VLS_template(): {
|
|
|
605
605
|
open: boolean;
|
|
606
606
|
multiple: boolean;
|
|
607
607
|
disabled: boolean;
|
|
608
|
-
bordered: boolean;
|
|
609
608
|
loading: boolean;
|
|
610
609
|
autofocus: boolean;
|
|
610
|
+
bordered: boolean;
|
|
611
611
|
virtual: boolean;
|
|
612
612
|
lazy: boolean;
|
|
613
613
|
allowClear: boolean;
|
|
@@ -623,7 +623,7 @@ declare function __VLS_template(): {
|
|
|
623
623
|
searchDelay: number;
|
|
624
624
|
}> & Omit<Readonly< ApFieldSelectProps> & Readonly<{
|
|
625
625
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
626
|
-
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "
|
|
626
|
+
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showSearch" | "showArrow" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
|
|
627
627
|
focus: () => void;
|
|
628
628
|
blur: () => void;
|
|
629
629
|
request: (clear?: boolean) => Promise<void>;
|
|
@@ -697,11 +697,11 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
697
697
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
698
698
|
readonly animation?: string | undefined;
|
|
699
699
|
readonly children?: VueNode[] | undefined;
|
|
700
|
-
readonly bordered?: boolean | undefined;
|
|
701
700
|
readonly prefixCls?: string | undefined;
|
|
702
701
|
readonly loading?: boolean | undefined;
|
|
703
702
|
readonly transitionName?: string | undefined;
|
|
704
703
|
readonly autofocus?: boolean | undefined;
|
|
704
|
+
readonly bordered?: boolean | undefined;
|
|
705
705
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
706
706
|
readonly placeholder?: any;
|
|
707
707
|
readonly defaultValue?: SelectValue;
|
|
@@ -1195,9 +1195,9 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1195
1195
|
open: boolean;
|
|
1196
1196
|
multiple: boolean;
|
|
1197
1197
|
disabled: boolean;
|
|
1198
|
-
bordered: boolean;
|
|
1199
1198
|
loading: boolean;
|
|
1200
1199
|
autofocus: boolean;
|
|
1200
|
+
bordered: boolean;
|
|
1201
1201
|
virtual: boolean;
|
|
1202
1202
|
lazy: boolean;
|
|
1203
1203
|
allowClear: boolean;
|
|
@@ -1236,9 +1236,9 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1236
1236
|
open: boolean;
|
|
1237
1237
|
multiple: boolean;
|
|
1238
1238
|
disabled: boolean;
|
|
1239
|
-
bordered: boolean;
|
|
1240
1239
|
loading: boolean;
|
|
1241
1240
|
autofocus: boolean;
|
|
1241
|
+
bordered: boolean;
|
|
1242
1242
|
virtual: boolean;
|
|
1243
1243
|
lazy: boolean;
|
|
1244
1244
|
allowClear: boolean;
|
|
@@ -1254,7 +1254,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1254
1254
|
searchDelay: number;
|
|
1255
1255
|
}> & Omit<Readonly< ApFieldSelectProps> & Readonly<{
|
|
1256
1256
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
1257
|
-
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "
|
|
1257
|
+
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showSearch" | "showArrow" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
|
|
1258
1258
|
focus: () => void;
|
|
1259
1259
|
blur: () => void;
|
|
1260
1260
|
request: (clear?: boolean) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B,
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as g, computed as S, createBlock as k, openBlock as F, normalizeProps as d, guardReactiveProps as n, unref as l, createSlots as f, withCtx as i, createVNode as C, mergeProps as P, renderList as u, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as m, pick as $ } from "lodash-unified";
|
|
@@ -54,8 +54,16 @@ const E = /* @__PURE__ */ B({
|
|
|
54
54
|
disabled: { type: Boolean, default: void 0 }
|
|
55
55
|
},
|
|
56
56
|
setup(_, { expose: v }) {
|
|
57
|
-
const o = _,
|
|
58
|
-
|
|
57
|
+
const o = _, p = x(), t = g(), h = S(() => {
|
|
58
|
+
var e, a;
|
|
59
|
+
return {
|
|
60
|
+
placeholder: o.placeholder,
|
|
61
|
+
disabled: o.disabled,
|
|
62
|
+
...o.field || {},
|
|
63
|
+
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
return v({
|
|
59
67
|
focus: () => {
|
|
60
68
|
var e;
|
|
61
69
|
(e = t.value) == null || e.focus();
|
|
@@ -68,17 +76,7 @@ const E = /* @__PURE__ */ B({
|
|
|
68
76
|
var e;
|
|
69
77
|
(e = t.value) == null || e.request();
|
|
70
78
|
}
|
|
71
|
-
})
|
|
72
|
-
const p = g(), h = S(() => {
|
|
73
|
-
var e, a;
|
|
74
|
-
return {
|
|
75
|
-
placeholder: o.placeholder,
|
|
76
|
-
disabled: o.disabled,
|
|
77
|
-
...o.field || {},
|
|
78
|
-
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
return (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
|
|
79
|
+
}), (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
|
|
82
80
|
default: i(() => [
|
|
83
81
|
C(l(R), P(h.value, {
|
|
84
82
|
ref_key: "selectRef",
|
|
@@ -45,12 +45,12 @@ declare function __VLS_template(): {
|
|
|
45
45
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
46
46
|
readonly value?: string | number | undefined;
|
|
47
47
|
readonly disabled?: boolean | undefined;
|
|
48
|
-
readonly bordered?: boolean | undefined;
|
|
49
48
|
readonly prefixCls?: string | undefined;
|
|
50
49
|
readonly name?: string | undefined;
|
|
51
50
|
readonly loading?: boolean | undefined;
|
|
52
51
|
readonly autofocus?: boolean | undefined;
|
|
53
52
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
53
|
+
readonly bordered?: boolean | undefined;
|
|
54
54
|
readonly suffix?: any;
|
|
55
55
|
readonly focused?: boolean | undefined;
|
|
56
56
|
readonly placeholder?: string | number | undefined;
|
|
@@ -201,12 +201,12 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
201
201
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
202
202
|
readonly value?: string | number | undefined;
|
|
203
203
|
readonly disabled?: boolean | undefined;
|
|
204
|
-
readonly bordered?: boolean | undefined;
|
|
205
204
|
readonly prefixCls?: string | undefined;
|
|
206
205
|
readonly name?: string | undefined;
|
|
207
206
|
readonly loading?: boolean | undefined;
|
|
208
207
|
readonly autofocus?: boolean | undefined;
|
|
209
208
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
209
|
+
readonly bordered?: boolean | undefined;
|
|
210
210
|
readonly suffix?: any;
|
|
211
211
|
readonly focused?: boolean | undefined;
|
|
212
212
|
readonly placeholder?: string | number | undefined;
|
|
@@ -46,12 +46,12 @@ declare function __VLS_template(): {
|
|
|
46
46
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
47
47
|
readonly value?: string | number | undefined;
|
|
48
48
|
readonly disabled?: boolean | undefined;
|
|
49
|
-
readonly bordered?: boolean | undefined;
|
|
50
49
|
readonly prefixCls?: string | undefined;
|
|
51
50
|
readonly name?: string | undefined;
|
|
52
51
|
readonly loading?: boolean | undefined;
|
|
53
52
|
readonly autofocus?: boolean | undefined;
|
|
54
53
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
54
|
+
readonly bordered?: boolean | undefined;
|
|
55
55
|
readonly suffix?: any;
|
|
56
56
|
readonly focused?: boolean | undefined;
|
|
57
57
|
readonly placeholder?: string | number | undefined;
|
|
@@ -208,12 +208,12 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
208
208
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
209
209
|
readonly value?: string | number | undefined;
|
|
210
210
|
readonly disabled?: boolean | undefined;
|
|
211
|
-
readonly bordered?: boolean | undefined;
|
|
212
211
|
readonly prefixCls?: string | undefined;
|
|
213
212
|
readonly name?: string | undefined;
|
|
214
213
|
readonly loading?: boolean | undefined;
|
|
215
214
|
readonly autofocus?: boolean | undefined;
|
|
216
215
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
216
|
+
readonly bordered?: boolean | undefined;
|
|
217
217
|
readonly suffix?: any;
|
|
218
218
|
readonly focused?: boolean | undefined;
|
|
219
219
|
readonly placeholder?: string | number | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as P, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as u, pick as
|
|
3
|
+
import { ApField as S } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as u, pick as w } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
|
-
import
|
|
6
|
+
import C from "../../item/index.vue.mjs";
|
|
7
7
|
const z = /* @__PURE__ */ B({
|
|
8
|
-
name: "
|
|
8
|
+
name: "ApFormItemPassword",
|
|
9
9
|
__name: "password",
|
|
10
10
|
props: {
|
|
11
11
|
htmlFor: {},
|
|
@@ -53,7 +53,7 @@ const z = /* @__PURE__ */ B({
|
|
|
53
53
|
disabled: { type: Boolean, default: void 0 }
|
|
54
54
|
},
|
|
55
55
|
setup(c, { expose: b }) {
|
|
56
|
-
const { Text: h } =
|
|
56
|
+
const { Text: h } = S, p = _(), v = c, a = g();
|
|
57
57
|
return b({
|
|
58
58
|
focus: () => {
|
|
59
59
|
var e;
|
|
@@ -63,9 +63,9 @@ const z = /* @__PURE__ */ B({
|
|
|
63
63
|
var e;
|
|
64
64
|
(e = a.value) == null || e.blur();
|
|
65
65
|
}
|
|
66
|
-
}), (e, R) => (k(), x(
|
|
66
|
+
}), (e, R) => (k(), x(C, t(s(o(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
67
67
|
default: d(() => [
|
|
68
|
-
F(o(h).Password,
|
|
68
|
+
F(o(h).Password, P({
|
|
69
69
|
ref_key: "inputRef",
|
|
70
70
|
ref: a,
|
|
71
71
|
disabled: e.disabled,
|
|
@@ -81,7 +81,7 @@ const z = /* @__PURE__ */ B({
|
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
83
83
|
}, [
|
|
84
|
-
i(o(
|
|
84
|
+
i(o(w)(p, o(m)), (y, l) => ({
|
|
85
85
|
name: l,
|
|
86
86
|
fn: d((r) => [
|
|
87
87
|
f(e.$slots, l, t(s(r || {})))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemTextAreaProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormItemSlots } from '../../interface';
|
|
4
|
-
import { CreateComponentPublicInstanceWithMixins,
|
|
4
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ExtractPropTypes, PropType, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
5
|
import { ApFieldTextAreaProps, FieldMode } from '../../..';
|
|
6
6
|
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
7
7
|
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
@@ -19,7 +19,7 @@ declare function __VLS_template(): {
|
|
|
19
19
|
}>, {
|
|
20
20
|
focus: (options?: InputFocusOptions) => void;
|
|
21
21
|
blur: () => void;
|
|
22
|
-
resizableTextArea:
|
|
22
|
+
resizableTextArea: any;
|
|
23
23
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
24
|
"update:value": (...args: any[]) => void;
|
|
25
25
|
}, PublicProps, {
|
|
@@ -301,7 +301,7 @@ declare function __VLS_template(): {
|
|
|
301
301
|
}>, {
|
|
302
302
|
focus: (options?: InputFocusOptions) => void;
|
|
303
303
|
blur: () => void;
|
|
304
|
-
resizableTextArea:
|
|
304
|
+
resizableTextArea: any;
|
|
305
305
|
}, {}, {}, {}, {
|
|
306
306
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
307
307
|
mode: FieldMode;
|
|
@@ -333,7 +333,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
333
333
|
}>, {
|
|
334
334
|
focus: (options?: InputFocusOptions) => void;
|
|
335
335
|
blur: () => void;
|
|
336
|
-
resizableTextArea:
|
|
336
|
+
resizableTextArea: any;
|
|
337
337
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
338
338
|
"update:value": (...args: any[]) => void;
|
|
339
339
|
}, PublicProps, {
|
|
@@ -615,7 +615,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
615
615
|
}>, {
|
|
616
616
|
focus: (options?: InputFocusOptions) => void;
|
|
617
617
|
blur: () => void;
|
|
618
|
-
resizableTextArea:
|
|
618
|
+
resizableTextArea: any;
|
|
619
619
|
}, {}, {}, {}, {
|
|
620
620
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
621
621
|
mode: FieldMode;
|