@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 { ApFieldTreeSelectProps } from '../interface';
|
|
|
2
2
|
import { LegacyDataNode, FieldNames, Key } from '@aplus-frontend/antdv/es/vc-tree-select/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 { ChangeEventExtra, FieldNames, LegacyDataNode, DefaultOptionType, SimpleModeConfig } from '@aplus-frontend/antdv/es/vc-tree-select/TreeSelect';
|
|
8
8
|
import { SelectHandler } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
@@ -43,8 +43,8 @@ declare function __VLS_template(): {
|
|
|
43
43
|
treeSelectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
44
44
|
suffixIcon: VueTypeValidableDef<any>;
|
|
45
45
|
size: {
|
|
46
|
-
type: PropType<
|
|
47
|
-
default:
|
|
46
|
+
type: PropType<SizeType>;
|
|
47
|
+
default: SizeType;
|
|
48
48
|
};
|
|
49
49
|
bordered: {
|
|
50
50
|
type: BooleanConstructor;
|
|
@@ -63,8 +63,8 @@ declare function __VLS_template(): {
|
|
|
63
63
|
default: FieldNames;
|
|
64
64
|
};
|
|
65
65
|
placement: {
|
|
66
|
-
type: PropType<"
|
|
67
|
-
default: "
|
|
66
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
67
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
68
68
|
};
|
|
69
69
|
status: {
|
|
70
70
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -123,8 +123,6 @@ declare function __VLS_template(): {
|
|
|
123
123
|
default: any;
|
|
124
124
|
};
|
|
125
125
|
prefixCls: StringConstructor;
|
|
126
|
-
id: StringConstructor;
|
|
127
|
-
autofocus: BooleanConstructor;
|
|
128
126
|
getPopupContainer: {
|
|
129
127
|
type: PropType<RenderDOMFunc>;
|
|
130
128
|
};
|
|
@@ -136,6 +134,10 @@ declare function __VLS_template(): {
|
|
|
136
134
|
type: PropType<number | boolean>;
|
|
137
135
|
default: any;
|
|
138
136
|
};
|
|
137
|
+
loading: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: any;
|
|
140
|
+
};
|
|
139
141
|
defaultValue: {
|
|
140
142
|
type: PropType<any>;
|
|
141
143
|
};
|
|
@@ -143,21 +145,24 @@ declare function __VLS_template(): {
|
|
|
143
145
|
type: PropType<("click" | "focus")[]>;
|
|
144
146
|
};
|
|
145
147
|
transitionName: StringConstructor;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
dropdownAlign: PropType<AlignType>;
|
|
149
|
+
placeholder: VueTypeValidableDef<any>;
|
|
150
|
+
allowClear: {
|
|
148
151
|
type: BooleanConstructor;
|
|
149
152
|
default: any;
|
|
150
153
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
allowClear: {
|
|
154
|
+
autofocus: BooleanConstructor;
|
|
155
|
+
defaultOpen: {
|
|
154
156
|
type: BooleanConstructor;
|
|
155
157
|
default: any;
|
|
156
158
|
};
|
|
159
|
+
id: StringConstructor;
|
|
160
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
161
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
162
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
157
163
|
onSearch: {
|
|
158
164
|
type: PropType<(value: string) => void>;
|
|
159
165
|
};
|
|
160
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
161
166
|
fieldNames: {
|
|
162
167
|
type: PropType<FieldNames>;
|
|
163
168
|
};
|
|
@@ -167,7 +172,6 @@ declare function __VLS_template(): {
|
|
|
167
172
|
dropdownRender: {
|
|
168
173
|
type: PropType<DropdownRender>;
|
|
169
174
|
};
|
|
170
|
-
dropdownAlign: PropType<AlignType>;
|
|
171
175
|
switcherIcon: VueTypeValidableDef<any>;
|
|
172
176
|
loadData: {
|
|
173
177
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -208,10 +212,6 @@ declare function __VLS_template(): {
|
|
|
208
212
|
type: PropType<(option: Record<string, any>) => any>;
|
|
209
213
|
};
|
|
210
214
|
onClear: PropType<() => void>;
|
|
211
|
-
defaultOpen: {
|
|
212
|
-
type: BooleanConstructor;
|
|
213
|
-
default: any;
|
|
214
|
-
};
|
|
215
215
|
onDropdownVisibleChange: {
|
|
216
216
|
type: PropType<(open: boolean) => void>;
|
|
217
217
|
};
|
|
@@ -269,24 +269,24 @@ declare function __VLS_template(): {
|
|
|
269
269
|
};
|
|
270
270
|
dropdownPopupAlign: VueTypeValidableDef<any>;
|
|
271
271
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
272
|
-
size:
|
|
272
|
+
size: SizeType;
|
|
273
273
|
open: boolean;
|
|
274
274
|
multiple: boolean;
|
|
275
275
|
disabled: boolean;
|
|
276
|
-
autofocus: boolean;
|
|
277
276
|
virtual: boolean;
|
|
278
277
|
dropdownMatchSelectWidth: number | boolean;
|
|
279
|
-
status: "" | "error" | "warning";
|
|
280
|
-
'onUpdate:value': (value: any) => void;
|
|
281
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
282
278
|
loading: boolean;
|
|
283
279
|
bordered: boolean;
|
|
280
|
+
status: "" | "error" | "warning";
|
|
284
281
|
allowClear: boolean;
|
|
282
|
+
autofocus: boolean;
|
|
283
|
+
defaultOpen: boolean;
|
|
284
|
+
'onUpdate:value': (value: any) => void;
|
|
285
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
285
286
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
286
287
|
replaceFields: FieldNames;
|
|
287
288
|
treeCheckable: boolean;
|
|
288
289
|
showSearch: boolean;
|
|
289
|
-
defaultOpen: boolean;
|
|
290
290
|
showArrow: boolean;
|
|
291
291
|
autoClearSearchValue: boolean;
|
|
292
292
|
labelInValue: boolean;
|
|
@@ -320,8 +320,8 @@ declare function __VLS_template(): {
|
|
|
320
320
|
}, Readonly< ExtractPropTypes<{
|
|
321
321
|
suffixIcon: VueTypeValidableDef<any>;
|
|
322
322
|
size: {
|
|
323
|
-
type: PropType<
|
|
324
|
-
default:
|
|
323
|
+
type: PropType<SizeType>;
|
|
324
|
+
default: SizeType;
|
|
325
325
|
};
|
|
326
326
|
bordered: {
|
|
327
327
|
type: BooleanConstructor;
|
|
@@ -340,8 +340,8 @@ declare function __VLS_template(): {
|
|
|
340
340
|
default: FieldNames;
|
|
341
341
|
};
|
|
342
342
|
placement: {
|
|
343
|
-
type: PropType<"
|
|
344
|
-
default: "
|
|
343
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
344
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
345
345
|
};
|
|
346
346
|
status: {
|
|
347
347
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -400,8 +400,6 @@ declare function __VLS_template(): {
|
|
|
400
400
|
default: any;
|
|
401
401
|
};
|
|
402
402
|
prefixCls: StringConstructor;
|
|
403
|
-
id: StringConstructor;
|
|
404
|
-
autofocus: BooleanConstructor;
|
|
405
403
|
getPopupContainer: {
|
|
406
404
|
type: PropType<RenderDOMFunc>;
|
|
407
405
|
};
|
|
@@ -413,6 +411,10 @@ declare function __VLS_template(): {
|
|
|
413
411
|
type: PropType<number | boolean>;
|
|
414
412
|
default: any;
|
|
415
413
|
};
|
|
414
|
+
loading: {
|
|
415
|
+
type: BooleanConstructor;
|
|
416
|
+
default: any;
|
|
417
|
+
};
|
|
416
418
|
defaultValue: {
|
|
417
419
|
type: PropType<any>;
|
|
418
420
|
};
|
|
@@ -420,21 +422,24 @@ declare function __VLS_template(): {
|
|
|
420
422
|
type: PropType<("click" | "focus")[]>;
|
|
421
423
|
};
|
|
422
424
|
transitionName: StringConstructor;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
+
dropdownAlign: PropType<AlignType>;
|
|
426
|
+
placeholder: VueTypeValidableDef<any>;
|
|
427
|
+
allowClear: {
|
|
425
428
|
type: BooleanConstructor;
|
|
426
429
|
default: any;
|
|
427
430
|
};
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
allowClear: {
|
|
431
|
+
autofocus: BooleanConstructor;
|
|
432
|
+
defaultOpen: {
|
|
431
433
|
type: BooleanConstructor;
|
|
432
434
|
default: any;
|
|
433
435
|
};
|
|
436
|
+
id: StringConstructor;
|
|
437
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
438
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
439
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
434
440
|
onSearch: {
|
|
435
441
|
type: PropType<(value: string) => void>;
|
|
436
442
|
};
|
|
437
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
438
443
|
fieldNames: {
|
|
439
444
|
type: PropType<FieldNames>;
|
|
440
445
|
};
|
|
@@ -444,7 +449,6 @@ declare function __VLS_template(): {
|
|
|
444
449
|
dropdownRender: {
|
|
445
450
|
type: PropType<DropdownRender>;
|
|
446
451
|
};
|
|
447
|
-
dropdownAlign: PropType<AlignType>;
|
|
448
452
|
switcherIcon: VueTypeValidableDef<any>;
|
|
449
453
|
loadData: {
|
|
450
454
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -485,10 +489,6 @@ declare function __VLS_template(): {
|
|
|
485
489
|
type: PropType<(option: Record<string, any>) => any>;
|
|
486
490
|
};
|
|
487
491
|
onClear: PropType<() => void>;
|
|
488
|
-
defaultOpen: {
|
|
489
|
-
type: BooleanConstructor;
|
|
490
|
-
default: any;
|
|
491
|
-
};
|
|
492
492
|
onDropdownVisibleChange: {
|
|
493
493
|
type: PropType<(open: boolean) => void>;
|
|
494
494
|
};
|
|
@@ -546,24 +546,24 @@ declare function __VLS_template(): {
|
|
|
546
546
|
};
|
|
547
547
|
dropdownPopupAlign: VueTypeValidableDef<any>;
|
|
548
548
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
549
|
-
size:
|
|
549
|
+
size: SizeType;
|
|
550
550
|
open: boolean;
|
|
551
551
|
multiple: boolean;
|
|
552
552
|
disabled: boolean;
|
|
553
|
-
autofocus: boolean;
|
|
554
553
|
virtual: boolean;
|
|
555
554
|
dropdownMatchSelectWidth: number | boolean;
|
|
556
|
-
status: "" | "error" | "warning";
|
|
557
|
-
'onUpdate:value': (value: any) => void;
|
|
558
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
559
555
|
loading: boolean;
|
|
560
556
|
bordered: boolean;
|
|
557
|
+
status: "" | "error" | "warning";
|
|
561
558
|
allowClear: boolean;
|
|
559
|
+
autofocus: boolean;
|
|
560
|
+
defaultOpen: boolean;
|
|
561
|
+
'onUpdate:value': (value: any) => void;
|
|
562
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
562
563
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
563
564
|
replaceFields: FieldNames;
|
|
564
565
|
treeCheckable: boolean;
|
|
565
566
|
showSearch: boolean;
|
|
566
|
-
defaultOpen: boolean;
|
|
567
567
|
showArrow: boolean;
|
|
568
568
|
autoClearSearchValue: boolean;
|
|
569
569
|
labelInValue: boolean;
|
|
@@ -612,8 +612,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
612
612
|
treeSelectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
613
613
|
suffixIcon: VueTypeValidableDef<any>;
|
|
614
614
|
size: {
|
|
615
|
-
type: PropType<
|
|
616
|
-
default:
|
|
615
|
+
type: PropType<SizeType>;
|
|
616
|
+
default: SizeType;
|
|
617
617
|
};
|
|
618
618
|
bordered: {
|
|
619
619
|
type: BooleanConstructor;
|
|
@@ -632,8 +632,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
632
632
|
default: FieldNames;
|
|
633
633
|
};
|
|
634
634
|
placement: {
|
|
635
|
-
type: PropType<"
|
|
636
|
-
default: "
|
|
635
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
636
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
637
637
|
};
|
|
638
638
|
status: {
|
|
639
639
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -692,8 +692,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
692
692
|
default: any;
|
|
693
693
|
};
|
|
694
694
|
prefixCls: StringConstructor;
|
|
695
|
-
id: StringConstructor;
|
|
696
|
-
autofocus: BooleanConstructor;
|
|
697
695
|
getPopupContainer: {
|
|
698
696
|
type: PropType<RenderDOMFunc>;
|
|
699
697
|
};
|
|
@@ -705,6 +703,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
705
703
|
type: PropType<number | boolean>;
|
|
706
704
|
default: any;
|
|
707
705
|
};
|
|
706
|
+
loading: {
|
|
707
|
+
type: BooleanConstructor;
|
|
708
|
+
default: any;
|
|
709
|
+
};
|
|
708
710
|
defaultValue: {
|
|
709
711
|
type: PropType<any>;
|
|
710
712
|
};
|
|
@@ -712,21 +714,24 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
712
714
|
type: PropType<("click" | "focus")[]>;
|
|
713
715
|
};
|
|
714
716
|
transitionName: StringConstructor;
|
|
715
|
-
|
|
716
|
-
|
|
717
|
+
dropdownAlign: PropType<AlignType>;
|
|
718
|
+
placeholder: VueTypeValidableDef<any>;
|
|
719
|
+
allowClear: {
|
|
717
720
|
type: BooleanConstructor;
|
|
718
721
|
default: any;
|
|
719
722
|
};
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
allowClear: {
|
|
723
|
+
autofocus: BooleanConstructor;
|
|
724
|
+
defaultOpen: {
|
|
723
725
|
type: BooleanConstructor;
|
|
724
726
|
default: any;
|
|
725
727
|
};
|
|
728
|
+
id: StringConstructor;
|
|
729
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
730
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
731
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
726
732
|
onSearch: {
|
|
727
733
|
type: PropType<(value: string) => void>;
|
|
728
734
|
};
|
|
729
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
730
735
|
fieldNames: {
|
|
731
736
|
type: PropType<FieldNames>;
|
|
732
737
|
};
|
|
@@ -736,7 +741,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
736
741
|
dropdownRender: {
|
|
737
742
|
type: PropType<DropdownRender>;
|
|
738
743
|
};
|
|
739
|
-
dropdownAlign: PropType<AlignType>;
|
|
740
744
|
switcherIcon: VueTypeValidableDef<any>;
|
|
741
745
|
loadData: {
|
|
742
746
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -777,10 +781,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
777
781
|
type: PropType<(option: Record<string, any>) => any>;
|
|
778
782
|
};
|
|
779
783
|
onClear: PropType<() => void>;
|
|
780
|
-
defaultOpen: {
|
|
781
|
-
type: BooleanConstructor;
|
|
782
|
-
default: any;
|
|
783
|
-
};
|
|
784
784
|
onDropdownVisibleChange: {
|
|
785
785
|
type: PropType<(open: boolean) => void>;
|
|
786
786
|
};
|
|
@@ -838,24 +838,24 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
838
838
|
};
|
|
839
839
|
dropdownPopupAlign: VueTypeValidableDef<any>;
|
|
840
840
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
841
|
-
size:
|
|
841
|
+
size: SizeType;
|
|
842
842
|
open: boolean;
|
|
843
843
|
multiple: boolean;
|
|
844
844
|
disabled: boolean;
|
|
845
|
-
autofocus: boolean;
|
|
846
845
|
virtual: boolean;
|
|
847
846
|
dropdownMatchSelectWidth: number | boolean;
|
|
848
|
-
status: "" | "error" | "warning";
|
|
849
|
-
'onUpdate:value': (value: any) => void;
|
|
850
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
851
847
|
loading: boolean;
|
|
852
848
|
bordered: boolean;
|
|
849
|
+
status: "" | "error" | "warning";
|
|
853
850
|
allowClear: boolean;
|
|
851
|
+
autofocus: boolean;
|
|
852
|
+
defaultOpen: boolean;
|
|
853
|
+
'onUpdate:value': (value: any) => void;
|
|
854
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
854
855
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
855
856
|
replaceFields: FieldNames;
|
|
856
857
|
treeCheckable: boolean;
|
|
857
858
|
showSearch: boolean;
|
|
858
|
-
defaultOpen: boolean;
|
|
859
859
|
showArrow: boolean;
|
|
860
860
|
autoClearSearchValue: boolean;
|
|
861
861
|
labelInValue: boolean;
|
|
@@ -889,8 +889,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
889
889
|
}, Readonly< ExtractPropTypes<{
|
|
890
890
|
suffixIcon: VueTypeValidableDef<any>;
|
|
891
891
|
size: {
|
|
892
|
-
type: PropType<
|
|
893
|
-
default:
|
|
892
|
+
type: PropType<SizeType>;
|
|
893
|
+
default: SizeType;
|
|
894
894
|
};
|
|
895
895
|
bordered: {
|
|
896
896
|
type: BooleanConstructor;
|
|
@@ -909,8 +909,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
909
909
|
default: FieldNames;
|
|
910
910
|
};
|
|
911
911
|
placement: {
|
|
912
|
-
type: PropType<"
|
|
913
|
-
default: "
|
|
912
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
913
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
914
914
|
};
|
|
915
915
|
status: {
|
|
916
916
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -969,8 +969,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
969
969
|
default: any;
|
|
970
970
|
};
|
|
971
971
|
prefixCls: StringConstructor;
|
|
972
|
-
id: StringConstructor;
|
|
973
|
-
autofocus: BooleanConstructor;
|
|
974
972
|
getPopupContainer: {
|
|
975
973
|
type: PropType<RenderDOMFunc>;
|
|
976
974
|
};
|
|
@@ -982,6 +980,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
982
980
|
type: PropType<number | boolean>;
|
|
983
981
|
default: any;
|
|
984
982
|
};
|
|
983
|
+
loading: {
|
|
984
|
+
type: BooleanConstructor;
|
|
985
|
+
default: any;
|
|
986
|
+
};
|
|
985
987
|
defaultValue: {
|
|
986
988
|
type: PropType<any>;
|
|
987
989
|
};
|
|
@@ -989,21 +991,24 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
989
991
|
type: PropType<("click" | "focus")[]>;
|
|
990
992
|
};
|
|
991
993
|
transitionName: StringConstructor;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
+
dropdownAlign: PropType<AlignType>;
|
|
995
|
+
placeholder: VueTypeValidableDef<any>;
|
|
996
|
+
allowClear: {
|
|
994
997
|
type: BooleanConstructor;
|
|
995
998
|
default: any;
|
|
996
999
|
};
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
allowClear: {
|
|
1000
|
+
autofocus: BooleanConstructor;
|
|
1001
|
+
defaultOpen: {
|
|
1000
1002
|
type: BooleanConstructor;
|
|
1001
1003
|
default: any;
|
|
1002
1004
|
};
|
|
1005
|
+
id: StringConstructor;
|
|
1006
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
1007
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
1008
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
1003
1009
|
onSearch: {
|
|
1004
1010
|
type: PropType<(value: string) => void>;
|
|
1005
1011
|
};
|
|
1006
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
1007
1012
|
fieldNames: {
|
|
1008
1013
|
type: PropType<FieldNames>;
|
|
1009
1014
|
};
|
|
@@ -1013,7 +1018,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
1013
1018
|
dropdownRender: {
|
|
1014
1019
|
type: PropType<DropdownRender>;
|
|
1015
1020
|
};
|
|
1016
|
-
dropdownAlign: PropType<AlignType>;
|
|
1017
1021
|
switcherIcon: VueTypeValidableDef<any>;
|
|
1018
1022
|
loadData: {
|
|
1019
1023
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -1054,10 +1058,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
1054
1058
|
type: PropType<(option: Record<string, any>) => any>;
|
|
1055
1059
|
};
|
|
1056
1060
|
onClear: PropType<() => void>;
|
|
1057
|
-
defaultOpen: {
|
|
1058
|
-
type: BooleanConstructor;
|
|
1059
|
-
default: any;
|
|
1060
|
-
};
|
|
1061
1061
|
onDropdownVisibleChange: {
|
|
1062
1062
|
type: PropType<(open: boolean) => void>;
|
|
1063
1063
|
};
|
|
@@ -1115,24 +1115,24 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
1115
1115
|
};
|
|
1116
1116
|
dropdownPopupAlign: VueTypeValidableDef<any>;
|
|
1117
1117
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1118
|
-
size:
|
|
1118
|
+
size: SizeType;
|
|
1119
1119
|
open: boolean;
|
|
1120
1120
|
multiple: boolean;
|
|
1121
1121
|
disabled: boolean;
|
|
1122
|
-
autofocus: boolean;
|
|
1123
1122
|
virtual: boolean;
|
|
1124
1123
|
dropdownMatchSelectWidth: number | boolean;
|
|
1125
|
-
status: "" | "error" | "warning";
|
|
1126
|
-
'onUpdate:value': (value: any) => void;
|
|
1127
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
1128
1124
|
loading: boolean;
|
|
1129
1125
|
bordered: boolean;
|
|
1126
|
+
status: "" | "error" | "warning";
|
|
1130
1127
|
allowClear: boolean;
|
|
1128
|
+
autofocus: boolean;
|
|
1129
|
+
defaultOpen: boolean;
|
|
1130
|
+
'onUpdate:value': (value: any) => void;
|
|
1131
|
+
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
1131
1132
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
1132
1133
|
replaceFields: FieldNames;
|
|
1133
1134
|
treeCheckable: boolean;
|
|
1134
1135
|
showSearch: boolean;
|
|
1135
|
-
defaultOpen: boolean;
|
|
1136
1136
|
showArrow: boolean;
|
|
1137
1137
|
autoClearSearchValue: boolean;
|
|
1138
1138
|
labelInValue: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../hooks/index.js");const B=require("lodash-unified"),F=require("./use-request.js"),I=require("../../hooks/useControllableValue.js");function C(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const R=e.defineComponent({name:"ApFieldTreeSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean,default:void 0},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},prefixCls:{},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../hooks/index.js");const B=require("lodash-unified"),F=require("./use-request.js"),I=require("../../hooks/useControllableValue.js");function C(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const R=e.defineComponent({name:"ApFieldTreeSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean,default:void 0},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean,default:!0},dropdownMatchSelectWidth:{default:!0},loading:{type:Boolean,default:void 0},defaultValue:{},showAction:{},transitionName:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},id:{},clearIcon:{},notFoundContent:{},onDeselect:{},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},switcherIcon:{},filterTreeNode:{},treeData:{},treeCheckable:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},choiceTransitionName:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},getRawInputElement:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},showCheckedStrategy:{},treeExpandAction:{},treeDefaultExpandAll:{type:Boolean,default:void 0},treeIcon:{},treeLoadedKeys:{},onTreeLoad:{},treeNodeFilterProp:{},treeNodeLabelProp:{},treeCheckStrictly:{type:Boolean,default:void 0},treeDataSimpleMode:{},treeExpandedKeys:{},treeDefaultExpandedKeys:{},onTreeExpand:{},dropdownPopupAlign:{},emptyText:{default:"--"},request:{},lazy:{type:Boolean},params:{},loadData:{type:Boolean}},emits:["update:value"],setup(r,{expose:N,emit:w}){const a=r,V=e.useSlots(),x=w,c=e.ref(),{value:f,updateValue:b}=I.useControllableValue(a,x),{treeData:m,loading:y,request:h}=F.useRequest(a),T=e.computed(()=>{var v,S;let t;const n=e.unref(f),d=B.isArray(n)?n:[n].filter(Boolean);if(!d.length)return e.createVNode(e.Fragment,null,[a.emptyText]);const o=[],p=((v=a.fieldNames)==null?void 0:v.label)||"label",P=((S=a.fieldNames)==null?void 0:S.value)||"value";function g(l){var u;for(const i of l){if(d.find(_=>_===i[P])&&o.push(i[p]),o.length===d.length)return;(u=i.children)!=null&&u.length&&g(i.children)}}return g(e.unref(m)),o.length?o.length===1?e.createVNode("span",null,[o[0]]):e.createVNode(s.Space,{size:4},C(t=o.map((l,u)=>e.createVNode(s.Tag,{style:"margin-right: 0px",key:`${l}-${u}`},C(l)?l:{default:()=>[l]})))?t:{default:()=>[t]}):e.createVNode(e.Fragment,null,[a.emptyText])});function k(){var t,n;(n=(t=c.value)==null?void 0:t.focus)==null||n.call(t)}function D(){var t,n;(n=(t=c.value)==null?void 0:t.blur)==null||n.call(t)}function q(t){return h(t)}return N({request:h,focus:k,blur:D}),(t,n)=>t.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value),{key:0})):(e.openBlock(),e.createBlock(e.unref(s.TreeSelect),e.mergeProps({key:1},e.unref(B.omit)(a,["onUpdate:value","value","treeData","loadData"]),{ref_key:"treeSelectRef",ref:c,value:e.unref(f),"tree-data":e.unref(m),loading:e.unref(y),"load-data":t.loadData?q:void 0,"onUpdate:value":e.unref(b)}),e.createSlots({_:2},[e.renderList(V,(d,o)=>({name:o,fn:e.withCtx(p=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(p||{})))])})),e.unref(y)?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(s.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["value","tree-data","loading","load-data","onUpdate:value"]))}});exports.default=R;
|
|
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
checkable?: boolean | undefined;
|
|
10
10
|
disableCheckbox?: boolean | undefined;
|
|
11
|
-
children?: any[] | undefined;
|
|
11
|
+
children?: /*elided*/ any[] | undefined;
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
value?: RawValueType | undefined;
|
|
15
15
|
title?: any;
|
|
16
16
|
label?: any;
|
|
17
17
|
key?: Key | undefined;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
checkable?: boolean | undefined;
|
|
21
21
|
disableCheckbox?: boolean | undefined;
|
|
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
checkable?: boolean | undefined;
|
|
26
26
|
disableCheckbox?: boolean | undefined;
|
|
27
|
-
children?: any[] | undefined;
|
|
27
|
+
children?: /*elided*/ any[] | undefined;
|
|
28
28
|
} | {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
value?: RawValueType | undefined;
|
|
31
31
|
title?: any;
|
|
32
32
|
label?: any;
|
|
33
33
|
key?: Key | undefined;
|
|
34
|
-
children?: any[] | undefined;
|
|
34
|
+
children?: /*elided*/ any[] | undefined;
|
|
35
35
|
disabled?: boolean | undefined;
|
|
36
36
|
checkable?: boolean | undefined;
|
|
37
37
|
disableCheckbox?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
|
|
2
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign,
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
5
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
@@ -7,8 +7,7 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
-
import {
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
10
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
declare function __VLS_template(): {
|
|
14
13
|
attrs: Partial<{}>;
|
|
@@ -212,8 +211,8 @@ declare function __VLS_template(): {
|
|
|
212
211
|
default: string | string[];
|
|
213
212
|
};
|
|
214
213
|
size: {
|
|
215
|
-
type: PropType<
|
|
216
|
-
default:
|
|
214
|
+
type: PropType<ButtonSize>;
|
|
215
|
+
default: ButtonSize;
|
|
217
216
|
};
|
|
218
217
|
disabled: {
|
|
219
218
|
type: BooleanConstructor;
|
|
@@ -240,7 +239,7 @@ declare function __VLS_template(): {
|
|
|
240
239
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
241
240
|
};
|
|
242
241
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
243
|
-
size:
|
|
242
|
+
size: ButtonSize;
|
|
244
243
|
onSubmit: (e: Event) => void;
|
|
245
244
|
disabled: boolean;
|
|
246
245
|
validateTrigger: string | string[];
|
|
@@ -532,8 +531,8 @@ declare function __VLS_template(): {
|
|
|
532
531
|
default: string | string[];
|
|
533
532
|
};
|
|
534
533
|
size: {
|
|
535
|
-
type: PropType<
|
|
536
|
-
default:
|
|
534
|
+
type: PropType<ButtonSize>;
|
|
535
|
+
default: ButtonSize;
|
|
537
536
|
};
|
|
538
537
|
disabled: {
|
|
539
538
|
type: BooleanConstructor;
|
|
@@ -560,7 +559,7 @@ declare function __VLS_template(): {
|
|
|
560
559
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
561
560
|
};
|
|
562
561
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
563
|
-
size:
|
|
562
|
+
size: ButtonSize;
|
|
564
563
|
onSubmit: (e: Event) => void;
|
|
565
564
|
disabled: boolean;
|
|
566
565
|
validateTrigger: string | string[];
|
|
@@ -872,8 +871,8 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
872
871
|
default: string | string[];
|
|
873
872
|
};
|
|
874
873
|
size: {
|
|
875
|
-
type: PropType<
|
|
876
|
-
default:
|
|
874
|
+
type: PropType<ButtonSize>;
|
|
875
|
+
default: ButtonSize;
|
|
877
876
|
};
|
|
878
877
|
disabled: {
|
|
879
878
|
type: BooleanConstructor;
|
|
@@ -900,7 +899,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
900
899
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
901
900
|
};
|
|
902
901
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
903
|
-
size:
|
|
902
|
+
size: ButtonSize;
|
|
904
903
|
onSubmit: (e: Event) => void;
|
|
905
904
|
disabled: boolean;
|
|
906
905
|
validateTrigger: string | string[];
|
|
@@ -1192,8 +1191,8 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
1192
1191
|
default: string | string[];
|
|
1193
1192
|
};
|
|
1194
1193
|
size: {
|
|
1195
|
-
type: PropType<
|
|
1196
|
-
default:
|
|
1194
|
+
type: PropType<ButtonSize>;
|
|
1195
|
+
default: ButtonSize;
|
|
1197
1196
|
};
|
|
1198
1197
|
disabled: {
|
|
1199
1198
|
type: BooleanConstructor;
|
|
@@ -1220,7 +1219,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
1220
1219
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1221
1220
|
};
|
|
1222
1221
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1223
|
-
size:
|
|
1222
|
+
size: ButtonSize;
|
|
1224
1223
|
onSubmit: (e: Event) => void;
|
|
1225
1224
|
disabled: boolean;
|
|
1226
1225
|
validateTrigger: string | string[];
|