@aplus-frontend/ui 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +176 -170
- package/es/src/ap-action/group/index.vue.d.ts +7 -6
- package/es/src/ap-action/item/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/es/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/es/src/ap-custom-column/column-select.vue.mjs +47 -46
- package/es/src/ap-custom-column/custom-column.vue.mjs +36 -35
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/es/src/ap-download/ap-download.vue.d.ts +17 -12
- package/es/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/es/src/ap-field/date/index.vue.d.ts +18 -12
- package/es/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/es/src/ap-field/number/index.vue.d.ts +459 -12
- package/es/src/ap-field/radio/index.vue.d.ts +6 -5
- package/es/src/ap-field/rate/index.vue.d.ts +138 -16
- package/es/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/es/src/ap-field/select/index.vue.d.ts +597 -16
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +375 -12
- package/es/src/ap-field/switch/index.vue.d.ts +16 -11
- package/es/src/ap-field/text/index.vue.d.ts +19 -13
- package/es/src/ap-field/text/password.vue.d.ts +19 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/es/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/es/src/ap-form/ap-form-item.vue.mjs +47 -44
- package/es/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/es/src/ap-form/ap-form.vue.d.ts +884 -13
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/es/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/es/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/es/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/es/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/es/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/es/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/es/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/es/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/es/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/es/src/ap-list/index.vue.d.ts +5 -5
- package/es/src/ap-modal/utils/createModal.mjs +4 -4
- package/es/src/ap-table/ap-table.vue.d.ts +5 -5
- package/es/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/es/src/ap-table/constants.d.ts +1071 -1072
- package/es/src/ap-table/hooks/use-table-paging.d.ts +2 -1
- package/es/src/ap-table/utils.d.ts +586 -587
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/es/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/es/src/base-button/button.vue.d.ts +17 -12
- package/es/src/base-button/index.d.ts +30 -30
- package/es/src/basic/index.d.ts +6 -6
- package/es/src/basic/title.vue.d.ts +16 -11
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/es/src/business/ap-image/ApImage.vue.d.ts +22 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +23 -23
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/es/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +41 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +29 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +28 -0
- package/es/src/business/ap-table-modal/index.d.ts +538 -0
- package/es/src/business/ap-table-modal/index.mjs +11 -0
- package/es/src/business/ap-table-modal/interface.d.ts +63 -0
- package/es/src/business/ap-table-modal/interface.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/es/src/business/ap-table-modal/modal-title.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +50 -0
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/es/src/business/ap-table-modal/table-modal.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +177 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/es/src/business/index.d.ts +140 -131
- package/es/src/business/index.mjs +18 -16
- package/es/src/business/title/ApTitle.vue.d.ts +17 -12
- package/es/src/button/button.vue.d.ts +12 -7
- package/es/src/button/index.d.ts +2 -2
- package/es/src/check-card/group.vue.d.ts +18 -13
- package/es/src/check-card/index.vue.d.ts +16 -11
- package/es/src/config-provider/config-provider-props.d.ts +6 -4
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/es/src/config-provider/index.d.ts +17 -17
- package/es/src/container/index.d.ts +4 -4
- package/es/src/container/scroll-container.vue.d.ts +181 -8
- package/es/src/count-down/button.vue.d.ts +4 -4
- package/es/src/count-down/index.d.ts +8 -8
- package/es/src/count-down/input.vue.d.ts +16 -11
- package/es/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/es/src/cropper/cropper-image.vue.d.ts +4 -4
- package/es/src/cropper/index.d.ts +4 -4
- package/es/src/description/index.d.ts +2 -2
- package/es/src/dropdown/dropdown.vue.d.ts +16 -11
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +5 -5
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/icon/icon.vue.d.ts +4 -5
- package/es/src/icon/index.d.ts +16 -16
- package/es/src/icon/svg-icon.vue.d.ts +4 -4
- package/es/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/es/src/icon-picker/index.d.ts +2 -2
- package/es/src/index.mjs +69 -63
- package/es/src/locale/lang/en.mjs +25 -0
- package/es/src/locale/lang/zh-cn.mjs +25 -0
- package/es/src/modal/basic.vue.d.ts +210 -5
- package/es/src/modal/components/modal-close.vue.d.ts +4 -4
- package/es/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/es/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +5 -5
- package/es/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/es/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/es/src/pro-form/pro-form.vue.d.ts +888 -15
- package/es/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/es/src/pro-form/table-form.vue.d.ts +6 -5
- package/es/src/pro-form/types/form.d.ts +4 -4
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/es/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/es/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/es/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/es/src/prompt/utils.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +2 -2
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/es/src/strength-meter/index.d.ts +2 -2
- package/es/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/es/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/es/src/transition/collapse-transition.vue.d.ts +7 -2
- package/es/src/utils/config-provider-preset.d.ts +5 -5
- package/es/src/work-order-modal/createWorkOrder.mjs +20 -12
- package/es/src/work-order-modal/help-message.vue2.mjs +21 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +64 -62
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +7 -6
- package/lib/src/ap-action/item/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/lib/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/lib/src/ap-download/ap-download.vue.d.ts +17 -12
- package/lib/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/lib/src/ap-field/date/index.vue.d.ts +18 -12
- package/lib/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/lib/src/ap-field/number/index.vue.d.ts +459 -12
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -5
- package/lib/src/ap-field/rate/index.vue.d.ts +138 -16
- package/lib/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/lib/src/ap-field/select/index.vue.d.ts +597 -16
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +375 -12
- package/lib/src/ap-field/switch/index.vue.d.ts +16 -11
- package/lib/src/ap-field/text/index.vue.d.ts +19 -13
- package/lib/src/ap-field/text/password.vue.d.ts +19 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/lib/src/ap-form/ap-form.vue.d.ts +884 -13
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/lib/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/lib/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/lib/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/lib/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/lib/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/lib/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/lib/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/lib/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/lib/src/ap-list/index.vue.d.ts +5 -5
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +5 -5
- package/lib/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/lib/src/ap-table/constants.d.ts +1071 -1072
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +2 -1
- package/lib/src/ap-table/utils.d.ts +586 -587
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/lib/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/lib/src/base-button/button.vue.d.ts +17 -12
- package/lib/src/base-button/index.d.ts +30 -30
- package/lib/src/basic/index.d.ts +6 -6
- package/lib/src/basic/title.vue.d.ts +16 -11
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/lib/src/business/ap-image/ApImage.vue.d.ts +22 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -0
- package/lib/src/business/ap-table-modal/index.d.ts +538 -0
- package/lib/src/business/ap-table-modal/index.js +1 -0
- package/lib/src/business/ap-table-modal/interface.d.ts +63 -0
- package/lib/src/business/ap-table-modal/interface.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/lib/src/business/index.d.ts +140 -131
- package/lib/src/business/index.js +1 -1
- package/lib/src/business/title/ApTitle.vue.d.ts +17 -12
- package/lib/src/button/button.vue.d.ts +12 -7
- package/lib/src/button/index.d.ts +2 -2
- package/lib/src/check-card/group.vue.d.ts +18 -13
- package/lib/src/check-card/index.vue.d.ts +16 -11
- package/lib/src/config-provider/config-provider-props.d.ts +6 -4
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/lib/src/config-provider/index.d.ts +17 -17
- package/lib/src/container/index.d.ts +4 -4
- package/lib/src/container/scroll-container.vue.d.ts +181 -8
- package/lib/src/count-down/button.vue.d.ts +4 -4
- package/lib/src/count-down/index.d.ts +8 -8
- package/lib/src/count-down/input.vue.d.ts +16 -11
- package/lib/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/lib/src/cropper/cropper-image.vue.d.ts +4 -4
- package/lib/src/cropper/index.d.ts +4 -4
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/dropdown/dropdown.vue.d.ts +16 -11
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +5 -5
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/icon/icon.vue.d.ts +4 -5
- package/lib/src/icon/index.d.ts +16 -16
- package/lib/src/icon/svg-icon.vue.d.ts +4 -4
- package/lib/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/lib/src/icon-picker/index.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +210 -5
- package/lib/src/modal/components/modal-close.vue.d.ts +4 -4
- package/lib/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +5 -5
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/lib/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/lib/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/lib/src/pro-form/pro-form.vue.d.ts +888 -15
- package/lib/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/lib/src/pro-form/table-form.vue.d.ts +6 -5
- package/lib/src/pro-form/types/form.d.ts +4 -4
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/lib/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/lib/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/lib/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/lib/src/prompt/utils.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +2 -2
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/lib/src/strength-meter/index.d.ts +2 -2
- package/lib/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/lib/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/lib/src/transition/collapse-transition.vue.d.ts +7 -2
- package/lib/src/utils/config-provider-preset.d.ts +5 -5
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ApFieldNumberProps } from '../interface';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
3
|
+
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
4
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
3
5
|
import { ValueType } from 'ant-design-vue/es/input-number/src/utils/MiniDecimal';
|
|
6
|
+
import { KeyboardEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
7
|
+
import { VueNode, CustomSlotsType } from 'ant-design-vue/es/_util/type';
|
|
4
8
|
type ApFieldNumberSlots = {
|
|
5
9
|
addonBefore?: any;
|
|
6
10
|
addonAfter?: any;
|
|
@@ -11,7 +15,450 @@ type ApFieldNumberSlots = {
|
|
|
11
15
|
};
|
|
12
16
|
declare function focus(): void;
|
|
13
17
|
declare function blur(): void;
|
|
14
|
-
declare function __VLS_template():
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
slots: Readonly<ApFieldNumberSlots> & ApFieldNumberSlots;
|
|
20
|
+
refs: {
|
|
21
|
+
inputRef: CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
22
|
+
size: {
|
|
23
|
+
type: PropType<ButtonSize>;
|
|
24
|
+
default: ButtonSize;
|
|
25
|
+
};
|
|
26
|
+
bordered: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
placeholder: StringConstructor;
|
|
31
|
+
name: StringConstructor;
|
|
32
|
+
id: StringConstructor;
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
35
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
36
|
+
prefix: VueTypeValidableDef<any>;
|
|
37
|
+
'onUpdate:value': {
|
|
38
|
+
type: PropType<(value: ValueType) => void>;
|
|
39
|
+
default: (value: ValueType) => void;
|
|
40
|
+
};
|
|
41
|
+
valueModifiers: ObjectConstructor;
|
|
42
|
+
status: {
|
|
43
|
+
type: PropType<"" | "error" | "warning">;
|
|
44
|
+
default: "" | "error" | "warning";
|
|
45
|
+
};
|
|
46
|
+
stringMode: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
defaultValue: {
|
|
51
|
+
type: PropType<ValueType>;
|
|
52
|
+
default: ValueType;
|
|
53
|
+
};
|
|
54
|
+
value: {
|
|
55
|
+
type: PropType<ValueType>;
|
|
56
|
+
default: ValueType;
|
|
57
|
+
};
|
|
58
|
+
prefixCls: {
|
|
59
|
+
type: PropType<string>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
min: {
|
|
63
|
+
type: PropType<ValueType>;
|
|
64
|
+
default: ValueType;
|
|
65
|
+
};
|
|
66
|
+
max: {
|
|
67
|
+
type: PropType<ValueType>;
|
|
68
|
+
default: ValueType;
|
|
69
|
+
};
|
|
70
|
+
step: {
|
|
71
|
+
type: PropType<ValueType>;
|
|
72
|
+
default: ValueType;
|
|
73
|
+
};
|
|
74
|
+
tabindex: NumberConstructor;
|
|
75
|
+
controls: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
readonly: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
disabled: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
autofocus: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
keyboard: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
parser: {
|
|
96
|
+
type: PropType<(displayValue: string) => ValueType>;
|
|
97
|
+
default: (displayValue: string) => ValueType;
|
|
98
|
+
};
|
|
99
|
+
formatter: {
|
|
100
|
+
type: PropType<(value: ValueType, info: {
|
|
101
|
+
userTyping: boolean;
|
|
102
|
+
input: string;
|
|
103
|
+
}) => string>;
|
|
104
|
+
default: (value: ValueType, info: {
|
|
105
|
+
userTyping: boolean;
|
|
106
|
+
input: string;
|
|
107
|
+
}) => string;
|
|
108
|
+
};
|
|
109
|
+
precision: NumberConstructor;
|
|
110
|
+
decimalSeparator: StringConstructor;
|
|
111
|
+
onInput: {
|
|
112
|
+
type: PropType<(text: string) => void>;
|
|
113
|
+
default: (text: string) => void;
|
|
114
|
+
};
|
|
115
|
+
onChange: {
|
|
116
|
+
type: PropType<(value: ValueType) => void>;
|
|
117
|
+
default: (value: ValueType) => void;
|
|
118
|
+
};
|
|
119
|
+
onPressEnter: {
|
|
120
|
+
type: PropType<KeyboardEventHandler>;
|
|
121
|
+
default: KeyboardEventHandler;
|
|
122
|
+
};
|
|
123
|
+
onStep: {
|
|
124
|
+
type: PropType<(value: ValueType, info: {
|
|
125
|
+
offset: ValueType;
|
|
126
|
+
type: "up" | "down";
|
|
127
|
+
}) => void>;
|
|
128
|
+
default: (value: ValueType, info: {
|
|
129
|
+
offset: ValueType;
|
|
130
|
+
type: "up" | "down";
|
|
131
|
+
}) => void;
|
|
132
|
+
};
|
|
133
|
+
onBlur: {
|
|
134
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
135
|
+
default: (e: FocusEvent) => void;
|
|
136
|
+
};
|
|
137
|
+
onFocus: {
|
|
138
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
139
|
+
default: (e: FocusEvent) => void;
|
|
140
|
+
};
|
|
141
|
+
}>>, () => VueNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
142
|
+
size: {
|
|
143
|
+
type: PropType<ButtonSize>;
|
|
144
|
+
default: ButtonSize;
|
|
145
|
+
};
|
|
146
|
+
bordered: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
placeholder: StringConstructor;
|
|
151
|
+
name: StringConstructor;
|
|
152
|
+
id: StringConstructor;
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
155
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
156
|
+
prefix: VueTypeValidableDef<any>;
|
|
157
|
+
'onUpdate:value': {
|
|
158
|
+
type: PropType<(value: ValueType) => void>;
|
|
159
|
+
default: (value: ValueType) => void;
|
|
160
|
+
};
|
|
161
|
+
valueModifiers: ObjectConstructor;
|
|
162
|
+
status: {
|
|
163
|
+
type: PropType<"" | "error" | "warning">;
|
|
164
|
+
default: "" | "error" | "warning";
|
|
165
|
+
};
|
|
166
|
+
stringMode: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
defaultValue: {
|
|
171
|
+
type: PropType<ValueType>;
|
|
172
|
+
default: ValueType;
|
|
173
|
+
};
|
|
174
|
+
value: {
|
|
175
|
+
type: PropType<ValueType>;
|
|
176
|
+
default: ValueType;
|
|
177
|
+
};
|
|
178
|
+
prefixCls: {
|
|
179
|
+
type: PropType<string>;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
min: {
|
|
183
|
+
type: PropType<ValueType>;
|
|
184
|
+
default: ValueType;
|
|
185
|
+
};
|
|
186
|
+
max: {
|
|
187
|
+
type: PropType<ValueType>;
|
|
188
|
+
default: ValueType;
|
|
189
|
+
};
|
|
190
|
+
step: {
|
|
191
|
+
type: PropType<ValueType>;
|
|
192
|
+
default: ValueType;
|
|
193
|
+
};
|
|
194
|
+
tabindex: NumberConstructor;
|
|
195
|
+
controls: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
readonly: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
disabled: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
autofocus: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
|
+
keyboard: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
parser: {
|
|
216
|
+
type: PropType<(displayValue: string) => ValueType>;
|
|
217
|
+
default: (displayValue: string) => ValueType;
|
|
218
|
+
};
|
|
219
|
+
formatter: {
|
|
220
|
+
type: PropType<(value: ValueType, info: {
|
|
221
|
+
userTyping: boolean;
|
|
222
|
+
input: string;
|
|
223
|
+
}) => string>;
|
|
224
|
+
default: (value: ValueType, info: {
|
|
225
|
+
userTyping: boolean;
|
|
226
|
+
input: string;
|
|
227
|
+
}) => string;
|
|
228
|
+
};
|
|
229
|
+
precision: NumberConstructor;
|
|
230
|
+
decimalSeparator: StringConstructor;
|
|
231
|
+
onInput: {
|
|
232
|
+
type: PropType<(text: string) => void>;
|
|
233
|
+
default: (text: string) => void;
|
|
234
|
+
};
|
|
235
|
+
onChange: {
|
|
236
|
+
type: PropType<(value: ValueType) => void>;
|
|
237
|
+
default: (value: ValueType) => void;
|
|
238
|
+
};
|
|
239
|
+
onPressEnter: {
|
|
240
|
+
type: PropType<KeyboardEventHandler>;
|
|
241
|
+
default: KeyboardEventHandler;
|
|
242
|
+
};
|
|
243
|
+
onStep: {
|
|
244
|
+
type: PropType<(value: ValueType, info: {
|
|
245
|
+
offset: ValueType;
|
|
246
|
+
type: "up" | "down";
|
|
247
|
+
}) => void>;
|
|
248
|
+
default: (value: ValueType, info: {
|
|
249
|
+
offset: ValueType;
|
|
250
|
+
type: "up" | "down";
|
|
251
|
+
}) => void;
|
|
252
|
+
};
|
|
253
|
+
onBlur: {
|
|
254
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
255
|
+
default: (e: FocusEvent) => void;
|
|
256
|
+
};
|
|
257
|
+
onFocus: {
|
|
258
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
259
|
+
default: (e: FocusEvent) => void;
|
|
260
|
+
};
|
|
261
|
+
}>>, {
|
|
262
|
+
size: ButtonSize;
|
|
263
|
+
value: ValueType;
|
|
264
|
+
onFocus: (e: FocusEvent) => void;
|
|
265
|
+
onBlur: (e: FocusEvent) => void;
|
|
266
|
+
onChange: (value: ValueType) => void;
|
|
267
|
+
onInput: (text: string) => void;
|
|
268
|
+
disabled: boolean;
|
|
269
|
+
max: ValueType;
|
|
270
|
+
min: ValueType;
|
|
271
|
+
prefixCls: string;
|
|
272
|
+
autofocus: boolean;
|
|
273
|
+
readonly: boolean;
|
|
274
|
+
status: "" | "error" | "warning";
|
|
275
|
+
defaultValue: ValueType;
|
|
276
|
+
'onUpdate:value': (value: ValueType) => void;
|
|
277
|
+
step: ValueType;
|
|
278
|
+
bordered: boolean;
|
|
279
|
+
onPressEnter: KeyboardEventHandler;
|
|
280
|
+
keyboard: boolean;
|
|
281
|
+
onStep: (value: ValueType, info: {
|
|
282
|
+
offset: ValueType;
|
|
283
|
+
type: "up" | "down";
|
|
284
|
+
}) => void;
|
|
285
|
+
stringMode: boolean;
|
|
286
|
+
controls: boolean;
|
|
287
|
+
parser: (displayValue: string) => ValueType;
|
|
288
|
+
formatter: (value: ValueType, info: {
|
|
289
|
+
userTyping: boolean;
|
|
290
|
+
input: string;
|
|
291
|
+
}) => string;
|
|
292
|
+
}, true, {}, CustomSlotsType<{
|
|
293
|
+
addonBefore?: any;
|
|
294
|
+
addonAfter?: any;
|
|
295
|
+
prefix?: any;
|
|
296
|
+
default?: any;
|
|
297
|
+
upIcon?: any;
|
|
298
|
+
downIcon?: any;
|
|
299
|
+
}>, {
|
|
300
|
+
P: {};
|
|
301
|
+
B: {};
|
|
302
|
+
D: {};
|
|
303
|
+
C: {};
|
|
304
|
+
M: {};
|
|
305
|
+
Defaults: {};
|
|
306
|
+
}, Readonly< ExtractPropTypes<{
|
|
307
|
+
size: {
|
|
308
|
+
type: PropType<ButtonSize>;
|
|
309
|
+
default: ButtonSize;
|
|
310
|
+
};
|
|
311
|
+
bordered: {
|
|
312
|
+
type: BooleanConstructor;
|
|
313
|
+
default: boolean;
|
|
314
|
+
};
|
|
315
|
+
placeholder: StringConstructor;
|
|
316
|
+
name: StringConstructor;
|
|
317
|
+
id: StringConstructor;
|
|
318
|
+
type: StringConstructor;
|
|
319
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
320
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
321
|
+
prefix: VueTypeValidableDef<any>;
|
|
322
|
+
'onUpdate:value': {
|
|
323
|
+
type: PropType<(value: ValueType) => void>;
|
|
324
|
+
default: (value: ValueType) => void;
|
|
325
|
+
};
|
|
326
|
+
valueModifiers: ObjectConstructor;
|
|
327
|
+
status: {
|
|
328
|
+
type: PropType<"" | "error" | "warning">;
|
|
329
|
+
default: "" | "error" | "warning";
|
|
330
|
+
};
|
|
331
|
+
stringMode: {
|
|
332
|
+
type: BooleanConstructor;
|
|
333
|
+
default: boolean;
|
|
334
|
+
};
|
|
335
|
+
defaultValue: {
|
|
336
|
+
type: PropType<ValueType>;
|
|
337
|
+
default: ValueType;
|
|
338
|
+
};
|
|
339
|
+
value: {
|
|
340
|
+
type: PropType<ValueType>;
|
|
341
|
+
default: ValueType;
|
|
342
|
+
};
|
|
343
|
+
prefixCls: {
|
|
344
|
+
type: PropType<string>;
|
|
345
|
+
default: string;
|
|
346
|
+
};
|
|
347
|
+
min: {
|
|
348
|
+
type: PropType<ValueType>;
|
|
349
|
+
default: ValueType;
|
|
350
|
+
};
|
|
351
|
+
max: {
|
|
352
|
+
type: PropType<ValueType>;
|
|
353
|
+
default: ValueType;
|
|
354
|
+
};
|
|
355
|
+
step: {
|
|
356
|
+
type: PropType<ValueType>;
|
|
357
|
+
default: ValueType;
|
|
358
|
+
};
|
|
359
|
+
tabindex: NumberConstructor;
|
|
360
|
+
controls: {
|
|
361
|
+
type: BooleanConstructor;
|
|
362
|
+
default: boolean;
|
|
363
|
+
};
|
|
364
|
+
readonly: {
|
|
365
|
+
type: BooleanConstructor;
|
|
366
|
+
default: boolean;
|
|
367
|
+
};
|
|
368
|
+
disabled: {
|
|
369
|
+
type: BooleanConstructor;
|
|
370
|
+
default: boolean;
|
|
371
|
+
};
|
|
372
|
+
autofocus: {
|
|
373
|
+
type: BooleanConstructor;
|
|
374
|
+
default: boolean;
|
|
375
|
+
};
|
|
376
|
+
keyboard: {
|
|
377
|
+
type: BooleanConstructor;
|
|
378
|
+
default: boolean;
|
|
379
|
+
};
|
|
380
|
+
parser: {
|
|
381
|
+
type: PropType<(displayValue: string) => ValueType>;
|
|
382
|
+
default: (displayValue: string) => ValueType;
|
|
383
|
+
};
|
|
384
|
+
formatter: {
|
|
385
|
+
type: PropType<(value: ValueType, info: {
|
|
386
|
+
userTyping: boolean;
|
|
387
|
+
input: string;
|
|
388
|
+
}) => string>;
|
|
389
|
+
default: (value: ValueType, info: {
|
|
390
|
+
userTyping: boolean;
|
|
391
|
+
input: string;
|
|
392
|
+
}) => string;
|
|
393
|
+
};
|
|
394
|
+
precision: NumberConstructor;
|
|
395
|
+
decimalSeparator: StringConstructor;
|
|
396
|
+
onInput: {
|
|
397
|
+
type: PropType<(text: string) => void>;
|
|
398
|
+
default: (text: string) => void;
|
|
399
|
+
};
|
|
400
|
+
onChange: {
|
|
401
|
+
type: PropType<(value: ValueType) => void>;
|
|
402
|
+
default: (value: ValueType) => void;
|
|
403
|
+
};
|
|
404
|
+
onPressEnter: {
|
|
405
|
+
type: PropType<KeyboardEventHandler>;
|
|
406
|
+
default: KeyboardEventHandler;
|
|
407
|
+
};
|
|
408
|
+
onStep: {
|
|
409
|
+
type: PropType<(value: ValueType, info: {
|
|
410
|
+
offset: ValueType;
|
|
411
|
+
type: "up" | "down";
|
|
412
|
+
}) => void>;
|
|
413
|
+
default: (value: ValueType, info: {
|
|
414
|
+
offset: ValueType;
|
|
415
|
+
type: "up" | "down";
|
|
416
|
+
}) => void;
|
|
417
|
+
};
|
|
418
|
+
onBlur: {
|
|
419
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
420
|
+
default: (e: FocusEvent) => void;
|
|
421
|
+
};
|
|
422
|
+
onFocus: {
|
|
423
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
424
|
+
default: (e: FocusEvent) => void;
|
|
425
|
+
};
|
|
426
|
+
}>>, () => VueNode, {}, {}, {}, {
|
|
427
|
+
size: ButtonSize;
|
|
428
|
+
value: ValueType;
|
|
429
|
+
onFocus: (e: FocusEvent) => void;
|
|
430
|
+
onBlur: (e: FocusEvent) => void;
|
|
431
|
+
onChange: (value: ValueType) => void;
|
|
432
|
+
onInput: (text: string) => void;
|
|
433
|
+
disabled: boolean;
|
|
434
|
+
max: ValueType;
|
|
435
|
+
min: ValueType;
|
|
436
|
+
prefixCls: string;
|
|
437
|
+
autofocus: boolean;
|
|
438
|
+
readonly: boolean;
|
|
439
|
+
status: "" | "error" | "warning";
|
|
440
|
+
defaultValue: ValueType;
|
|
441
|
+
'onUpdate:value': (value: ValueType) => void;
|
|
442
|
+
step: ValueType;
|
|
443
|
+
bordered: boolean;
|
|
444
|
+
onPressEnter: KeyboardEventHandler;
|
|
445
|
+
keyboard: boolean;
|
|
446
|
+
onStep: (value: ValueType, info: {
|
|
447
|
+
offset: ValueType;
|
|
448
|
+
type: "up" | "down";
|
|
449
|
+
}) => void;
|
|
450
|
+
stringMode: boolean;
|
|
451
|
+
controls: boolean;
|
|
452
|
+
parser: (displayValue: string) => ValueType;
|
|
453
|
+
formatter: (value: ValueType, info: {
|
|
454
|
+
userTyping: boolean;
|
|
455
|
+
input: string;
|
|
456
|
+
}) => string;
|
|
457
|
+
}> | null;
|
|
458
|
+
};
|
|
459
|
+
attrs: Partial<{}>;
|
|
460
|
+
};
|
|
461
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
462
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldNumberProps>, {
|
|
16
463
|
emptyText: string;
|
|
17
464
|
thousands: boolean;
|
|
@@ -47,21 +494,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
47
494
|
emptyText: string;
|
|
48
495
|
thousands: boolean;
|
|
49
496
|
}, {}>;
|
|
50
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
497
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
498
|
export default _default;
|
|
52
499
|
type __VLS_WithDefaults<P, D> = {
|
|
53
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
500
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
54
501
|
default: D[K];
|
|
55
502
|
}> : P[K];
|
|
56
503
|
};
|
|
57
|
-
type __VLS_Prettify<T> = {
|
|
58
|
-
[K in keyof T]: T[K];
|
|
59
|
-
} & {};
|
|
60
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
-
new (): {
|
|
62
|
-
$slots: S;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
504
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
505
|
type __VLS_TypePropsToOption<T> = {
|
|
67
506
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -71,3 +510,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
71
510
|
required: true;
|
|
72
511
|
};
|
|
73
512
|
};
|
|
513
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
514
|
+
new (): {
|
|
515
|
+
$slots: S;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
type __VLS_PrettifyLocal<T> = {
|
|
519
|
+
[K in keyof T]: T[K];
|
|
520
|
+
} & {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ApFieldRadioProps
|
|
1
|
+
import { ApFieldRadioProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { FieldMode } from '..';
|
|
3
4
|
declare function focus(): void;
|
|
4
5
|
declare function blur(): void;
|
|
5
6
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldRadioProps>, {
|
|
@@ -24,13 +25,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
24
25
|
}, {}>;
|
|
25
26
|
export default _default;
|
|
26
27
|
type __VLS_WithDefaults<P, D> = {
|
|
27
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
28
29
|
default: D[K];
|
|
29
30
|
}> : P[K];
|
|
30
31
|
};
|
|
31
|
-
type __VLS_Prettify<T> = {
|
|
32
|
-
[K in keyof T]: T[K];
|
|
33
|
-
} & {};
|
|
34
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
33
|
type __VLS_TypePropsToOption<T> = {
|
|
36
34
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -40,3 +38,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
40
38
|
required: true;
|
|
41
39
|
};
|
|
42
40
|
};
|
|
41
|
+
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -1,12 +1,134 @@
|
|
|
1
|
-
import { ApFieldRateProps
|
|
2
|
-
import {
|
|
1
|
+
import { ApFieldRateProps } from '../interface';
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } 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';
|
|
6
|
+
import { VueNode } from 'ant-design-vue/es/_util/type';
|
|
7
|
+
import { FieldMode } from '..';
|
|
3
8
|
declare function focus(): void;
|
|
4
9
|
declare function blur(): void;
|
|
5
|
-
declare function __VLS_template():
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
character: any;
|
|
13
|
+
}> & {
|
|
14
|
+
character: any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
rateRef: CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
18
|
+
prefixCls: StringConstructor;
|
|
19
|
+
count: NumberConstructor;
|
|
20
|
+
value: NumberConstructor;
|
|
21
|
+
allowHalf: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
allowClear: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
tooltips: PropType<string[]>;
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
character: VueTypeValidableDef<any>;
|
|
35
|
+
autofocus: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
39
|
+
tabindex: VueTypeDef<string | number>;
|
|
40
|
+
direction: PropType<Direction>;
|
|
41
|
+
id: StringConstructor;
|
|
42
|
+
onChange: PropType<(value: number) => void>;
|
|
43
|
+
onHoverChange: PropType<(value: number) => void>;
|
|
44
|
+
'onUpdate:value': PropType<(value: number) => void>;
|
|
45
|
+
onFocus: PropType<FocusEventHandler>;
|
|
46
|
+
onBlur: PropType<FocusEventHandler>;
|
|
47
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
48
|
+
}>>, () => VueNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
49
|
+
prefixCls: StringConstructor;
|
|
50
|
+
count: NumberConstructor;
|
|
51
|
+
value: NumberConstructor;
|
|
52
|
+
allowHalf: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: any;
|
|
55
|
+
};
|
|
56
|
+
allowClear: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
tooltips: PropType<string[]>;
|
|
61
|
+
disabled: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: any;
|
|
64
|
+
};
|
|
65
|
+
character: VueTypeValidableDef<any>;
|
|
66
|
+
autofocus: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
tabindex: VueTypeDef<string | number>;
|
|
71
|
+
direction: PropType<Direction>;
|
|
72
|
+
id: StringConstructor;
|
|
73
|
+
onChange: PropType<(value: number) => void>;
|
|
74
|
+
onHoverChange: PropType<(value: number) => void>;
|
|
75
|
+
'onUpdate:value': PropType<(value: number) => void>;
|
|
76
|
+
onFocus: PropType<FocusEventHandler>;
|
|
77
|
+
onBlur: PropType<FocusEventHandler>;
|
|
78
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
79
|
+
}>>, {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
autofocus: boolean;
|
|
82
|
+
allowClear: boolean;
|
|
83
|
+
allowHalf: boolean;
|
|
84
|
+
}, true, {}, {}, {
|
|
85
|
+
P: {};
|
|
86
|
+
B: {};
|
|
87
|
+
D: {};
|
|
88
|
+
C: {};
|
|
89
|
+
M: {};
|
|
90
|
+
Defaults: {};
|
|
91
|
+
}, Readonly< ExtractPropTypes<{
|
|
92
|
+
prefixCls: StringConstructor;
|
|
93
|
+
count: NumberConstructor;
|
|
94
|
+
value: NumberConstructor;
|
|
95
|
+
allowHalf: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
allowClear: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: any;
|
|
102
|
+
};
|
|
103
|
+
tooltips: PropType<string[]>;
|
|
104
|
+
disabled: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: any;
|
|
107
|
+
};
|
|
108
|
+
character: VueTypeValidableDef<any>;
|
|
109
|
+
autofocus: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: any;
|
|
112
|
+
};
|
|
113
|
+
tabindex: VueTypeDef<string | number>;
|
|
114
|
+
direction: PropType<Direction>;
|
|
115
|
+
id: StringConstructor;
|
|
116
|
+
onChange: PropType<(value: number) => void>;
|
|
117
|
+
onHoverChange: PropType<(value: number) => void>;
|
|
118
|
+
'onUpdate:value': PropType<(value: number) => void>;
|
|
119
|
+
onFocus: PropType<FocusEventHandler>;
|
|
120
|
+
onBlur: PropType<FocusEventHandler>;
|
|
121
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
122
|
+
}>>, () => VueNode, {}, {}, {}, {
|
|
123
|
+
disabled: boolean;
|
|
124
|
+
autofocus: boolean;
|
|
125
|
+
allowClear: boolean;
|
|
126
|
+
allowHalf: boolean;
|
|
127
|
+
}> | null;
|
|
128
|
+
};
|
|
129
|
+
attrs: Partial<{}>;
|
|
9
130
|
};
|
|
131
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
132
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldRateProps>, {
|
|
11
133
|
mode: string;
|
|
12
134
|
allowClear: boolean;
|
|
@@ -39,21 +161,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
39
161
|
allowHalf: boolean;
|
|
40
162
|
character: any;
|
|
41
163
|
}, {}>;
|
|
42
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
164
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
165
|
export default _default;
|
|
44
166
|
type __VLS_WithDefaults<P, D> = {
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
167
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
46
168
|
default: D[K];
|
|
47
169
|
}> : P[K];
|
|
48
170
|
};
|
|
49
|
-
type __VLS_Prettify<T> = {
|
|
50
|
-
[K in keyof T]: T[K];
|
|
51
|
-
} & {};
|
|
52
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
-
new (): {
|
|
54
|
-
$slots: S;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
171
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
172
|
type __VLS_TypePropsToOption<T> = {
|
|
59
173
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -63,3 +177,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
63
177
|
required: true;
|
|
64
178
|
};
|
|
65
179
|
};
|
|
180
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
181
|
+
new (): {
|
|
182
|
+
$slots: S;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
type __VLS_PrettifyLocal<T> = {
|
|
186
|
+
[K in keyof T]: T[K];
|
|
187
|
+
} & {};
|