@aplus-frontend/ui 0.1.5 → 0.1.6
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.d.ts +3 -30
- package/es/src/ap-action/item/index.vue.d.ts +3 -30
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +10 -39
- package/es/src/ap-action/item-modal/index.vue.d.ts +6 -33
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +7 -33
- package/es/src/ap-custom-column/column-select.vue.d.ts +5 -14
- package/es/src/ap-custom-column/column-select.vue.mjs +32 -32
- package/es/src/ap-custom-column/custom-column.vue.d.ts +5 -14
- package/es/src/ap-custom-column/custom-column.vue.mjs +46 -46
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -11
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +4 -13
- package/es/src/ap-download/ap-download.vue.d.ts +3 -28
- package/es/src/ap-field/checkbox/index.vue.d.ts +40 -31
- package/es/src/ap-field/date/index.vue.d.ts +19 -64
- package/es/src/ap-field/date-range/index.vue.d.ts +20 -66
- package/es/src/ap-field/number/index.vue.d.ts +138 -42
- package/es/src/ap-field/radio/index.vue.d.ts +51 -31
- package/es/src/ap-field/rate/index.vue.d.ts +46 -39
- package/es/src/ap-field/segmented/index.vue.d.ts +47 -32
- package/es/src/ap-field/select/index.vue.d.ts +192 -59
- package/es/src/ap-field/select/index.vue.mjs +10 -8
- package/es/src/ap-field/slider/index.vue.d.ts +115 -40
- package/es/src/ap-field/switch/index.vue.d.ts +60 -35
- package/es/src/ap-field/text/index.vue.d.ts +105 -38
- package/es/src/ap-field/text/password.vue.d.ts +113 -45
- package/es/src/ap-field/text-area/index.vue.d.ts +117 -38
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +50 -32
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +30 -28
- package/es/src/ap-form/ap-form-item.vue.d.ts +128 -38
- package/es/src/ap-form/ap-form-list.vue.d.ts +2 -11
- package/es/src/ap-form/ap-form.vue.d.ts +238 -36
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +7 -37
- package/es/src/ap-form/items/date/index.vue.d.ts +131 -37
- package/es/src/ap-form/items/date-range/index.vue.d.ts +131 -37
- package/es/src/ap-form/items/number/index.vue.d.ts +132 -38
- package/es/src/ap-form/items/radio/index.vue.d.ts +8 -38
- package/es/src/ap-form/items/select/index.vue.d.ts +132 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +7 -39
- package/es/src/ap-form/items/text/index.vue.d.ts +132 -38
- package/es/src/ap-form/items/text/password.vue.d.ts +132 -38
- package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -38
- package/es/src/ap-form/modal-form/index.vue.d.ts +17 -52
- package/es/src/ap-form/search-form/index.vue.d.ts +254 -50
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +3 -26
- package/es/src/ap-list/index.vue.d.ts +3 -3
- package/es/src/ap-table/ap-table.vue.d.ts +2 -2
- package/es/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/es/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/es/src/ap-table/constants.d.ts +4015 -11858
- package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -28
- package/es/src/ap-tag/ap-tag-group.vue.mjs +78 -78
- package/es/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/es/src/ap-upload/apUpload.vue.d.ts +23 -48
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -2
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/es/src/base-button/button.vue.d.ts +3 -24
- package/es/src/base-button/index.d.ts +7 -110
- package/es/src/base-button/modal-button.vue.d.ts +8 -14
- package/es/src/base-button/pop-confirm-button.vue.d.ts +7 -10
- package/es/src/basic/arrow.vue.d.ts +2 -11
- package/es/src/basic/help.vue.d.ts +324 -50
- package/es/src/basic/index.d.ts +667 -202
- package/es/src/basic/title.vue.d.ts +3 -24
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -21
- package/es/src/business/ap-batch-action/interface.d.ts +10 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -11
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +34 -31
- package/es/src/business/ap-label/ApLabel.vue.d.ts +43 -32
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +23 -23
- package/es/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +3 -30
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +6 -73
- package/es/src/business/index.d.ts +196 -927
- package/es/src/business/title/ApTitle.vue.d.ts +3 -32
- package/es/src/button/button.vue.d.ts +2 -11
- package/es/src/button/index.d.ts +16 -32
- package/es/src/check-card/group.vue.d.ts +17 -41
- package/es/src/check-card/index.vue.d.ts +20 -35
- package/es/src/config-provider/config-provider.d.ts +41 -137
- package/es/src/config-provider/index.d.ts +161 -545
- package/es/src/container/collapse/header.vue.d.ts +11 -13
- package/es/src/container/collapse/index.vue.d.ts +11 -40
- package/es/src/container/index.d.ts +40 -119
- package/es/src/container/scroll-container.vue.d.ts +3 -12
- package/es/src/count-down/button.vue.d.ts +3 -24
- package/es/src/count-down/index.d.ts +12 -111
- package/es/src/count-down/input.vue.d.ts +3 -24
- package/es/src/cropper/cropper-avatar.vue.d.ts +6 -33
- package/es/src/cropper/cropper-image.vue.d.ts +5 -36
- package/es/src/cropper/cropper-modal.vue.d.ts +13 -21
- package/es/src/cropper/index.d.ts +24 -269
- package/es/src/description/description.vue.d.ts +15 -45
- package/es/src/description/index.d.ts +51 -171
- package/es/src/dropdown/dropdown.vue.d.ts +5 -30
- package/es/src/dropdown/index.d.ts +12 -76
- package/es/src/editable-table/form-item.vue.d.ts +4 -4
- package/es/src/editable-table/index.vue.d.ts +6 -7
- package/es/src/hooks/useControllableValue.d.ts +2 -2
- package/es/src/icon/icon.vue.d.ts +3 -29
- package/es/src/icon/index.d.ts +12 -159
- package/es/src/icon/svg-icon.vue.d.ts +3 -28
- package/es/src/icon-picker/icon-picker.vue.d.ts +5 -38
- package/es/src/icon-picker/index.d.ts +12 -139
- package/es/src/modal/basic.vue.d.ts +147 -117
- package/es/src/modal/components/modal-close.vue.d.ts +5 -26
- package/es/src/modal/components/modal-footer.vue.d.ts +146 -116
- package/es/src/modal/components/modal-header.vue.d.ts +2 -11
- package/es/src/modal/components/modal-wrapper.vue.d.ts +19 -43
- package/es/src/modal/components/modal.d.ts +145 -115
- package/es/src/modal/hooks/use-moda-full-screen.d.ts +1 -1
- package/es/src/modal/index.d.ts +287 -462
- package/es/src/pro-form/components/api-cascader.vue.d.ts +5 -38
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +5 -36
- package/es/src/pro-form/components/api-select.vue.d.ts +5 -38
- package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -40
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +5 -36
- package/es/src/pro-form/components/api-tree.vue.d.ts +5 -28
- package/es/src/pro-form/components/form-action.vue.d.ts +5 -38
- package/es/src/pro-form/components/form-item.vue.d.ts +14 -34
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +3 -24
- package/es/src/pro-form/hooks/use-break-point.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.d.ts +6 -57
- package/es/src/pro-form/table-form-inner.vue.d.ts +5 -34
- package/es/src/pro-form/table-form.vue.d.ts +4 -29
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +6 -9
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +96 -26
- package/es/src/pro-table/components/header-cell.vue.d.ts +726 -9
- package/es/src/pro-table/components/settings/column-setting.vue.d.ts +3 -3
- package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
- package/es/src/pro-table/components/settings/index.vue.d.ts +8 -11
- package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
- package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-action.vue.d.ts +10 -24
- package/es/src/pro-table/components/table-footer.vue.d.ts +5 -30
- package/es/src/pro-table/components/table-header.vue.d.ts +15 -31
- package/es/src/pro-table/components/table-image.vue.d.ts +3 -32
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +5 -26
- package/es/src/pro-table/components/table-title.vue.d.ts +7 -13
- package/es/src/pro-table/pro-table.vue.d.ts +8 -61
- package/es/src/prompt/dialog.vue.d.ts +2 -11
- package/es/src/scroll-bar/bar-item.d.ts +10 -9
- package/es/src/scroll-bar/index.d.ts +12 -135
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +5 -36
- package/es/src/strength-meter/index.d.ts +12 -55
- package/es/src/strength-meter/strength-meter.vue.d.ts +5 -26
- package/es/src/tests/wrapper.d.ts +3 -6
- package/es/src/transition/collapse-transition.vue.d.ts +2 -2
- package/es/src/transition/create-transition.d.ts +13 -25
- package/es/src/transition/index.d.ts +88 -193
- package/es/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/es/src/work-order-modal/help-message.vue2.mjs +19 -19
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
- package/lib/src/ap-action/group/index.vue.d.ts +3 -30
- package/lib/src/ap-action/item/index.vue.d.ts +3 -30
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +10 -39
- package/lib/src/ap-action/item-modal/index.vue.d.ts +6 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +7 -33
- package/lib/src/ap-custom-column/column-select.vue.d.ts +5 -14
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.d.ts +5 -14
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -11
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +4 -13
- package/lib/src/ap-download/ap-download.vue.d.ts +3 -28
- package/lib/src/ap-field/checkbox/index.vue.d.ts +40 -31
- package/lib/src/ap-field/date/index.vue.d.ts +19 -64
- package/lib/src/ap-field/date-range/index.vue.d.ts +20 -66
- package/lib/src/ap-field/number/index.vue.d.ts +138 -42
- package/lib/src/ap-field/radio/index.vue.d.ts +51 -31
- package/lib/src/ap-field/rate/index.vue.d.ts +46 -39
- package/lib/src/ap-field/segmented/index.vue.d.ts +47 -32
- package/lib/src/ap-field/select/index.vue.d.ts +192 -59
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +115 -40
- package/lib/src/ap-field/switch/index.vue.d.ts +60 -35
- package/lib/src/ap-field/text/index.vue.d.ts +105 -38
- package/lib/src/ap-field/text/password.vue.d.ts +113 -45
- package/lib/src/ap-field/text-area/index.vue.d.ts +117 -38
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +50 -32
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +128 -38
- package/lib/src/ap-form/ap-form-list.vue.d.ts +2 -11
- package/lib/src/ap-form/ap-form.vue.d.ts +238 -36
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +7 -37
- package/lib/src/ap-form/items/date/index.vue.d.ts +131 -37
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +131 -37
- package/lib/src/ap-form/items/number/index.vue.d.ts +132 -38
- package/lib/src/ap-form/items/radio/index.vue.d.ts +8 -38
- package/lib/src/ap-form/items/select/index.vue.d.ts +132 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +7 -39
- package/lib/src/ap-form/items/text/index.vue.d.ts +132 -38
- package/lib/src/ap-form/items/text/password.vue.d.ts +132 -38
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -38
- package/lib/src/ap-form/modal-form/index.vue.d.ts +17 -52
- package/lib/src/ap-form/search-form/index.vue.d.ts +254 -50
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +3 -26
- package/lib/src/ap-list/index.vue.d.ts +3 -3
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -2
- package/lib/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/lib/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/lib/src/ap-table/constants.d.ts +4015 -11858
- package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -28
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/lib/src/ap-upload/apUpload.vue.d.ts +23 -48
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/lib/src/base-button/button.vue.d.ts +3 -24
- package/lib/src/base-button/index.d.ts +7 -110
- package/lib/src/base-button/modal-button.vue.d.ts +8 -14
- package/lib/src/base-button/pop-confirm-button.vue.d.ts +7 -10
- package/lib/src/basic/arrow.vue.d.ts +2 -11
- package/lib/src/basic/help.vue.d.ts +324 -50
- package/lib/src/basic/index.d.ts +667 -202
- package/lib/src/basic/title.vue.d.ts +3 -24
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -21
- package/lib/src/business/ap-batch-action/interface.d.ts +10 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -11
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +34 -31
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +43 -32
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +3 -30
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +6 -73
- package/lib/src/business/index.d.ts +196 -927
- package/lib/src/business/title/ApTitle.vue.d.ts +3 -32
- package/lib/src/button/button.vue.d.ts +2 -11
- package/lib/src/button/index.d.ts +16 -32
- package/lib/src/check-card/group.vue.d.ts +17 -41
- package/lib/src/check-card/index.vue.d.ts +20 -35
- package/lib/src/config-provider/config-provider.d.ts +41 -137
- package/lib/src/config-provider/index.d.ts +161 -545
- package/lib/src/container/collapse/header.vue.d.ts +11 -13
- package/lib/src/container/collapse/index.vue.d.ts +11 -40
- package/lib/src/container/index.d.ts +40 -119
- package/lib/src/container/scroll-container.vue.d.ts +3 -12
- package/lib/src/count-down/button.vue.d.ts +3 -24
- package/lib/src/count-down/index.d.ts +12 -111
- package/lib/src/count-down/input.vue.d.ts +3 -24
- package/lib/src/cropper/cropper-avatar.vue.d.ts +6 -33
- package/lib/src/cropper/cropper-image.vue.d.ts +5 -36
- package/lib/src/cropper/cropper-modal.vue.d.ts +13 -21
- package/lib/src/cropper/index.d.ts +24 -269
- package/lib/src/description/description.vue.d.ts +15 -45
- package/lib/src/description/index.d.ts +51 -171
- package/lib/src/dropdown/dropdown.vue.d.ts +5 -30
- package/lib/src/dropdown/index.d.ts +12 -76
- package/lib/src/editable-table/form-item.vue.d.ts +4 -4
- package/lib/src/editable-table/index.vue.d.ts +6 -7
- package/lib/src/hooks/useControllableValue.d.ts +2 -2
- package/lib/src/icon/icon.vue.d.ts +3 -29
- package/lib/src/icon/index.d.ts +12 -159
- package/lib/src/icon/svg-icon.vue.d.ts +3 -28
- package/lib/src/icon-picker/icon-picker.vue.d.ts +5 -38
- package/lib/src/icon-picker/index.d.ts +12 -139
- package/lib/src/modal/basic.vue.d.ts +147 -117
- package/lib/src/modal/components/modal-close.vue.d.ts +5 -26
- package/lib/src/modal/components/modal-footer.vue.d.ts +146 -116
- package/lib/src/modal/components/modal-header.vue.d.ts +2 -11
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +19 -43
- package/lib/src/modal/components/modal.d.ts +145 -115
- package/lib/src/modal/hooks/use-moda-full-screen.d.ts +1 -1
- package/lib/src/modal/index.d.ts +287 -462
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +5 -38
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +5 -36
- package/lib/src/pro-form/components/api-select.vue.d.ts +5 -38
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -40
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +5 -36
- package/lib/src/pro-form/components/api-tree.vue.d.ts +5 -28
- package/lib/src/pro-form/components/form-action.vue.d.ts +5 -38
- package/lib/src/pro-form/components/form-item.vue.d.ts +14 -34
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +3 -24
- package/lib/src/pro-form/hooks/use-break-point.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +6 -57
- package/lib/src/pro-form/table-form-inner.vue.d.ts +5 -34
- package/lib/src/pro-form/table-form.vue.d.ts +4 -29
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +6 -9
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +96 -26
- package/lib/src/pro-table/components/header-cell.vue.d.ts +726 -9
- package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +3 -3
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
- package/lib/src/pro-table/components/settings/index.vue.d.ts +8 -11
- package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
- package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-action.vue.d.ts +10 -24
- package/lib/src/pro-table/components/table-footer.vue.d.ts +5 -30
- package/lib/src/pro-table/components/table-header.vue.d.ts +15 -31
- package/lib/src/pro-table/components/table-image.vue.d.ts +3 -32
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +5 -26
- package/lib/src/pro-table/components/table-title.vue.d.ts +7 -13
- package/lib/src/pro-table/pro-table.vue.d.ts +8 -61
- package/lib/src/prompt/dialog.vue.d.ts +2 -11
- package/lib/src/scroll-bar/bar-item.d.ts +10 -9
- package/lib/src/scroll-bar/index.d.ts +12 -135
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +5 -36
- package/lib/src/strength-meter/index.d.ts +12 -55
- package/lib/src/strength-meter/strength-meter.vue.d.ts +5 -26
- package/lib/src/tests/wrapper.d.ts +3 -6
- package/lib/src/transition/collapse-transition.vue.d.ts +2 -2
- package/lib/src/transition/create-transition.d.ts +13 -25
- package/lib/src/transition/index.d.ts +88 -193
- package/lib/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
- package/package.json +2 -2
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ApFieldRateProps, FieldMode } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
|
|
4
|
+
import { Direction } from 'ant-design-vue/es/config-provider';
|
|
5
|
+
import { FocusEventHandler, KeyboardEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
3
6
|
declare function focus(): void;
|
|
4
7
|
declare function blur(): void;
|
|
5
8
|
declare function __VLS_template(): Readonly<{
|
|
@@ -7,30 +10,51 @@ declare function __VLS_template(): Readonly<{
|
|
|
7
10
|
}> & {
|
|
8
11
|
character: any;
|
|
9
12
|
};
|
|
10
|
-
declare const __VLS_component: DefineComponent<
|
|
11
|
-
mode: string;
|
|
12
|
-
allowClear: boolean;
|
|
13
|
-
allowHalf: boolean;
|
|
14
|
-
autofocus: boolean;
|
|
15
|
-
count: number;
|
|
16
|
-
character: undefined;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
}>, {
|
|
13
|
+
declare const __VLS_component: DefineComponent<ApFieldRateProps, {
|
|
19
14
|
focus: typeof focus;
|
|
20
15
|
blur: typeof blur;
|
|
21
|
-
},
|
|
16
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
17
|
"update:value": (...args: any[]) => void;
|
|
23
|
-
}, string, PublicProps, Readonly<
|
|
24
|
-
mode
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
}, string, PublicProps, Readonly<{
|
|
19
|
+
mode?: FieldMode;
|
|
20
|
+
class?: unknown;
|
|
21
|
+
style?: unknown;
|
|
22
|
+
} & Partial< ExtractPropTypes<{
|
|
23
|
+
prefixCls: StringConstructor;
|
|
24
|
+
count: NumberConstructor;
|
|
25
|
+
value: NumberConstructor;
|
|
26
|
+
allowHalf: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: any;
|
|
29
|
+
};
|
|
30
|
+
allowClear: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
tooltips: PropType<string[]>;
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
39
|
+
character: VueTypeValidableDef<any>;
|
|
40
|
+
autofocus: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
tabindex: VueTypeDef<string | number>;
|
|
45
|
+
direction: PropType<Direction>;
|
|
46
|
+
id: StringConstructor;
|
|
47
|
+
onChange: PropType<(value: number) => void>;
|
|
48
|
+
onHoverChange: PropType<(value: number) => void>;
|
|
49
|
+
'onUpdate:value': PropType<(value: number) => void>;
|
|
50
|
+
onFocus: PropType<FocusEventHandler>;
|
|
51
|
+
onBlur: PropType<FocusEventHandler>;
|
|
52
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
53
|
+
}>> & {
|
|
54
|
+
defaultValue?: number;
|
|
55
|
+
} & {
|
|
32
56
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
}
|
|
57
|
+
}>, {
|
|
34
58
|
mode: FieldMode;
|
|
35
59
|
disabled: boolean;
|
|
36
60
|
autofocus: boolean;
|
|
@@ -38,28 +62,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
38
62
|
count: number;
|
|
39
63
|
allowHalf: boolean;
|
|
40
64
|
character: any;
|
|
41
|
-
}, {}>;
|
|
65
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
|
|
42
66
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
43
67
|
export default _default;
|
|
44
|
-
type __VLS_WithDefaults<P, D> = {
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_Prettify<T> = {
|
|
50
|
-
[K in keyof T]: T[K];
|
|
51
|
-
} & {};
|
|
52
68
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
69
|
new (): {
|
|
54
70
|
$slots: S;
|
|
55
71
|
};
|
|
56
72
|
};
|
|
57
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
|
-
type __VLS_TypePropsToOption<T> = {
|
|
59
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
60
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
61
|
-
} : {
|
|
62
|
-
type: PropType<T[K]>;
|
|
63
|
-
required: true;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ApFieldSegmentedProps, FieldMode } from '../interface';
|
|
2
|
-
import {
|
|
2
|
+
import { SegmentedProps } from 'ant-design-vue';
|
|
3
|
+
import { SegmentedOption, segmentedSize, SegmentedValue } from 'ant-design-vue/es/segmented/src/segmented';
|
|
4
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, ComponentProvideOptions } from 'vue';
|
|
3
5
|
declare function __VLS_template(): {
|
|
4
6
|
label?(_: {
|
|
5
7
|
value: string | number;
|
|
@@ -9,47 +11,60 @@ declare function __VLS_template(): {
|
|
|
9
11
|
className?: string;
|
|
10
12
|
}): any;
|
|
11
13
|
};
|
|
12
|
-
declare const __VLS_component: DefineComponent<
|
|
13
|
-
mode: string;
|
|
14
|
-
emptyText: string;
|
|
15
|
-
block: undefined;
|
|
16
|
-
disabled: undefined;
|
|
17
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14
|
+
declare const __VLS_component: DefineComponent<ApFieldSegmentedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
15
|
"update:value": (...args: any[]) => void;
|
|
19
|
-
}, string, PublicProps, Readonly<
|
|
20
|
-
mode
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
}, string, PublicProps, Readonly<{
|
|
17
|
+
mode?: FieldMode;
|
|
18
|
+
class?: unknown;
|
|
19
|
+
style?: unknown;
|
|
20
|
+
} & Partial< ExtractPropTypes<{
|
|
21
|
+
prefixCls: StringConstructor;
|
|
22
|
+
options: {
|
|
23
|
+
type: PropType<(string | number | SegmentedOption)[]>;
|
|
24
|
+
default: (string | number | SegmentedOption)[];
|
|
25
|
+
};
|
|
26
|
+
block: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<segmentedSize>;
|
|
36
|
+
default: segmentedSize;
|
|
37
|
+
};
|
|
38
|
+
value: {
|
|
39
|
+
required: boolean;
|
|
40
|
+
type: PropType<SegmentedValue>;
|
|
41
|
+
default: SegmentedValue;
|
|
42
|
+
};
|
|
43
|
+
motionName: StringConstructor;
|
|
44
|
+
onChange: {
|
|
45
|
+
type: PropType<(val: SegmentedValue) => void>;
|
|
46
|
+
default: (val: SegmentedValue) => void;
|
|
47
|
+
};
|
|
48
|
+
'onUpdate:value': {
|
|
49
|
+
type: PropType<(val: SegmentedValue) => void>;
|
|
50
|
+
default: (val: SegmentedValue) => void;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
emptyText?: string;
|
|
54
|
+
defaultValue?: string | number;
|
|
55
|
+
request?: () => Promise<SegmentedProps["options"]>;
|
|
56
|
+
} & {
|
|
25
57
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}
|
|
58
|
+
}>, {
|
|
27
59
|
mode: FieldMode;
|
|
28
60
|
disabled: boolean;
|
|
29
61
|
block: boolean;
|
|
30
62
|
emptyText: string;
|
|
31
|
-
}, {}>;
|
|
63
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
|
|
32
64
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
33
65
|
export default _default;
|
|
34
|
-
type __VLS_WithDefaults<P, D> = {
|
|
35
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
-
default: D[K];
|
|
37
|
-
}> : P[K];
|
|
38
|
-
};
|
|
39
|
-
type __VLS_Prettify<T> = {
|
|
40
|
-
[K in keyof T]: T[K];
|
|
41
|
-
} & {};
|
|
42
66
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
67
|
new (): {
|
|
44
68
|
$slots: S;
|
|
45
69
|
};
|
|
46
70
|
};
|
|
47
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
-
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
-
} : {
|
|
52
|
-
type: PropType<T[K]>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { DefaultOptionType, SelectValue, LabeledValue } from 'ant-design-vue/es/select';
|
|
1
2
|
import { ApFieldSelectProps, FieldMode } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
|
+
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
6
|
+
import { VueNode } from 'ant-design-vue/es/_util/type';
|
|
7
|
+
import { SelectHandler, FieldNames, FilterFunc } from 'ant-design-vue/es/vc-select/Select';
|
|
8
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from 'ant-design-vue/es/vc-select/BaseSelect';
|
|
9
|
+
import { AlignType } from 'ant-design-vue/es/vc-trigger/interface';
|
|
10
|
+
import { SelectProps } from 'ant-design-vue';
|
|
3
11
|
type ApFieldSelectSlots = {
|
|
4
12
|
notFoundContent: any;
|
|
5
13
|
suffixIcon: any;
|
|
@@ -18,51 +26,193 @@ declare function requestIfNeeded(clear?: boolean): Promise<void>;
|
|
|
18
26
|
declare function focus(): void;
|
|
19
27
|
declare function blur(): void;
|
|
20
28
|
declare function __VLS_template(): Readonly<ApFieldSelectSlots> & ApFieldSelectSlots;
|
|
21
|
-
declare const __VLS_component: DefineComponent<
|
|
22
|
-
mode: string;
|
|
23
|
-
emptyText: string;
|
|
24
|
-
bordered: undefined;
|
|
25
|
-
open: undefined;
|
|
26
|
-
disabled: undefined;
|
|
27
|
-
autofocus: undefined;
|
|
28
|
-
virtual: undefined;
|
|
29
|
-
loading: undefined;
|
|
30
|
-
allowClear: boolean;
|
|
31
|
-
showSearch: undefined;
|
|
32
|
-
defaultOpen: undefined;
|
|
33
|
-
showArrow: undefined;
|
|
34
|
-
autoClearSearchValue: undefined;
|
|
35
|
-
defaultActiveFirstOption: undefined;
|
|
36
|
-
labelInValue: undefined;
|
|
37
|
-
multiple: undefined;
|
|
38
|
-
searchMode: string;
|
|
39
|
-
}>, {
|
|
29
|
+
declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
40
30
|
focus: typeof focus;
|
|
41
31
|
blur: typeof blur;
|
|
42
32
|
request: typeof requestIfNeeded;
|
|
43
|
-
},
|
|
33
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
44
34
|
"update:value": (...args: any[]) => void;
|
|
45
|
-
}, string, PublicProps, Readonly<
|
|
46
|
-
mode
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
35
|
+
}, string, PublicProps, Readonly<{
|
|
36
|
+
mode?: FieldMode;
|
|
37
|
+
class?: unknown;
|
|
38
|
+
style?: unknown;
|
|
39
|
+
} & Omit<Partial< ExtractPropTypes<{
|
|
40
|
+
value: {
|
|
41
|
+
type: PropType<SelectValue>;
|
|
42
|
+
default: SelectValue;
|
|
43
|
+
};
|
|
44
|
+
defaultValue: {
|
|
45
|
+
type: PropType<SelectValue>;
|
|
46
|
+
default: SelectValue;
|
|
47
|
+
};
|
|
48
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
49
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
50
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
51
|
+
size: {
|
|
52
|
+
type: PropType<ButtonSize>;
|
|
53
|
+
default: ButtonSize;
|
|
54
|
+
};
|
|
55
|
+
mode: {
|
|
56
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
57
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
58
|
+
};
|
|
59
|
+
bordered: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
transitionName: StringConstructor;
|
|
64
|
+
choiceTransitionName: {
|
|
65
|
+
type: PropType<"">;
|
|
66
|
+
default: "";
|
|
67
|
+
};
|
|
68
|
+
popupClassName: StringConstructor;
|
|
69
|
+
dropdownClassName: StringConstructor;
|
|
70
|
+
placement: {
|
|
71
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
72
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
73
|
+
};
|
|
74
|
+
status: {
|
|
75
|
+
type: PropType<"" | "error" | "warning">;
|
|
76
|
+
default: "" | "error" | "warning";
|
|
77
|
+
};
|
|
78
|
+
'onUpdate:value': {
|
|
79
|
+
type: PropType<(val: SelectValue) => void>;
|
|
80
|
+
default: (val: SelectValue) => void;
|
|
81
|
+
};
|
|
82
|
+
children: PropType< VueNode[]>;
|
|
83
|
+
listHeight: NumberConstructor;
|
|
84
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
85
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
86
|
+
tabindex: NumberConstructor;
|
|
87
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
88
|
+
onFocus: {
|
|
89
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
90
|
+
};
|
|
91
|
+
onBlur: {
|
|
92
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
93
|
+
};
|
|
94
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
95
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
96
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
97
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
98
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
99
|
+
open: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: any;
|
|
102
|
+
};
|
|
103
|
+
animation: StringConstructor;
|
|
104
|
+
direction: {
|
|
105
|
+
type: PropType<"rtl" | "ltr">;
|
|
106
|
+
};
|
|
107
|
+
disabled: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: any;
|
|
110
|
+
};
|
|
111
|
+
prefixCls: StringConstructor;
|
|
112
|
+
id: StringConstructor;
|
|
113
|
+
autofocus: BooleanConstructor;
|
|
114
|
+
getPopupContainer: {
|
|
115
|
+
type: PropType<RenderDOMFunc>;
|
|
116
|
+
};
|
|
117
|
+
virtual: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: any;
|
|
120
|
+
};
|
|
121
|
+
dropdownMatchSelectWidth: {
|
|
122
|
+
type: PropType<number | boolean>;
|
|
123
|
+
default: any;
|
|
124
|
+
};
|
|
125
|
+
options: PropType<DefaultOptionType[]>;
|
|
126
|
+
showAction: {
|
|
127
|
+
type: PropType<("click" | "focus")[]>;
|
|
128
|
+
};
|
|
129
|
+
placeholder: VueTypeValidableDef<any>;
|
|
130
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
131
|
+
loading: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: any;
|
|
134
|
+
};
|
|
135
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
136
|
+
allowClear: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: any;
|
|
139
|
+
};
|
|
140
|
+
onSearch: PropType<(value: string) => void>;
|
|
141
|
+
fieldNames: PropType<FieldNames>;
|
|
142
|
+
dropdownStyle: {
|
|
143
|
+
type: PropType<CSSProperties>;
|
|
144
|
+
};
|
|
145
|
+
dropdownRender: {
|
|
146
|
+
type: PropType<DropdownRender>;
|
|
147
|
+
};
|
|
148
|
+
dropdownAlign: PropType<AlignType>;
|
|
149
|
+
showSearch: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: any;
|
|
152
|
+
};
|
|
153
|
+
searchValue: StringConstructor;
|
|
154
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
155
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
156
|
+
maxTagCount: {
|
|
157
|
+
type: PropType<number | "responsive">;
|
|
158
|
+
};
|
|
159
|
+
maxTagTextLength: NumberConstructor;
|
|
160
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
161
|
+
tokenSeparators: {
|
|
162
|
+
type: PropType<string[]>;
|
|
163
|
+
};
|
|
164
|
+
tagRender: {
|
|
165
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
166
|
+
};
|
|
167
|
+
optionLabelRender: {
|
|
168
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
169
|
+
};
|
|
170
|
+
onClear: PropType<() => void>;
|
|
171
|
+
defaultOpen: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: any;
|
|
174
|
+
};
|
|
175
|
+
onDropdownVisibleChange: {
|
|
176
|
+
type: PropType<(open: boolean) => void>;
|
|
177
|
+
};
|
|
178
|
+
showArrow: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: any;
|
|
181
|
+
};
|
|
182
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
183
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
184
|
+
listItemHeight: NumberConstructor;
|
|
185
|
+
inputValue: StringConstructor;
|
|
186
|
+
autoClearSearchValue: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: any;
|
|
189
|
+
};
|
|
190
|
+
filterOption: {
|
|
191
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
192
|
+
default: any;
|
|
193
|
+
};
|
|
194
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
195
|
+
optionFilterProp: StringConstructor;
|
|
196
|
+
optionLabelProp: StringConstructor;
|
|
197
|
+
defaultActiveFirstOption: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: any;
|
|
200
|
+
};
|
|
201
|
+
labelInValue: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: any;
|
|
204
|
+
};
|
|
205
|
+
}>>, "mode" | "value" | "onUpdate:value" | "onSearch"> & {
|
|
206
|
+
emptyText?: string;
|
|
207
|
+
request?: (value?: string) => Promise< SelectProps["options"]>;
|
|
208
|
+
multiple?: boolean;
|
|
209
|
+
value?: SelectProps["value"];
|
|
210
|
+
'onUpdate:value'?: SelectProps["onUpdate:value"];
|
|
211
|
+
searchMode?: "filter" | "request";
|
|
212
|
+
refetchOnFocus?: boolean;
|
|
213
|
+
} & {
|
|
64
214
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
}
|
|
215
|
+
}>, {
|
|
66
216
|
mode: FieldMode;
|
|
67
217
|
virtual: boolean;
|
|
68
218
|
open: boolean;
|
|
@@ -80,28 +230,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
80
230
|
multiple: boolean;
|
|
81
231
|
emptyText: string;
|
|
82
232
|
searchMode: "filter" | "request";
|
|
83
|
-
}, {}>;
|
|
233
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
|
|
84
234
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
85
235
|
export default _default;
|
|
86
|
-
type __VLS_WithDefaults<P, D> = {
|
|
87
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
88
|
-
default: D[K];
|
|
89
|
-
}> : P[K];
|
|
90
|
-
};
|
|
91
|
-
type __VLS_Prettify<T> = {
|
|
92
|
-
[K in keyof T]: T[K];
|
|
93
|
-
} & {};
|
|
94
236
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
95
237
|
new (): {
|
|
96
238
|
$slots: S;
|
|
97
239
|
};
|
|
98
240
|
};
|
|
99
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
100
|
-
type __VLS_TypePropsToOption<T> = {
|
|
101
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
102
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
103
|
-
} : {
|
|
104
|
-
type: PropType<T[K]>;
|
|
105
|
-
required: true;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
@@ -104,11 +104,11 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
|
|
|
104
104
|
}).finally(() => {
|
|
105
105
|
n.value = !1;
|
|
106
106
|
});
|
|
107
|
-
}, 300), e = w,
|
|
107
|
+
}, 300), e = w, F = (o, t) => {
|
|
108
108
|
var a;
|
|
109
109
|
const l = ((a = e.fieldNames) == null ? void 0 : a.label) || "label";
|
|
110
110
|
return typeof (t == null ? void 0 : t.label) == "string" && t[l].indexOf(o) > -1;
|
|
111
|
-
}, i = f((e == null ? void 0 : e.options) || []), d = f(), n = f((e == null ? void 0 : e.loading) || !1),
|
|
111
|
+
}, i = f((e == null ? void 0 : e.options) || []), d = f(), n = f((e == null ? void 0 : e.loading) || !1), b = g;
|
|
112
112
|
async function s(o = !0) {
|
|
113
113
|
if (!y(e.request))
|
|
114
114
|
return;
|
|
@@ -124,13 +124,14 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
|
|
|
124
124
|
n.value = !1;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function C(o) {
|
|
128
|
+
var t;
|
|
129
|
+
(t = e.onFocus) == null || t.call(e, o), e.refetchOnFocus && u > 0 && !n.value && s(!0);
|
|
129
130
|
}
|
|
130
131
|
q(() => {
|
|
131
132
|
s();
|
|
132
133
|
});
|
|
133
|
-
const { value: p, updateValue: x } = X(e,
|
|
134
|
+
const { value: p, updateValue: x } = X(e, b), I = Q("Select", e), O = m(() => {
|
|
134
135
|
const o = r(p);
|
|
135
136
|
if (!o)
|
|
136
137
|
return e.emptyText;
|
|
@@ -153,7 +154,7 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
|
|
|
153
154
|
notFoundContent: n.value ? void 0 : null
|
|
154
155
|
} : {
|
|
155
156
|
showArrow: !0,
|
|
156
|
-
filterOption: j(e == null ? void 0 : e.filterOption) ?
|
|
157
|
+
filterOption: j(e == null ? void 0 : e.filterOption) ? F : e == null ? void 0 : e.filterOption
|
|
157
158
|
}), {
|
|
158
159
|
...J(
|
|
159
160
|
E(e, [
|
|
@@ -162,7 +163,8 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
|
|
|
162
163
|
"onUpdate:value",
|
|
163
164
|
"onSearch",
|
|
164
165
|
"request",
|
|
165
|
-
"searchMode"
|
|
166
|
+
"searchMode",
|
|
167
|
+
"onFocus"
|
|
166
168
|
])
|
|
167
169
|
),
|
|
168
170
|
placeholder: r(I),
|
|
@@ -192,7 +194,7 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
|
|
|
192
194
|
"onUpdate:value": r(x),
|
|
193
195
|
options: i.value,
|
|
194
196
|
loading: n.value,
|
|
195
|
-
onFocus:
|
|
197
|
+
onFocus: C
|
|
196
198
|
}), R({ _: 2 }, [
|
|
197
199
|
D(o.$slots, (l, a) => ({
|
|
198
200
|
name: a,
|