@aplus-frontend/ui 6.17.2 → 6.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -7
- package/es/src/ap-button/ap-button.vue.mjs +24 -20
- package/es/src/ap-button/ap-confirm-button.vue.mjs +15 -11
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +21 -18
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.d.ts +29 -29
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +4 -4
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +17 -12
- package/es/src/ap-field/select/index.vue.d.ts +97 -97
- package/es/src/ap-field/select/index.vue.mjs +10 -10
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.d.ts +8 -8
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/es/src/ap-field/text-area/index.vue.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/es/src/ap-field/tree-select/index.vue.mjs +19 -19
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +14 -15
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +105 -105
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +26 -19
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +31 -31
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +331 -331
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +73 -78
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +45 -30
- package/es/src/ap-tag/interface.d.ts +6 -0
- package/es/src/ap-tag/utils.d.ts +1 -0
- package/es/src/ap-tag/utils.mjs +12 -0
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +395 -144
- package/es/src/business/ap-draggable-grid/constans.d.ts +0 -8
- package/es/src/business/ap-draggable-grid/constans.mjs +0 -8
- package/es/src/business/ap-draggable-grid/index.d.ts +3 -31
- package/es/src/business/ap-draggable-grid/interface.d.ts +2 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/config-provider-props.d.ts +4 -5
- package/es/src/config-provider/config-provider.d.ts +8 -9
- package/es/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +13 -14
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +5 -5
- package/es/src/utils/config-provider-preset.d.ts +5 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +29 -29
- package/lib/src/ap-field/rate/index.vue.d.ts +4 -4
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +97 -97
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/slider/index.vue.d.ts +8 -8
- package/lib/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +14 -15
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.d.ts +105 -105
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/lib/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/lib/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +331 -331
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +6 -0
- package/lib/src/ap-tag/utils.d.ts +1 -0
- package/lib/src/ap-tag/utils.js +1 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.d.ts +0 -8
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +3 -31
- package/lib/src/business/ap-draggable-grid/interface.d.ts +2 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/lib/src/config-provider/config-provider-props.d.ts +4 -5
- package/lib/src/config-provider/config-provider.d.ts +8 -9
- package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +13 -14
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/config-provider-preset.d.ts +5 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/package.json +3 -3
- package/theme/antdv-override.css +2 -6
- package/theme/antdv-override.less +2 -6
- package/theme/ap-descriptions/ap-descriptions.css +1 -1
- package/theme/ap-descriptions/ap-descriptions.less +1 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +4 -2
- package/theme/ap-label/ap-label.css +1 -0
- package/theme/ap-label/ap-label.less +1 -0
- package/theme/ap-tag/ap-tag.css +3 -1
- package/theme/ap-tag/ap-tag.less +3 -1
- package/theme/index.css +11 -11
- package/theme/antd-global-overwrite/admin/alert.css +0 -37
- package/theme/antd-global-overwrite/admin/alert.less +0 -51
- package/theme/antd-global-overwrite/admin/button.css +0 -27
- package/theme/antd-global-overwrite/admin/button.less +0 -31
- package/theme/antd-global-overwrite/admin/field.css +0 -42
- package/theme/antd-global-overwrite/admin/field.less +0 -43
- package/theme/antd-global-overwrite/admin/form.css +0 -57
- package/theme/antd-global-overwrite/admin/form.less +0 -97
- package/theme/antd-global-overwrite/admin/message.css +0 -10
- package/theme/antd-global-overwrite/admin/message.less +0 -13
- package/theme/antd-global-overwrite/admin/modal.css +0 -94
- package/theme/antd-global-overwrite/admin/modal.less +0 -128
- package/theme/antd-global-overwrite/admin/pagination.css +0 -122
- package/theme/antd-global-overwrite/admin/pagination.less +0 -91
- package/theme/antd-global-overwrite/admin/steps.css +0 -127
- package/theme/antd-global-overwrite/admin/steps.less +0 -197
- package/theme/antd-global-overwrite/admin/table.css +0 -78
- package/theme/antd-global-overwrite/admin/table.less +0 -62
- package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
- package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
- package/theme/antd-global-overwrite/aplus/alert.css +0 -40
- package/theme/antd-global-overwrite/aplus/alert.less +0 -55
- package/theme/antd-global-overwrite/aplus/button.css +0 -27
- package/theme/antd-global-overwrite/aplus/button.less +0 -31
- package/theme/antd-global-overwrite/aplus/field.css +0 -42
- package/theme/antd-global-overwrite/aplus/field.less +0 -43
- package/theme/antd-global-overwrite/aplus/form.css +0 -87
- package/theme/antd-global-overwrite/aplus/form.less +0 -133
- package/theme/antd-global-overwrite/aplus/message.css +0 -10
- package/theme/antd-global-overwrite/aplus/message.less +0 -13
- package/theme/antd-global-overwrite/aplus/modal.css +0 -87
- package/theme/antd-global-overwrite/aplus/modal.less +0 -120
- package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
- package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
- package/theme/antd-global-overwrite/aplus/steps.css +0 -125
- package/theme/antd-global-overwrite/aplus/steps.less +0 -198
- package/theme/antd-global-overwrite/aplus/table.css +0 -78
- package/theme/antd-global-overwrite/aplus/table.less +0 -61
- package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
- package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
- package/theme/ap-table/ap-table-pagination.css +0 -12
- package/theme/ap-table/ap-table-pagination.less +0 -14
- package/theme/ui-mode.css +0 -60
- package/theme/ui-mode.less +0 -109
|
@@ -2,7 +2,7 @@ import { DefaultOptionType, SelectValue, LabeledValue } from '@aplus-frontend/an
|
|
|
2
2
|
import { ApFieldSelectProps } from '../interface';
|
|
3
3
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
|
-
import {
|
|
5
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
6
6
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
7
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
8
8
|
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -39,8 +39,8 @@ declare function __VLS_template(): {
|
|
|
39
39
|
suffixIcon: VueTypeValidableDef<any>;
|
|
40
40
|
itemIcon: VueTypeValidableDef<any>;
|
|
41
41
|
size: {
|
|
42
|
-
type: PropType<
|
|
43
|
-
default:
|
|
42
|
+
type: PropType<SizeType>;
|
|
43
|
+
default: SizeType;
|
|
44
44
|
};
|
|
45
45
|
mode: {
|
|
46
46
|
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
@@ -58,8 +58,8 @@ declare function __VLS_template(): {
|
|
|
58
58
|
popupClassName: StringConstructor;
|
|
59
59
|
dropdownClassName: StringConstructor;
|
|
60
60
|
placement: {
|
|
61
|
-
type: PropType<"
|
|
62
|
-
default: "
|
|
61
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
62
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
63
63
|
};
|
|
64
64
|
status: {
|
|
65
65
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -99,8 +99,6 @@ declare function __VLS_template(): {
|
|
|
99
99
|
default: any;
|
|
100
100
|
};
|
|
101
101
|
prefixCls: StringConstructor;
|
|
102
|
-
id: StringConstructor;
|
|
103
|
-
autofocus: BooleanConstructor;
|
|
104
102
|
getPopupContainer: {
|
|
105
103
|
type: PropType<RenderDOMFunc>;
|
|
106
104
|
};
|
|
@@ -112,21 +110,28 @@ declare function __VLS_template(): {
|
|
|
112
110
|
type: PropType<number | boolean>;
|
|
113
111
|
default: any;
|
|
114
112
|
};
|
|
115
|
-
options: PropType<DefaultOptionType[]>;
|
|
116
|
-
showAction: {
|
|
117
|
-
type: PropType<("click" | "focus")[]>;
|
|
118
|
-
};
|
|
119
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
120
113
|
loading: {
|
|
121
114
|
type: BooleanConstructor;
|
|
122
115
|
default: any;
|
|
123
116
|
};
|
|
117
|
+
showAction: {
|
|
118
|
+
type: PropType<("click" | "focus")[]>;
|
|
119
|
+
};
|
|
120
|
+
dropdownAlign: PropType<AlignType>;
|
|
124
121
|
placeholder: VueTypeValidableDef<any>;
|
|
125
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
126
122
|
allowClear: {
|
|
127
123
|
type: BooleanConstructor;
|
|
128
124
|
default: any;
|
|
129
125
|
};
|
|
126
|
+
autofocus: BooleanConstructor;
|
|
127
|
+
defaultOpen: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: any;
|
|
130
|
+
};
|
|
131
|
+
id: StringConstructor;
|
|
132
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
133
|
+
options: PropType<DefaultOptionType[]>;
|
|
134
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
130
135
|
onSearch: PropType<(value: string) => void>;
|
|
131
136
|
fieldNames: PropType<FieldNames>;
|
|
132
137
|
dropdownStyle: {
|
|
@@ -135,7 +140,6 @@ declare function __VLS_template(): {
|
|
|
135
140
|
dropdownRender: {
|
|
136
141
|
type: PropType<DropdownRender>;
|
|
137
142
|
};
|
|
138
|
-
dropdownAlign: PropType<AlignType>;
|
|
139
143
|
showSearch: {
|
|
140
144
|
type: BooleanConstructor;
|
|
141
145
|
default: any;
|
|
@@ -158,10 +162,6 @@ declare function __VLS_template(): {
|
|
|
158
162
|
type: PropType<(option: Record<string, any>) => any>;
|
|
159
163
|
};
|
|
160
164
|
onClear: PropType<() => void>;
|
|
161
|
-
defaultOpen: {
|
|
162
|
-
type: BooleanConstructor;
|
|
163
|
-
default: any;
|
|
164
|
-
};
|
|
165
165
|
onDropdownVisibleChange: {
|
|
166
166
|
type: PropType<(open: boolean) => void>;
|
|
167
167
|
};
|
|
@@ -194,24 +194,24 @@ declare function __VLS_template(): {
|
|
|
194
194
|
default: any;
|
|
195
195
|
};
|
|
196
196
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
197
|
-
size:
|
|
197
|
+
size: SizeType;
|
|
198
198
|
value: SelectValue;
|
|
199
199
|
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
200
200
|
open: boolean;
|
|
201
201
|
disabled: boolean;
|
|
202
|
-
autofocus: boolean;
|
|
203
202
|
virtual: boolean;
|
|
204
203
|
dropdownMatchSelectWidth: number | boolean;
|
|
205
|
-
status: "" | "error" | "warning";
|
|
206
|
-
defaultValue: SelectValue;
|
|
207
|
-
'onUpdate:value': (val: SelectValue) => void;
|
|
208
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
209
204
|
loading: boolean;
|
|
210
205
|
bordered: boolean;
|
|
206
|
+
defaultValue: SelectValue;
|
|
207
|
+
status: "" | "error" | "warning";
|
|
211
208
|
allowClear: boolean;
|
|
209
|
+
autofocus: boolean;
|
|
210
|
+
defaultOpen: boolean;
|
|
211
|
+
'onUpdate:value': (val: SelectValue) => void;
|
|
212
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
212
213
|
showSearch: boolean;
|
|
213
214
|
choiceTransitionName: "";
|
|
214
|
-
defaultOpen: boolean;
|
|
215
215
|
showArrow: boolean;
|
|
216
216
|
autoClearSearchValue: boolean;
|
|
217
217
|
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
@@ -250,8 +250,8 @@ declare function __VLS_template(): {
|
|
|
250
250
|
suffixIcon: VueTypeValidableDef<any>;
|
|
251
251
|
itemIcon: VueTypeValidableDef<any>;
|
|
252
252
|
size: {
|
|
253
|
-
type: PropType<
|
|
254
|
-
default:
|
|
253
|
+
type: PropType<SizeType>;
|
|
254
|
+
default: SizeType;
|
|
255
255
|
};
|
|
256
256
|
mode: {
|
|
257
257
|
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
@@ -269,8 +269,8 @@ declare function __VLS_template(): {
|
|
|
269
269
|
popupClassName: StringConstructor;
|
|
270
270
|
dropdownClassName: StringConstructor;
|
|
271
271
|
placement: {
|
|
272
|
-
type: PropType<"
|
|
273
|
-
default: "
|
|
272
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
273
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
274
274
|
};
|
|
275
275
|
status: {
|
|
276
276
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -310,8 +310,6 @@ declare function __VLS_template(): {
|
|
|
310
310
|
default: any;
|
|
311
311
|
};
|
|
312
312
|
prefixCls: StringConstructor;
|
|
313
|
-
id: StringConstructor;
|
|
314
|
-
autofocus: BooleanConstructor;
|
|
315
313
|
getPopupContainer: {
|
|
316
314
|
type: PropType<RenderDOMFunc>;
|
|
317
315
|
};
|
|
@@ -323,21 +321,28 @@ declare function __VLS_template(): {
|
|
|
323
321
|
type: PropType<number | boolean>;
|
|
324
322
|
default: any;
|
|
325
323
|
};
|
|
326
|
-
options: PropType<DefaultOptionType[]>;
|
|
327
|
-
showAction: {
|
|
328
|
-
type: PropType<("click" | "focus")[]>;
|
|
329
|
-
};
|
|
330
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
331
324
|
loading: {
|
|
332
325
|
type: BooleanConstructor;
|
|
333
326
|
default: any;
|
|
334
327
|
};
|
|
328
|
+
showAction: {
|
|
329
|
+
type: PropType<("click" | "focus")[]>;
|
|
330
|
+
};
|
|
331
|
+
dropdownAlign: PropType<AlignType>;
|
|
335
332
|
placeholder: VueTypeValidableDef<any>;
|
|
336
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
337
333
|
allowClear: {
|
|
338
334
|
type: BooleanConstructor;
|
|
339
335
|
default: any;
|
|
340
336
|
};
|
|
337
|
+
autofocus: BooleanConstructor;
|
|
338
|
+
defaultOpen: {
|
|
339
|
+
type: BooleanConstructor;
|
|
340
|
+
default: any;
|
|
341
|
+
};
|
|
342
|
+
id: StringConstructor;
|
|
343
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
344
|
+
options: PropType<DefaultOptionType[]>;
|
|
345
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
341
346
|
onSearch: PropType<(value: string) => void>;
|
|
342
347
|
fieldNames: PropType<FieldNames>;
|
|
343
348
|
dropdownStyle: {
|
|
@@ -346,7 +351,6 @@ declare function __VLS_template(): {
|
|
|
346
351
|
dropdownRender: {
|
|
347
352
|
type: PropType<DropdownRender>;
|
|
348
353
|
};
|
|
349
|
-
dropdownAlign: PropType<AlignType>;
|
|
350
354
|
showSearch: {
|
|
351
355
|
type: BooleanConstructor;
|
|
352
356
|
default: any;
|
|
@@ -369,10 +373,6 @@ declare function __VLS_template(): {
|
|
|
369
373
|
type: PropType<(option: Record<string, any>) => any>;
|
|
370
374
|
};
|
|
371
375
|
onClear: PropType<() => void>;
|
|
372
|
-
defaultOpen: {
|
|
373
|
-
type: BooleanConstructor;
|
|
374
|
-
default: any;
|
|
375
|
-
};
|
|
376
376
|
onDropdownVisibleChange: {
|
|
377
377
|
type: PropType<(open: boolean) => void>;
|
|
378
378
|
};
|
|
@@ -405,24 +405,24 @@ declare function __VLS_template(): {
|
|
|
405
405
|
default: any;
|
|
406
406
|
};
|
|
407
407
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
408
|
-
size:
|
|
408
|
+
size: SizeType;
|
|
409
409
|
value: SelectValue;
|
|
410
410
|
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
411
411
|
open: boolean;
|
|
412
412
|
disabled: boolean;
|
|
413
|
-
autofocus: boolean;
|
|
414
413
|
virtual: boolean;
|
|
415
414
|
dropdownMatchSelectWidth: number | boolean;
|
|
416
|
-
status: "" | "error" | "warning";
|
|
417
|
-
defaultValue: SelectValue;
|
|
418
|
-
'onUpdate:value': (val: SelectValue) => void;
|
|
419
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
420
415
|
loading: boolean;
|
|
421
416
|
bordered: boolean;
|
|
417
|
+
defaultValue: SelectValue;
|
|
418
|
+
status: "" | "error" | "warning";
|
|
422
419
|
allowClear: boolean;
|
|
420
|
+
autofocus: boolean;
|
|
421
|
+
defaultOpen: boolean;
|
|
422
|
+
'onUpdate:value': (val: SelectValue) => void;
|
|
423
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
423
424
|
showSearch: boolean;
|
|
424
425
|
choiceTransitionName: "";
|
|
425
|
-
defaultOpen: boolean;
|
|
426
426
|
showArrow: boolean;
|
|
427
427
|
autoClearSearchValue: boolean;
|
|
428
428
|
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
@@ -476,8 +476,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
476
476
|
suffixIcon: VueTypeValidableDef<any>;
|
|
477
477
|
itemIcon: VueTypeValidableDef<any>;
|
|
478
478
|
size: {
|
|
479
|
-
type: PropType<
|
|
480
|
-
default:
|
|
479
|
+
type: PropType<SizeType>;
|
|
480
|
+
default: SizeType;
|
|
481
481
|
};
|
|
482
482
|
mode: {
|
|
483
483
|
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
@@ -495,8 +495,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
495
495
|
popupClassName: StringConstructor;
|
|
496
496
|
dropdownClassName: StringConstructor;
|
|
497
497
|
placement: {
|
|
498
|
-
type: PropType<"
|
|
499
|
-
default: "
|
|
498
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
499
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
500
500
|
};
|
|
501
501
|
status: {
|
|
502
502
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -536,8 +536,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
536
536
|
default: any;
|
|
537
537
|
};
|
|
538
538
|
prefixCls: StringConstructor;
|
|
539
|
-
id: StringConstructor;
|
|
540
|
-
autofocus: BooleanConstructor;
|
|
541
539
|
getPopupContainer: {
|
|
542
540
|
type: PropType<RenderDOMFunc>;
|
|
543
541
|
};
|
|
@@ -549,21 +547,28 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
549
547
|
type: PropType<number | boolean>;
|
|
550
548
|
default: any;
|
|
551
549
|
};
|
|
552
|
-
options: PropType<DefaultOptionType[]>;
|
|
553
|
-
showAction: {
|
|
554
|
-
type: PropType<("click" | "focus")[]>;
|
|
555
|
-
};
|
|
556
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
557
550
|
loading: {
|
|
558
551
|
type: BooleanConstructor;
|
|
559
552
|
default: any;
|
|
560
553
|
};
|
|
554
|
+
showAction: {
|
|
555
|
+
type: PropType<("click" | "focus")[]>;
|
|
556
|
+
};
|
|
557
|
+
dropdownAlign: PropType<AlignType>;
|
|
561
558
|
placeholder: VueTypeValidableDef<any>;
|
|
562
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
563
559
|
allowClear: {
|
|
564
560
|
type: BooleanConstructor;
|
|
565
561
|
default: any;
|
|
566
562
|
};
|
|
563
|
+
autofocus: BooleanConstructor;
|
|
564
|
+
defaultOpen: {
|
|
565
|
+
type: BooleanConstructor;
|
|
566
|
+
default: any;
|
|
567
|
+
};
|
|
568
|
+
id: StringConstructor;
|
|
569
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
570
|
+
options: PropType<DefaultOptionType[]>;
|
|
571
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
567
572
|
onSearch: PropType<(value: string) => void>;
|
|
568
573
|
fieldNames: PropType<FieldNames>;
|
|
569
574
|
dropdownStyle: {
|
|
@@ -572,7 +577,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
572
577
|
dropdownRender: {
|
|
573
578
|
type: PropType<DropdownRender>;
|
|
574
579
|
};
|
|
575
|
-
dropdownAlign: PropType<AlignType>;
|
|
576
580
|
showSearch: {
|
|
577
581
|
type: BooleanConstructor;
|
|
578
582
|
default: any;
|
|
@@ -595,10 +599,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
595
599
|
type: PropType<(option: Record<string, any>) => any>;
|
|
596
600
|
};
|
|
597
601
|
onClear: PropType<() => void>;
|
|
598
|
-
defaultOpen: {
|
|
599
|
-
type: BooleanConstructor;
|
|
600
|
-
default: any;
|
|
601
|
-
};
|
|
602
602
|
onDropdownVisibleChange: {
|
|
603
603
|
type: PropType<(open: boolean) => void>;
|
|
604
604
|
};
|
|
@@ -631,24 +631,24 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
631
631
|
default: any;
|
|
632
632
|
};
|
|
633
633
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
634
|
-
size:
|
|
634
|
+
size: SizeType;
|
|
635
635
|
value: SelectValue;
|
|
636
636
|
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
637
637
|
open: boolean;
|
|
638
638
|
disabled: boolean;
|
|
639
|
-
autofocus: boolean;
|
|
640
639
|
virtual: boolean;
|
|
641
640
|
dropdownMatchSelectWidth: number | boolean;
|
|
642
|
-
status: "" | "error" | "warning";
|
|
643
|
-
defaultValue: SelectValue;
|
|
644
|
-
'onUpdate:value': (val: SelectValue) => void;
|
|
645
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
646
641
|
loading: boolean;
|
|
647
642
|
bordered: boolean;
|
|
643
|
+
defaultValue: SelectValue;
|
|
644
|
+
status: "" | "error" | "warning";
|
|
648
645
|
allowClear: boolean;
|
|
646
|
+
autofocus: boolean;
|
|
647
|
+
defaultOpen: boolean;
|
|
648
|
+
'onUpdate:value': (val: SelectValue) => void;
|
|
649
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
649
650
|
showSearch: boolean;
|
|
650
651
|
choiceTransitionName: "";
|
|
651
|
-
defaultOpen: boolean;
|
|
652
652
|
showArrow: boolean;
|
|
653
653
|
autoClearSearchValue: boolean;
|
|
654
654
|
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
@@ -687,8 +687,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
687
687
|
suffixIcon: VueTypeValidableDef<any>;
|
|
688
688
|
itemIcon: VueTypeValidableDef<any>;
|
|
689
689
|
size: {
|
|
690
|
-
type: PropType<
|
|
691
|
-
default:
|
|
690
|
+
type: PropType<SizeType>;
|
|
691
|
+
default: SizeType;
|
|
692
692
|
};
|
|
693
693
|
mode: {
|
|
694
694
|
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
@@ -706,8 +706,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
706
706
|
popupClassName: StringConstructor;
|
|
707
707
|
dropdownClassName: StringConstructor;
|
|
708
708
|
placement: {
|
|
709
|
-
type: PropType<"
|
|
710
|
-
default: "
|
|
709
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
710
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
711
711
|
};
|
|
712
712
|
status: {
|
|
713
713
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -747,8 +747,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
747
747
|
default: any;
|
|
748
748
|
};
|
|
749
749
|
prefixCls: StringConstructor;
|
|
750
|
-
id: StringConstructor;
|
|
751
|
-
autofocus: BooleanConstructor;
|
|
752
750
|
getPopupContainer: {
|
|
753
751
|
type: PropType<RenderDOMFunc>;
|
|
754
752
|
};
|
|
@@ -760,21 +758,28 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
760
758
|
type: PropType<number | boolean>;
|
|
761
759
|
default: any;
|
|
762
760
|
};
|
|
763
|
-
options: PropType<DefaultOptionType[]>;
|
|
764
|
-
showAction: {
|
|
765
|
-
type: PropType<("click" | "focus")[]>;
|
|
766
|
-
};
|
|
767
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
768
761
|
loading: {
|
|
769
762
|
type: BooleanConstructor;
|
|
770
763
|
default: any;
|
|
771
764
|
};
|
|
765
|
+
showAction: {
|
|
766
|
+
type: PropType<("click" | "focus")[]>;
|
|
767
|
+
};
|
|
768
|
+
dropdownAlign: PropType<AlignType>;
|
|
772
769
|
placeholder: VueTypeValidableDef<any>;
|
|
773
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
774
770
|
allowClear: {
|
|
775
771
|
type: BooleanConstructor;
|
|
776
772
|
default: any;
|
|
777
773
|
};
|
|
774
|
+
autofocus: BooleanConstructor;
|
|
775
|
+
defaultOpen: {
|
|
776
|
+
type: BooleanConstructor;
|
|
777
|
+
default: any;
|
|
778
|
+
};
|
|
779
|
+
id: StringConstructor;
|
|
780
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
781
|
+
options: PropType<DefaultOptionType[]>;
|
|
782
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
778
783
|
onSearch: PropType<(value: string) => void>;
|
|
779
784
|
fieldNames: PropType<FieldNames>;
|
|
780
785
|
dropdownStyle: {
|
|
@@ -783,7 +788,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
783
788
|
dropdownRender: {
|
|
784
789
|
type: PropType<DropdownRender>;
|
|
785
790
|
};
|
|
786
|
-
dropdownAlign: PropType<AlignType>;
|
|
787
791
|
showSearch: {
|
|
788
792
|
type: BooleanConstructor;
|
|
789
793
|
default: any;
|
|
@@ -806,10 +810,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
806
810
|
type: PropType<(option: Record<string, any>) => any>;
|
|
807
811
|
};
|
|
808
812
|
onClear: PropType<() => void>;
|
|
809
|
-
defaultOpen: {
|
|
810
|
-
type: BooleanConstructor;
|
|
811
|
-
default: any;
|
|
812
|
-
};
|
|
813
813
|
onDropdownVisibleChange: {
|
|
814
814
|
type: PropType<(open: boolean) => void>;
|
|
815
815
|
};
|
|
@@ -842,24 +842,24 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
842
842
|
default: any;
|
|
843
843
|
};
|
|
844
844
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
845
|
-
size:
|
|
845
|
+
size: SizeType;
|
|
846
846
|
value: SelectValue;
|
|
847
847
|
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
848
848
|
open: boolean;
|
|
849
849
|
disabled: boolean;
|
|
850
|
-
autofocus: boolean;
|
|
851
850
|
virtual: boolean;
|
|
852
851
|
dropdownMatchSelectWidth: number | boolean;
|
|
853
|
-
status: "" | "error" | "warning";
|
|
854
|
-
defaultValue: SelectValue;
|
|
855
|
-
'onUpdate:value': (val: SelectValue) => void;
|
|
856
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
857
852
|
loading: boolean;
|
|
858
853
|
bordered: boolean;
|
|
854
|
+
defaultValue: SelectValue;
|
|
855
|
+
status: "" | "error" | "warning";
|
|
859
856
|
allowClear: boolean;
|
|
857
|
+
autofocus: boolean;
|
|
858
|
+
defaultOpen: boolean;
|
|
859
|
+
'onUpdate:value': (val: SelectValue) => void;
|
|
860
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
860
861
|
showSearch: boolean;
|
|
861
862
|
choiceTransitionName: "";
|
|
862
|
-
defaultOpen: boolean;
|
|
863
863
|
showArrow: boolean;
|
|
864
864
|
autoClearSearchValue: boolean;
|
|
865
865
|
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),M=require("../../hooks/useControllableValue.js"),U={key:0},D=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),M=require("../../hooks/useControllableValue.js"),U={key:0},D=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},loading:{type:Boolean,default:void 0},showAction:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},id:{},clearIcon:{},options:{},onDeselect:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},onClickOption:{},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(B,{expose:L,emit:b}){let r=0;const e=B,_=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const l=r;c([]),u.value=!0,e.request(t).then(n=>{r===l&&(c(n),u.value=!1)})},e.searchDelay),A=(t,l)=>{var a;const n=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(l==null?void 0:l[n])=="string"&&l[n].toLowerCase().indexOf(t.toLowerCase())>-1},{options:s,updateOptions:c}=d.useSelectOptions(e),v=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=b;async function f(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const l=r;try{t&&c([]);const n=await e.request(void 0,e.params);if(l!==r)return;c(n)}finally{u.value=!1}}function O(t){var l;(l=e.onFocus)==null||l.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&f(!0)}o.onMounted(()=>{e.lazy||f()}),o.watch(()=>e.params,()=>{f()},{deep:!0});const{value:p,updateValue:h}=M.useControllableValue(e,F),V=k.useDefaultPlaceholder("Select",e),E=o.computed(()=>{var m,g;const t=o.unref(p);if(!t)return e.emptyText;const l=((m=e.fieldNames)==null?void 0:m.label)||"label",n=((g=e.fieldNames)==null?void 0:g.value)||"value";if(i.isArray(t))return t.map(y=>{var C;return(C=o.unref(s).find(P=>P[n]===y))==null?void 0:C[l]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(s).find(y=>y[n]===t);return(a==null?void 0:a[l])||e.emptyText}),N=o.computed(()=>{const t=!!(e!=null&&e.showSearch),l=e.searchMode;let n={};return t&&(n=l==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:_,notFoundContent:u.value?void 0:null,filterOption:!1}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?A:e==null?void 0:e.filterOption}),{...i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:o.unref(V),...n}}),S=o.computed(()=>s.value.map(t=>{var l;return t[((l=e.fieldNames)==null?void 0:l.value)||"value"]}).filter(t=>t!==d.SELECT_ALL_VALUE_KEY)),q=o.computed(()=>{if(!e.multiple||!e.addAll)return o.unref(p);if(s.value.some(t=>{var l;return t[((l=e.fieldNames)==null?void 0:l.value)||"value"]===d.SELECT_ALL_VALUE_KEY})){const t=o.unref(S),l=o.unref(p)||[];if(t.length&&t.every(n=>l==null?void 0:l.includes(n)))return[d.SELECT_ALL_VALUE_KEY]}return o.unref(p)});function T(t){return e.multiple&&t.includes(d.SELECT_ALL_VALUE_KEY)?h(o.unref(S)):h(t)}function x(){var t;(t=v.value)==null||t.focus()}function I(){var t;(t=v.value)==null||t.blur()}return L({focus:x,blur:I,request:f}),(t,l)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",U,o.toDisplayString(E.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,ref_key:"selectRef",ref:v,"allow-clear":""},N.value,{mode:t.multiple?"multiple":void 0,value:q.value,options:o.unref(s),loading:u.value,"onUpdate:value":T,onFocus:O}),o.createSlots({_:2},[o.renderList(t.$slots,(n,a)=>({name:a,fn:o.withCtx(m=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(m||{})))])})),u.value?{name:"notFoundContent",fn:o.withCtx(()=>[o.createVNode(o.unref(w.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading"]))}});exports.default=D;
|
|
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
|
|
|
6
6
|
options: Ref<{
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
label?: any;
|
|
9
|
-
value?:
|
|
9
|
+
value?: string | number | null | undefined;
|
|
10
10
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
}[], DefaultOptionType[] | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
label?: any;
|
|
15
|
-
value?:
|
|
15
|
+
value?: string | number | null | undefined;
|
|
16
16
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
17
17
|
disabled?: boolean | undefined;
|
|
18
18
|
}[]>;
|
|
@@ -124,10 +124,10 @@ declare function __VLS_template(): {
|
|
|
124
124
|
onChange: (value: number | [number, number]) => void;
|
|
125
125
|
range: boolean | SliderRange;
|
|
126
126
|
disabled: boolean;
|
|
127
|
-
autofocus: boolean;
|
|
128
127
|
defaultValue: number | [number, number];
|
|
129
|
-
'onUpdate:value': (value: number | [number, number]) => void;
|
|
130
128
|
step: number;
|
|
129
|
+
autofocus: boolean;
|
|
130
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
131
131
|
included: boolean;
|
|
132
132
|
marks: SliderMarks;
|
|
133
133
|
handleStyle: CSSProperties | CSSProperties[];
|
|
@@ -256,10 +256,10 @@ declare function __VLS_template(): {
|
|
|
256
256
|
onChange: (value: number | [number, number]) => void;
|
|
257
257
|
range: boolean | SliderRange;
|
|
258
258
|
disabled: boolean;
|
|
259
|
-
autofocus: boolean;
|
|
260
259
|
defaultValue: number | [number, number];
|
|
261
|
-
'onUpdate:value': (value: number | [number, number]) => void;
|
|
262
260
|
step: number;
|
|
261
|
+
autofocus: boolean;
|
|
262
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
263
263
|
included: boolean;
|
|
264
264
|
marks: SliderMarks;
|
|
265
265
|
handleStyle: CSSProperties | CSSProperties[];
|
|
@@ -400,10 +400,10 @@ declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
|
|
|
400
400
|
onChange: (value: number | [number, number]) => void;
|
|
401
401
|
range: boolean | SliderRange;
|
|
402
402
|
disabled: boolean;
|
|
403
|
-
autofocus: boolean;
|
|
404
403
|
defaultValue: number | [number, number];
|
|
405
|
-
'onUpdate:value': (value: number | [number, number]) => void;
|
|
406
404
|
step: number;
|
|
405
|
+
autofocus: boolean;
|
|
406
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
407
407
|
included: boolean;
|
|
408
408
|
marks: SliderMarks;
|
|
409
409
|
handleStyle: CSSProperties | CSSProperties[];
|
|
@@ -532,10 +532,10 @@ declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
|
|
|
532
532
|
onChange: (value: number | [number, number]) => void;
|
|
533
533
|
range: boolean | SliderRange;
|
|
534
534
|
disabled: boolean;
|
|
535
|
-
autofocus: boolean;
|
|
536
535
|
defaultValue: number | [number, number];
|
|
537
|
-
'onUpdate:value': (value: number | [number, number]) => void;
|
|
538
536
|
step: number;
|
|
537
|
+
autofocus: boolean;
|
|
538
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
539
539
|
included: boolean;
|
|
540
540
|
marks: SliderMarks;
|
|
541
541
|
handleStyle: CSSProperties | CSSProperties[];
|