@aplus-frontend/ui 6.19.0 → 6.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/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 +2 -31
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +7 -11
- package/es/src/ap-button/ap-button.vue.mjs +20 -24
- package/es/src/ap-button/ap-confirm-button.vue.mjs +11 -15
- 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 +18 -21
- 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 +13 -13
- package/es/src/ap-field/date-range/index.vue.mjs +16 -16
- 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 +12 -17
- 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 +15 -14
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +19 -18
- 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 +107 -107
- 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 +20 -48
- 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 +10 -29
- 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 +19 -18
- 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 +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +9 -9
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +40 -40
- package/es/src/ap-list/index.vue.d.ts +4 -2
- 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 +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +14 -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 +332 -332
- 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 +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +30 -46
- 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 +7 -2
- 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 +3 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +11 -33
- 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 -2
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +212 -398
- package/es/src/business/ap-draggable-grid/constans.mjs +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +5 -2
- package/es/src/business/ap-draggable-grid/interface.d.ts +3 -2
- package/es/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.d.ts +2 -0
- package/es/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.mjs +14 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +33 -33
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- 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 +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- 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 +5 -17
- 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 +11 -10
- 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 +11 -10
- 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 +5 -4
- package/es/src/config-provider/config-provider.d.ts +9 -8
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -4
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/config-provider/index.d.ts +14 -13
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +38 -37
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.mjs +16 -15
- 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 +6 -5
- 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 +11 -10
- 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 +2 -31
- 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/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.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 +15 -14
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +19 -18
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.d.ts +107 -107
- 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 +20 -48
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +10 -29
- package/lib/src/ap-form/search-form/index.vue.d.ts +19 -18
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +332 -332
- 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.vue.js +1 -1
- 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 +7 -2
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +11 -33
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -2
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +5 -2
- package/lib/src/business/ap-draggable-grid/interface.d.ts +3 -2
- package/lib/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.d.ts +2 -0
- package/lib/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.js +1 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -10
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -10
- 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 +5 -4
- package/lib/src/config-provider/config-provider.d.ts +9 -8
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/config-provider/index.d.ts +14 -13
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.js +1 -1
- 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 +6 -5
- 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 +11 -10
- package/package.json +1 -1
- package/theme/antd-global-overwrite/admin/alert.css +37 -0
- package/theme/antd-global-overwrite/admin/alert.less +51 -0
- package/theme/antd-global-overwrite/admin/button.css +27 -0
- package/theme/antd-global-overwrite/admin/button.less +31 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/form.css +57 -0
- package/theme/antd-global-overwrite/admin/form.less +97 -0
- package/theme/antd-global-overwrite/admin/message.css +10 -0
- package/theme/antd-global-overwrite/admin/message.less +13 -0
- package/theme/antd-global-overwrite/admin/modal.css +94 -0
- package/theme/antd-global-overwrite/admin/modal.less +128 -0
- package/theme/antd-global-overwrite/admin/pagination.css +122 -0
- package/theme/antd-global-overwrite/admin/pagination.less +91 -0
- package/theme/antd-global-overwrite/admin/steps.css +127 -0
- package/theme/antd-global-overwrite/admin/steps.less +197 -0
- package/theme/antd-global-overwrite/admin/table.css +78 -0
- package/theme/antd-global-overwrite/admin/table.less +62 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +40 -0
- package/theme/antd-global-overwrite/aplus/alert.less +55 -0
- package/theme/antd-global-overwrite/aplus/button.css +27 -0
- package/theme/antd-global-overwrite/aplus/button.less +31 -0
- package/theme/antd-global-overwrite/aplus/field.css +42 -0
- package/theme/antd-global-overwrite/aplus/field.less +43 -0
- package/theme/antd-global-overwrite/aplus/form.css +87 -0
- package/theme/antd-global-overwrite/aplus/form.less +133 -0
- package/theme/antd-global-overwrite/aplus/message.css +10 -0
- package/theme/antd-global-overwrite/aplus/message.less +13 -0
- package/theme/antd-global-overwrite/aplus/modal.css +87 -0
- package/theme/antd-global-overwrite/aplus/modal.less +120 -0
- package/theme/antd-global-overwrite/aplus/pagination.css +147 -0
- package/theme/antd-global-overwrite/aplus/pagination.less +108 -0
- package/theme/antd-global-overwrite/aplus/steps.css +125 -0
- package/theme/antd-global-overwrite/aplus/steps.less +198 -0
- package/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/theme/antd-global-overwrite/aplus/table.less +61 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-draggable-grid/ap-draggable-grid.css +3 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +3 -4
- package/theme/ap-table/ap-table-pagination.css +12 -0
- package/theme/ap-table/ap-table-pagination.less +14 -0
- package/theme/ap-tag/ap-tag.css +4 -3
- package/theme/ap-tag/ap-tag.less +4 -3
- package/theme/index.css +7 -6
- package/theme/ui-mode.css +60 -0
- package/theme/ui-mode.less +109 -0
|
@@ -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 { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
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<ButtonSize>;
|
|
47
|
+
default: ButtonSize;
|
|
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<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
67
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
68
68
|
};
|
|
69
69
|
status: {
|
|
70
70
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -123,6 +123,8 @@ declare function __VLS_template(): {
|
|
|
123
123
|
default: any;
|
|
124
124
|
};
|
|
125
125
|
prefixCls: StringConstructor;
|
|
126
|
+
id: StringConstructor;
|
|
127
|
+
autofocus: BooleanConstructor;
|
|
126
128
|
getPopupContainer: {
|
|
127
129
|
type: PropType<RenderDOMFunc>;
|
|
128
130
|
};
|
|
@@ -134,10 +136,6 @@ declare function __VLS_template(): {
|
|
|
134
136
|
type: PropType<number | boolean>;
|
|
135
137
|
default: any;
|
|
136
138
|
};
|
|
137
|
-
loading: {
|
|
138
|
-
type: BooleanConstructor;
|
|
139
|
-
default: any;
|
|
140
|
-
};
|
|
141
139
|
defaultValue: {
|
|
142
140
|
type: PropType<any>;
|
|
143
141
|
};
|
|
@@ -145,24 +143,21 @@ declare function __VLS_template(): {
|
|
|
145
143
|
type: PropType<("click" | "focus")[]>;
|
|
146
144
|
};
|
|
147
145
|
transitionName: StringConstructor;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
allowClear: {
|
|
146
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
147
|
+
loading: {
|
|
151
148
|
type: BooleanConstructor;
|
|
152
149
|
default: any;
|
|
153
150
|
};
|
|
154
|
-
|
|
155
|
-
|
|
151
|
+
placeholder: VueTypeValidableDef<any>;
|
|
152
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
153
|
+
allowClear: {
|
|
156
154
|
type: BooleanConstructor;
|
|
157
155
|
default: any;
|
|
158
156
|
};
|
|
159
|
-
id: StringConstructor;
|
|
160
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
161
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
162
|
-
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
163
157
|
onSearch: {
|
|
164
158
|
type: PropType<(value: string) => void>;
|
|
165
159
|
};
|
|
160
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
166
161
|
fieldNames: {
|
|
167
162
|
type: PropType<FieldNames>;
|
|
168
163
|
};
|
|
@@ -172,6 +167,7 @@ declare function __VLS_template(): {
|
|
|
172
167
|
dropdownRender: {
|
|
173
168
|
type: PropType<DropdownRender>;
|
|
174
169
|
};
|
|
170
|
+
dropdownAlign: PropType<AlignType>;
|
|
175
171
|
switcherIcon: VueTypeValidableDef<any>;
|
|
176
172
|
loadData: {
|
|
177
173
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -212,6 +208,10 @@ declare function __VLS_template(): {
|
|
|
212
208
|
type: PropType<(option: Record<string, any>) => any>;
|
|
213
209
|
};
|
|
214
210
|
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: ButtonSize;
|
|
273
273
|
open: boolean;
|
|
274
274
|
multiple: boolean;
|
|
275
275
|
disabled: boolean;
|
|
276
|
+
autofocus: boolean;
|
|
276
277
|
virtual: boolean;
|
|
277
278
|
dropdownMatchSelectWidth: number | boolean;
|
|
279
|
+
status: "" | "error" | "warning";
|
|
280
|
+
'onUpdate:value': (value: any) => void;
|
|
281
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
278
282
|
loading: boolean;
|
|
279
283
|
bordered: boolean;
|
|
280
|
-
status: "" | "error" | "warning";
|
|
281
284
|
allowClear: boolean;
|
|
282
|
-
autofocus: boolean;
|
|
283
|
-
defaultOpen: boolean;
|
|
284
|
-
'onUpdate:value': (value: any) => void;
|
|
285
|
-
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
286
285
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
287
286
|
replaceFields: FieldNames;
|
|
288
287
|
treeCheckable: boolean;
|
|
289
288
|
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<ButtonSize>;
|
|
324
|
+
default: ButtonSize;
|
|
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<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
344
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
345
345
|
};
|
|
346
346
|
status: {
|
|
347
347
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -400,6 +400,8 @@ declare function __VLS_template(): {
|
|
|
400
400
|
default: any;
|
|
401
401
|
};
|
|
402
402
|
prefixCls: StringConstructor;
|
|
403
|
+
id: StringConstructor;
|
|
404
|
+
autofocus: BooleanConstructor;
|
|
403
405
|
getPopupContainer: {
|
|
404
406
|
type: PropType<RenderDOMFunc>;
|
|
405
407
|
};
|
|
@@ -411,10 +413,6 @@ declare function __VLS_template(): {
|
|
|
411
413
|
type: PropType<number | boolean>;
|
|
412
414
|
default: any;
|
|
413
415
|
};
|
|
414
|
-
loading: {
|
|
415
|
-
type: BooleanConstructor;
|
|
416
|
-
default: any;
|
|
417
|
-
};
|
|
418
416
|
defaultValue: {
|
|
419
417
|
type: PropType<any>;
|
|
420
418
|
};
|
|
@@ -422,24 +420,21 @@ declare function __VLS_template(): {
|
|
|
422
420
|
type: PropType<("click" | "focus")[]>;
|
|
423
421
|
};
|
|
424
422
|
transitionName: StringConstructor;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
allowClear: {
|
|
423
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
424
|
+
loading: {
|
|
428
425
|
type: BooleanConstructor;
|
|
429
426
|
default: any;
|
|
430
427
|
};
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
placeholder: VueTypeValidableDef<any>;
|
|
429
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
430
|
+
allowClear: {
|
|
433
431
|
type: BooleanConstructor;
|
|
434
432
|
default: any;
|
|
435
433
|
};
|
|
436
|
-
id: StringConstructor;
|
|
437
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
438
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
439
|
-
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
440
434
|
onSearch: {
|
|
441
435
|
type: PropType<(value: string) => void>;
|
|
442
436
|
};
|
|
437
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
443
438
|
fieldNames: {
|
|
444
439
|
type: PropType<FieldNames>;
|
|
445
440
|
};
|
|
@@ -449,6 +444,7 @@ declare function __VLS_template(): {
|
|
|
449
444
|
dropdownRender: {
|
|
450
445
|
type: PropType<DropdownRender>;
|
|
451
446
|
};
|
|
447
|
+
dropdownAlign: PropType<AlignType>;
|
|
452
448
|
switcherIcon: VueTypeValidableDef<any>;
|
|
453
449
|
loadData: {
|
|
454
450
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -489,6 +485,10 @@ declare function __VLS_template(): {
|
|
|
489
485
|
type: PropType<(option: Record<string, any>) => any>;
|
|
490
486
|
};
|
|
491
487
|
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: ButtonSize;
|
|
550
550
|
open: boolean;
|
|
551
551
|
multiple: boolean;
|
|
552
552
|
disabled: boolean;
|
|
553
|
+
autofocus: boolean;
|
|
553
554
|
virtual: boolean;
|
|
554
555
|
dropdownMatchSelectWidth: number | boolean;
|
|
556
|
+
status: "" | "error" | "warning";
|
|
557
|
+
'onUpdate:value': (value: any) => void;
|
|
558
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
555
559
|
loading: boolean;
|
|
556
560
|
bordered: boolean;
|
|
557
|
-
status: "" | "error" | "warning";
|
|
558
561
|
allowClear: boolean;
|
|
559
|
-
autofocus: boolean;
|
|
560
|
-
defaultOpen: boolean;
|
|
561
|
-
'onUpdate:value': (value: any) => void;
|
|
562
|
-
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
563
562
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
564
563
|
replaceFields: FieldNames;
|
|
565
564
|
treeCheckable: boolean;
|
|
566
565
|
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<ButtonSize>;
|
|
616
|
+
default: ButtonSize;
|
|
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<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
636
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
637
637
|
};
|
|
638
638
|
status: {
|
|
639
639
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -692,6 +692,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
692
692
|
default: any;
|
|
693
693
|
};
|
|
694
694
|
prefixCls: StringConstructor;
|
|
695
|
+
id: StringConstructor;
|
|
696
|
+
autofocus: BooleanConstructor;
|
|
695
697
|
getPopupContainer: {
|
|
696
698
|
type: PropType<RenderDOMFunc>;
|
|
697
699
|
};
|
|
@@ -703,10 +705,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
703
705
|
type: PropType<number | boolean>;
|
|
704
706
|
default: any;
|
|
705
707
|
};
|
|
706
|
-
loading: {
|
|
707
|
-
type: BooleanConstructor;
|
|
708
|
-
default: any;
|
|
709
|
-
};
|
|
710
708
|
defaultValue: {
|
|
711
709
|
type: PropType<any>;
|
|
712
710
|
};
|
|
@@ -714,24 +712,21 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
714
712
|
type: PropType<("click" | "focus")[]>;
|
|
715
713
|
};
|
|
716
714
|
transitionName: StringConstructor;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
allowClear: {
|
|
715
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
716
|
+
loading: {
|
|
720
717
|
type: BooleanConstructor;
|
|
721
718
|
default: any;
|
|
722
719
|
};
|
|
723
|
-
|
|
724
|
-
|
|
720
|
+
placeholder: VueTypeValidableDef<any>;
|
|
721
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
722
|
+
allowClear: {
|
|
725
723
|
type: BooleanConstructor;
|
|
726
724
|
default: any;
|
|
727
725
|
};
|
|
728
|
-
id: StringConstructor;
|
|
729
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
730
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
731
|
-
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
732
726
|
onSearch: {
|
|
733
727
|
type: PropType<(value: string) => void>;
|
|
734
728
|
};
|
|
729
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
735
730
|
fieldNames: {
|
|
736
731
|
type: PropType<FieldNames>;
|
|
737
732
|
};
|
|
@@ -741,6 +736,7 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
741
736
|
dropdownRender: {
|
|
742
737
|
type: PropType<DropdownRender>;
|
|
743
738
|
};
|
|
739
|
+
dropdownAlign: PropType<AlignType>;
|
|
744
740
|
switcherIcon: VueTypeValidableDef<any>;
|
|
745
741
|
loadData: {
|
|
746
742
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -781,6 +777,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
781
777
|
type: PropType<(option: Record<string, any>) => any>;
|
|
782
778
|
};
|
|
783
779
|
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: ButtonSize;
|
|
842
842
|
open: boolean;
|
|
843
843
|
multiple: boolean;
|
|
844
844
|
disabled: boolean;
|
|
845
|
+
autofocus: boolean;
|
|
845
846
|
virtual: boolean;
|
|
846
847
|
dropdownMatchSelectWidth: number | boolean;
|
|
848
|
+
status: "" | "error" | "warning";
|
|
849
|
+
'onUpdate:value': (value: any) => void;
|
|
850
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
847
851
|
loading: boolean;
|
|
848
852
|
bordered: boolean;
|
|
849
|
-
status: "" | "error" | "warning";
|
|
850
853
|
allowClear: boolean;
|
|
851
|
-
autofocus: boolean;
|
|
852
|
-
defaultOpen: boolean;
|
|
853
|
-
'onUpdate:value': (value: any) => void;
|
|
854
|
-
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
855
854
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
856
855
|
replaceFields: FieldNames;
|
|
857
856
|
treeCheckable: boolean;
|
|
858
857
|
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<ButtonSize>;
|
|
893
|
+
default: ButtonSize;
|
|
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<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
913
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
914
914
|
};
|
|
915
915
|
status: {
|
|
916
916
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -969,6 +969,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
969
969
|
default: any;
|
|
970
970
|
};
|
|
971
971
|
prefixCls: StringConstructor;
|
|
972
|
+
id: StringConstructor;
|
|
973
|
+
autofocus: BooleanConstructor;
|
|
972
974
|
getPopupContainer: {
|
|
973
975
|
type: PropType<RenderDOMFunc>;
|
|
974
976
|
};
|
|
@@ -980,10 +982,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
980
982
|
type: PropType<number | boolean>;
|
|
981
983
|
default: any;
|
|
982
984
|
};
|
|
983
|
-
loading: {
|
|
984
|
-
type: BooleanConstructor;
|
|
985
|
-
default: any;
|
|
986
|
-
};
|
|
987
985
|
defaultValue: {
|
|
988
986
|
type: PropType<any>;
|
|
989
987
|
};
|
|
@@ -991,24 +989,21 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
991
989
|
type: PropType<("click" | "focus")[]>;
|
|
992
990
|
};
|
|
993
991
|
transitionName: StringConstructor;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
allowClear: {
|
|
992
|
+
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
993
|
+
loading: {
|
|
997
994
|
type: BooleanConstructor;
|
|
998
995
|
default: any;
|
|
999
996
|
};
|
|
1000
|
-
|
|
1001
|
-
|
|
997
|
+
placeholder: VueTypeValidableDef<any>;
|
|
998
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
999
|
+
allowClear: {
|
|
1002
1000
|
type: BooleanConstructor;
|
|
1003
1001
|
default: any;
|
|
1004
1002
|
};
|
|
1005
|
-
id: StringConstructor;
|
|
1006
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
1007
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
1008
|
-
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
1009
1003
|
onSearch: {
|
|
1010
1004
|
type: PropType<(value: string) => void>;
|
|
1011
1005
|
};
|
|
1006
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
1012
1007
|
fieldNames: {
|
|
1013
1008
|
type: PropType<FieldNames>;
|
|
1014
1009
|
};
|
|
@@ -1018,6 +1013,7 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
1018
1013
|
dropdownRender: {
|
|
1019
1014
|
type: PropType<DropdownRender>;
|
|
1020
1015
|
};
|
|
1016
|
+
dropdownAlign: PropType<AlignType>;
|
|
1021
1017
|
switcherIcon: VueTypeValidableDef<any>;
|
|
1022
1018
|
loadData: {
|
|
1023
1019
|
type: PropType<(dataNode: LegacyDataNode) => Promise<unknown>>;
|
|
@@ -1058,6 +1054,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
1058
1054
|
type: PropType<(option: Record<string, any>) => any>;
|
|
1059
1055
|
};
|
|
1060
1056
|
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: ButtonSize;
|
|
1119
1119
|
open: boolean;
|
|
1120
1120
|
multiple: boolean;
|
|
1121
1121
|
disabled: boolean;
|
|
1122
|
+
autofocus: boolean;
|
|
1122
1123
|
virtual: boolean;
|
|
1123
1124
|
dropdownMatchSelectWidth: number | boolean;
|
|
1125
|
+
status: "" | "error" | "warning";
|
|
1126
|
+
'onUpdate:value': (value: any) => void;
|
|
1127
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
1124
1128
|
loading: boolean;
|
|
1125
1129
|
bordered: boolean;
|
|
1126
|
-
status: "" | "error" | "warning";
|
|
1127
1130
|
allowClear: boolean;
|
|
1128
|
-
autofocus: boolean;
|
|
1129
|
-
defaultOpen: boolean;
|
|
1130
|
-
'onUpdate:value': (value: any) => void;
|
|
1131
|
-
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
1132
1131
|
filterTreeNode: boolean | ((inputValue: string, treeNode: DefaultOptionType) => boolean);
|
|
1133
1132
|
replaceFields: FieldNames;
|
|
1134
1133
|
treeCheckable: boolean;
|
|
1135
1134
|
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:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:!0},dropdownMatchSelectWidth:{default:!0},defaultValue:{},showAction:{},transitionName:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:void 0},onSearch:{},notFoundContent:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},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:{},defaultOpen:{type:Boolean,default:void 0},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?:
|
|
11
|
+
children?: 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?:
|
|
18
|
+
children?: 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?:
|
|
27
|
+
children?: 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?:
|
|
34
|
+
children?: 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, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, 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,7 +7,8 @@ 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 {
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
declare function __VLS_template(): {
|
|
13
14
|
attrs: Partial<{}>;
|
|
@@ -211,8 +212,8 @@ declare function __VLS_template(): {
|
|
|
211
212
|
default: string | string[];
|
|
212
213
|
};
|
|
213
214
|
size: {
|
|
214
|
-
type: PropType<
|
|
215
|
-
default:
|
|
215
|
+
type: PropType<SizeType>;
|
|
216
|
+
default: SizeType;
|
|
216
217
|
};
|
|
217
218
|
disabled: {
|
|
218
219
|
type: BooleanConstructor;
|
|
@@ -239,7 +240,7 @@ declare function __VLS_template(): {
|
|
|
239
240
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
240
241
|
};
|
|
241
242
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
242
|
-
size:
|
|
243
|
+
size: SizeType;
|
|
243
244
|
onSubmit: (e: Event) => void;
|
|
244
245
|
disabled: boolean;
|
|
245
246
|
validateTrigger: string | string[];
|
|
@@ -531,8 +532,8 @@ declare function __VLS_template(): {
|
|
|
531
532
|
default: string | string[];
|
|
532
533
|
};
|
|
533
534
|
size: {
|
|
534
|
-
type: PropType<
|
|
535
|
-
default:
|
|
535
|
+
type: PropType<SizeType>;
|
|
536
|
+
default: SizeType;
|
|
536
537
|
};
|
|
537
538
|
disabled: {
|
|
538
539
|
type: BooleanConstructor;
|
|
@@ -559,7 +560,7 @@ declare function __VLS_template(): {
|
|
|
559
560
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
560
561
|
};
|
|
561
562
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
562
|
-
size:
|
|
563
|
+
size: SizeType;
|
|
563
564
|
onSubmit: (e: Event) => void;
|
|
564
565
|
disabled: boolean;
|
|
565
566
|
validateTrigger: string | string[];
|
|
@@ -871,8 +872,8 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
871
872
|
default: string | string[];
|
|
872
873
|
};
|
|
873
874
|
size: {
|
|
874
|
-
type: PropType<
|
|
875
|
-
default:
|
|
875
|
+
type: PropType<SizeType>;
|
|
876
|
+
default: SizeType;
|
|
876
877
|
};
|
|
877
878
|
disabled: {
|
|
878
879
|
type: BooleanConstructor;
|
|
@@ -899,7 +900,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
899
900
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
900
901
|
};
|
|
901
902
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
902
|
-
size:
|
|
903
|
+
size: SizeType;
|
|
903
904
|
onSubmit: (e: Event) => void;
|
|
904
905
|
disabled: boolean;
|
|
905
906
|
validateTrigger: string | string[];
|
|
@@ -1191,8 +1192,8 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
1191
1192
|
default: string | string[];
|
|
1192
1193
|
};
|
|
1193
1194
|
size: {
|
|
1194
|
-
type: PropType<
|
|
1195
|
-
default:
|
|
1195
|
+
type: PropType<SizeType>;
|
|
1196
|
+
default: SizeType;
|
|
1196
1197
|
};
|
|
1197
1198
|
disabled: {
|
|
1198
1199
|
type: BooleanConstructor;
|
|
@@ -1219,7 +1220,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
1219
1220
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1220
1221
|
};
|
|
1221
1222
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1222
|
-
size:
|
|
1223
|
+
size: SizeType;
|
|
1223
1224
|
onSubmit: (e: Event) => void;
|
|
1224
1225
|
disabled: boolean;
|
|
1225
1226
|
validateTrigger: string | string[];
|