@polyv/vue-components 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/vue2/index.es.js +15629 -12581
- package/vue2/src/components/alert/index.d.ts +14 -14
- package/vue2/src/components/alert/src/alert.vue.d.ts +5 -5
- package/vue2/src/components/alert/src/props-define.d.ts +2 -2
- package/vue2/src/components/animation/bubble-animation/bubble-animation.vue.d.ts +1 -1
- package/vue2/src/components/animation/number-animation/index.d.ts +118 -0
- package/vue2/src/components/animation/number-animation/src/number-animation.vue.d.ts +58 -0
- package/vue2/src/components/animation/number-animation/src/props-define.d.ts +58 -0
- package/vue2/src/components/badge/index.d.ts +63 -0
- package/vue2/src/components/badge/src/badge.vue.d.ts +37 -0
- package/vue2/src/components/badge/src/props-define.d.ts +29 -0
- package/vue2/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +23 -19
- package/vue2/src/components/business/external-links/external-links.vue.d.ts +7 -0
- package/vue2/src/components/business/external-links/index.d.ts +38 -1
- package/vue2/src/components/business/external-links/use-external-links.d.ts +39 -1
- package/vue2/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +14 -0
- package/vue2/src/components/button/index.d.ts +2 -2
- package/vue2/src/components/button/src/button.vue.d.ts +1 -1
- package/vue2/src/components/color-cell/index.d.ts +12 -0
- package/vue2/src/components/color-cell/src/color-cell.vue.d.ts +12 -0
- package/vue2/src/components/color-cell/src/props-define.d.ts +8 -0
- package/vue2/src/components/condition-filter/index.d.ts +46 -0
- package/vue2/src/components/condition-filter/src/condition-filter-item.vue.d.ts +9 -0
- package/vue2/src/components/condition-filter/src/condition-filter.vue.d.ts +7 -0
- package/vue2/src/components/condition-filter/src/props-define.d.ts +18 -0
- package/vue2/src/components/descriptions/index.d.ts +106 -0
- package/vue2/src/components/descriptions/src/descriptions-item.vue.d.ts +32 -0
- package/vue2/src/components/descriptions/src/descriptions.d.ts +58 -0
- package/vue2/src/components/descriptions/src/inject.d.ts +7 -0
- package/vue2/src/components/descriptions/src/item-cell.d.ts +15 -0
- package/vue2/src/components/descriptions/src/props-define.d.ts +81 -0
- package/vue2/src/components/dropdown/index.d.ts +58 -58
- package/vue2/src/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/vue2/src/components/dropdown/src/dropdown.vue.d.ts +15 -15
- package/vue2/src/components/dropdown/src/sub-dropdown.vue.d.ts +5 -5
- package/vue2/src/components/dropdown/src/use-dropdown.d.ts +8 -8
- package/vue2/src/components/empty/index.d.ts +6 -6
- package/vue2/src/components/empty/src/empty.vue.d.ts +2 -2
- package/vue2/src/components/empty/src/props-define.d.ts +1 -1
- package/vue2/src/components/example/example.vue.d.ts +5 -5
- package/vue2/src/components/example/index.d.ts +14 -14
- package/vue2/src/components/example/props-define.d.ts +2 -2
- package/vue2/src/components/exports.d.ts +10 -0
- package/vue2/src/components/file-icon/index.d.ts +15 -1
- package/vue2/src/components/form/color-picker/index.d.ts +82 -0
- package/vue2/src/components/form/color-picker/src/color-picker.vue.d.ts +82 -0
- package/vue2/src/components/form/color-picker/src/props-define.d.ts +65 -0
- package/vue2/src/components/form/file-upload/index.d.ts +106 -42
- package/vue2/src/components/form/file-upload/src/file-upload.vue.d.ts +36 -14
- package/vue2/src/components/form/file-upload/src/hooks/props-define.d.ts +28 -7
- package/vue2/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +1 -1
- package/vue2/src/components/form/form-submit-button/index.d.ts +1 -1
- package/vue2/src/components/form/form-submit-button/src/form-submit-button.vue.d.ts +1 -1
- package/vue2/src/components/form/image-upload/index.d.ts +24 -12
- package/vue2/src/components/form/image-upload/src/hooks/props-define.d.ts +12 -6
- package/vue2/src/components/form/image-upload/src/image-upload.vue.d.ts +24 -12
- package/vue2/src/components/form/input/index.d.ts +2 -2
- package/vue2/src/components/form/input/src/input.vue.d.ts +2 -2
- package/vue2/src/components/form/input-number/index.d.ts +2 -2
- package/vue2/src/components/form/input-number/src/input-number.vue.d.ts +1 -1
- package/vue2/src/components/form/select/index.d.ts +934 -5
- package/vue2/src/components/form/select/src/props-define.d.ts +4 -0
- package/vue2/src/components/form/select/src/select.vue.d.ts +59 -13
- package/vue2/src/components/form/transfer/transfer.vue.d.ts +2 -2
- package/vue2/src/components/form/tree-select/index.d.ts +74 -0
- package/vue2/src/components/form/tree-select/src/props-define.d.ts +59 -0
- package/vue2/src/components/form/tree-select/src/tree-select.vue.d.ts +76 -0
- package/vue2/src/components/grid/index.d.ts +111 -0
- package/vue2/src/components/grid/src/col.vue.d.ts +34 -0
- package/vue2/src/components/grid/src/inject-key.d.ts +10 -0
- package/vue2/src/components/grid/src/props-define.d.ts +35 -0
- package/vue2/src/components/grid/src/row.vue.d.ts +35 -0
- package/vue2/src/components/icons/icons/crop/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/grid/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/pause/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/play/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/violation/index.d.ts +6 -0
- package/vue2/src/components/icons/map.d.ts +5 -0
- package/vue2/src/components/image/index.d.ts +6 -6
- package/vue2/src/components/image/src/image.vue.d.ts +2 -2
- package/vue2/src/components/image/src/props-define.d.ts +1 -1
- package/vue2/src/components/image-cropper/index.d.ts +14 -8
- package/vue2/src/components/image-cropper/src/cropper-layer/use-cropper-layer.d.ts +41 -0
- package/vue2/src/components/image-cropper/src/hooks/props-define.d.ts +22 -19
- package/vue2/src/components/image-cropper/src/hooks/use-image-cropper.d.ts +35 -9
- package/vue2/src/components/image-cropper/src/image-cropper.vue.d.ts +16 -9
- package/vue2/src/components/notification/index.d.ts +2 -0
- package/vue2/src/components/notification/src/hooks.d.ts +15 -0
- package/vue2/src/components/notification/src/notification-popover.vue.d.ts +21 -0
- package/vue2/src/components/notification/src/notification.d.ts +23 -0
- package/vue2/src/components/notification/src/position-management.d.ts +16 -0
- package/vue2/src/components/notification/src/types.d.ts +26 -0
- package/vue2/src/components/pagination/index.d.ts +1 -1
- package/vue2/src/components/pagination/pagination.vue.d.ts +1 -1
- package/vue2/src/components/popconfirm/index.d.ts +38 -34
- package/vue2/src/components/popconfirm/src/popconfirm.vue.d.ts +37 -34
- package/vue2/src/components/popconfirm/src/props-define.d.ts +12 -4
- package/vue2/src/components/popover/index.d.ts +36 -34
- package/vue2/src/components/popover/src/popover.vue.d.ts +14 -13
- package/vue2/src/components/popover/src/props-define.d.ts +14 -5
- package/vue2/src/components/popup/index.d.ts +36 -30
- package/vue2/src/components/popup/src/hooks/popup-props.d.ts +8 -4
- package/vue2/src/components/popup/src/hooks/use-popup-effect.d.ts +1 -1
- package/vue2/src/components/popup/src/hooks/use-popup-position.d.ts +1 -1
- package/vue2/src/components/popup/src/popup.vue.d.ts +13 -11
- package/vue2/src/components/splitter/index.d.ts +87 -0
- package/vue2/src/components/splitter/src/inject-key.d.ts +16 -0
- package/vue2/src/components/splitter/src/props-define.d.ts +32 -0
- package/vue2/src/components/splitter/src/splitter-panel.vue.d.ts +25 -0
- package/vue2/src/components/splitter/src/splitter.vue.d.ts +36 -0
- package/vue2/src/components/swiper/index.d.ts +212 -2
- package/vue2/src/components/table/index.d.ts +62 -11
- package/vue2/src/components/table/src/components/table-body-cell/body-cell-tags.vue.d.ts +19 -1
- package/vue2/src/components/table/src/components/table-body-cell/use-table-body-cell.d.ts +2 -0
- package/vue2/src/components/table/src/components/table-fixed-shadow.vue.d.ts +2 -2
- package/vue2/src/components/table/src/components/table-multiple-select/table-row-multiple.vue.d.ts +5 -1
- package/vue2/src/components/table/src/components/table-multiple-select/use-table-multiple.d.ts +1 -0
- package/vue2/src/components/table/src/components/table-single-select/table-row-single.vue.d.ts +34 -0
- package/vue2/src/components/table/src/components/table-single-select/use-table-single.d.ts +7 -0
- package/vue2/src/components/table/src/hooks/props-define.d.ts +30 -5
- package/vue2/src/components/table/src/hooks/use-table/use-table-request.d.ts +3 -2
- package/vue2/src/components/table/src/hooks/use-table/use-table.d.ts +2 -1
- package/vue2/src/components/table/src/hooks/use-table-column/use-table-column.d.ts +4 -2
- package/vue2/src/components/table/src/table-column.vue.d.ts +7 -3
- package/vue2/src/components/table/src/table.vue.d.ts +2 -1
- package/vue2/src/components/table/src/types/index.d.ts +1 -0
- package/vue2/src/components/table-operation/index.d.ts +24 -2
- package/vue2/src/components/table-operation/src/props-define.d.ts +7 -0
- package/vue2/src/components/table-operation/src/table-operation-item.vue.d.ts +9 -1
- package/vue2/src/components/tag/index.d.ts +16 -16
- package/vue2/src/components/tag/src/props-define.d.ts +2 -2
- package/vue2/src/components/tag/src/tag.vue.d.ts +6 -6
- package/vue2/src/components/toast/_component/toast-element.vue.d.ts +1 -1
- package/vue2/src/components/tooltip/index.d.ts +30 -30
- package/vue2/src/components/tooltip/src/props-define.d.ts +4 -4
- package/vue2/src/components/tooltip/src/tooltip.vue.d.ts +11 -11
- package/vue2/src/components/tooltip/src/use-tooltip.d.ts +2 -2
- package/vue2/src/components/tree/index.d.ts +36 -0
- package/vue2/src/components/tree/src/hooks/use-tree.d.ts +25 -0
- package/vue2/src/components/tree/src/props-define.d.ts +103 -0
- package/vue2/src/components/tree/src/tree-node.vue.d.ts +11 -0
- package/vue2/src/components/tree/src/tree.vue.d.ts +36 -0
- package/vue2/src/hooks/element/use-breakpoint/index.d.ts +10 -0
- package/vue2/src/interface/enum.d.ts +2 -0
- package/vue2/src/lang/internal/en.json.d.ts +27 -13
- package/vue2/src/lang/internal/index.d.ts +14 -0
- package/vue2/src/lang/internal/ja.json.d.ts +27 -13
- package/vue2/src/lang/internal/ko.json.d.ts +27 -13
- package/vue2/src/lang/internal/ru.json.d.ts +27 -13
- package/vue2/src/lang/internal/zh-CN.json.d.ts +28 -14
- package/vue2/src/lang/internal/zh-TW.json.d.ts +27 -13
- package/vue2/src/vue-utils/render-slot.d.ts +9 -1
- package/vue2/src/vue-utils/version-compatible/types.d.ts +9 -0
- package/vue3/index.es.js +14584 -11332
- package/vue3/src/components/alert/index.d.ts +14 -14
- package/vue3/src/components/alert/src/alert.vue.d.ts +5 -5
- package/vue3/src/components/alert/src/props-define.d.ts +2 -2
- package/vue3/src/components/animation/bubble-animation/bubble-animation.vue.d.ts +1 -1
- package/vue3/src/components/animation/number-animation/index.d.ts +118 -0
- package/vue3/src/components/animation/number-animation/src/number-animation.vue.d.ts +58 -0
- package/vue3/src/components/animation/number-animation/src/props-define.d.ts +58 -0
- package/vue3/src/components/badge/index.d.ts +63 -0
- package/vue3/src/components/badge/src/badge.vue.d.ts +37 -0
- package/vue3/src/components/badge/src/props-define.d.ts +29 -0
- package/vue3/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +23 -19
- package/vue3/src/components/business/external-links/external-links.vue.d.ts +7 -0
- package/vue3/src/components/business/external-links/index.d.ts +38 -1
- package/vue3/src/components/business/external-links/use-external-links.d.ts +39 -1
- package/vue3/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +14 -0
- package/vue3/src/components/button/index.d.ts +2 -2
- package/vue3/src/components/button/src/button.vue.d.ts +1 -1
- package/vue3/src/components/color-cell/index.d.ts +12 -0
- package/vue3/src/components/color-cell/src/color-cell.vue.d.ts +12 -0
- package/vue3/src/components/color-cell/src/props-define.d.ts +8 -0
- package/vue3/src/components/condition-filter/index.d.ts +46 -0
- package/vue3/src/components/condition-filter/src/condition-filter-item.vue.d.ts +9 -0
- package/vue3/src/components/condition-filter/src/condition-filter.vue.d.ts +7 -0
- package/vue3/src/components/condition-filter/src/props-define.d.ts +18 -0
- package/vue3/src/components/descriptions/index.d.ts +106 -0
- package/vue3/src/components/descriptions/src/descriptions-item.vue.d.ts +32 -0
- package/vue3/src/components/descriptions/src/descriptions.d.ts +58 -0
- package/vue3/src/components/descriptions/src/inject.d.ts +7 -0
- package/vue3/src/components/descriptions/src/item-cell.d.ts +15 -0
- package/vue3/src/components/descriptions/src/props-define.d.ts +81 -0
- package/vue3/src/components/dropdown/index.d.ts +58 -58
- package/vue3/src/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/vue3/src/components/dropdown/src/dropdown.vue.d.ts +15 -15
- package/vue3/src/components/dropdown/src/sub-dropdown.vue.d.ts +5 -5
- package/vue3/src/components/dropdown/src/use-dropdown.d.ts +8 -8
- package/vue3/src/components/empty/index.d.ts +6 -6
- package/vue3/src/components/empty/src/empty.vue.d.ts +2 -2
- package/vue3/src/components/empty/src/props-define.d.ts +1 -1
- package/vue3/src/components/example/example.vue.d.ts +5 -5
- package/vue3/src/components/example/index.d.ts +14 -14
- package/vue3/src/components/example/props-define.d.ts +2 -2
- package/vue3/src/components/exports.d.ts +10 -0
- package/vue3/src/components/file-icon/index.d.ts +15 -1
- package/vue3/src/components/form/color-picker/index.d.ts +82 -0
- package/vue3/src/components/form/color-picker/src/color-picker.vue.d.ts +82 -0
- package/vue3/src/components/form/color-picker/src/props-define.d.ts +65 -0
- package/vue3/src/components/form/file-upload/index.d.ts +106 -42
- package/vue3/src/components/form/file-upload/src/file-upload.vue.d.ts +36 -14
- package/vue3/src/components/form/file-upload/src/hooks/props-define.d.ts +28 -7
- package/vue3/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +1 -1
- package/vue3/src/components/form/form-submit-button/index.d.ts +1 -1
- package/vue3/src/components/form/form-submit-button/src/form-submit-button.vue.d.ts +1 -1
- package/vue3/src/components/form/image-upload/index.d.ts +24 -12
- package/vue3/src/components/form/image-upload/src/hooks/props-define.d.ts +12 -6
- package/vue3/src/components/form/image-upload/src/image-upload.vue.d.ts +24 -12
- package/vue3/src/components/form/input/index.d.ts +2 -2
- package/vue3/src/components/form/input/src/input.vue.d.ts +2 -2
- package/vue3/src/components/form/input-number/index.d.ts +2 -2
- package/vue3/src/components/form/input-number/src/input-number.vue.d.ts +1 -1
- package/vue3/src/components/form/select/index.d.ts +934 -5
- package/vue3/src/components/form/select/src/props-define.d.ts +4 -0
- package/vue3/src/components/form/select/src/select.vue.d.ts +59 -13
- package/vue3/src/components/form/transfer/transfer.vue.d.ts +2 -2
- package/vue3/src/components/form/tree-select/index.d.ts +74 -0
- package/vue3/src/components/form/tree-select/src/props-define.d.ts +59 -0
- package/vue3/src/components/form/tree-select/src/tree-select.vue.d.ts +76 -0
- package/vue3/src/components/grid/index.d.ts +111 -0
- package/vue3/src/components/grid/src/col.vue.d.ts +34 -0
- package/vue3/src/components/grid/src/inject-key.d.ts +10 -0
- package/vue3/src/components/grid/src/props-define.d.ts +35 -0
- package/vue3/src/components/grid/src/row.vue.d.ts +35 -0
- package/vue3/src/components/icons/icons/crop/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/grid/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/pause/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/play/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/violation/index.d.ts +6 -0
- package/vue3/src/components/icons/map.d.ts +5 -0
- package/vue3/src/components/image/index.d.ts +6 -6
- package/vue3/src/components/image/src/image.vue.d.ts +2 -2
- package/vue3/src/components/image/src/props-define.d.ts +1 -1
- package/vue3/src/components/image-cropper/index.d.ts +14 -8
- package/vue3/src/components/image-cropper/src/cropper-layer/cropper-layer.vue.d.ts +2 -0
- package/vue3/src/components/image-cropper/src/cropper-layer/use-cropper-layer.d.ts +41 -0
- package/vue3/src/components/image-cropper/src/hooks/props-define.d.ts +22 -19
- package/vue3/src/components/image-cropper/src/hooks/use-image-cropper.d.ts +35 -9
- package/vue3/src/components/image-cropper/src/image-cropper.vue.d.ts +16 -9
- package/vue3/src/components/image-cropper/src/image-layer/image-layer.vue.d.ts +2 -0
- package/vue3/src/components/notification/index.d.ts +2 -0
- package/vue3/src/components/notification/src/hooks.d.ts +15 -0
- package/vue3/src/components/notification/src/notification-popover.vue.d.ts +21 -0
- package/vue3/src/components/notification/src/notification.d.ts +23 -0
- package/vue3/src/components/notification/src/position-management.d.ts +16 -0
- package/vue3/src/components/notification/src/types.d.ts +26 -0
- package/vue3/src/components/pagination/index.d.ts +1 -1
- package/vue3/src/components/pagination/pagination.vue.d.ts +1 -1
- package/vue3/src/components/popconfirm/index.d.ts +38 -34
- package/vue3/src/components/popconfirm/src/popconfirm.vue.d.ts +37 -34
- package/vue3/src/components/popconfirm/src/props-define.d.ts +12 -4
- package/vue3/src/components/popover/index.d.ts +36 -34
- package/vue3/src/components/popover/src/popover.vue.d.ts +14 -13
- package/vue3/src/components/popover/src/props-define.d.ts +14 -5
- package/vue3/src/components/popup/index.d.ts +36 -30
- package/vue3/src/components/popup/src/hooks/popup-props.d.ts +8 -4
- package/vue3/src/components/popup/src/hooks/use-popup-effect.d.ts +1 -1
- package/vue3/src/components/popup/src/hooks/use-popup-position.d.ts +1 -1
- package/vue3/src/components/popup/src/popup.vue.d.ts +13 -11
- package/vue3/src/components/splitter/index.d.ts +87 -0
- package/vue3/src/components/splitter/src/inject-key.d.ts +16 -0
- package/vue3/src/components/splitter/src/props-define.d.ts +32 -0
- package/vue3/src/components/splitter/src/splitter-panel.vue.d.ts +25 -0
- package/vue3/src/components/splitter/src/splitter.vue.d.ts +36 -0
- package/vue3/src/components/swiper/index.d.ts +212 -2
- package/vue3/src/components/table/index.d.ts +62 -11
- package/vue3/src/components/table/src/components/table-body-cell/body-cell-tags.vue.d.ts +19 -1
- package/vue3/src/components/table/src/components/table-body-cell/use-table-body-cell.d.ts +2 -0
- package/vue3/src/components/table/src/components/table-fixed-shadow.vue.d.ts +2 -2
- package/vue3/src/components/table/src/components/table-multiple-select/table-row-multiple.vue.d.ts +5 -1
- package/vue3/src/components/table/src/components/table-multiple-select/use-table-multiple.d.ts +1 -0
- package/vue3/src/components/table/src/components/table-single-select/table-row-single.vue.d.ts +34 -0
- package/vue3/src/components/table/src/components/table-single-select/use-table-single.d.ts +7 -0
- package/vue3/src/components/table/src/hooks/props-define.d.ts +30 -5
- package/vue3/src/components/table/src/hooks/use-table/use-table-request.d.ts +3 -2
- package/vue3/src/components/table/src/hooks/use-table/use-table.d.ts +2 -1
- package/vue3/src/components/table/src/hooks/use-table-column/use-table-column.d.ts +4 -2
- package/vue3/src/components/table/src/table-column.vue.d.ts +7 -3
- package/vue3/src/components/table/src/table.vue.d.ts +2 -1
- package/vue3/src/components/table/src/types/index.d.ts +1 -0
- package/vue3/src/components/table-operation/index.d.ts +24 -2
- package/vue3/src/components/table-operation/src/props-define.d.ts +7 -0
- package/vue3/src/components/table-operation/src/table-operation-item.vue.d.ts +9 -1
- package/vue3/src/components/tag/index.d.ts +16 -16
- package/vue3/src/components/tag/src/props-define.d.ts +2 -2
- package/vue3/src/components/tag/src/tag.vue.d.ts +6 -6
- package/vue3/src/components/toast/_component/toast-element.vue.d.ts +1 -1
- package/vue3/src/components/tooltip/index.d.ts +30 -30
- package/vue3/src/components/tooltip/src/props-define.d.ts +4 -4
- package/vue3/src/components/tooltip/src/tooltip.vue.d.ts +11 -11
- package/vue3/src/components/tooltip/src/use-tooltip.d.ts +2 -2
- package/vue3/src/components/tree/index.d.ts +36 -0
- package/vue3/src/components/tree/src/hooks/use-tree.d.ts +25 -0
- package/vue3/src/components/tree/src/props-define.d.ts +103 -0
- package/vue3/src/components/tree/src/tree-node.vue.d.ts +11 -0
- package/vue3/src/components/tree/src/tree.vue.d.ts +36 -0
- package/vue3/src/hooks/element/use-breakpoint/index.d.ts +10 -0
- package/vue3/src/interface/enum.d.ts +2 -0
- package/vue3/src/lang/internal/en.json.d.ts +27 -13
- package/vue3/src/lang/internal/index.d.ts +14 -0
- package/vue3/src/lang/internal/ja.json.d.ts +27 -13
- package/vue3/src/lang/internal/ko.json.d.ts +27 -13
- package/vue3/src/lang/internal/ru.json.d.ts +27 -13
- package/vue3/src/lang/internal/zh-CN.json.d.ts +28 -14
- package/vue3/src/lang/internal/zh-TW.json.d.ts +27 -13
- package/vue3/src/vue-utils/render-slot.d.ts +9 -1
- package/vue3/src/vue-utils/version-compatible/types.d.ts +9 -0
- package/vue2/src/components/image-cropper/src/image-cropper-viewport/image-cropper-viewport.vue.d.ts +0 -6
- package/vue2/src/components/image-cropper/src/image-cropper-viewport/use-cropper-data.d.ts +0 -9
- package/vue2/src/components/image-cropper/src/image-cropper-viewport/use-cropper-elem.d.ts +0 -8
- package/vue2/src/components/image-cropper/src/image-cropper-viewport/use-cropper-options.d.ts +0 -23
- package/vue2/src/components/image-cropper/src/image-cropper-viewport/use-cropper-within.d.ts +0 -8
- package/vue2/src/plugins/cropperjs/index.d.ts +0 -14
- package/vue3/src/components/image-cropper/src/image-cropper-viewport/image-cropper-viewport.vue.d.ts +0 -6
- package/vue3/src/components/image-cropper/src/image-cropper-viewport/use-cropper-data.d.ts +0 -9
- package/vue3/src/components/image-cropper/src/image-cropper-viewport/use-cropper-elem.d.ts +0 -8
- package/vue3/src/components/image-cropper/src/image-cropper-viewport/use-cropper-options.d.ts +0 -23
- package/vue3/src/components/image-cropper/src/image-cropper-viewport/use-cropper-within.d.ts +0 -8
- package/vue3/src/plugins/cropperjs/index.d.ts +0 -14
- /package/vue2/src/components/{table/src/components/table-body-cell/body-cell-single.vue.d.ts → image-cropper/src/cropper-layer/cropper-layer.vue.d.ts} +0 -0
- /package/{vue3/src/components/table/src/components/table-body-cell/body-cell-single.vue.d.ts → vue2/src/components/image-cropper/src/image-layer/image-layer.vue.d.ts} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GridGutterType, GridGutterBreakpoint } from './props-define';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
12
|
+
col: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
gutter: import('vue-types').VueTypeDef<GridGutterType | GridGutterBreakpoint> & {
|
|
16
|
+
default: number | (() => [number, number]) | (() => GridGutterBreakpoint);
|
|
17
|
+
};
|
|
18
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
col: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
gutter: import('vue-types').VueTypeDef<GridGutterType | GridGutterBreakpoint> & {
|
|
23
|
+
default: number | (() => [number, number]) | (() => GridGutterBreakpoint);
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
col: number;
|
|
27
|
+
gutter: GridGutterType | GridGutterBreakpoint;
|
|
28
|
+
}>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$scopedSlots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -28,6 +28,7 @@ export { default as PwcIconComputerDown } from './icons/computer-down';
|
|
|
28
28
|
export { default as PwcIconComputerFilled } from './icons/computer-filled';
|
|
29
29
|
export { default as PwcIconComputerPlay } from './icons/computer-play';
|
|
30
30
|
export { default as PwcIconCopy } from './icons/copy';
|
|
31
|
+
export { default as PwcIconCrop } from './icons/crop';
|
|
31
32
|
export { default as PwcIconCustomerService } from './icons/customer-service';
|
|
32
33
|
export { default as PwcIconDataExport } from './icons/data-export';
|
|
33
34
|
export { default as PwcIconDataExportTwo } from './icons/data-export-two';
|
|
@@ -47,6 +48,7 @@ export { default as PwcIconFavorite } from './icons/favorite';
|
|
|
47
48
|
export { default as PwcIconFeedback } from './icons/feedback';
|
|
48
49
|
export { default as PwcIconFile } from './icons/file';
|
|
49
50
|
export { default as PwcIconFilter } from './icons/filter';
|
|
51
|
+
export { default as PwcIconGrid } from './icons/grid';
|
|
50
52
|
export { default as PwcIconHamburger } from './icons/hamburger';
|
|
51
53
|
export { default as PwcIconHome } from './icons/home';
|
|
52
54
|
export { default as PwcIconIdCard } from './icons/id-card';
|
|
@@ -71,9 +73,11 @@ export { default as PwcIconMoney } from './icons/money';
|
|
|
71
73
|
export { default as PwcIconMore } from './icons/more';
|
|
72
74
|
export { default as PwcIconMoveDown } from './icons/move-down';
|
|
73
75
|
export { default as PwcIconMoveUp } from './icons/move-up';
|
|
76
|
+
export { default as PwcIconPause } from './icons/pause';
|
|
74
77
|
export { default as PwcIconPeoples } from './icons/peoples';
|
|
75
78
|
export { default as PwcIconPlatform } from './icons/platform';
|
|
76
79
|
export { default as PwcIconPlatformFilled } from './icons/platform-filled';
|
|
80
|
+
export { default as PwcIconPlay } from './icons/play';
|
|
77
81
|
export { default as PwcIconPlayFast } from './icons/play-fast';
|
|
78
82
|
export { default as PwcIconPlayRollback } from './icons/play-rollback';
|
|
79
83
|
export { default as PwcIconPortrait } from './icons/portrait';
|
|
@@ -112,6 +116,7 @@ export { default as PwcIconUser } from './icons/user';
|
|
|
112
116
|
export { default as PwcIconUserFilled } from './icons/user-filled';
|
|
113
117
|
export { default as PwcIconVideo } from './icons/video';
|
|
114
118
|
export { default as PwcIconVideoFilled } from './icons/video-filled';
|
|
119
|
+
export { default as PwcIconViolation } from './icons/violation';
|
|
115
120
|
export { default as PwcIconWarningCircleFilled } from './icons/warning-circle-filled';
|
|
116
121
|
export { default as PwcIconWarningCircleOutline } from './icons/warning-circle-outline';
|
|
117
122
|
export { default as PwcIconZoomIn } from './icons/zoom-in';
|
|
@@ -15,7 +15,7 @@ export declare const PwcImage: import('../../vue-utils/install-utils').SFCInstal
|
|
|
15
15
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
18
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
19
19
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
@@ -36,7 +36,7 @@ export declare const PwcImage: import('../../vue-utils/install-utils').SFCInstal
|
|
|
36
36
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
39
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
40
40
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
@@ -64,7 +64,7 @@ export declare const PwcImage: import('../../vue-utils/install-utils').SFCInstal
|
|
|
64
64
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
67
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
68
68
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
69
69
|
default: boolean;
|
|
70
70
|
};
|
|
@@ -85,7 +85,7 @@ export declare const PwcImage: import('../../vue-utils/install-utils').SFCInstal
|
|
|
85
85
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
86
86
|
default: boolean;
|
|
87
87
|
};
|
|
88
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
88
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
89
89
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
90
90
|
default: boolean;
|
|
91
91
|
};
|
|
@@ -106,7 +106,7 @@ export declare const PwcImage: import('../../vue-utils/install-utils').SFCInstal
|
|
|
106
106
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
107
107
|
default: boolean;
|
|
108
108
|
};
|
|
109
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
109
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
110
110
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
111
111
|
default: boolean;
|
|
112
112
|
};
|
|
@@ -135,7 +135,7 @@ export declare const PwcImage: import('../../vue-utils/install-utils').SFCInstal
|
|
|
135
135
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
138
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
139
139
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
140
140
|
default: boolean;
|
|
141
141
|
};
|
|
@@ -27,7 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
27
27
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
30
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
31
31
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
@@ -51,7 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
51
51
|
blurBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
54
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
55
55
|
noCache: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
56
56
|
default: boolean;
|
|
57
57
|
};
|
|
@@ -34,7 +34,7 @@ export declare const imageProps: () => {
|
|
|
34
34
|
* 图片适应模式
|
|
35
35
|
* @propType ImageObjectFit
|
|
36
36
|
*/
|
|
37
|
-
objectFit: import('vue-types').VueTypeDef<"
|
|
37
|
+
objectFit: import('vue-types').VueTypeDef<"none" | "fill" | "contain" | "cover" | "scale-down">;
|
|
38
38
|
/**
|
|
39
39
|
* 阻止缓存,自动在地址添加时间戳参数
|
|
40
40
|
* @default false
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
export declare const PwcImageCropper: import('../../vue-utils/install-utils').SFCInstall<import('vue').DefineComponent<{
|
|
2
|
-
target: import('vue-types').VueTypeDef<string |
|
|
3
|
-
within: import('vue-types').VueTypeDef<"
|
|
4
|
-
default: "
|
|
2
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
3
|
+
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
4
|
+
default: "image" | "canvas";
|
|
5
5
|
};
|
|
6
6
|
aspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
7
7
|
initialAspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
8
|
+
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
8
11
|
}, {
|
|
9
12
|
getCropperData: () => import('./src/hooks/props-define').ImageCropperData | undefined;
|
|
10
13
|
resetSelection: () => void;
|
|
11
|
-
imageCenter: () => void;
|
|
12
14
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
-
target: import('vue-types').VueTypeDef<string |
|
|
14
|
-
within: import('vue-types').VueTypeDef<"
|
|
15
|
-
default: "
|
|
15
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
16
|
+
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
17
|
+
default: "image" | "canvas";
|
|
16
18
|
};
|
|
17
19
|
aspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
18
20
|
initialAspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
21
|
+
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
19
24
|
}>>, {
|
|
20
|
-
within: "
|
|
25
|
+
within: "image" | "canvas";
|
|
26
|
+
resizeBox: boolean;
|
|
21
27
|
}>, import('../../vue-utils/install-utils').InstallOptions>;
|
|
22
28
|
export * from './src/hooks/props-define';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** 8 个控制点方向 */
|
|
2
|
+
export type HandleDirection = 'tl' | 't' | 'tr' | 'r' | 'br' | 'b' | 'bl' | 'l';
|
|
3
|
+
export declare function useCropperLayer(): {
|
|
4
|
+
dragging: import('vue').Ref<boolean>;
|
|
5
|
+
cropBoxStyle: import('vue').ComputedRef<{
|
|
6
|
+
position: "absolute";
|
|
7
|
+
left: string;
|
|
8
|
+
top: string;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
}>;
|
|
12
|
+
maskStyles: import('vue').ComputedRef<{
|
|
13
|
+
top: {
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
right: number;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
bottom: {
|
|
20
|
+
top: string;
|
|
21
|
+
left: number;
|
|
22
|
+
right: number;
|
|
23
|
+
bottom: number;
|
|
24
|
+
};
|
|
25
|
+
left: {
|
|
26
|
+
top: string;
|
|
27
|
+
left: number;
|
|
28
|
+
width: string;
|
|
29
|
+
height: string;
|
|
30
|
+
};
|
|
31
|
+
right: {
|
|
32
|
+
top: string;
|
|
33
|
+
left: string;
|
|
34
|
+
right: number;
|
|
35
|
+
height: string;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
onBoxMouseDown: (event: MouseEvent) => void;
|
|
39
|
+
onHandleMouseDown: (event: MouseEvent, direction: HandleDirection) => void;
|
|
40
|
+
resizeBox: boolean;
|
|
41
|
+
};
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import { FormatProps } from '../../../../vue-utils';
|
|
2
|
-
/**
|
|
3
|
-
export declare const imageCropperWithins: readonly ["canvas", "image"
|
|
4
|
-
/**
|
|
2
|
+
/** 裁切限制边界 */
|
|
3
|
+
export declare const imageCropperWithins: readonly ["canvas", "image"];
|
|
4
|
+
/** 裁切限制边界 */
|
|
5
5
|
export type ImageCropperWithins = typeof imageCropperWithins[number];
|
|
6
6
|
export interface ImageCropperData {
|
|
7
|
-
/**
|
|
7
|
+
/** 图片裁切的 x 坐标 */
|
|
8
8
|
x: number;
|
|
9
|
-
/**
|
|
9
|
+
/** 图片裁切的 y 坐标 */
|
|
10
10
|
y: number;
|
|
11
|
-
/**
|
|
11
|
+
/** 图片裁切的宽度 */
|
|
12
12
|
width: number;
|
|
13
|
-
/**
|
|
13
|
+
/** 图片裁切的高度 */
|
|
14
14
|
height: number;
|
|
15
15
|
}
|
|
16
16
|
export declare const imageCropperProps: () => {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* 裁切目标
|
|
19
19
|
*/
|
|
20
|
-
target: import('vue-types').VueTypeDef<string |
|
|
20
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 限制裁切边界
|
|
23
23
|
* @propType ImageCropperWithins
|
|
24
24
|
* @default 'image'
|
|
25
25
|
*/
|
|
26
|
-
within: import('vue-types').VueTypeDef<"
|
|
27
|
-
default: "
|
|
26
|
+
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
27
|
+
default: "image" | "canvas";
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* 固定裁切比例
|
|
31
31
|
*/
|
|
32
32
|
aspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 初始裁切比例
|
|
35
35
|
*/
|
|
36
36
|
initialAspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
37
|
+
/**
|
|
38
|
+
* 是否显示边界控制点
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
37
44
|
};
|
|
38
45
|
export type ImageCropperProps = FormatProps<typeof imageCropperProps>;
|
|
39
46
|
export interface ImageCropperExpose {
|
|
40
47
|
/**
|
|
41
|
-
*
|
|
48
|
+
* 获取裁切数据
|
|
42
49
|
*/
|
|
43
50
|
getCropperData: () => ImageCropperData | undefined;
|
|
44
51
|
/**
|
|
45
52
|
* 重置选区
|
|
46
53
|
*/
|
|
47
54
|
resetSelection: () => void;
|
|
48
|
-
/**
|
|
49
|
-
* 图片重置到中心
|
|
50
|
-
*/
|
|
51
|
-
imageCenter: () => void;
|
|
52
55
|
}
|
|
@@ -1,31 +1,57 @@
|
|
|
1
1
|
import { VueProps } from '../../../../vue-utils';
|
|
2
2
|
import { imageCropperProps } from './props-define';
|
|
3
3
|
import { ComputedRef, Ref } from 'vue';
|
|
4
|
+
export interface CropBox {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ImageDisplayRect {
|
|
11
|
+
left: number;
|
|
12
|
+
top: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}
|
|
4
16
|
export interface ImageCropperInjectData {
|
|
5
17
|
imageCropperProps: VueProps<typeof imageCropperProps>;
|
|
6
|
-
/**
|
|
7
|
-
* 裁剪目标 URL
|
|
8
|
-
*/
|
|
18
|
+
/** 裁剪目标 URL */
|
|
9
19
|
targetUrl: ComputedRef<string>;
|
|
10
|
-
/**
|
|
11
|
-
* 容器尺寸
|
|
12
|
-
*/
|
|
20
|
+
/** 容器尺寸 */
|
|
13
21
|
containerSize: ComputedRef<{
|
|
14
22
|
width: number;
|
|
15
23
|
height: number;
|
|
16
24
|
}>;
|
|
17
|
-
/**
|
|
18
|
-
* 图片尺寸
|
|
19
|
-
*/
|
|
25
|
+
/** 图片原始尺寸 */
|
|
20
26
|
imageSize: Ref<{
|
|
21
27
|
width: number;
|
|
22
28
|
height: number;
|
|
23
29
|
}>;
|
|
30
|
+
/** 图片在容器中的 contain 显示区域 */
|
|
31
|
+
imageDisplayRect: ComputedRef<ImageDisplayRect>;
|
|
32
|
+
/** 裁切框(container space) */
|
|
33
|
+
cropBox: Ref<CropBox>;
|
|
34
|
+
/** 更新裁切框 */
|
|
35
|
+
setCropBox: (box: CropBox) => void;
|
|
36
|
+
/** 重置裁切框为初始状态 */
|
|
37
|
+
resetCropBox: () => void;
|
|
24
38
|
}
|
|
25
39
|
export declare const useImageCropper: (options: {
|
|
26
40
|
props: VueProps<typeof imageCropperProps>;
|
|
27
41
|
}) => {
|
|
28
42
|
containerRef: Ref<HTMLDivElement | undefined>;
|
|
29
43
|
canRender: Ref<boolean>;
|
|
44
|
+
cropBox: Ref<{
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
width: number;
|
|
48
|
+
height: number;
|
|
49
|
+
}>;
|
|
50
|
+
imageDisplayRect: ComputedRef<ImageDisplayRect>;
|
|
51
|
+
imageSize: Ref<{
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
}>;
|
|
55
|
+
resetCropBox: () => void;
|
|
30
56
|
};
|
|
31
57
|
export declare const useImageCropperInject: () => ImageCropperInjectData;
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
+
import { ImageCropperData } from './hooks/props-define';
|
|
1
2
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
target: import('vue-types').VueTypeDef<string |
|
|
3
|
-
within: import('vue-types').VueTypeDef<"
|
|
4
|
-
default: "
|
|
3
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
4
|
+
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
5
|
+
default: "image" | "canvas";
|
|
5
6
|
};
|
|
6
7
|
aspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
7
8
|
initialAspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
9
|
+
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
8
12
|
}, {
|
|
9
|
-
getCropperData: () =>
|
|
13
|
+
getCropperData: () => ImageCropperData | undefined;
|
|
10
14
|
resetSelection: () => void;
|
|
11
|
-
imageCenter: () => void;
|
|
12
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
-
target: import('vue-types').VueTypeDef<string |
|
|
14
|
-
within: import('vue-types').VueTypeDef<"
|
|
15
|
-
default: "
|
|
16
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
17
|
+
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
18
|
+
default: "image" | "canvas";
|
|
16
19
|
};
|
|
17
20
|
aspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
18
21
|
initialAspectRatio: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
|
|
22
|
+
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
19
25
|
}>>, {
|
|
20
|
-
within: "
|
|
26
|
+
within: "image" | "canvas";
|
|
27
|
+
resizeBox: boolean;
|
|
21
28
|
}>;
|
|
22
29
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NotificationPosition } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 通知提醒框元素 hook,管理可见性、定时关闭、位置偏移和生命周期
|
|
4
|
+
*/
|
|
5
|
+
export declare const useNotificationElement: (options: {
|
|
6
|
+
position: NotificationPosition;
|
|
7
|
+
duration: number;
|
|
8
|
+
}) => {
|
|
9
|
+
visible: import('vue').Ref<boolean>;
|
|
10
|
+
offsetPx: import('vue').Ref<number>;
|
|
11
|
+
open: () => void;
|
|
12
|
+
close: () => void;
|
|
13
|
+
onAfterLeave: () => void;
|
|
14
|
+
updateHeight: (height: number) => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FeedbackType } from '../../../interface';
|
|
2
|
+
import { NotificationOptions } from './types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
options: import('vue-types').VueTypeValidableDef<NotificationOptions, import('vue-types/dist/types').ValidatorFunction<NotificationOptions>> & {
|
|
5
|
+
default: () => NotificationOptions;
|
|
6
|
+
};
|
|
7
|
+
feedbackType: import('vue-types').VueTypeValidableDef<FeedbackType, import('vue-types/dist/types').ValidatorFunction<FeedbackType>> & {
|
|
8
|
+
default: FeedbackType;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
options: import('vue-types').VueTypeValidableDef<NotificationOptions, import('vue-types/dist/types').ValidatorFunction<NotificationOptions>> & {
|
|
12
|
+
default: () => NotificationOptions;
|
|
13
|
+
};
|
|
14
|
+
feedbackType: import('vue-types').VueTypeValidableDef<FeedbackType, import('vue-types/dist/types').ValidatorFunction<FeedbackType>> & {
|
|
15
|
+
default: FeedbackType;
|
|
16
|
+
};
|
|
17
|
+
}>>, {
|
|
18
|
+
options: NotificationOptions;
|
|
19
|
+
feedbackType: FeedbackType;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NotificationOptions } from './types';
|
|
2
|
+
export declare const Notification: {
|
|
3
|
+
/**
|
|
4
|
+
* 显示成功提示框
|
|
5
|
+
*/
|
|
6
|
+
success: (options: NotificationOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* 显示警告提示框
|
|
9
|
+
*/
|
|
10
|
+
warning: (options: NotificationOptions) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 显示信息提示框
|
|
13
|
+
*/
|
|
14
|
+
info: (options: NotificationOptions) => void;
|
|
15
|
+
/**
|
|
16
|
+
* 显示错误提示框
|
|
17
|
+
*/
|
|
18
|
+
error: (options: NotificationOptions) => void;
|
|
19
|
+
/**
|
|
20
|
+
* 显示疑问提示框
|
|
21
|
+
*/
|
|
22
|
+
question: (options: NotificationOptions) => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { NotificationPosition } from './types';
|
|
3
|
+
export declare const NotificationPositionManager: {
|
|
4
|
+
/**
|
|
5
|
+
* 将通知加入指定位置队列,并设置初始偏移量
|
|
6
|
+
*/
|
|
7
|
+
add(position: NotificationPosition, id: number, offsetRef: Ref<number>): void;
|
|
8
|
+
/**
|
|
9
|
+
* 更新通知的高度,并重新计算同位置所有通知的偏移量
|
|
10
|
+
*/
|
|
11
|
+
updateHeight(position: NotificationPosition, id: number, height: number): void;
|
|
12
|
+
/**
|
|
13
|
+
* 将通知从队列中移除,并重新计算后续通知的偏移量
|
|
14
|
+
*/
|
|
15
|
+
remove(position: NotificationPosition, id: number): void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
2
|
+
export interface NotificationOptions {
|
|
3
|
+
/**
|
|
4
|
+
* 标题
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 通知栏正文内容
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 显示时间,单位毫秒,0则不自动关闭
|
|
13
|
+
* @default 4500
|
|
14
|
+
*/
|
|
15
|
+
duration?: number;
|
|
16
|
+
/**
|
|
17
|
+
* 弹出位置
|
|
18
|
+
* @default 'top-right'
|
|
19
|
+
*/
|
|
20
|
+
position?: NotificationPosition;
|
|
21
|
+
/**
|
|
22
|
+
* 是否显示关闭按钮
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
showClose?: boolean;
|
|
26
|
+
}
|
|
@@ -41,8 +41,8 @@ export declare const PwcPagination: import('../../vue-utils/install-utils').SFCI
|
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
44
|
-
size: import('./types').PaginationSize;
|
|
45
44
|
layout: ("next" | "prev" | "pager" | "sizes" | "jumper" | "total-items" | "total-pages")[];
|
|
45
|
+
size: import('./types').PaginationSize;
|
|
46
46
|
pagerCount: number;
|
|
47
47
|
pagerType: "number" | "button";
|
|
48
48
|
pageSizes: number[];
|
|
@@ -42,8 +42,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
}>>, {
|
|
45
|
-
size: PaginationSize;
|
|
46
45
|
layout: ("next" | "prev" | "pager" | "sizes" | "jumper" | "total-items" | "total-pages")[];
|
|
46
|
+
size: PaginationSize;
|
|
47
47
|
pagerCount: number;
|
|
48
48
|
pagerType: "number" | "button";
|
|
49
49
|
pageSizes: number[];
|