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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { popconfirmProps } from 'element-plus';
|
|
2
|
+
import { ExtractPublicPropTypes, PropType, type ExtractPropTypes } from 'vue';
|
|
3
|
+
export declare const tableActionItemProps: {
|
|
4
|
+
link: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
popconfirm: {
|
|
16
|
+
type: PropType<Partial<ExtractPropTypes<typeof popconfirmProps>> & {
|
|
17
|
+
confirm?: (event: MouseEvent) => any;
|
|
18
|
+
cancel?: (event: MouseEvent) => void;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
onClick: {
|
|
22
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
23
|
+
};
|
|
24
|
+
hidden: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
visible: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
icon: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
readonly type: PropType<"" | "default" | "large" | "small">;
|
|
37
|
+
readonly required: false;
|
|
38
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
|
+
__epPropKey: true;
|
|
40
|
+
};
|
|
41
|
+
disabled: BooleanConstructor;
|
|
42
|
+
nativeType: {
|
|
43
|
+
readonly type: PropType<"button" | "reset" | "submit">;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
} & {
|
|
48
|
+
readonly default: "button";
|
|
49
|
+
};
|
|
50
|
+
loading: BooleanConstructor;
|
|
51
|
+
loadingIcon: {
|
|
52
|
+
readonly type: PropType<string | import("vue").Component>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
} & {
|
|
57
|
+
readonly default: () => any;
|
|
58
|
+
};
|
|
59
|
+
plain: {
|
|
60
|
+
readonly type: PropType<boolean>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
} & {
|
|
65
|
+
readonly default: undefined;
|
|
66
|
+
};
|
|
67
|
+
text: BooleanConstructor;
|
|
68
|
+
bg: BooleanConstructor;
|
|
69
|
+
autofocus: BooleanConstructor;
|
|
70
|
+
round: {
|
|
71
|
+
readonly type: PropType<boolean>;
|
|
72
|
+
readonly required: false;
|
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
74
|
+
__epPropKey: true;
|
|
75
|
+
} & {
|
|
76
|
+
readonly default: undefined;
|
|
77
|
+
};
|
|
78
|
+
circle: BooleanConstructor;
|
|
79
|
+
color: StringConstructor;
|
|
80
|
+
dark: BooleanConstructor;
|
|
81
|
+
autoInsertSpace: {
|
|
82
|
+
readonly type: PropType<boolean>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
} & {
|
|
87
|
+
readonly default: undefined;
|
|
88
|
+
};
|
|
89
|
+
tag: {
|
|
90
|
+
readonly type: PropType<string | import("vue").Component>;
|
|
91
|
+
readonly required: false;
|
|
92
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
|
+
__epPropKey: true;
|
|
94
|
+
} & {
|
|
95
|
+
readonly default: "button";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export type TableActionItem = ExtractPublicPropTypes<typeof tableActionItemProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { buttonProps } from 'element-plus';
|
|
2
|
+
|
|
3
|
+
const tableActionItemProps = {
|
|
4
|
+
...buttonProps,
|
|
5
|
+
link: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: true
|
|
8
|
+
},
|
|
9
|
+
type: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "primary"
|
|
12
|
+
},
|
|
13
|
+
label: {
|
|
14
|
+
type: String
|
|
15
|
+
},
|
|
16
|
+
popconfirm: {
|
|
17
|
+
type: Object
|
|
18
|
+
},
|
|
19
|
+
onClick: {
|
|
20
|
+
type: Function
|
|
21
|
+
},
|
|
22
|
+
hidden: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
visible: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
30
|
+
icon: {
|
|
31
|
+
type: String
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { tableActionItemProps };
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import { PropType, type ExtractPropTypes } from 'vue';
|
|
3
|
-
export declare const tableActionItemProps: {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
2
|
link: {
|
|
5
|
-
type: PropType<boolean>;
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
6
4
|
default: boolean;
|
|
7
5
|
};
|
|
8
6
|
type: {
|
|
9
|
-
type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
7
|
+
type: import("vue").PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
10
8
|
default: string;
|
|
11
9
|
};
|
|
12
10
|
label: {
|
|
13
11
|
type: StringConstructor;
|
|
14
12
|
};
|
|
15
13
|
popconfirm: {
|
|
16
|
-
type: PropType<Partial<ExtractPropTypes<typeof popconfirmProps>> & {
|
|
14
|
+
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<typeof import("element-plus").popconfirmProps>> & {
|
|
17
15
|
confirm?: (event: MouseEvent) => any;
|
|
18
16
|
cancel?: (event: MouseEvent) => void;
|
|
19
17
|
}>;
|
|
20
18
|
};
|
|
21
19
|
onClick: {
|
|
22
|
-
type: PropType<(event: MouseEvent) => void>;
|
|
20
|
+
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
23
21
|
};
|
|
24
22
|
hidden: {
|
|
25
23
|
type: BooleanConstructor;
|
|
@@ -33,14 +31,14 @@ export declare const tableActionItemProps: {
|
|
|
33
31
|
type: StringConstructor;
|
|
34
32
|
};
|
|
35
33
|
size: {
|
|
36
|
-
readonly type: PropType<"" | "default" | "large" | "small">;
|
|
34
|
+
readonly type: import("vue").PropType<"" | "default" | "large" | "small">;
|
|
37
35
|
readonly required: false;
|
|
38
36
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
37
|
__epPropKey: true;
|
|
40
38
|
};
|
|
41
39
|
disabled: BooleanConstructor;
|
|
42
40
|
nativeType: {
|
|
43
|
-
readonly type: PropType<"button" | "reset" | "submit">;
|
|
41
|
+
readonly type: import("vue").PropType<"button" | "reset" | "submit">;
|
|
44
42
|
readonly required: false;
|
|
45
43
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
44
|
__epPropKey: true;
|
|
@@ -49,7 +47,7 @@ export declare const tableActionItemProps: {
|
|
|
49
47
|
};
|
|
50
48
|
loading: BooleanConstructor;
|
|
51
49
|
loadingIcon: {
|
|
52
|
-
readonly type: PropType<string | import("vue").Component>;
|
|
50
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
53
51
|
readonly required: false;
|
|
54
52
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
53
|
__epPropKey: true;
|
|
@@ -57,7 +55,7 @@ export declare const tableActionItemProps: {
|
|
|
57
55
|
readonly default: () => any;
|
|
58
56
|
};
|
|
59
57
|
plain: {
|
|
60
|
-
readonly type: PropType<boolean>;
|
|
58
|
+
readonly type: import("vue").PropType<boolean>;
|
|
61
59
|
readonly required: false;
|
|
62
60
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
61
|
__epPropKey: true;
|
|
@@ -68,7 +66,7 @@ export declare const tableActionItemProps: {
|
|
|
68
66
|
bg: BooleanConstructor;
|
|
69
67
|
autofocus: BooleanConstructor;
|
|
70
68
|
round: {
|
|
71
|
-
readonly type: PropType<boolean>;
|
|
69
|
+
readonly type: import("vue").PropType<boolean>;
|
|
72
70
|
readonly required: false;
|
|
73
71
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
74
72
|
__epPropKey: true;
|
|
@@ -79,7 +77,7 @@ export declare const tableActionItemProps: {
|
|
|
79
77
|
color: StringConstructor;
|
|
80
78
|
dark: BooleanConstructor;
|
|
81
79
|
autoInsertSpace: {
|
|
82
|
-
readonly type: PropType<boolean>;
|
|
80
|
+
readonly type: import("vue").PropType<boolean>;
|
|
83
81
|
readonly required: false;
|
|
84
82
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
83
|
__epPropKey: true;
|
|
@@ -87,12 +85,124 @@ export declare const tableActionItemProps: {
|
|
|
87
85
|
readonly default: undefined;
|
|
88
86
|
};
|
|
89
87
|
tag: {
|
|
90
|
-
readonly type: PropType<string | import("vue").Component>;
|
|
88
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
91
89
|
readonly required: false;
|
|
92
90
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
91
|
__epPropKey: true;
|
|
94
92
|
} & {
|
|
95
93
|
readonly default: "button";
|
|
96
94
|
};
|
|
97
|
-
}
|
|
98
|
-
|
|
95
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
96
|
+
link: {
|
|
97
|
+
type: import("vue").PropType<boolean>;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
type: {
|
|
101
|
+
type: import("vue").PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
label: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
};
|
|
107
|
+
popconfirm: {
|
|
108
|
+
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<typeof import("element-plus").popconfirmProps>> & {
|
|
109
|
+
confirm?: (event: MouseEvent) => any;
|
|
110
|
+
cancel?: (event: MouseEvent) => void;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
onClick: {
|
|
114
|
+
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
115
|
+
};
|
|
116
|
+
hidden: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
visible: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
icon: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
};
|
|
127
|
+
size: {
|
|
128
|
+
readonly type: import("vue").PropType<"" | "default" | "large" | "small">;
|
|
129
|
+
readonly required: false;
|
|
130
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
131
|
+
__epPropKey: true;
|
|
132
|
+
};
|
|
133
|
+
disabled: BooleanConstructor;
|
|
134
|
+
nativeType: {
|
|
135
|
+
readonly type: import("vue").PropType<"button" | "reset" | "submit">;
|
|
136
|
+
readonly required: false;
|
|
137
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
|
+
__epPropKey: true;
|
|
139
|
+
} & {
|
|
140
|
+
readonly default: "button";
|
|
141
|
+
};
|
|
142
|
+
loading: BooleanConstructor;
|
|
143
|
+
loadingIcon: {
|
|
144
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
145
|
+
readonly required: false;
|
|
146
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
147
|
+
__epPropKey: true;
|
|
148
|
+
} & {
|
|
149
|
+
readonly default: () => any;
|
|
150
|
+
};
|
|
151
|
+
plain: {
|
|
152
|
+
readonly type: import("vue").PropType<boolean>;
|
|
153
|
+
readonly required: false;
|
|
154
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
155
|
+
__epPropKey: true;
|
|
156
|
+
} & {
|
|
157
|
+
readonly default: undefined;
|
|
158
|
+
};
|
|
159
|
+
text: BooleanConstructor;
|
|
160
|
+
bg: BooleanConstructor;
|
|
161
|
+
autofocus: BooleanConstructor;
|
|
162
|
+
round: {
|
|
163
|
+
readonly type: import("vue").PropType<boolean>;
|
|
164
|
+
readonly required: false;
|
|
165
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
166
|
+
__epPropKey: true;
|
|
167
|
+
} & {
|
|
168
|
+
readonly default: undefined;
|
|
169
|
+
};
|
|
170
|
+
circle: BooleanConstructor;
|
|
171
|
+
color: StringConstructor;
|
|
172
|
+
dark: BooleanConstructor;
|
|
173
|
+
autoInsertSpace: {
|
|
174
|
+
readonly type: import("vue").PropType<boolean>;
|
|
175
|
+
readonly required: false;
|
|
176
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
177
|
+
__epPropKey: true;
|
|
178
|
+
} & {
|
|
179
|
+
readonly default: undefined;
|
|
180
|
+
};
|
|
181
|
+
tag: {
|
|
182
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
183
|
+
readonly required: false;
|
|
184
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
185
|
+
__epPropKey: true;
|
|
186
|
+
} & {
|
|
187
|
+
readonly default: "button";
|
|
188
|
+
};
|
|
189
|
+
}>> & Readonly<{}>, {
|
|
190
|
+
hidden: boolean;
|
|
191
|
+
visible: boolean;
|
|
192
|
+
round: boolean;
|
|
193
|
+
dark: boolean;
|
|
194
|
+
text: boolean;
|
|
195
|
+
circle: boolean;
|
|
196
|
+
disabled: boolean;
|
|
197
|
+
type: "text" | "warning" | "success" | "primary" | "info" | "danger";
|
|
198
|
+
link: boolean;
|
|
199
|
+
autofocus: boolean;
|
|
200
|
+
loading: boolean;
|
|
201
|
+
tag: string | import("vue").Component;
|
|
202
|
+
plain: boolean;
|
|
203
|
+
nativeType: "button" | "reset" | "submit";
|
|
204
|
+
loadingIcon: string | import("vue").Component;
|
|
205
|
+
bg: boolean;
|
|
206
|
+
autoInsertSpace: boolean;
|
|
207
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
208
|
+
export default _default;
|
|
@@ -1,35 +1,91 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, ref, createVNode, Fragment, mergeProps, isVNode } from 'vue';
|
|
2
|
+
import { omit } from 'lodash-es';
|
|
3
|
+
import { ElPopconfirm, ElButton } from 'element-plus';
|
|
4
|
+
import { tableActionItemProps } from './item.api.js';
|
|
5
|
+
import stdin_default$1 from '../icon/icon.vue.js';
|
|
6
|
+
import { useToken } from '../theme/util/useToken.js';
|
|
7
|
+
import { useLocale } from '../../hooks/useLocale.js';
|
|
2
8
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
var stdin_default = defineComponent({
|
|
13
|
+
name: "CoTableActionItem",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
props: tableActionItemProps,
|
|
16
|
+
setup(props) {
|
|
17
|
+
const {
|
|
18
|
+
t
|
|
19
|
+
} = useLocale();
|
|
20
|
+
const {
|
|
21
|
+
token
|
|
22
|
+
} = useToken();
|
|
23
|
+
const buttonProps = computed(() => {
|
|
24
|
+
return omit(props, "icon");
|
|
25
|
+
});
|
|
26
|
+
const loading = ref(false);
|
|
27
|
+
const mergedVisible = computed(() => {
|
|
28
|
+
return props.hidden ? false : props.visible;
|
|
29
|
+
});
|
|
30
|
+
const onConfirm = async (e, confirm) => {
|
|
31
|
+
loading.value = true;
|
|
32
|
+
try {
|
|
33
|
+
await props.popconfirm?.confirm?.(e);
|
|
34
|
+
confirm(e);
|
|
35
|
+
} catch {} finally {
|
|
36
|
+
loading.value = false;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const onCancel = (e, cancel) => {
|
|
40
|
+
cancel(e);
|
|
41
|
+
};
|
|
42
|
+
return () => {
|
|
43
|
+
if (!mergedVisible.value) return;
|
|
44
|
+
if (props.popconfirm) {
|
|
45
|
+
return createVNode(ElPopconfirm, props.popconfirm, {
|
|
46
|
+
reference: () => createVNode(ElButton, mergeProps(omit(buttonProps.value, "popconfirm"), {
|
|
47
|
+
"style": "margin: 0"
|
|
48
|
+
}), {
|
|
49
|
+
default: () => [props.icon && createVNode(stdin_default$1, {
|
|
50
|
+
"name": props.icon,
|
|
51
|
+
"style": {
|
|
52
|
+
marginInlineEnd: token.value.marginXXS + "px"
|
|
53
|
+
}
|
|
54
|
+
}, null), props.label]
|
|
55
|
+
}),
|
|
56
|
+
actions: ({
|
|
57
|
+
confirm,
|
|
58
|
+
cancel
|
|
59
|
+
}) => {
|
|
60
|
+
let _slot, _slot2;
|
|
61
|
+
return createVNode(Fragment, null, [createVNode(ElButton, {
|
|
62
|
+
"size": "small",
|
|
63
|
+
"onClick": event => onCancel(event, cancel)
|
|
64
|
+
}, _isSlot(_slot = t("co.common.no")) ? _slot : {
|
|
65
|
+
default: () => [_slot]
|
|
66
|
+
}), createVNode(ElButton, {
|
|
67
|
+
"type": "danger",
|
|
68
|
+
"size": "small",
|
|
69
|
+
"loading": loading.value,
|
|
70
|
+
"onClick": event => onConfirm(event, confirm)
|
|
71
|
+
}, _isSlot(_slot2 = t("co.common.yes")) ? _slot2 : {
|
|
72
|
+
default: () => [_slot2]
|
|
73
|
+
})]);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return createVNode(ElButton, mergeProps(buttonProps.value, {
|
|
78
|
+
"style": "margin: 0"
|
|
79
|
+
}), {
|
|
80
|
+
default: () => [props.icon && createVNode(stdin_default$1, {
|
|
81
|
+
"name": props.icon,
|
|
82
|
+
"style": {
|
|
83
|
+
marginInlineEnd: token.value.marginXXS + "px"
|
|
84
|
+
}
|
|
85
|
+
}, null), props.label]
|
|
86
|
+
});
|
|
87
|
+
};
|
|
32
88
|
}
|
|
33
|
-
};
|
|
89
|
+
});
|
|
34
90
|
|
|
35
|
-
export {
|
|
91
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
+
import { type TableActionItem } from './item.api';
|
|
3
|
+
export declare const tableActionProps: {
|
|
4
|
+
actions: {
|
|
5
|
+
type: PropType<TableActionItem[] | TableActionItem[][]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export type TableActionProps = ExtractPropTypes<typeof tableActionProps>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
actions
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { TableActionItem } from './item.api';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
actions: {
|
|
4
|
+
type: import("vue").PropType<TableActionItem[] | TableActionItem[][]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
actions: {
|
|
9
|
+
type: import("vue").PropType<TableActionItem[] | TableActionItem[][]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
actions: TableActionItem[] | TableActionItem[][];
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { defineComponent, computed, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import { tableActionProps } from './table-action.api.js';
|
|
3
|
+
import stdin_default$2 from './item.js';
|
|
4
|
+
import stdin_default$1 from './table-action.style.js';
|
|
5
|
+
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
var stdin_default = defineComponent({
|
|
8
|
+
name: "CoTableAction",
|
|
9
|
+
props: tableActionProps,
|
|
10
|
+
setup(props) {
|
|
11
|
+
const dyadicActions = computed(() => {
|
|
12
|
+
return Array.isArray(props.actions[0]) ? props.actions : [props.actions];
|
|
13
|
+
});
|
|
14
|
+
const {
|
|
15
|
+
prefixCls
|
|
16
|
+
} = useComponentConfig("table-action", props);
|
|
17
|
+
const {
|
|
18
|
+
hashId
|
|
19
|
+
} = stdin_default$1(prefixCls);
|
|
20
|
+
return () => {
|
|
21
|
+
return createVNode("div", {
|
|
22
|
+
"class": [hashId.value, prefixCls.value]
|
|
23
|
+
}, [dyadicActions.value.map((actions, rowIndex) => {
|
|
24
|
+
return createVNode("div", {
|
|
25
|
+
"key": rowIndex,
|
|
26
|
+
"class": `${prefixCls.value}-row`
|
|
27
|
+
}, [actions.map((action, actionIndex) => {
|
|
28
|
+
return createVNode(stdin_default$2, mergeProps({
|
|
29
|
+
"key": actionIndex
|
|
30
|
+
}, action), null);
|
|
31
|
+
})]);
|
|
32
|
+
})]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export { stdin_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var stdin_default = getSimpleStyleHook("CoTableAction", (token) => {
|
|
4
4
|
const { componentCls } = token;
|
|
5
5
|
return {
|
|
6
6
|
[componentCls]: {
|
|
@@ -15,9 +15,6 @@ const getTableActionStyle = (token) => {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
};
|
|
19
|
-
var stdin_default = getStyleHook("TableAction", (token) => {
|
|
20
|
-
return [getTableActionStyle(token)];
|
|
21
18
|
});
|
|
22
19
|
|
|
23
20
|
export { stdin_default as default };
|
|
@@ -2,7 +2,7 @@ import { computed, watch } from 'vue';
|
|
|
2
2
|
import { useStyleRegister } from './useStyleRegister.js';
|
|
3
3
|
import { useToken } from './util/useToken.js';
|
|
4
4
|
import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
|
|
5
|
-
import { useConfig } from '../config-provider/config-provider.js';
|
|
5
|
+
import { useConfig } from '../config-provider/config-provider.api.js';
|
|
6
6
|
import { useMounted } from '../../hooks/useMounted.js';
|
|
7
7
|
import { isClient } from '../../utils/env.js';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { watch } from 'vue';
|
|
|
2
2
|
import { parseStyle } from '../cssinjs/parser.js';
|
|
3
3
|
import { useToken } from './util/useToken.js';
|
|
4
4
|
import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
|
|
5
|
-
import { useConfig } from '../config-provider/config-provider.js';
|
|
5
|
+
import { useConfig } from '../config-provider/config-provider.api.js';
|
|
6
6
|
import hash from '@emotion/hash';
|
|
7
7
|
import { normalizeStyle } from './util/normalizeStyle.js';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { computed, unref } from 'vue';
|
|
|
2
2
|
import { useStyleRegister } from './useStyleRegister.js';
|
|
3
3
|
import { useToken } from './util/useToken.js';
|
|
4
4
|
import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
|
|
5
|
-
import { useConfig } from '../config-provider/config-provider.js';
|
|
5
|
+
import { useConfig } from '../config-provider/config-provider.api.js';
|
|
6
6
|
|
|
7
7
|
function getSimpleStyleHook(component, styleFn) {
|
|
8
8
|
return (_prefixCls = "", themeManager) => {
|
|
@@ -2,7 +2,7 @@ import { computed, unref } from 'vue';
|
|
|
2
2
|
import { useStyleRegister } from './useStyleRegister.js';
|
|
3
3
|
import { useToken } from './util/useToken.js';
|
|
4
4
|
import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
|
|
5
|
-
import { useConfig } from '../config-provider/config-provider.js';
|
|
5
|
+
import { useConfig } from '../config-provider/config-provider.api.js';
|
|
6
6
|
|
|
7
7
|
function getStyleHook(component, styleFn, getDefaultToken) {
|
|
8
8
|
return (_prefixCls = "", themeManager) => {
|