@aplus-frontend/ui 0.1.21 → 0.1.23
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/ap-table.vue.mjs +202 -198
- 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/interface.d.ts +1 -1
- package/es/src/ap-table/style/ap-table.css +3 -0
- 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-label/ApLabel.mjs +8 -7
- 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/form-item.vue.mjs +48 -48
- package/es/src/editable-table/hooks/use-get-columns.mjs +64 -56
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/editable-table/utils.mjs +17 -17
- 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/theme/ap-table/ap-table.css +3 -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/ap-table.vue.js +1 -1
- 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/interface.d.ts +1 -1
- package/lib/src/ap-table/style/ap-table.css +3 -0
- 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-label/ApLabel.js +1 -1
- 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/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/editable-table/interface.d.ts +2 -2
- package/lib/src/editable-table/utils.js +1 -1
- 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/theme/ap-table/ap-table.css +3 -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,5 +1,9 @@
|
|
|
1
1
|
import { ApFieldSliderProps } from '../interface';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
3
|
+
import { SliderRange, SliderMarks } from 'ant-design-vue/es/slider';
|
|
4
|
+
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
5
|
+
import { FocusEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
6
|
+
import { VueNode, CustomSlotsType } from 'ant-design-vue/es/_util/type';
|
|
3
7
|
type ApFieldSliderSlots = {
|
|
4
8
|
default?: any;
|
|
5
9
|
mark?: (option: {
|
|
@@ -9,7 +13,366 @@ type ApFieldSliderSlots = {
|
|
|
9
13
|
};
|
|
10
14
|
declare function focus(): void;
|
|
11
15
|
declare function blur(): void;
|
|
12
|
-
declare function __VLS_template():
|
|
16
|
+
declare function __VLS_template(): {
|
|
17
|
+
slots: Readonly<ApFieldSliderSlots> & ApFieldSliderSlots;
|
|
18
|
+
refs: {
|
|
19
|
+
sliderRef: CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
20
|
+
id: StringConstructor;
|
|
21
|
+
prefixCls: StringConstructor;
|
|
22
|
+
tooltipPrefixCls: StringConstructor;
|
|
23
|
+
range: {
|
|
24
|
+
type: PropType<boolean | SliderRange>;
|
|
25
|
+
default: boolean | SliderRange;
|
|
26
|
+
};
|
|
27
|
+
reverse: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
min: NumberConstructor;
|
|
32
|
+
max: NumberConstructor;
|
|
33
|
+
step: {
|
|
34
|
+
type: PropType<number>;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
marks: {
|
|
38
|
+
type: PropType<SliderMarks>;
|
|
39
|
+
default: SliderMarks;
|
|
40
|
+
};
|
|
41
|
+
dots: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
value: {
|
|
46
|
+
type: PropType<number | [number, number]>;
|
|
47
|
+
default: number | [number, number];
|
|
48
|
+
};
|
|
49
|
+
defaultValue: {
|
|
50
|
+
type: PropType<number | [number, number]>;
|
|
51
|
+
default: number | [number, number];
|
|
52
|
+
};
|
|
53
|
+
included: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
vertical: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
tipFormatter: {
|
|
66
|
+
type: PropType<(value?: number) => any>;
|
|
67
|
+
default: (value?: number) => any;
|
|
68
|
+
};
|
|
69
|
+
tooltipOpen: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
tooltipVisible: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
tooltipPlacement: {
|
|
78
|
+
type: PropType<TooltipPlacement>;
|
|
79
|
+
default: TooltipPlacement;
|
|
80
|
+
};
|
|
81
|
+
getTooltipPopupContainer: {
|
|
82
|
+
type: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
83
|
+
default: (triggerNode: HTMLElement) => HTMLElement;
|
|
84
|
+
};
|
|
85
|
+
autofocus: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
handleStyle: {
|
|
90
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
91
|
+
default: CSSProperties | CSSProperties[];
|
|
92
|
+
};
|
|
93
|
+
trackStyle: {
|
|
94
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
95
|
+
default: CSSProperties | CSSProperties[];
|
|
96
|
+
};
|
|
97
|
+
onChange: {
|
|
98
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
99
|
+
default: (value: number | [number, number]) => void;
|
|
100
|
+
};
|
|
101
|
+
onAfterChange: {
|
|
102
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
103
|
+
default: (value: number | [number, number]) => void;
|
|
104
|
+
};
|
|
105
|
+
onFocus: {
|
|
106
|
+
type: PropType<FocusEventHandler>;
|
|
107
|
+
default: FocusEventHandler;
|
|
108
|
+
};
|
|
109
|
+
onBlur: {
|
|
110
|
+
type: PropType<FocusEventHandler>;
|
|
111
|
+
default: FocusEventHandler;
|
|
112
|
+
};
|
|
113
|
+
'onUpdate:value': {
|
|
114
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
115
|
+
default: (value: number | [number, number]) => void;
|
|
116
|
+
};
|
|
117
|
+
}>>, () => VueNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
118
|
+
id: StringConstructor;
|
|
119
|
+
prefixCls: StringConstructor;
|
|
120
|
+
tooltipPrefixCls: StringConstructor;
|
|
121
|
+
range: {
|
|
122
|
+
type: PropType<boolean | SliderRange>;
|
|
123
|
+
default: boolean | SliderRange;
|
|
124
|
+
};
|
|
125
|
+
reverse: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
min: NumberConstructor;
|
|
130
|
+
max: NumberConstructor;
|
|
131
|
+
step: {
|
|
132
|
+
type: PropType<number>;
|
|
133
|
+
default: number;
|
|
134
|
+
};
|
|
135
|
+
marks: {
|
|
136
|
+
type: PropType<SliderMarks>;
|
|
137
|
+
default: SliderMarks;
|
|
138
|
+
};
|
|
139
|
+
dots: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
value: {
|
|
144
|
+
type: PropType<number | [number, number]>;
|
|
145
|
+
default: number | [number, number];
|
|
146
|
+
};
|
|
147
|
+
defaultValue: {
|
|
148
|
+
type: PropType<number | [number, number]>;
|
|
149
|
+
default: number | [number, number];
|
|
150
|
+
};
|
|
151
|
+
included: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
disabled: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
vertical: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
tipFormatter: {
|
|
164
|
+
type: PropType<(value?: number) => any>;
|
|
165
|
+
default: (value?: number) => any;
|
|
166
|
+
};
|
|
167
|
+
tooltipOpen: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
tooltipVisible: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
175
|
+
tooltipPlacement: {
|
|
176
|
+
type: PropType<TooltipPlacement>;
|
|
177
|
+
default: TooltipPlacement;
|
|
178
|
+
};
|
|
179
|
+
getTooltipPopupContainer: {
|
|
180
|
+
type: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
181
|
+
default: (triggerNode: HTMLElement) => HTMLElement;
|
|
182
|
+
};
|
|
183
|
+
autofocus: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
187
|
+
handleStyle: {
|
|
188
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
189
|
+
default: CSSProperties | CSSProperties[];
|
|
190
|
+
};
|
|
191
|
+
trackStyle: {
|
|
192
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
193
|
+
default: CSSProperties | CSSProperties[];
|
|
194
|
+
};
|
|
195
|
+
onChange: {
|
|
196
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
197
|
+
default: (value: number | [number, number]) => void;
|
|
198
|
+
};
|
|
199
|
+
onAfterChange: {
|
|
200
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
201
|
+
default: (value: number | [number, number]) => void;
|
|
202
|
+
};
|
|
203
|
+
onFocus: {
|
|
204
|
+
type: PropType<FocusEventHandler>;
|
|
205
|
+
default: FocusEventHandler;
|
|
206
|
+
};
|
|
207
|
+
onBlur: {
|
|
208
|
+
type: PropType<FocusEventHandler>;
|
|
209
|
+
default: FocusEventHandler;
|
|
210
|
+
};
|
|
211
|
+
'onUpdate:value': {
|
|
212
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
213
|
+
default: (value: number | [number, number]) => void;
|
|
214
|
+
};
|
|
215
|
+
}>>, {
|
|
216
|
+
value: number | [number, number];
|
|
217
|
+
vertical: boolean;
|
|
218
|
+
trackStyle: CSSProperties | CSSProperties[];
|
|
219
|
+
dots: boolean;
|
|
220
|
+
reverse: boolean;
|
|
221
|
+
onFocus: FocusEventHandler;
|
|
222
|
+
onBlur: FocusEventHandler;
|
|
223
|
+
onChange: (value: number | [number, number]) => void;
|
|
224
|
+
range: boolean | SliderRange;
|
|
225
|
+
disabled: boolean;
|
|
226
|
+
autofocus: boolean;
|
|
227
|
+
defaultValue: number | [number, number];
|
|
228
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
229
|
+
step: number;
|
|
230
|
+
included: boolean;
|
|
231
|
+
marks: SliderMarks;
|
|
232
|
+
handleStyle: CSSProperties | CSSProperties[];
|
|
233
|
+
onAfterChange: (value: number | [number, number]) => void;
|
|
234
|
+
tipFormatter: (value?: number) => any;
|
|
235
|
+
tooltipOpen: boolean;
|
|
236
|
+
tooltipVisible: boolean;
|
|
237
|
+
tooltipPlacement: TooltipPlacement;
|
|
238
|
+
getTooltipPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
|
|
239
|
+
}, true, {}, CustomSlotsType<{
|
|
240
|
+
mark?: any;
|
|
241
|
+
default?: any;
|
|
242
|
+
}>, {
|
|
243
|
+
P: {};
|
|
244
|
+
B: {};
|
|
245
|
+
D: {};
|
|
246
|
+
C: {};
|
|
247
|
+
M: {};
|
|
248
|
+
Defaults: {};
|
|
249
|
+
}, Readonly< ExtractPropTypes<{
|
|
250
|
+
id: StringConstructor;
|
|
251
|
+
prefixCls: StringConstructor;
|
|
252
|
+
tooltipPrefixCls: StringConstructor;
|
|
253
|
+
range: {
|
|
254
|
+
type: PropType<boolean | SliderRange>;
|
|
255
|
+
default: boolean | SliderRange;
|
|
256
|
+
};
|
|
257
|
+
reverse: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: boolean;
|
|
260
|
+
};
|
|
261
|
+
min: NumberConstructor;
|
|
262
|
+
max: NumberConstructor;
|
|
263
|
+
step: {
|
|
264
|
+
type: PropType<number>;
|
|
265
|
+
default: number;
|
|
266
|
+
};
|
|
267
|
+
marks: {
|
|
268
|
+
type: PropType<SliderMarks>;
|
|
269
|
+
default: SliderMarks;
|
|
270
|
+
};
|
|
271
|
+
dots: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: boolean;
|
|
274
|
+
};
|
|
275
|
+
value: {
|
|
276
|
+
type: PropType<number | [number, number]>;
|
|
277
|
+
default: number | [number, number];
|
|
278
|
+
};
|
|
279
|
+
defaultValue: {
|
|
280
|
+
type: PropType<number | [number, number]>;
|
|
281
|
+
default: number | [number, number];
|
|
282
|
+
};
|
|
283
|
+
included: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: boolean;
|
|
286
|
+
};
|
|
287
|
+
disabled: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
vertical: {
|
|
292
|
+
type: BooleanConstructor;
|
|
293
|
+
default: boolean;
|
|
294
|
+
};
|
|
295
|
+
tipFormatter: {
|
|
296
|
+
type: PropType<(value?: number) => any>;
|
|
297
|
+
default: (value?: number) => any;
|
|
298
|
+
};
|
|
299
|
+
tooltipOpen: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: boolean;
|
|
302
|
+
};
|
|
303
|
+
tooltipVisible: {
|
|
304
|
+
type: BooleanConstructor;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
307
|
+
tooltipPlacement: {
|
|
308
|
+
type: PropType<TooltipPlacement>;
|
|
309
|
+
default: TooltipPlacement;
|
|
310
|
+
};
|
|
311
|
+
getTooltipPopupContainer: {
|
|
312
|
+
type: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
313
|
+
default: (triggerNode: HTMLElement) => HTMLElement;
|
|
314
|
+
};
|
|
315
|
+
autofocus: {
|
|
316
|
+
type: BooleanConstructor;
|
|
317
|
+
default: boolean;
|
|
318
|
+
};
|
|
319
|
+
handleStyle: {
|
|
320
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
321
|
+
default: CSSProperties | CSSProperties[];
|
|
322
|
+
};
|
|
323
|
+
trackStyle: {
|
|
324
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
325
|
+
default: CSSProperties | CSSProperties[];
|
|
326
|
+
};
|
|
327
|
+
onChange: {
|
|
328
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
329
|
+
default: (value: number | [number, number]) => void;
|
|
330
|
+
};
|
|
331
|
+
onAfterChange: {
|
|
332
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
333
|
+
default: (value: number | [number, number]) => void;
|
|
334
|
+
};
|
|
335
|
+
onFocus: {
|
|
336
|
+
type: PropType<FocusEventHandler>;
|
|
337
|
+
default: FocusEventHandler;
|
|
338
|
+
};
|
|
339
|
+
onBlur: {
|
|
340
|
+
type: PropType<FocusEventHandler>;
|
|
341
|
+
default: FocusEventHandler;
|
|
342
|
+
};
|
|
343
|
+
'onUpdate:value': {
|
|
344
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
345
|
+
default: (value: number | [number, number]) => void;
|
|
346
|
+
};
|
|
347
|
+
}>>, () => VueNode, {}, {}, {}, {
|
|
348
|
+
value: number | [number, number];
|
|
349
|
+
vertical: boolean;
|
|
350
|
+
trackStyle: CSSProperties | CSSProperties[];
|
|
351
|
+
dots: boolean;
|
|
352
|
+
reverse: boolean;
|
|
353
|
+
onFocus: FocusEventHandler;
|
|
354
|
+
onBlur: FocusEventHandler;
|
|
355
|
+
onChange: (value: number | [number, number]) => void;
|
|
356
|
+
range: boolean | SliderRange;
|
|
357
|
+
disabled: boolean;
|
|
358
|
+
autofocus: boolean;
|
|
359
|
+
defaultValue: number | [number, number];
|
|
360
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
361
|
+
step: number;
|
|
362
|
+
included: boolean;
|
|
363
|
+
marks: SliderMarks;
|
|
364
|
+
handleStyle: CSSProperties | CSSProperties[];
|
|
365
|
+
onAfterChange: (value: number | [number, number]) => void;
|
|
366
|
+
tipFormatter: (value?: number) => any;
|
|
367
|
+
tooltipOpen: boolean;
|
|
368
|
+
tooltipVisible: boolean;
|
|
369
|
+
tooltipPlacement: TooltipPlacement;
|
|
370
|
+
getTooltipPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
|
|
371
|
+
}> | null;
|
|
372
|
+
};
|
|
373
|
+
attrs: Partial<{}>;
|
|
374
|
+
};
|
|
375
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
376
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldSliderProps>, {
|
|
14
377
|
included: boolean;
|
|
15
378
|
min: number;
|
|
@@ -42,21 +405,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
42
405
|
tooltipVisible: boolean;
|
|
43
406
|
emptyText: string;
|
|
44
407
|
}, {}>;
|
|
45
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
408
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
409
|
export default _default;
|
|
47
410
|
type __VLS_WithDefaults<P, D> = {
|
|
48
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
411
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
49
412
|
default: D[K];
|
|
50
413
|
}> : P[K];
|
|
51
414
|
};
|
|
52
|
-
type __VLS_Prettify<T> = {
|
|
53
|
-
[K in keyof T]: T[K];
|
|
54
|
-
} & {};
|
|
55
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
-
new (): {
|
|
57
|
-
$slots: S;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
415
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
416
|
type __VLS_TypePropsToOption<T> = {
|
|
62
417
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -66,3 +421,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
66
421
|
required: true;
|
|
67
422
|
};
|
|
68
423
|
};
|
|
424
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
425
|
+
new (): {
|
|
426
|
+
$slots: S;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
type __VLS_PrettifyLocal<T> = {
|
|
430
|
+
[K in keyof T]: T[K];
|
|
431
|
+
} & {};
|
|
@@ -5,7 +5,12 @@ type ApFieldSwitchSlots = {
|
|
|
5
5
|
unCheckedChildren: any;
|
|
6
6
|
default: any;
|
|
7
7
|
};
|
|
8
|
-
declare function __VLS_template():
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
slots: Readonly<ApFieldSwitchSlots> & ApFieldSwitchSlots;
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
14
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldSwitchProps>, {
|
|
10
15
|
emptyText: string;
|
|
11
16
|
checkedValue: boolean;
|
|
@@ -29,21 +34,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
29
34
|
unCheckedValue: string | number | boolean;
|
|
30
35
|
emptyText: string;
|
|
31
36
|
}, {}>;
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
38
|
export default _default;
|
|
34
39
|
type __VLS_WithDefaults<P, D> = {
|
|
35
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
36
41
|
default: D[K];
|
|
37
42
|
}> : P[K];
|
|
38
43
|
};
|
|
39
|
-
type __VLS_Prettify<T> = {
|
|
40
|
-
[K in keyof T]: T[K];
|
|
41
|
-
} & {};
|
|
42
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
-
new (): {
|
|
44
|
-
$slots: S;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
44
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
45
|
type __VLS_TypePropsToOption<T> = {
|
|
49
46
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -53,3 +50,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
53
50
|
required: true;
|
|
54
51
|
};
|
|
55
52
|
};
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type __VLS_PrettifyLocal<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApFieldTextProps
|
|
1
|
+
import { ApFieldTextProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
import { FieldMode } from '..';
|
|
4
5
|
type ApFieldTextSlots = {
|
|
5
6
|
addonAfter?: any;
|
|
6
7
|
addonBefore?: any;
|
|
@@ -8,7 +9,12 @@ type ApFieldTextSlots = {
|
|
|
8
9
|
suffix?: any;
|
|
9
10
|
clearIcon?: any;
|
|
10
11
|
};
|
|
11
|
-
declare function __VLS_template():
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
slots: Readonly<ApFieldTextSlots> & ApFieldTextSlots;
|
|
14
|
+
refs: {};
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
18
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextProps>, {
|
|
13
19
|
emptyText: string;
|
|
14
20
|
mode: string;
|
|
@@ -34,28 +40,20 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
34
40
|
}>>> & {
|
|
35
41
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
36
42
|
}, {
|
|
37
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "
|
|
43
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
38
44
|
mode: FieldMode;
|
|
39
45
|
bordered: boolean;
|
|
40
46
|
allowClear: boolean;
|
|
41
47
|
lazy: boolean;
|
|
42
48
|
emptyText: string;
|
|
43
49
|
}, {}>;
|
|
44
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
50
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
51
|
export default _default;
|
|
46
52
|
type __VLS_WithDefaults<P, D> = {
|
|
47
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
48
54
|
default: D[K];
|
|
49
55
|
}> : P[K];
|
|
50
56
|
};
|
|
51
|
-
type __VLS_Prettify<T> = {
|
|
52
|
-
[K in keyof T]: T[K];
|
|
53
|
-
} & {};
|
|
54
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
-
new (): {
|
|
56
|
-
$slots: S;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
57
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
60
58
|
type __VLS_TypePropsToOption<T> = {
|
|
61
59
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -65,3 +63,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
65
63
|
required: true;
|
|
66
64
|
};
|
|
67
65
|
};
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
type __VLS_PrettifyLocal<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ApFieldTextPasswordProps
|
|
1
|
+
import { ApFieldTextPasswordProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { FieldMode } from '..';
|
|
3
4
|
type ApFieldTextPasswordSlots = {
|
|
4
5
|
addonAfter: any;
|
|
5
6
|
addonBefore: any;
|
|
@@ -8,7 +9,12 @@ type ApFieldTextPasswordSlots = {
|
|
|
8
9
|
clearIcon: any;
|
|
9
10
|
iconRender: any;
|
|
10
11
|
};
|
|
11
|
-
declare function __VLS_template():
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
slots: Readonly<ApFieldTextPasswordSlots> & ApFieldTextPasswordSlots;
|
|
14
|
+
refs: {};
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
18
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextPasswordProps>, {
|
|
13
19
|
emptyText: string;
|
|
14
20
|
mode: string;
|
|
@@ -39,7 +45,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
39
45
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
40
46
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
41
47
|
}, {
|
|
42
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "
|
|
48
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
43
49
|
mode: FieldMode;
|
|
44
50
|
visible: boolean;
|
|
45
51
|
bordered: boolean;
|
|
@@ -49,21 +55,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
49
55
|
visibilityToggle: boolean;
|
|
50
56
|
emptyText: string;
|
|
51
57
|
}, {}>;
|
|
52
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
59
|
export default _default;
|
|
54
60
|
type __VLS_WithDefaults<P, D> = {
|
|
55
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
56
62
|
default: D[K];
|
|
57
63
|
}> : P[K];
|
|
58
64
|
};
|
|
59
|
-
type __VLS_Prettify<T> = {
|
|
60
|
-
[K in keyof T]: T[K];
|
|
61
|
-
} & {};
|
|
62
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
-
new (): {
|
|
64
|
-
$slots: S;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
65
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
68
66
|
type __VLS_TypePropsToOption<T> = {
|
|
69
67
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -73,3 +71,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
73
71
|
required: true;
|
|
74
72
|
};
|
|
75
73
|
};
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
type __VLS_PrettifyLocal<T> = {
|
|
80
|
+
[K in keyof T]: T[K];
|
|
81
|
+
} & {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApFieldTextAreaProps
|
|
1
|
+
import { ApFieldTextAreaProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
import { FieldMode } from '..';
|
|
4
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextAreaProps>, {
|
|
5
6
|
emptyText: string;
|
|
6
7
|
bordered: boolean;
|
|
@@ -24,7 +25,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
24
25
|
}>>> & {
|
|
25
26
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
27
|
}, {
|
|
27
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "
|
|
28
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
28
29
|
mode: FieldMode;
|
|
29
30
|
bordered: boolean;
|
|
30
31
|
allowClear: boolean;
|
|
@@ -33,13 +34,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
33
34
|
}, {}>;
|
|
34
35
|
export default _default;
|
|
35
36
|
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
37
38
|
default: D[K];
|
|
38
39
|
}> : P[K];
|
|
39
40
|
};
|
|
40
|
-
type __VLS_Prettify<T> = {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} & {};
|
|
43
41
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
42
|
type __VLS_TypePropsToOption<T> = {
|
|
45
43
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -49,3 +47,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
49
47
|
required: true;
|
|
50
48
|
};
|
|
51
49
|
};
|
|
50
|
+
type __VLS_PrettifyLocal<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const m=require("ant-design-vue");require("./style.css");const y=require("../hooks/use-default-placeholder.js"),v=require("../../hooks/useControllableValue.js"),B=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},autocomplete:{},readonly:{type:Boolean},status:{},defaultValue:{},"onUpdate:value":{},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const m=require("ant-design-vue");require("./style.css");const y=require("../hooks/use-default-placeholder.js"),v=require("../../hooks/useControllableValue.js"),B=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},autocomplete:{},readonly:{type:Boolean},status:{},defaultValue:{},"onUpdate:value":{},loading:{type:Boolean},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(r,{expose:s,emit:i}){const t=e.ref(),l=r,p=i,{value:a,updateValue:d}=v.useControllableValue(l,p),{b:c}=B.useNamespace("field-text-area"),f=y.useDefaultPlaceholder("TextArea",l);return s({focus:o=>{var n;(n=t.value)==null||n.focus(o)},blur:()=>{var o;(o=t.value)==null||o.blur()},resizableTextArea:e.computed(()=>{var o;return(o=t.value)==null?void 0:o.resizableTextArea})}),(o,n)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(c)())},e.toDisplayString(e.unref(u.isNil)(e.unref(a))||e.unref(a)===""?o.emptyText:e.unref(a)),3)):(e.openBlock(),e.createBlock(e.unref(m.Input).TextArea,e.mergeProps({key:1},e.unref(u.omit)(l,["onUpdate:value","value"]),{placeholder:e.unref(f),value:e.unref(a),"onUpdate:value":e.unref(d),ref_key:"textAreaRef",ref:t}),null,16,["placeholder","value","onUpdate:value"]))}});exports.default=h;
|