cosey 0.5.0 → 0.5.2
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/components/audio-card/audio-card.api.d.ts +44 -0
- package/components/audio-card/audio-card.api.js +13 -0
- package/components/audio-card/audio-card.d.ts +78 -14
- package/components/audio-card/audio-card.js +55 -7
- package/components/{stack-dialog/style/index.d.ts → audio-card/audio-card.style.d.ts} +1 -1
- package/components/audio-card/{style/index.js → audio-card.style.js} +3 -6
- package/components/audio-card/index.d.ts +120 -21
- package/components/audio-card/index.js +2 -2
- package/components/audio-viewer/audio-viewer.api.d.ts +28 -0
- package/components/audio-viewer/audio-viewer.api.js +11 -0
- package/components/audio-viewer/audio-viewer.d.ts +43 -11
- package/components/audio-viewer/audio-viewer.js +88 -5
- package/components/{transition/style/index.d.ts → audio-viewer/audio-viewer.style.d.ts} +1 -1
- package/components/audio-viewer/{style/index.js → audio-viewer.style.js} +2 -5
- package/components/audio-viewer/index.d.ts +67 -12
- package/components/audio-viewer/index.js +1 -2
- package/components/card/card.api.d.ts +11 -0
- package/components/card/card.api.js +7 -0
- package/components/card/card.d.ts +6 -11
- package/components/card/card.js +27 -0
- package/components/card/card.style.d.ts +4 -0
- package/components/card/{style/index.js → card.style.js} +2 -2
- package/components/card/index.d.ts +14 -22
- package/components/card/index.js +2 -1
- package/components/close/close.api.d.ts +3 -0
- package/components/close/close.api.js +5 -0
- package/components/close/close.d.ts +6 -2
- package/components/close/close.js +26 -0
- package/components/close/close.style.d.ts +4 -0
- package/components/close/{style/index.js → close.style.js} +2 -5
- package/components/close/index.d.ts +14 -4
- package/components/close/index.js +2 -1
- package/components/col/col.api.d.ts +54 -0
- package/components/col/col.api.js +45 -0
- package/components/col/col.d.ts +87 -28
- package/components/col/col.js +74 -9
- package/components/col/col.style.d.ts +8 -0
- package/components/col/{style/index.js → col.style.js} +3 -6
- package/components/col/index.d.ts +132 -11
- package/components/col/index.js +2 -2
- package/components/config-provider/config-provider.api.d.ts +32 -0
- package/components/config-provider/config-provider.api.js +43 -0
- package/components/config-provider/config-provider.d.ts +28 -23
- package/components/config-provider/config-provider.js +55 -27
- package/components/config-provider/index.d.ts +42 -7
- package/components/config-provider/index.js +2 -2
- package/components/container/container.api.d.ts +14 -0
- package/components/container/container.api.js +9 -0
- package/components/container/container.d.ts +12 -10
- package/components/container/container.js +33 -2
- package/components/container/container.style.d.ts +4 -0
- package/components/container/container.style.js +12 -0
- package/components/container/index.d.ts +22 -6
- package/components/container/index.js +2 -2
- package/components/context-menu/content.api.d.ts +22 -0
- package/components/context-menu/content.api.js +22 -0
- package/components/context-menu/content.d.ts +55 -8
- package/components/context-menu/content.js +44 -0
- package/components/context-menu/context-menu-item.api.d.ts +25 -0
- package/components/context-menu/context-menu-item.api.js +21 -0
- package/components/context-menu/context-menu-item.d.ts +37 -15
- package/components/context-menu/context-menu-item.js +66 -0
- package/components/context-menu/context-menu.api.d.ts +35 -0
- package/components/context-menu/context-menu.api.js +14 -0
- package/components/context-menu/context-menu.d.ts +20 -30
- package/components/context-menu/context-menu.js +152 -2
- package/components/context-menu/context-menu.style.d.ts +8 -0
- package/components/context-menu/{style/index.js → context-menu.style.js} +3 -6
- package/components/context-menu/context-sub-menu.api.d.ts +20 -0
- package/components/context-menu/context-sub-menu.api.js +17 -0
- package/components/context-menu/context-sub-menu.d.ts +31 -13
- package/components/context-menu/context-sub-menu.js +199 -0
- package/components/context-menu/divider.d.ts +2 -0
- package/components/context-menu/divider.js +17 -0
- package/components/context-menu/index.d.ts +145 -43
- package/components/context-menu/index.js +6 -4
- package/components/context-menu/useItemProvide.js +1 -1
- package/components/copy/copy.api.d.ts +14 -0
- package/components/copy/copy.api.js +11 -0
- package/components/copy/copy.d.ts +16 -11
- package/components/copy/copy.js +42 -0
- package/components/copy/copy.style.d.ts +4 -0
- package/components/copy/{style/index.js → copy.style.js} +2 -5
- package/components/copy/index.d.ts +25 -6
- package/components/copy/index.js +2 -1
- package/components/dnd-sort/dnd-sort-item.api.d.ts +13 -0
- package/components/dnd-sort/dnd-sort-item.api.js +9 -0
- package/components/dnd-sort/dnd-sort-item.d.ts +12 -7
- package/components/dnd-sort/dnd-sort-item.js +48 -0
- package/components/dnd-sort/dnd-sort.api.d.ts +33 -0
- package/components/dnd-sort/dnd-sort.api.js +17 -0
- package/components/dnd-sort/dnd-sort.d.ts +26 -25
- package/components/dnd-sort/dnd-sort.js +30 -2
- package/components/dnd-sort/dnd-sort.style.d.ts +4 -0
- package/components/dnd-sort/{style/index.js → dnd-sort.style.js} +2 -5
- package/components/dnd-sort/index.d.ts +69 -19
- package/components/dnd-sort/index.js +4 -3
- package/components/dnd-sort/useDndSort.js +1 -1
- package/components/dnd-sort/useDndSortItem.js +1 -1
- package/components/editor/components/button-group.vue.js +1 -1
- package/components/editor/components/button.vue.js +1 -1
- package/components/editor/components/color-picker/color-picker.style.js +1 -1
- package/components/editor/components/color-picker/color-picker.vue.js +1 -1
- package/components/editor/components/list/list.style.js +1 -1
- package/components/editor/components/list/list.vue.js +1 -1
- package/components/editor/components/picker/picker.style.js +1 -1
- package/components/editor/components/picker/picker.vue.js +1 -1
- package/components/editor/components/resize/resize.style.js +1 -1
- package/components/editor/components/resize/resize.vue.js +1 -1
- package/components/editor/components/select-button.vue.js +1 -1
- package/components/editor/components/select.vue.d.ts +2 -2
- package/components/editor/components/split-button.vue.js +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.style.js +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +1 -1
- package/components/editor/components/toolbar/formats/background.vue.js +1 -1
- package/components/editor/components/toolbar/formats/color.vue.js +1 -1
- package/components/editor/components/toolbar/formats/table.style.js +1 -1
- package/components/editor/components/toolbar/formats/table.vue.js +1 -1
- package/components/editor/components/toolbar/toolbar.vue.js +1 -1
- package/components/editor/editor.api.d.ts +29 -0
- package/components/editor/editor.api.js +29 -0
- package/components/editor/editor.d.ts +50 -15
- package/components/editor/editor.js +109 -4
- package/components/editor/editor.style.d.ts +5 -0
- package/components/editor/{style/index.js → editor.style.js} +89 -5
- package/components/editor/index.d.ts +78 -15
- package/components/editor/index.js +3 -3
- package/components/field/components/cascader/cascader.vue.js +1 -1
- package/components/field/components/checkbox/checkbox.vue.js +1 -1
- package/components/field/components/checkbox-group/checkbox-group.vue.js +1 -1
- package/components/field/components/checkbox-group/panel.vue.js +1 -1
- package/components/field/components/color/color.vue.js +1 -1
- package/components/field/components/common.d.ts +7 -3
- package/components/field/components/common.js +6 -0
- package/components/field/components/date/date.vue.js +1 -1
- package/components/field/components/date-range/date-range.vue.js +1 -1
- package/components/field/components/date-time/date-time.vue.js +1 -1
- package/components/field/components/date-time-range/date-time-range.vue.js +1 -1
- package/components/field/components/dates/dates.vue.js +1 -1
- package/components/field/components/input/input.vue.js +1 -1
- package/components/field/components/input-tag/input-tag.vue.js +1 -1
- package/components/field/components/mention/mention.vue.js +1 -1
- package/components/field/components/month/month.vue.js +1 -1
- package/components/field/components/month-range/month-range.vue.js +1 -1
- package/components/field/components/months/months.vue.js +1 -1
- package/components/field/components/number/number.vue.js +1 -1
- package/components/field/components/number-range/number-range.vue.js +1 -1
- package/components/field/components/password/password.vue.js +1 -1
- package/components/field/components/radio-group/radio-group.vue.js +1 -1
- package/components/field/components/rate/rate.vue.js +1 -1
- package/components/field/components/remote-select/remote-select.api.d.ts +35 -0
- package/components/field/components/remote-select/remote-select.api.js +19 -0
- package/components/field/components/remote-select/remote-select.d.ts +57 -15
- package/components/field/components/remote-select/remote-select.js +34 -0
- package/components/field/components/segmented/segmented.vue.js +1 -1
- package/components/field/components/select/select.vue.js +1 -1
- package/components/field/components/select-v2/select-v2.vue.js +1 -1
- package/components/field/components/slider/slider.vue.js +1 -1
- package/components/field/components/switch/switch.vue.js +1 -1
- package/components/field/components/textarea/textarea.vue.js +1 -1
- package/components/field/components/time/time.vue.js +1 -1
- package/components/field/components/time-range/time-range.vue.js +1 -1
- package/components/field/components/time-select/time-select.vue.js +1 -1
- package/components/field/components/transfer/transfer.vue.js +1 -1
- package/components/field/components/tree-select/tree-select.vue.js +1 -1
- package/components/field/components/upload/upload.vue.js +1 -1
- package/components/field/components/week/week.vue.js +1 -1
- package/components/field/components/year/year.vue.js +1 -1
- package/components/field/components/year-range/year-range.vue.js +1 -1
- package/components/field/components/years/years.vue.js +1 -1
- package/components/field/field.api.d.ts +204 -0
- package/components/field/field.api.js +101 -0
- package/components/field/field.d.ts +14 -130
- package/components/field/field.js +24 -82
- package/components/field/index.d.ts +14 -20
- package/components/field/index.js +2 -2
- package/components/file-card/file-card.api.d.ts +27 -0
- package/components/file-card/file-card.api.js +8 -0
- package/components/file-card/file-card.d.ts +44 -9
- package/components/file-card/file-card.js +29 -5
- package/components/file-card/file-card.style.d.ts +4 -0
- package/components/file-card/{style/index.js → file-card.style.js} +3 -6
- package/components/file-card/index.d.ts +69 -11
- package/components/file-card/index.js +2 -2
- package/components/form/{form-item.d.ts → form-item.api.d.ts} +67 -43
- package/components/form/{form-item.js → form-item.api.js} +34 -10
- package/components/form/form-item.vue.d.ts +1 -1
- package/components/form/form-item.vue.js +42 -42
- package/components/form/form.api.d.ts +173 -0
- package/components/form/form.api.js +66 -0
- package/components/form/form.d.ts +161 -67
- package/components/form/form.js +90 -59
- package/components/form/form.style.d.ts +4 -0
- package/components/form/{style/index.js → form.style.js} +2 -2
- package/components/form/index.d.ts +21 -50
- package/components/form/index.js +3 -3
- package/components/form/useBubbleTemplate.js +2 -2
- package/components/form/useFormItemWidth.d.ts +2 -2
- package/components/form/useFormItemWidth.js +1 -1
- package/components/form/useFormTemplate.d.ts +1 -1
- package/components/form/useFormTemplate.js +1 -1
- package/components/form-dialog/form-dialog.vue.js +1 -1
- package/components/form-drawer/form-drawer.vue.d.ts +5 -5
- package/components/form-drawer/form-drawer.vue.js +1 -1
- package/components/form-drawer/index.d.ts +14 -14
- package/components/form-group/form-group.vue.js +2 -2
- package/components/form-group/style/index.js +1 -1
- package/components/form-list/form-list.api.d.ts +181 -0
- package/components/form-list/form-list.api.js +35 -0
- package/components/form-list/form-list.style.d.ts +4 -0
- package/components/form-list/{style/index.js → form-list.style.js} +2 -5
- package/components/form-list/form-list.vue.d.ts +4 -4
- package/components/form-list/form-list.vue.js +21 -117
- package/components/form-list/index.d.ts +15 -15
- package/components/form-list/index.js +1 -1
- package/components/form-query/form-query.api.d.ts +162 -0
- package/components/form-query/form-query.api.js +38 -0
- package/components/form-query/form-query.d.ts +195 -41
- package/components/form-query/form-query.js +137 -29
- package/components/form-query/form-query.style.d.ts +4 -0
- package/components/form-query/{style/index.js → form-query.style.js} +2 -5
- package/components/form-query/index.d.ts +52 -45
- package/components/form-query/index.js +2 -2
- package/components/highlight/highlight.vue.js +4 -4
- package/components/highlight/style/index.d.ts +0 -5
- package/components/highlight/style/index.js +2 -5
- package/components/horizontal-tree/horizontal-tree.vue.js +2 -2
- package/components/horizontal-tree/style/index.js +1 -1
- package/components/icon/icon.vue.js +2 -2
- package/components/icon/style/index.d.ts +0 -5
- package/components/icon/style/index.js +2 -5
- package/components/iconify-icon/iconify-icon.vue.js +1 -1
- package/components/image-card/image-card.d.ts +7 -7
- package/components/image-card/image-card.js +1 -1
- package/components/image-card/image-card.style.d.ts +4 -0
- package/components/image-card/image-card.style.js +13 -0
- package/components/image-card/image-card.vue.d.ts +16 -16
- package/components/image-card/image-card.vue.js +3 -3
- package/components/image-card/index.d.ts +29 -29
- package/components/index.js +29 -21
- package/components/input-number-range/index.d.ts +5 -5
- package/components/input-number-range/input-number-range.vue.d.ts +2 -2
- package/components/input-number-range/input-number-range.vue.js +2 -2
- package/components/input-number-range/style/index.js +2 -2
- package/components/long-text/long-text.vue.js +2 -2
- package/components/long-text/style/index.d.ts +0 -5
- package/components/long-text/style/index.js +2 -5
- package/components/mask/index.d.ts +14 -4
- package/components/mask/index.js +2 -1
- package/components/mask/mask.api.d.ts +3 -0
- package/components/mask/mask.api.js +5 -0
- package/components/mask/mask.d.ts +6 -2
- package/components/mask/mask.js +23 -0
- package/components/mask/mask.style.d.ts +4 -0
- package/components/mask/{style/index.js → mask.style.js} +2 -5
- package/components/media-card/index.d.ts +70 -12
- package/components/media-card/index.js +2 -2
- package/components/media-card/media-card.api.d.ts +52 -0
- package/components/media-card/media-card.api.js +27 -0
- package/components/media-card/media-card.d.ts +29 -26
- package/components/media-card/media-card.js +56 -24
- package/components/media-card/{style/index.d.ts → media-card.style.d.ts} +3 -3
- package/components/media-card/{style/index.js → media-card.style.js} +1 -1
- package/components/media-card-group/media-card-group.d.ts +1 -1
- package/components/media-card-group/media-card-group.vue.js +7 -6
- package/components/media-card-group/style/index.js +1 -1
- package/components/media-viewer/index.d.ts +74 -13
- package/components/media-viewer/index.js +2 -2
- package/components/media-viewer/media-viewer.api.d.ts +50 -0
- package/components/media-viewer/media-viewer.api.js +27 -0
- package/components/media-viewer/media-viewer.d.ts +45 -22
- package/components/media-viewer/media-viewer.js +13 -7
- package/components/number-format/index.d.ts +3 -3
- package/components/number-format/number-format.vue.d.ts +1 -1
- package/components/number-format/number-format.vue.js +1 -1
- package/components/only-child/index.js +1 -1
- package/components/only-child/{only-child.vue.d.ts → only-child.d.ts} +1 -1
- package/components/only-child/{only-child.vue.js → only-child.js} +1 -2
- package/components/optional-wrapper/index.d.ts +61 -9
- package/components/optional-wrapper/index.js +1 -1
- package/components/optional-wrapper/optional-wrapper.api.d.ts +17 -0
- package/components/optional-wrapper/optional-wrapper.api.js +14 -0
- package/components/optional-wrapper/optional-wrapper.d.ts +28 -8
- package/components/optional-wrapper/optional-wrapper.js +28 -0
- package/components/panel/panel.vue.js +2 -2
- package/components/panel/style/index.d.ts +0 -5
- package/components/panel/style/index.js +2 -5
- package/components/remote-select/index.d.ts +75 -51
- package/components/remote-select/index.js +2 -2
- package/components/remote-select/remote-select.api.d.ts +273 -0
- package/components/remote-select/remote-select.api.js +37 -0
- package/components/remote-select/remote-select.d.ts +337 -63
- package/components/remote-select/remote-select.js +187 -34
- package/components/remote-select/remote-select.style.d.ts +4 -0
- package/components/remote-select/{style/index.js → remote-select.style.js} +2 -2
- package/components/row/row.vue.js +2 -2
- package/components/row/style/index.d.ts +0 -5
- package/components/row/style/index.js +2 -5
- package/components/scroll-view/scroll-view.vue.js +2 -2
- package/components/scroll-view/style/index.d.ts +0 -5
- package/components/scroll-view/style/index.js +2 -5
- package/components/snug-menu/index.d.ts +5 -5
- package/components/snug-menu/snug-menu-item.vue.js +2 -2
- package/components/snug-menu/snug-menu.vue.d.ts +2 -2
- package/components/snug-menu/snug-menu.vue.js +2 -2
- package/components/snug-menu/style/index.d.ts +0 -5
- package/components/snug-menu/style/index.js +2 -5
- package/components/stack-dialog/stack-dialog.style.d.ts +4 -0
- package/components/stack-dialog/{style/index.js → stack-dialog.style.js} +2 -2
- package/components/stack-dialog/stack-dialog.vue.js +3 -3
- package/components/svg-icon/svg-icon.vue.js +1 -1
- package/components/table/index.d.ts +32 -32
- package/components/table/table-column/{style/index.js → table-column.style.js} +2 -5
- package/components/table/table-column/table-column.vue.d.ts +7 -7
- package/components/table/table-column/table-column.vue.js +2 -2
- package/components/table/table-column-editor/item.vue.js +1 -1
- package/components/table/table-column-editor/list.vue.js +1 -1
- package/components/table/table-column-editor/{style/index.js → table-column-editor.style.js} +3 -6
- package/components/table/table-column-editor/table-column-editor.vue.js +3 -3
- package/components/table/table-export/item.vue.js +1 -1
- package/components/table/table-export/list.vue.js +1 -1
- package/components/table/table-export/style/index.d.ts +0 -5
- package/components/table/table-export/style/index.js +2 -5
- package/components/table/table-export/table-export.vue.d.ts +5 -5
- package/components/table/table-export/table-export.vue.js +2 -2
- package/components/table/table-query/table-query.d.ts +2 -2
- package/components/table/table-query/table-query.js +2 -2
- package/components/table/table-query/table-query.vue.d.ts +20 -8
- package/components/table/table-query/table-query.vue.js +1 -2
- package/components/table/table-stats/table-stats.style.js +1 -1
- package/components/table/table-stats/table-stats.vue.js +1 -1
- package/components/table/table.d.ts +7 -7
- package/components/table/table.style.d.ts +0 -6
- package/components/table/table.style.js +3 -10
- package/components/table/table.vue.d.ts +17 -17
- package/components/table/table.vue.js +2 -2
- package/components/table-action/index.d.ts +23 -572
- package/components/table-action/index.js +2 -2
- package/components/table-action/item.api.d.ts +98 -0
- package/components/table-action/item.api.js +35 -0
- package/components/table-action/item.d.ts +126 -16
- package/components/table-action/item.js +88 -32
- package/components/table-action/table-action.api.d.ts +9 -0
- package/components/table-action/table-action.api.js +8 -0
- package/components/table-action/table-action.d.ts +15 -7
- package/components/table-action/table-action.js +36 -4
- package/components/table-action/table-action.style.d.ts +4 -0
- package/components/table-action/{style/index.js → table-action.style.js} +2 -5
- package/components/theme/getGlobalStyleHook.js +1 -1
- package/components/theme/getOverrideStyleHook.js +1 -1
- package/components/theme/getSimpleStyleHook.js +1 -1
- package/components/theme/getStyleHook.js +1 -1
- package/components/theme/interface/components.d.ts +1 -60
- package/components/theme/util/useToken.js +1 -1
- package/components/toggle/index.d.ts +29 -13
- package/components/toggle/index.js +2 -1
- package/components/toggle/toggle.api.d.ts +15 -0
- package/components/toggle/toggle.api.js +13 -0
- package/components/toggle/toggle.d.ts +16 -9
- package/components/toggle/toggle.js +43 -0
- package/components/transition/index.d.ts +165 -11
- package/components/transition/index.js +2 -1
- package/components/transition/transition.api.d.ts +58 -0
- package/components/transition/transition.api.js +52 -0
- package/components/transition/transition.d.ts +108 -7
- package/components/transition/transition.js +38 -0
- package/components/transition/transition.style.d.ts +4 -0
- package/components/transition/{style/index.js → transition.style.js} +2 -2
- package/components/transition-group/index.d.ts +189 -11
- package/components/transition-group/index.js +2 -1
- package/components/transition-group/transition-group.api.d.ts +65 -0
- package/components/transition-group/transition-group.api.js +19 -0
- package/components/transition-group/transition-group.d.ts +123 -7
- package/components/transition-group/transition-group.js +50 -0
- package/components/transition-group/transition-group.style.d.ts +4 -0
- package/components/transition-group/{style/index.js → transition-group.style.js} +2 -5
- package/components/upload/index.d.ts +165 -20
- package/components/upload/index.js +2 -2
- package/components/upload/upload-item.d.ts +37 -0
- package/components/upload/upload-item.js +110 -0
- package/components/upload/upload.api.d.ts +93 -0
- package/components/upload/upload.api.js +71 -0
- package/components/upload/upload.d.ts +106 -53
- package/components/upload/upload.js +211 -7
- package/components/upload/upload.style.d.ts +4 -0
- package/components/upload/{style/index.js → upload.style.js} +3 -6
- package/components/utils.js +1 -1
- package/components/video-card/index.d.ts +120 -21
- package/components/video-card/index.js +2 -2
- package/components/video-card/video-card.api.d.ts +44 -0
- package/components/video-card/video-card.api.js +13 -0
- package/components/video-card/video-card.d.ts +78 -14
- package/components/video-card/video-card.js +58 -7
- package/components/video-card/video-card.style.d.ts +4 -0
- package/components/video-card/{style/index.js → video-card.style.js} +3 -6
- package/components/video-viewer/index.d.ts +67 -12
- package/components/video-viewer/index.js +1 -2
- package/components/video-viewer/video-viewer.api.d.ts +28 -0
- package/components/video-viewer/video-viewer.api.js +11 -0
- package/components/video-viewer/video-viewer.d.ts +43 -11
- package/components/video-viewer/video-viewer.js +89 -5
- package/components/video-viewer/video-viewer.style.d.ts +4 -0
- package/components/video-viewer/{style/index.js → video-viewer.style.js} +2 -5
- package/config/root-config-provider.api.d.ts +20 -0
- package/config/root-config-provider.api.js +21 -0
- package/config/root-config-provider.d.ts +30 -7
- package/config/root-config-provider.js +56 -14
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/layout/layout-aside/layout-aside.vue.js +2 -2
- package/layout/layout-aside/style/index.js +1 -1
- package/layout/layout-auth/layout-auth.vue.js +2 -2
- package/layout/layout-auth/style/index.js +1 -1
- package/layout/layout-base/layout-base.vue.js +2 -2
- package/layout/layout-base/style/index.js +1 -1
- package/layout/layout-brand/layout-brand.vue.js +2 -2
- package/layout/layout-brand/style/index.js +1 -1
- package/layout/layout-breadcrumb/layout-breadcrumb.vue.js +1 -1
- package/layout/layout-change-password/layout-change-password.vue.js +1 -1
- package/layout/layout-change-password/style/index.js +1 -1
- package/layout/layout-color-scheme/layout-color-scheme.vue.js +2 -2
- package/layout/layout-color-scheme/style/index.js +1 -1
- package/layout/layout-content/layout-content.vue.js +2 -2
- package/layout/layout-content/style/index.js +1 -1
- package/layout/layout-empty/layout-empty.vue.js +1 -1
- package/layout/layout-exception/layout-exception.vue.js +2 -2
- package/layout/layout-exception/style/index.js +1 -1
- package/layout/layout-forbidden/layout-forbidden.vue.js +1 -1
- package/layout/layout-header/layout-header.vue.js +2 -2
- package/layout/layout-header/style/index.js +1 -1
- package/layout/layout-iframe/item.vue.js +2 -2
- package/layout/layout-iframe/layout-iframe.vue.js +1 -1
- package/layout/layout-iframe/style/index.js +1 -1
- package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +1 -1
- package/layout/layout-login/layout-login.vue.js +1 -1
- package/layout/layout-login/style/index.js +1 -1
- package/layout/layout-main/layout-main.vue.js +2 -2
- package/layout/layout-main/style/index.js +1 -1
- package/layout/layout-mask/layout-mask.vue.js +2 -2
- package/layout/layout-mask/style/index.js +1 -1
- package/layout/layout-menu/layout-menu.vue.js +2 -2
- package/layout/layout-menu/style/index.js +1 -1
- package/layout/layout-not-found/layout-not-found.vue.js +1 -1
- package/layout/layout-search/layout-search.vue.js +4 -4
- package/layout/layout-search/style/index.js +1 -1
- package/layout/layout-sidebar/layout-sidebar.vue.js +2 -2
- package/layout/layout-sidebar/style/index.js +1 -1
- package/layout/layout-snug-aside/layout-snug-aside.vue.js +2 -2
- package/layout/layout-snug-aside/style/index.js +1 -1
- package/layout/layout-snug-menu/layout-snug-menu.vue.js +1 -1
- package/layout/layout-switch-effect/layout-switch-effect.vue.js +2 -2
- package/layout/layout-switch-effect/style/index.js +1 -1
- package/layout/layout-tabbar/layout-tabbar.vue.js +2 -2
- package/layout/layout-tabbar/reload.vue.js +2 -2
- package/layout/layout-tabbar/style/index.js +1 -1
- package/layout/layout-toggle/layout-toggle.vue.js +1 -1
- package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +1 -1
- package/layout/layout-topbar/layout-topbar.vue.js +2 -2
- package/layout/layout-topbar/style/index.js +1 -1
- package/layout/layout-user-menu/layout-user-menu.vue.js +2 -2
- package/layout/layout-user-menu/style/index.js +1 -1
- package/package.json +3 -3
- package/utils/index.js +1 -1
- package/utils/vue.d.ts +8 -0
- package/utils/vue.js +9 -1
- package/components/audio-card/audio-card.vue.d.ts +0 -14
- package/components/audio-card/audio-card.vue.js +0 -106
- package/components/audio-card/style/index.d.ts +0 -9
- package/components/audio-viewer/audio-viewer.vue.d.ts +0 -16
- package/components/audio-viewer/audio-viewer.vue.js +0 -124
- package/components/audio-viewer/style/index.d.ts +0 -9
- package/components/card/card.vue.d.ts +0 -16
- package/components/card/card.vue.js +0 -31
- package/components/close/close.vue.d.ts +0 -3
- package/components/close/close.vue.js +0 -30
- package/components/close/style/index.d.ts +0 -9
- package/components/col/col.vue.d.ts +0 -16
- package/components/col/col.vue.js +0 -126
- package/components/col/style/index.d.ts +0 -12
- package/components/config-provider/config-provider.vue.d.ts +0 -13
- package/components/config-provider/config-provider.vue.js +0 -77
- package/components/container/container.vue.d.ts +0 -10
- package/components/container/container.vue.js +0 -41
- package/components/container/style/index.d.ts +0 -9
- package/components/container/style/index.js +0 -15
- package/components/context-menu/content.vue.d.ts +0 -3
- package/components/context-menu/content.vue.js +0 -69
- package/components/context-menu/context-menu-item.vue.d.ts +0 -14
- package/components/context-menu/context-menu-item.vue.js +0 -97
- package/components/context-menu/context-menu.vue.d.ts +0 -21
- package/components/context-menu/context-menu.vue.js +0 -165
- package/components/context-menu/context-sub-menu.vue.d.ts +0 -10
- package/components/context-menu/context-sub-menu.vue.js +0 -225
- package/components/context-menu/divider.vue.d.ts +0 -2
- package/components/context-menu/divider.vue.js +0 -19
- package/components/context-menu/style/index.d.ts +0 -11
- package/components/copy/copy.vue.d.ts +0 -10
- package/components/copy/copy.vue.js +0 -60
- package/components/copy/style/index.d.ts +0 -9
- package/components/dnd-sort/dnd-sort-item.vue.d.ts +0 -10
- package/components/dnd-sort/dnd-sort-item.vue.js +0 -61
- package/components/dnd-sort/dnd-sort.vue.d.ts +0 -14
- package/components/dnd-sort/dnd-sort.vue.js +0 -47
- package/components/dnd-sort/style/index.d.ts +0 -9
- package/components/editor/editor.vue.d.ts +0 -11
- package/components/editor/editor.vue.js +0 -144
- package/components/editor/style/button.d.ts +0 -4
- package/components/editor/style/button.js +0 -68
- package/components/editor/style/hljs.d.ts +0 -2
- package/components/editor/style/hljs.js +0 -8
- package/components/editor/style/index.d.ts +0 -11
- package/components/editor/style/toolbar.d.ts +0 -4
- package/components/editor/style/toolbar.js +0 -18
- package/components/field/components/remote-select/remote-select.vue.d.ts +0 -3
- package/components/field/components/remote-select/remote-select.vue.js +0 -32
- package/components/field/field.vue.d.ts +0 -14
- package/components/field/field.vue.js +0 -56
- package/components/file-card/file-card.vue.d.ts +0 -12
- package/components/file-card/file-card.vue.js +0 -61
- package/components/file-card/style/index.d.ts +0 -9
- package/components/form/form.vue.d.ts +0 -281
- package/components/form/form.vue.js +0 -104
- package/components/form/style/index.d.ts +0 -10
- package/components/form-list/form-list.d.ts +0 -55
- package/components/form-list/form-list.js +0 -10
- package/components/form-list/style/index.d.ts +0 -9
- package/components/form-query/form-query.vue.d.ts +0 -318
- package/components/form-query/form-query.vue.js +0 -155
- package/components/form-query/style/index.d.ts +0 -9
- package/components/image-card/style/index.d.ts +0 -9
- package/components/image-card/style/index.js +0 -16
- package/components/mask/mask.vue.d.ts +0 -3
- package/components/mask/mask.vue.js +0 -26
- package/components/mask/style/index.d.ts +0 -9
- package/components/media-card/media-card.vue.d.ts +0 -12
- package/components/media-card/media-card.vue.js +0 -89
- package/components/media-viewer/media-viewer.vue.d.ts +0 -14
- package/components/media-viewer/media-viewer.vue.js +0 -38
- package/components/optional-wrapper/optional-wrapper.vue.d.ts +0 -12
- package/components/optional-wrapper/optional-wrapper.vue.js +0 -27
- package/components/remote-select/remote-select.vue.d.ts +0 -530
- package/components/remote-select/remote-select.vue.js +0 -187
- package/components/table/table-column/style/index.d.ts +0 -9
- package/components/table/table-column-editor/style/index.d.ts +0 -9
- package/components/table-action/item.vue.d.ts +0 -208
- package/components/table-action/item.vue.js +0 -116
- package/components/table-action/style/index.d.ts +0 -9
- package/components/table-action/table-action.vue.d.ts +0 -193
- package/components/table-action/table-action.vue.js +0 -52
- package/components/toggle/toggle.vue.d.ts +0 -14
- package/components/toggle/toggle.vue.js +0 -55
- package/components/transition/transition.vue.d.ts +0 -13
- package/components/transition/transition.vue.js +0 -159
- package/components/transition-group/style/index.d.ts +0 -9
- package/components/transition-group/transition-group.vue.d.ts +0 -13
- package/components/transition-group/transition-group.vue.js +0 -179
- package/components/upload/style/index.d.ts +0 -9
- package/components/upload/upload-item.vue.d.ts +0 -11
- package/components/upload/upload-item.vue.js +0 -147
- package/components/upload/upload.vue.d.ts +0 -23
- package/components/upload/upload.vue.js +0 -275
- package/components/video-card/style/index.d.ts +0 -9
- package/components/video-card/video-card.vue.d.ts +0 -14
- package/components/video-card/video-card.vue.js +0 -111
- package/components/video-viewer/style/index.d.ts +0 -9
- package/components/video-viewer/video-viewer.vue.d.ts +0 -16
- package/components/video-viewer/video-viewer.vue.js +0 -125
- package/config/root-config-provider.vue.d.ts +0 -15
- package/config/root-config-provider.vue.js +0 -85
- /package/components/{remote-select/style/index.d.ts → table/table-column/table-column.style.d.ts} +0 -0
- /package/components/{card/style/index.d.ts → table/table-column-editor/table-column-editor.style.d.ts} +0 -0
|
@@ -1,54 +1,199 @@
|
|
|
1
|
-
export * from './upload';
|
|
1
|
+
export * from './upload.api';
|
|
2
2
|
export * from '../upload-context';
|
|
3
3
|
declare const _Upload: {
|
|
4
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("
|
|
5
|
-
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
accept: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
limit: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
multiple: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
};
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: import("vue").PropType<string | File | (string | File)[]>;
|
|
18
|
+
};
|
|
19
|
+
validateEvent: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
single: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
readonly: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
selectOnly: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
type: import("vue").PropType<import("..").MediaCardBaseProps["size"]>;
|
|
37
|
+
default: "large";
|
|
38
|
+
};
|
|
39
|
+
request: {
|
|
40
|
+
type: import("vue").PropType<import(".").UploadContext["request"]>;
|
|
41
|
+
};
|
|
42
|
+
requestConfig: {
|
|
43
|
+
type: import("vue").PropType<import("axios").AxiosRequestConfig>;
|
|
44
|
+
};
|
|
45
|
+
requestExtra: {
|
|
46
|
+
type: import("vue").PropType<Record<PropertyKey, any>>;
|
|
47
|
+
};
|
|
48
|
+
}>> & Readonly<{
|
|
6
49
|
"onUpdate:modelValue"?: ((value: string | File | (string | File)[]) => any) | undefined;
|
|
50
|
+
onChange?: ((value: string | File | (string | File)[]) => any) | undefined;
|
|
7
51
|
onExceed?: (() => any) | undefined;
|
|
8
|
-
}>,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
exceed: () => boolean;
|
|
54
|
+
'update:modelValue': (value: string | File | (string | File)[]) => string | true | File | (string | File)[];
|
|
55
|
+
change: (value: string | File | (string | File)[]) => string | true | File | (string | File)[];
|
|
12
56
|
}, import("vue").PublicProps, {
|
|
13
57
|
size: "large" | "small" | "middle" | "mini";
|
|
58
|
+
multiple: boolean;
|
|
59
|
+
single: boolean;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
readonly: boolean;
|
|
14
62
|
validateEvent: boolean;
|
|
15
63
|
accept: string;
|
|
16
64
|
limit: number;
|
|
17
|
-
|
|
65
|
+
selectOnly: boolean;
|
|
66
|
+
}, true, {}, import("vue").SlotsType<import("./upload.api").UploadSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
18
67
|
P: {};
|
|
19
68
|
B: {};
|
|
20
69
|
D: {};
|
|
21
70
|
C: {};
|
|
22
71
|
M: {};
|
|
23
72
|
Defaults: {};
|
|
24
|
-
}, Readonly<import("
|
|
25
|
-
|
|
73
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
accept: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
limit: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
multiple: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
};
|
|
85
|
+
modelValue: {
|
|
86
|
+
type: import("vue").PropType<string | File | (string | File)[]>;
|
|
87
|
+
};
|
|
88
|
+
validateEvent: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
single: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
};
|
|
95
|
+
readonly: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
};
|
|
98
|
+
disabled: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
};
|
|
101
|
+
selectOnly: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
};
|
|
104
|
+
size: {
|
|
105
|
+
type: import("vue").PropType<import("..").MediaCardBaseProps["size"]>;
|
|
106
|
+
default: "large";
|
|
107
|
+
};
|
|
108
|
+
request: {
|
|
109
|
+
type: import("vue").PropType<import(".").UploadContext["request"]>;
|
|
110
|
+
};
|
|
111
|
+
requestConfig: {
|
|
112
|
+
type: import("vue").PropType<import("axios").AxiosRequestConfig>;
|
|
113
|
+
};
|
|
114
|
+
requestExtra: {
|
|
115
|
+
type: import("vue").PropType<Record<PropertyKey, any>>;
|
|
116
|
+
};
|
|
117
|
+
}>> & Readonly<{
|
|
26
118
|
"onUpdate:modelValue"?: ((value: string | File | (string | File)[]) => any) | undefined;
|
|
119
|
+
onChange?: ((value: string | File | (string | File)[]) => any) | undefined;
|
|
27
120
|
onExceed?: (() => any) | undefined;
|
|
28
|
-
}>,
|
|
121
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
29
122
|
size: "large" | "small" | "middle" | "mini";
|
|
123
|
+
multiple: boolean;
|
|
124
|
+
single: boolean;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
readonly: boolean;
|
|
30
127
|
validateEvent: boolean;
|
|
31
128
|
accept: string;
|
|
32
129
|
limit: number;
|
|
130
|
+
selectOnly: boolean;
|
|
33
131
|
}>;
|
|
34
132
|
__isFragment?: never;
|
|
35
133
|
__isTeleport?: never;
|
|
36
134
|
__isSuspense?: never;
|
|
37
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("
|
|
38
|
-
|
|
135
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
136
|
+
accept: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
limit: {
|
|
141
|
+
type: NumberConstructor;
|
|
142
|
+
default: number;
|
|
143
|
+
};
|
|
144
|
+
multiple: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
};
|
|
147
|
+
modelValue: {
|
|
148
|
+
type: import("vue").PropType<string | File | (string | File)[]>;
|
|
149
|
+
};
|
|
150
|
+
validateEvent: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
single: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
};
|
|
157
|
+
readonly: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
};
|
|
160
|
+
disabled: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
};
|
|
163
|
+
selectOnly: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
};
|
|
166
|
+
size: {
|
|
167
|
+
type: import("vue").PropType<import("..").MediaCardBaseProps["size"]>;
|
|
168
|
+
default: "large";
|
|
169
|
+
};
|
|
170
|
+
request: {
|
|
171
|
+
type: import("vue").PropType<import(".").UploadContext["request"]>;
|
|
172
|
+
};
|
|
173
|
+
requestConfig: {
|
|
174
|
+
type: import("vue").PropType<import("axios").AxiosRequestConfig>;
|
|
175
|
+
};
|
|
176
|
+
requestExtra: {
|
|
177
|
+
type: import("vue").PropType<Record<PropertyKey, any>>;
|
|
178
|
+
};
|
|
179
|
+
}>> & Readonly<{
|
|
39
180
|
"onUpdate:modelValue"?: ((value: string | File | (string | File)[]) => any) | undefined;
|
|
181
|
+
onChange?: ((value: string | File | (string | File)[]) => any) | undefined;
|
|
40
182
|
onExceed?: (() => any) | undefined;
|
|
41
|
-
}>,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
183
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
184
|
+
exceed: () => boolean;
|
|
185
|
+
'update:modelValue': (value: string | File | (string | File)[]) => string | true | File | (string | File)[];
|
|
186
|
+
change: (value: string | File | (string | File)[]) => string | true | File | (string | File)[];
|
|
45
187
|
}, string, {
|
|
46
188
|
size: "large" | "small" | "middle" | "mini";
|
|
189
|
+
multiple: boolean;
|
|
190
|
+
single: boolean;
|
|
191
|
+
disabled: boolean;
|
|
192
|
+
readonly: boolean;
|
|
47
193
|
validateEvent: boolean;
|
|
48
194
|
accept: string;
|
|
49
195
|
limit: number;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}) & import("vue").Plugin;
|
|
196
|
+
selectOnly: boolean;
|
|
197
|
+
}, {}, string, import("vue").SlotsType<import("./upload.api").UploadSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
53
198
|
export { _Upload as Upload };
|
|
54
199
|
export default _Upload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withInstall } from '../utils.js';
|
|
2
|
-
import stdin_default$1 from './upload.
|
|
3
|
-
export {
|
|
2
|
+
import stdin_default$1 from './upload.js';
|
|
3
|
+
export { uploadEmits, uploadItemEmits, uploadItemProps, uploadProps, uploadSlots } from './upload.api.js';
|
|
4
4
|
export { useUpload, useUploadProvide } from '../upload-context.js';
|
|
5
5
|
|
|
6
6
|
const _Upload = withInstall(stdin_default$1);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
file: {
|
|
3
|
+
type: import("vue").PropType<import("./upload.api").UploadFile>;
|
|
4
|
+
required: boolean;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
readonly: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: import("vue").PropType<import("..").MediaCardBaseProps["size"]>;
|
|
12
|
+
};
|
|
13
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
cancel: () => boolean;
|
|
15
|
+
're-upload': () => boolean;
|
|
16
|
+
remove: () => boolean;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
file: {
|
|
19
|
+
type: import("vue").PropType<import("./upload.api").UploadFile>;
|
|
20
|
+
required: boolean;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
readonly: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: import("vue").PropType<import("..").MediaCardBaseProps["size"]>;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
onRemove?: (() => any) | undefined;
|
|
31
|
+
onCancel?: (() => any) | undefined;
|
|
32
|
+
"onRe-upload"?: (() => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
readonly: boolean;
|
|
35
|
+
file: import("./upload.api").UploadFile;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent, computed, createVNode, Transition, isVNode } from 'vue';
|
|
2
|
+
import { ElProgress, ElButton } from 'element-plus';
|
|
3
|
+
import { uploadItemEmits, uploadItemProps } from './upload.api.js';
|
|
4
|
+
import { MediaCard as _MediaCard } from '../media-card/index.js';
|
|
5
|
+
import stdin_default$1 from '../icon/icon.vue.js';
|
|
6
|
+
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
7
|
+
import { useLocale } from '../../hooks/useLocale.js';
|
|
8
|
+
import { isString } from '../../utils/is.js';
|
|
9
|
+
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
var stdin_default = defineComponent({
|
|
14
|
+
name: "CoUploadItem",
|
|
15
|
+
props: uploadItemProps,
|
|
16
|
+
emits: uploadItemEmits,
|
|
17
|
+
setup(props, {
|
|
18
|
+
emit
|
|
19
|
+
}) {
|
|
20
|
+
const {
|
|
21
|
+
prefixCls
|
|
22
|
+
} = useComponentConfig("upload");
|
|
23
|
+
const {
|
|
24
|
+
t
|
|
25
|
+
} = useLocale();
|
|
26
|
+
const progressStatus = {
|
|
27
|
+
success: "success",
|
|
28
|
+
error: "exception"
|
|
29
|
+
};
|
|
30
|
+
const getProgressStatus = status => {
|
|
31
|
+
return progressStatus[status];
|
|
32
|
+
};
|
|
33
|
+
const progressFormat = percentage => {
|
|
34
|
+
return Math.floor(percentage) + "%";
|
|
35
|
+
};
|
|
36
|
+
const showRemove = computed(() => !props.readonly && (props.file.status === "unready" || props.file.status === "success"));
|
|
37
|
+
const mergedTitle = computed(() => isString(props.file.url) ? props.file.url : "");
|
|
38
|
+
return () => {
|
|
39
|
+
let _slot, _slot2, _slot3;
|
|
40
|
+
return createVNode("div", {
|
|
41
|
+
"class": `${prefixCls.value}-item`
|
|
42
|
+
}, [createVNode(_MediaCard, {
|
|
43
|
+
"ref": "media",
|
|
44
|
+
"src": props.file.previewUrl,
|
|
45
|
+
"name": props.file.name,
|
|
46
|
+
"type": props.file.type,
|
|
47
|
+
"size": props.size,
|
|
48
|
+
"title": mergedTitle.value
|
|
49
|
+
}, null), createVNode(Transition, {
|
|
50
|
+
"name": "co-fade"
|
|
51
|
+
}, {
|
|
52
|
+
default: () => [(props.file.status === "loading" || props.file.status === "error") && createVNode("div", {
|
|
53
|
+
"class": `${prefixCls.value}-status`
|
|
54
|
+
}, [createVNode(ElProgress, {
|
|
55
|
+
"percentage": props.file.percent,
|
|
56
|
+
"type": "circle",
|
|
57
|
+
"width": 64,
|
|
58
|
+
"status": getProgressStatus(props.file.status)
|
|
59
|
+
}, {
|
|
60
|
+
default: ({
|
|
61
|
+
percentage
|
|
62
|
+
}) => {
|
|
63
|
+
return props.file.status === "error" ? createVNode(stdin_default$1, {
|
|
64
|
+
"name": "co:close-filled",
|
|
65
|
+
"size": "lg"
|
|
66
|
+
}, null) : createVNode("span", {
|
|
67
|
+
"class": `${prefixCls.value}-progress-text`
|
|
68
|
+
}, [progressFormat(percentage)]);
|
|
69
|
+
}
|
|
70
|
+
}), createVNode("div", {
|
|
71
|
+
"class": `${prefixCls.value}-actions`
|
|
72
|
+
}, [props.file.status === "loading" && createVNode(ElButton, {
|
|
73
|
+
"link": true,
|
|
74
|
+
"size": "small",
|
|
75
|
+
"type": "primary",
|
|
76
|
+
"onClick": () => emit("cancel")
|
|
77
|
+
}, _isSlot(_slot = t("co.upload.cancelUpload")) ? _slot : {
|
|
78
|
+
default: () => [_slot]
|
|
79
|
+
}), props.file.status === "error" && createVNode(ElButton, {
|
|
80
|
+
"link": true,
|
|
81
|
+
"size": "small",
|
|
82
|
+
"type": "primary",
|
|
83
|
+
"style": {
|
|
84
|
+
marginInlineStart: 0
|
|
85
|
+
},
|
|
86
|
+
"onClick": () => emit("re-upload")
|
|
87
|
+
}, _isSlot(_slot2 = t("co.upload.reUpload")) ? _slot2 : {
|
|
88
|
+
default: () => [_slot2]
|
|
89
|
+
}), createVNode(ElButton, {
|
|
90
|
+
"link": true,
|
|
91
|
+
"size": "small",
|
|
92
|
+
"type": "primary",
|
|
93
|
+
"style": {
|
|
94
|
+
marginInlineStart: 0
|
|
95
|
+
},
|
|
96
|
+
"onClick": () => emit("remove")
|
|
97
|
+
}, _isSlot(_slot3 = t("co.common.delete")) ? _slot3 : {
|
|
98
|
+
default: () => [_slot3]
|
|
99
|
+
})])])]
|
|
100
|
+
}), showRemove.value && createVNode("div", {
|
|
101
|
+
"class": `${prefixCls.value}-remove`,
|
|
102
|
+
"onClick": () => emit("remove")
|
|
103
|
+
}, [createVNode(stdin_default$1, {
|
|
104
|
+
"name": "co:close-large"
|
|
105
|
+
}, null)])]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { type MediaCardBaseProps } from '../media-card';
|
|
3
|
+
import { type UploadContext } from '../upload-context';
|
|
4
|
+
import { ExtractPropTypes, PropType, SlotsType } from 'vue';
|
|
5
|
+
export type UploadFileStatus = 'unready' | 'ready' | 'loading' | 'success' | 'error';
|
|
6
|
+
export interface UploadFile {
|
|
7
|
+
status: UploadFileStatus;
|
|
8
|
+
name: string;
|
|
9
|
+
size: number;
|
|
10
|
+
type: string;
|
|
11
|
+
raw: File | null;
|
|
12
|
+
url: string | File;
|
|
13
|
+
previewUrl: string;
|
|
14
|
+
key: string;
|
|
15
|
+
percent: number;
|
|
16
|
+
controller: AbortController | null;
|
|
17
|
+
}
|
|
18
|
+
export declare const uploadProps: {
|
|
19
|
+
accept: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
limit: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
multiple: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: PropType<string | File | (string | File)[]>;
|
|
32
|
+
};
|
|
33
|
+
validateEvent: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
single: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
};
|
|
40
|
+
readonly: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
};
|
|
46
|
+
selectOnly: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
};
|
|
49
|
+
size: {
|
|
50
|
+
type: PropType<MediaCardBaseProps["size"]>;
|
|
51
|
+
default: "large";
|
|
52
|
+
};
|
|
53
|
+
request: {
|
|
54
|
+
type: PropType<UploadContext["request"]>;
|
|
55
|
+
};
|
|
56
|
+
requestConfig: {
|
|
57
|
+
type: PropType<AxiosRequestConfig>;
|
|
58
|
+
};
|
|
59
|
+
requestExtra: {
|
|
60
|
+
type: PropType<Record<PropertyKey, any>>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|
|
64
|
+
export interface UploadSlots {
|
|
65
|
+
default: {};
|
|
66
|
+
}
|
|
67
|
+
export declare const uploadSlots: SlotsType<UploadSlots>;
|
|
68
|
+
export declare const uploadEmits: {
|
|
69
|
+
exceed: () => boolean;
|
|
70
|
+
'update:modelValue': (value: string | File | (string | File)[]) => string | true | File | (string | File)[];
|
|
71
|
+
change: (value: string | File | (string | File)[]) => string | true | File | (string | File)[];
|
|
72
|
+
};
|
|
73
|
+
export type UploadEmits = typeof uploadEmits;
|
|
74
|
+
export declare const uploadItemProps: {
|
|
75
|
+
file: {
|
|
76
|
+
type: PropType<UploadFile>;
|
|
77
|
+
required: boolean;
|
|
78
|
+
default: () => {};
|
|
79
|
+
};
|
|
80
|
+
readonly: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
size: {
|
|
84
|
+
type: PropType<MediaCardBaseProps["size"]>;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export type UploadItemProps = ExtractPropTypes<typeof uploadItemProps>;
|
|
88
|
+
export declare const uploadItemEmits: {
|
|
89
|
+
cancel: () => boolean;
|
|
90
|
+
're-upload': () => boolean;
|
|
91
|
+
remove: () => boolean;
|
|
92
|
+
};
|
|
93
|
+
export type UploadItemEmits = typeof uploadItemEmits;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const uploadProps = {
|
|
2
|
+
accept: {
|
|
3
|
+
type: String,
|
|
4
|
+
default: ""
|
|
5
|
+
},
|
|
6
|
+
limit: {
|
|
7
|
+
type: Number,
|
|
8
|
+
default: 0
|
|
9
|
+
},
|
|
10
|
+
multiple: {
|
|
11
|
+
type: Boolean
|
|
12
|
+
},
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: [String, Object, Array]
|
|
15
|
+
},
|
|
16
|
+
validateEvent: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
single: {
|
|
21
|
+
type: Boolean
|
|
22
|
+
},
|
|
23
|
+
readonly: {
|
|
24
|
+
type: Boolean
|
|
25
|
+
},
|
|
26
|
+
disabled: {
|
|
27
|
+
type: Boolean
|
|
28
|
+
},
|
|
29
|
+
selectOnly: {
|
|
30
|
+
type: Boolean
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "large"
|
|
35
|
+
},
|
|
36
|
+
request: {
|
|
37
|
+
type: Function
|
|
38
|
+
},
|
|
39
|
+
requestConfig: {
|
|
40
|
+
type: Object
|
|
41
|
+
},
|
|
42
|
+
requestExtra: {
|
|
43
|
+
type: Object
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const uploadSlots = Object;
|
|
47
|
+
const uploadEmits = {
|
|
48
|
+
exceed: () => true,
|
|
49
|
+
"update:modelValue": (value) => value || true,
|
|
50
|
+
change: (value) => value || true
|
|
51
|
+
};
|
|
52
|
+
const uploadItemProps = {
|
|
53
|
+
file: {
|
|
54
|
+
type: Object,
|
|
55
|
+
required: true,
|
|
56
|
+
default: () => ({})
|
|
57
|
+
},
|
|
58
|
+
readonly: {
|
|
59
|
+
type: Boolean
|
|
60
|
+
},
|
|
61
|
+
size: {
|
|
62
|
+
type: String
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const uploadItemEmits = {
|
|
66
|
+
cancel: () => true,
|
|
67
|
+
"re-upload": () => true,
|
|
68
|
+
remove: () => true
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export { uploadEmits, uploadItemEmits, uploadItemProps, uploadProps, uploadSlots };
|