@sdata/web-vue 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sd.css +177 -6
- package/dist/sd.min.css +1 -1
- package/es/_components/select-view/style/index.css +13 -6
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
- package/es/_hooks/use-allow-search.d.ts +10 -0
- package/es/_hooks/use-allow-search.js +31 -0
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.js +7 -1
- package/es/_utils/dom.js +1 -1
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_utils/vue-utils.js +4 -18
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
- package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
- package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
- package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
- package/es/auto-complete/auto-complete.js +102 -0
- package/es/avatar/avatar-group.js +31 -0
- package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
- package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
- package/es/badge/badge.js +34 -1
- package/es/breadcrumb/breadcrumb-item.js +27 -0
- package/es/breadcrumb/breadcrumb.js +39 -0
- package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
- package/es/button/button.vue_vue_type_script_lang.js +58 -1
- package/es/calendar/calendar.js +47 -0
- package/es/calendar/month.js +1 -1
- package/es/calendar/year.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
- package/es/card/card-meta.js +23 -0
- package/es/card/card.js +54 -0
- package/es/carousel/carousel.js +68 -1
- package/es/cascader/cascader-panel.js +2 -28
- package/es/cascader/cascader-panel.vue.d.ts +24 -306
- package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
- package/es/cascader/cascader.js +2 -145
- package/es/cascader/cascader.vue.d.ts +53 -1289
- package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +236 -172
- package/es/cascader/index.d.ts +4 -2986
- package/es/cascader/types.d.ts +79 -0
- package/es/checkbox/checkbox-group.js +48 -0
- package/es/checkbox/checkbox.js +35 -0
- package/es/collapse/collapse-item.js +36 -0
- package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
- package/es/color-picker/color-picker.js +90 -1
- package/es/color-picker/panel.js +5 -2
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.js +47 -1
- package/es/components.d.ts +132 -127
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +72 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +15 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.js +5 -0
- package/es/copy/copy.vue.d.ts +15 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/copy/index.d.ts +15 -0
- package/es/copy/index.js +10 -0
- package/es/copy/style/css.js +2 -0
- package/es/copy/style/index.css +25 -0
- package/es/copy/style/index.d.ts +2 -0
- package/es/copy/style/index.js +2 -0
- package/es/copy/style/index.scss +15 -0
- package/es/copy/style/token.scss +3 -0
- package/es/copy/types.d.ts +21 -0
- package/es/cropper/cropper.js +5 -0
- package/es/cropper/cropper.vue.d.ts +45 -0
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
- package/es/cropper/index.d.ts +130 -0
- package/es/cropper/index.js +10 -0
- package/es/cropper/interface.d.ts +59 -0
- package/es/cropper/style/css.js +2 -0
- package/es/cropper/style/index.css +51 -0
- package/es/cropper/style/index.d.ts +2 -0
- package/es/cropper/style/index.js +2 -0
- package/es/cropper/style/index.scss +43 -0
- package/es/cropper/style/token.scss +8 -0
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +54 -576
- package/es/date-picker/panels/date/index.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/footer.vue.d.ts +55 -577
- package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/month/index.js +1 -1
- package/es/date-picker/panels/quarter/index.js +1 -1
- package/es/date-picker/panels/year/index.js +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +54 -576
- package/es/date-picker/picker.js +1 -1
- package/es/date-picker/picker.vue.d.ts +54 -576
- package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
- package/es/date-picker/pickers/date-picker.js +42 -0
- package/es/date-picker/pickers/month-picker.js +12 -0
- package/es/date-picker/pickers/quarter-picker.js +17 -0
- package/es/date-picker/pickers/week-picker.js +23 -0
- package/es/date-picker/pickers/year-picker.js +12 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +54 -576
- package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +54 -576
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
- package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
- package/es/descriptions/descriptions.js +65 -1
- package/es/divider/divider.js +24 -0
- package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
- package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
- package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
- package/es/empty/empty.js +18 -0
- package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
- package/es/form/form.vue_vue_type_script_lang.js +108 -0
- package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
- package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
- package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
- package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
- package/es/icon.js +5 -5
- package/es/image/image.js +1 -1
- package/es/image/image.vue_vue_type_script_lang.js +82 -0
- package/es/image/preview-action.js +8 -0
- package/es/image/preview-group.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
- package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
- package/es/image/preview.vue_vue_type_script_lang.js +56 -1
- package/es/index.css +177 -6
- package/es/index.d.ts +9 -1
- package/es/index.js +6 -2
- package/es/index.scss +4 -0
- package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
- package/es/input/input-search.js +35 -1
- package/es/input/input.js +129 -1
- package/es/input-number/index.d.ts +35 -23
- package/es/input-number/input-number.d.ts +19 -10
- package/es/input-number/input-number.js +205 -23
- package/es/input-tag/input-tag.js +137 -1
- package/es/input-tag/style/index.css +13 -6
- package/es/input-tag/utils.js +1 -1
- package/es/layout/content.js +5 -0
- package/es/layout/footer.js +5 -0
- package/es/layout/header.js +5 -0
- package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
- package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
- package/es/link/index.d.ts +44 -564
- package/es/link/interface.d.ts +15 -0
- package/es/link/link.js +2 -17
- package/es/link/link.vue.d.ts +31 -286
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
- package/es/link/style/index.css +6 -0
- package/es/link/style/index.scss +10 -0
- package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
- package/es/list/list-item.js +21 -1
- package/es/list/list.js +104 -2
- package/es/mention/mention.js +87 -1
- package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
- package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +13 -2
- package/es/menu/menu.js +2 -1
- package/es/menu/sub-menu-pop.vue.d.ts +1 -1
- package/es/menu/sub-menu.js +40 -1
- package/es/message/index.js +1 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
- package/es/notification/index.js +1 -1
- package/es/overflow-list/overflow-list.js +25 -1
- package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
- package/es/pagination/page-jumper.vue.d.ts +35 -22
- package/es/pagination/pagination.js +122 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
- package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
- package/es/progress/line.vue_vue_type_script_lang.js +1 -1
- package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
- package/es/radio/radio-group.js +53 -0
- package/es/radio/radio.js +36 -0
- package/es/rate/rate.js +54 -0
- package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
- package/es/result/result.vue_vue_type_script_lang.js +40 -0
- package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
- package/es/sd-vue.js +10 -2
- package/es/secret/index.d.ts +48 -0
- package/es/secret/index.js +10 -0
- package/es/secret/secret.js +5 -0
- package/es/secret/secret.vue.d.ts +17 -0
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
- package/es/secret/style/css.js +2 -0
- package/es/secret/style/index.css +54 -0
- package/es/secret/style/index.d.ts +2 -0
- package/es/secret/style/index.js +2 -0
- package/es/secret/style/index.scss +48 -0
- package/es/secret/style/token.scss +9 -0
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
- package/es/select/option.vue_vue_type_script_lang.js +27 -0
- package/es/select/select.js +8 -6
- package/es/select/utils.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
- package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
- package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
- package/es/slider/index.d.ts +66 -42
- package/es/slider/slider-input.vue.d.ts +33 -21
- package/es/slider/slider.vue.d.ts +33 -21
- package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
- package/es/space/space.js +27 -0
- package/es/spin/spin.js +35 -0
- package/es/split/split.vue_vue_type_script_lang.js +62 -1
- package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
- package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
- package/es/steps/step.vue_vue_type_script_lang.js +36 -0
- package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
- package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
- package/es/table/table-column.js +115 -0
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +1 -1
- package/es/table/table.js +442 -3
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
- package/es/tabs/tabs.js +104 -0
- package/es/tag/index.d.ts +29237 -74
- package/es/tag/interface.d.ts +9 -1
- package/es/tag/style/index.css +13 -6
- package/es/tag/style/index.scss +16 -4
- package/es/tag/tag.js +26 -5
- package/es/tag/tag.vue.d.ts +11688 -7
- package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
- package/es/tag-group/index.d.ts +64 -0
- package/es/tag-group/index.js +10 -0
- package/es/tag-group/interface.d.ts +18 -0
- package/es/tag-group/style/css.js +2 -0
- package/es/tag-group/style/index.css +92 -0
- package/es/tag-group/style/index.d.ts +2 -0
- package/es/tag-group/style/index.js +2 -0
- package/es/tag-group/style/index.scss +108 -0
- package/es/tag-group/style/token.scss +6 -0
- package/es/tag-group/tag-group.js +5 -0
- package/es/tag-group/tag-group.vue.d.ts +46 -0
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
- package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
- package/es/time-picker/range-panel.js +1 -1
- package/es/time-picker/time-picker.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
- package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
- package/es/timeline/timeline.js +28 -0
- package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
- package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
- package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
- package/es/tree/node.js +1 -1
- package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.js +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +281 -8
- package/es/trigger/trigger.js +161 -1
- package/es/trigger/utils.js +1 -1
- package/es/typography/base.d.ts +7 -0
- package/es/typography/base.js +127 -3
- package/es/typography/interface.d.ts +2 -0
- package/es/typography/operations.js +30 -0
- package/es/typography/paragraph.js +8 -0
- package/es/typography/title.js +6 -1
- package/es/upload/upload.js +279 -2
- package/es/verification-code/verification-code.js +59 -0
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/watermark.js +58 -1
- package/es/web-vue.css +24 -24
- package/json/vetur-attributes.json +134 -218
- package/json/vetur-tags.json +58 -67
- package/json/web-types.json +304 -493
- package/package.json +9 -7
- package/es/_utils/clipboard.d.ts +0 -1
- package/es/_utils/clipboard.js +0 -35
- package/es/link/link.vue_vue_type_script_lang.js +0 -56
package/es/components.d.ts
CHANGED
|
@@ -2,135 +2,140 @@ import { DrawerMethod } from './drawer';
|
|
|
2
2
|
import { MessageMethod } from './message';
|
|
3
3
|
import { ModalMethod } from './modal';
|
|
4
4
|
import { NotificationMethod } from './notification';
|
|
5
|
+
type SDVue = typeof import('./index');
|
|
5
6
|
declare module 'vue' {
|
|
6
7
|
interface GlobalComponents {
|
|
7
|
-
SdAffix:
|
|
8
|
-
SdAlert:
|
|
9
|
-
SdAnchor:
|
|
10
|
-
SdAnchorLink:
|
|
11
|
-
SdAutoComplete:
|
|
12
|
-
SdAvatar:
|
|
13
|
-
SdAvatarGroup:
|
|
14
|
-
SdBackTop:
|
|
15
|
-
SdBadge:
|
|
16
|
-
SdBreadcrumb:
|
|
17
|
-
SdBreadcrumbItem:
|
|
18
|
-
SdButton:
|
|
19
|
-
SdButtonGroup:
|
|
20
|
-
SdCalendar:
|
|
21
|
-
SdCard:
|
|
22
|
-
SdCardMeta:
|
|
23
|
-
SdCardGrid:
|
|
24
|
-
SdCarousel:
|
|
25
|
-
SdCarouselItem:
|
|
26
|
-
SdCascader:
|
|
27
|
-
SdCascaderPanel:
|
|
28
|
-
SdCheckbox:
|
|
29
|
-
SdCheckboxGroup:
|
|
30
|
-
SdCollapse:
|
|
31
|
-
SdCollapseItem:
|
|
32
|
-
SdColorPicker:
|
|
33
|
-
SdComment:
|
|
34
|
-
SdConfigProvider:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
8
|
+
SdAffix: SDVue['Affix'];
|
|
9
|
+
SdAlert: SDVue['Alert'];
|
|
10
|
+
SdAnchor: SDVue['Anchor'];
|
|
11
|
+
SdAnchorLink: SDVue['AnchorLink'];
|
|
12
|
+
SdAutoComplete: SDVue['AutoComplete'];
|
|
13
|
+
SdAvatar: SDVue['Avatar'];
|
|
14
|
+
SdAvatarGroup: SDVue['AvatarGroup'];
|
|
15
|
+
SdBackTop: SDVue['BackTop'];
|
|
16
|
+
SdBadge: SDVue['Badge'];
|
|
17
|
+
SdBreadcrumb: SDVue['Breadcrumb'];
|
|
18
|
+
SdBreadcrumbItem: SDVue['BreadcrumbItem'];
|
|
19
|
+
SdButton: SDVue['Button'];
|
|
20
|
+
SdButtonGroup: SDVue['ButtonGroup'];
|
|
21
|
+
SdCalendar: SDVue['Calendar'];
|
|
22
|
+
SdCard: SDVue['Card'];
|
|
23
|
+
SdCardMeta: SDVue['CardMeta'];
|
|
24
|
+
SdCardGrid: SDVue['CardGrid'];
|
|
25
|
+
SdCarousel: SDVue['Carousel'];
|
|
26
|
+
SdCarouselItem: SDVue['CarouselItem'];
|
|
27
|
+
SdCascader: SDVue['Cascader'];
|
|
28
|
+
SdCascaderPanel: SDVue['CascaderPanel'];
|
|
29
|
+
SdCheckbox: SDVue['Checkbox'];
|
|
30
|
+
SdCheckboxGroup: SDVue['CheckboxGroup'];
|
|
31
|
+
SdCollapse: SDVue['Collapse'];
|
|
32
|
+
SdCollapseItem: SDVue['CollapseItem'];
|
|
33
|
+
SdColorPicker: SDVue['ColorPicker'];
|
|
34
|
+
SdComment: SDVue['Comment'];
|
|
35
|
+
SdConfigProvider: SDVue['ConfigProvider'];
|
|
36
|
+
SdCopy: SDVue['Copy'];
|
|
37
|
+
SdCropper: SDVue['Cropper'];
|
|
38
|
+
SdDatePicker: SDVue['DatePicker'];
|
|
39
|
+
SdWeekPicker: SDVue['WeekPicker'];
|
|
40
|
+
SdMonthPicker: SDVue['MonthPicker'];
|
|
41
|
+
SdYearPicker: SDVue['YearPicker'];
|
|
42
|
+
SdQuarterPicker: SDVue['QuarterPicker'];
|
|
43
|
+
SdRangePicker: SDVue['RangePicker'];
|
|
44
|
+
SdDescriptions: SDVue['Descriptions'];
|
|
45
|
+
SdDescriptionsItem: SDVue['DescriptionsItem'];
|
|
46
|
+
SdDivider: SDVue['Divider'];
|
|
47
|
+
SdDrawer: SDVue['Drawer'];
|
|
48
|
+
SdDropdown: SDVue['Dropdown'];
|
|
49
|
+
SdDoption: SDVue['Doption'];
|
|
50
|
+
SdDgroup: SDVue['Dgroup'];
|
|
51
|
+
SdDsubmenu: SDVue['Dsubmenu'];
|
|
52
|
+
SdEllipsis: SDVue['Ellipsis'];
|
|
53
|
+
SdPerformantEllipsis: SDVue['PerformantEllipsis'];
|
|
54
|
+
SdEmpty: SDVue['Empty'];
|
|
55
|
+
SdForm: SDVue['Form'];
|
|
56
|
+
SdFormItem: SDVue['FormItem'];
|
|
57
|
+
SdGrid: SDVue['Grid'];
|
|
58
|
+
SdGridItem: SDVue['GridItem'];
|
|
59
|
+
SdCol: SDVue['Col'];
|
|
60
|
+
SdRow: SDVue['Row'];
|
|
61
|
+
SdImage: SDVue['Image'];
|
|
62
|
+
SdImagePreview: SDVue['ImagePreview'];
|
|
63
|
+
SdImagePreviewAction: SDVue['ImagePreviewAction'];
|
|
64
|
+
SdImagePreviewGroup: SDVue['ImagePreviewGroup'];
|
|
65
|
+
SdInput: SDVue['Input'];
|
|
66
|
+
SdInputGroup: SDVue['InputGroup'];
|
|
67
|
+
SdInputSearch: SDVue['InputSearch'];
|
|
68
|
+
SdInputPassword: SDVue['InputPassword'];
|
|
69
|
+
SdInputNumber: SDVue['InputNumber'];
|
|
70
|
+
SdInputTag: SDVue['InputTag'];
|
|
71
|
+
SdLayout: SDVue['Layout'];
|
|
72
|
+
SdLayoutHeader: SDVue['LayoutHeader'];
|
|
73
|
+
SdLayoutContent: SDVue['LayoutContent'];
|
|
74
|
+
SdLayoutFooter: SDVue['LayoutFooter'];
|
|
75
|
+
SdLayoutSider: SDVue['LayoutSider'];
|
|
76
|
+
SdLink: SDVue['Link'];
|
|
77
|
+
SdList: SDVue['List'];
|
|
78
|
+
SdListItem: SDVue['ListItem'];
|
|
79
|
+
SdListItemMeta: SDVue['ListItemMeta'];
|
|
80
|
+
SdMention: SDVue['Mention'];
|
|
81
|
+
SdMenu: SDVue['Menu'];
|
|
82
|
+
SdMenuItem: SDVue['MenuItem'];
|
|
83
|
+
SdMenuItemGroup: SDVue['MenuItemGroup'];
|
|
84
|
+
SdSubMenu: SDVue['SubMenu'];
|
|
85
|
+
SdModal: SDVue['Modal'];
|
|
86
|
+
SdPageHeader: SDVue['PageHeader'];
|
|
87
|
+
SdPagination: SDVue['Pagination'];
|
|
88
|
+
SdPopconfirm: SDVue['Popconfirm'];
|
|
89
|
+
SdPopover: SDVue['Popover'];
|
|
90
|
+
SdProgress: SDVue['Progress'];
|
|
91
|
+
SdRadio: SDVue['Radio'];
|
|
92
|
+
SdRadioGroup: SDVue['RadioGroup'];
|
|
93
|
+
SdRate: SDVue['Rate'];
|
|
94
|
+
SdResizeBox: SDVue['ResizeBox'];
|
|
95
|
+
SdResult: SDVue['Result'];
|
|
96
|
+
SdSelect: SDVue['Select'];
|
|
97
|
+
SdSecret: SDVue['Secret'];
|
|
98
|
+
SdOption: SDVue['Option'];
|
|
99
|
+
SdOptgroup: SDVue['Optgroup'];
|
|
100
|
+
SdSkeleton: SDVue['Skeleton'];
|
|
101
|
+
SdSkeletonLine: SDVue['SkeletonLine'];
|
|
102
|
+
SdSkeletonShape: SDVue['SkeletonShape'];
|
|
103
|
+
SdSlider: SDVue['Slider'];
|
|
104
|
+
SdSpace: SDVue['Space'];
|
|
105
|
+
SdSpin: SDVue['Spin'];
|
|
106
|
+
SdSplit: SDVue['Split'];
|
|
107
|
+
SdStatistic: SDVue['Statistic'];
|
|
108
|
+
SdCountdown: SDVue['Countdown'];
|
|
109
|
+
SdSteps: SDVue['Steps'];
|
|
110
|
+
SdStep: SDVue['Step'];
|
|
111
|
+
SdSwitch: SDVue['Switch'];
|
|
112
|
+
SdTable: SDVue['Table'];
|
|
113
|
+
SdThead: SDVue['Thead'];
|
|
114
|
+
SdTd: SDVue['Td'];
|
|
115
|
+
SdTh: SDVue['Th'];
|
|
116
|
+
SdTr: SDVue['Tr'];
|
|
117
|
+
SdTbody: SDVue['Tbody'];
|
|
118
|
+
SdTableColumn: SDVue['TableColumn'];
|
|
119
|
+
SdTabs: SDVue['Tabs'];
|
|
120
|
+
SdTabPane: SDVue['TabPane'];
|
|
121
|
+
SdTag: SDVue['Tag'];
|
|
122
|
+
SdTagGroup: SDVue['TagGroup'];
|
|
123
|
+
SdTextarea: SDVue['Textarea'];
|
|
124
|
+
SdTimePicker: SDVue['TimePicker'];
|
|
125
|
+
SdTimeline: SDVue['Timeline'];
|
|
126
|
+
SdTimelineItem: SDVue['TimelineItem'];
|
|
127
|
+
SdTooltip: SDVue['Tooltip'];
|
|
128
|
+
SdTransfer: SDVue['Transfer'];
|
|
129
|
+
SdTree: SDVue['Tree'];
|
|
130
|
+
SdTreeSelect: SDVue['TreeSelect'];
|
|
131
|
+
SdTrigger: SDVue['Trigger'];
|
|
132
|
+
SdTypography: SDVue['Typography'];
|
|
133
|
+
SdTypographyParagraph: SDVue['TypographyParagraph'];
|
|
134
|
+
SdTypographyTitle: SDVue['TypographyTitle'];
|
|
135
|
+
SdTypographyText: SDVue['TypographyText'];
|
|
136
|
+
SdUpload: SDVue['Upload'];
|
|
137
|
+
SdVerificationCode: SDVue['VerificationCode'];
|
|
138
|
+
SdWatermark: SDVue['Watermark'];
|
|
134
139
|
}
|
|
135
140
|
interface ComponentCustomProperties {
|
|
136
141
|
$message: MessageMethod;
|
|
@@ -19,6 +19,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
+
allowSearch: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
22
26
|
global: {
|
|
23
27
|
type: BooleanConstructor;
|
|
24
28
|
default: boolean;
|
|
@@ -60,6 +64,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
60
64
|
type: BooleanConstructor;
|
|
61
65
|
default: boolean;
|
|
62
66
|
};
|
|
67
|
+
allowSearch: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
63
71
|
global: {
|
|
64
72
|
type: BooleanConstructor;
|
|
65
73
|
default: boolean;
|
|
@@ -92,6 +100,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
92
100
|
scrollToClose: boolean;
|
|
93
101
|
rtl: boolean;
|
|
94
102
|
allowClear: boolean;
|
|
103
|
+
allowSearch: boolean;
|
|
95
104
|
global: boolean;
|
|
96
105
|
exchangeTime: boolean;
|
|
97
106
|
}, {}, {
|
|
@@ -6,47 +6,118 @@ import { defineComponent, getCurrentInstance, provide, reactive, toRefs, watch }
|
|
|
6
6
|
var config_provider_vue_vue_type_script_lang_default = defineComponent({
|
|
7
7
|
name: "ConfigProvider",
|
|
8
8
|
props: {
|
|
9
|
+
/**
|
|
10
|
+
* @zh 组件类名前缀
|
|
11
|
+
* @en Component classname prefix
|
|
12
|
+
*/
|
|
9
13
|
prefixCls: {
|
|
10
14
|
type: String,
|
|
11
15
|
default: "sd"
|
|
12
16
|
},
|
|
17
|
+
/**
|
|
18
|
+
* @zh 配置语言包
|
|
19
|
+
* @en Configure language pack
|
|
20
|
+
*/
|
|
13
21
|
locale: { type: Object },
|
|
22
|
+
/**
|
|
23
|
+
* @zh 大小
|
|
24
|
+
* @en Size
|
|
25
|
+
* @version 2.14.0
|
|
26
|
+
*/
|
|
14
27
|
size: { type: String },
|
|
28
|
+
/**
|
|
29
|
+
* @zh 是否默认开启清除按钮
|
|
30
|
+
* @en Whether to enable clear buttons by default
|
|
31
|
+
*/
|
|
15
32
|
allowClear: {
|
|
16
33
|
type: Boolean,
|
|
17
34
|
default: false
|
|
18
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* @zh 是否默认开启搜索
|
|
38
|
+
* @en Whether to enable search by default
|
|
39
|
+
*/
|
|
40
|
+
allowSearch: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @zh 是否全局生效
|
|
46
|
+
* @en Is global effect
|
|
47
|
+
* @version 2.25.0
|
|
48
|
+
*/
|
|
19
49
|
global: {
|
|
20
50
|
type: Boolean,
|
|
21
51
|
default: false
|
|
22
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @zh 是否在容器滚动时更新弹出框的位置
|
|
55
|
+
* @us Whether to update the position of the popup when the container is scrolled
|
|
56
|
+
* @version 2.25.0
|
|
57
|
+
*/
|
|
23
58
|
updateAtScroll: {
|
|
24
59
|
type: Boolean,
|
|
25
60
|
default: false
|
|
26
61
|
},
|
|
62
|
+
/**
|
|
63
|
+
* @zh 是否在滚动时关闭弹出框
|
|
64
|
+
* @en Whether to close the popover when scrolling
|
|
65
|
+
* @version 2.46.0
|
|
66
|
+
*/
|
|
27
67
|
scrollToClose: {
|
|
28
68
|
type: Boolean,
|
|
29
69
|
default: false
|
|
30
70
|
},
|
|
71
|
+
/**
|
|
72
|
+
* @zh 是否交换时间
|
|
73
|
+
* @en Whether to exchange time
|
|
74
|
+
* @version 2.48.0
|
|
75
|
+
*/
|
|
31
76
|
exchangeTime: {
|
|
32
77
|
type: Boolean,
|
|
33
78
|
default: true
|
|
34
79
|
},
|
|
80
|
+
/**
|
|
81
|
+
* @zh 视图的表现形式是从右开始向左结束
|
|
82
|
+
* @en View starts from the right and ends on the left
|
|
83
|
+
*/
|
|
35
84
|
rtl: {
|
|
36
85
|
type: Boolean,
|
|
37
86
|
default: false
|
|
38
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
* @zh 主题配置对象
|
|
90
|
+
* @en Runtime theme configuration object
|
|
91
|
+
*/
|
|
39
92
|
theme: { type: Object },
|
|
93
|
+
/**
|
|
94
|
+
* @zh 主题模式,可局部覆盖到当前 ConfigProvider 子树
|
|
95
|
+
* @en Theme mode applied to the current ConfigProvider subtree
|
|
96
|
+
*/
|
|
40
97
|
themeMode: { type: String }
|
|
41
98
|
},
|
|
99
|
+
/**
|
|
100
|
+
* @zh 自定义空状态元素
|
|
101
|
+
* @en Custom empty element
|
|
102
|
+
* @slot empty
|
|
103
|
+
* @binding {string} component
|
|
104
|
+
* @version 2.28.0
|
|
105
|
+
*/
|
|
106
|
+
/**
|
|
107
|
+
* @zh 自定义加载中元素
|
|
108
|
+
* @en Custom loading element
|
|
109
|
+
* @slot loading
|
|
110
|
+
* @version 2.28.0
|
|
111
|
+
*/
|
|
42
112
|
setup(props, { slots }) {
|
|
43
|
-
const { prefixCls, locale, size, allowClear, updateAtScroll, scrollToClose, exchangeTime, rtl } = toRefs(props);
|
|
113
|
+
const { prefixCls, locale, size, allowClear, allowSearch, updateAtScroll, scrollToClose, exchangeTime, rtl } = toRefs(props);
|
|
44
114
|
const config = reactive({
|
|
45
115
|
slots,
|
|
46
116
|
prefixCls,
|
|
47
117
|
locale,
|
|
48
118
|
size,
|
|
49
119
|
allowClear,
|
|
120
|
+
allowSearch,
|
|
50
121
|
updateAtScroll,
|
|
51
122
|
scrollToClose,
|
|
52
123
|
exchangeTime,
|
|
@@ -17,6 +17,10 @@ declare const ConfigProvider: {
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
+
allowSearch: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
20
24
|
global: {
|
|
21
25
|
type: BooleanConstructor;
|
|
22
26
|
default: boolean;
|
|
@@ -49,6 +53,7 @@ declare const ConfigProvider: {
|
|
|
49
53
|
scrollToClose: boolean;
|
|
50
54
|
rtl: boolean;
|
|
51
55
|
allowClear: boolean;
|
|
56
|
+
allowSearch: boolean;
|
|
52
57
|
global: boolean;
|
|
53
58
|
exchangeTime: boolean;
|
|
54
59
|
}, true, {}, {}, {
|
|
@@ -120,6 +125,10 @@ declare const ConfigProvider: {
|
|
|
120
125
|
type: BooleanConstructor;
|
|
121
126
|
default: boolean;
|
|
122
127
|
};
|
|
128
|
+
allowSearch: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
123
132
|
global: {
|
|
124
133
|
type: BooleanConstructor;
|
|
125
134
|
default: boolean;
|
|
@@ -152,6 +161,7 @@ declare const ConfigProvider: {
|
|
|
152
161
|
scrollToClose: boolean;
|
|
153
162
|
rtl: boolean;
|
|
154
163
|
allowClear: boolean;
|
|
164
|
+
allowSearch: boolean;
|
|
155
165
|
global: boolean;
|
|
156
166
|
exchangeTime: boolean;
|
|
157
167
|
}>;
|
|
@@ -173,6 +183,10 @@ declare const ConfigProvider: {
|
|
|
173
183
|
type: BooleanConstructor;
|
|
174
184
|
default: boolean;
|
|
175
185
|
};
|
|
186
|
+
allowSearch: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
176
190
|
global: {
|
|
177
191
|
type: BooleanConstructor;
|
|
178
192
|
default: boolean;
|
|
@@ -205,6 +219,7 @@ declare const ConfigProvider: {
|
|
|
205
219
|
scrollToClose: boolean;
|
|
206
220
|
rtl: boolean;
|
|
207
221
|
allowClear: boolean;
|
|
222
|
+
allowSearch: boolean;
|
|
208
223
|
global: boolean;
|
|
209
224
|
exchangeTime: boolean;
|
|
210
225
|
}, {}, string, {}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { themePopupContainerInjectionKey } from "./context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import usePopupManager from "../_hooks/use-popup-manager.js";
|
|
5
5
|
import { applyThemeCSSVariables, clearThemeCSSVariables, normalizeTheme } from "./theme.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
//#region components/config-provider/theme.ts
|
|
3
3
|
var DEFAULT_THEME_META = {
|
|
4
4
|
schemaVersion: 1,
|
package/es/copy/copy.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare var __VLS_17: {}, __VLS_24: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
icon?: (props: typeof __VLS_17) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_24) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
|
+
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
4
|
+
import Button from "../button/index.js";
|
|
5
|
+
import Tooltip from "../tooltip/index.js";
|
|
6
|
+
import IconCopy from "../icon/icon-copy/index.js";
|
|
7
|
+
import Link from "../link/index.js";
|
|
8
|
+
import Message from "../message/index.js";
|
|
9
|
+
import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, withCtx } from "vue";
|
|
10
|
+
import copy from "copy-to-clipboard";
|
|
11
|
+
//#region components/copy/copy.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
var copy_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
13
|
+
name: "Copy",
|
|
14
|
+
inheritAttrs: false
|
|
15
|
+
}), {}, {
|
|
16
|
+
__name: "copy",
|
|
17
|
+
props: {
|
|
18
|
+
content: { default: "" },
|
|
19
|
+
tooltip: { default: "复制" },
|
|
20
|
+
tooltipProps: { default: void 0 },
|
|
21
|
+
clipboardProps: { default: void 0 },
|
|
22
|
+
textInherit: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
},
|
|
26
|
+
successMessage: { default: "复制成功" },
|
|
27
|
+
href: {},
|
|
28
|
+
status: {},
|
|
29
|
+
hoverable: { type: Boolean },
|
|
30
|
+
icon: { type: Boolean },
|
|
31
|
+
ellipsis: { type: Boolean },
|
|
32
|
+
ellipsisLineClamp: {},
|
|
33
|
+
ellipsisExpandTrigger: {},
|
|
34
|
+
ellipsisTooltip: { type: [Boolean, Object] },
|
|
35
|
+
iconTooltip: {},
|
|
36
|
+
loading: { type: Boolean },
|
|
37
|
+
disabled: { type: Boolean },
|
|
38
|
+
component: { default: "link" },
|
|
39
|
+
type: {},
|
|
40
|
+
shape: {},
|
|
41
|
+
size: {},
|
|
42
|
+
long: { type: Boolean },
|
|
43
|
+
htmlType: {},
|
|
44
|
+
autofocus: { type: Boolean }
|
|
45
|
+
},
|
|
46
|
+
emits: ["copy"],
|
|
47
|
+
setup(__props, { emit: __emit }) {
|
|
48
|
+
const props = __props;
|
|
49
|
+
const emit = __emit;
|
|
50
|
+
const attrs = useAttrs();
|
|
51
|
+
const prefixCls = getPrefixCls("copy");
|
|
52
|
+
const componentMap = {
|
|
53
|
+
link: Link,
|
|
54
|
+
button: Button
|
|
55
|
+
};
|
|
56
|
+
const renderComponent = computed(() => componentMap[props.component]);
|
|
57
|
+
const componentClass = computed(() => [prefixCls, { [`${prefixCls}-inherit`]: props.component === "link" && props.textInherit }]);
|
|
58
|
+
const isDisabled = computed(() => {
|
|
59
|
+
var _props$disabled;
|
|
60
|
+
const disabled = (_props$disabled = props.disabled) !== null && _props$disabled !== void 0 ? _props$disabled : attrs.disabled;
|
|
61
|
+
return disabled === "" || disabled === true || disabled === "true";
|
|
62
|
+
});
|
|
63
|
+
const mergedTooltipProps = computed(() => {
|
|
64
|
+
var _props$tooltipProps$c, _props$tooltipProps;
|
|
65
|
+
return _objectSpread2(_objectSpread2({}, props.tooltipProps), {}, { content: (_props$tooltipProps$c = (_props$tooltipProps = props.tooltipProps) === null || _props$tooltipProps === void 0 ? void 0 : _props$tooltipProps.content) !== null && _props$tooltipProps$c !== void 0 ? _props$tooltipProps$c : props.tooltip });
|
|
66
|
+
});
|
|
67
|
+
function handleCopy() {
|
|
68
|
+
return _handleCopy.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
function _handleCopy() {
|
|
71
|
+
_handleCopy = _asyncToGenerator(function* () {
|
|
72
|
+
if (isDisabled.value) return;
|
|
73
|
+
yield copy(props.content, props.clipboardProps);
|
|
74
|
+
Message.success(props.successMessage);
|
|
75
|
+
emit("copy", props.content);
|
|
76
|
+
});
|
|
77
|
+
return _handleCopy.apply(this, arguments);
|
|
78
|
+
}
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return openBlock(), createBlock(unref(Tooltip), normalizeProps(guardReactiveProps(mergedTooltipProps.value)), {
|
|
81
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(renderComponent.value), mergeProps(unref(attrs), {
|
|
82
|
+
class: componentClass.value,
|
|
83
|
+
onClick: handleCopy
|
|
84
|
+
}), {
|
|
85
|
+
icon: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(IconCopy))])]),
|
|
86
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
87
|
+
_: 3
|
|
88
|
+
}, 16, ["class"]))]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}));
|
|
94
|
+
//#endregion
|
|
95
|
+
export { copy_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import type { SDOptions } from '../_utils/types';
|
|
3
|
+
import _Copy from './copy.vue';
|
|
4
|
+
declare const Copy: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps> & (new () => {
|
|
5
|
+
$slots: {
|
|
6
|
+
icon?: (props: {}) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: {}) => any;
|
|
9
|
+
};
|
|
10
|
+
}) & {
|
|
11
|
+
install: (app: App, options?: SDOptions) => void;
|
|
12
|
+
};
|
|
13
|
+
export type CopyInstance = InstanceType<typeof _Copy>;
|
|
14
|
+
export type { CopyButtonProps, CopyComponentType, CopyLinkProps, CopyProps } from './types';
|
|
15
|
+
export default Copy;
|