@sdata/web-vue 1.11.1 → 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/trigger/trigger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey, themePopupContainerInjectionKey } from "../config-provider/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 { isEmptyChildren, mergeFirstChild } from "../_utils/vue-utils.js";
|
|
5
5
|
import { off, on } from "../_utils/dom.js";
|
|
@@ -28,102 +28,221 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
name: "Trigger",
|
|
29
29
|
inheritAttrs: false,
|
|
30
30
|
props: {
|
|
31
|
+
/**
|
|
32
|
+
* @zh 弹出框是否可见
|
|
33
|
+
* @en Whether the popup is visible
|
|
34
|
+
* @vModel
|
|
35
|
+
*/
|
|
31
36
|
popupVisible: {
|
|
32
37
|
type: Boolean,
|
|
33
38
|
default: void 0
|
|
34
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @zh 弹出框默认是否可见(非受控模式)
|
|
42
|
+
* @en Whether the popup is visible by default (uncontrolled mode)
|
|
43
|
+
*/
|
|
35
44
|
defaultPopupVisible: {
|
|
36
45
|
type: Boolean,
|
|
37
46
|
default: false
|
|
38
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* @zh 触发方式
|
|
50
|
+
* @en Trigger method
|
|
51
|
+
* @values 'hover','click','focus','contextMenu'
|
|
52
|
+
*/
|
|
39
53
|
trigger: {
|
|
40
54
|
type: [String, Array],
|
|
41
55
|
default: "hover"
|
|
42
56
|
},
|
|
57
|
+
/**
|
|
58
|
+
* @zh 弹出位置
|
|
59
|
+
* @en Popup position
|
|
60
|
+
* @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
|
|
61
|
+
*/
|
|
43
62
|
position: {
|
|
44
63
|
type: String,
|
|
45
64
|
default: "bottom"
|
|
46
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* @zh 触发器是否禁用
|
|
68
|
+
* @en Whether the trigger is disabled
|
|
69
|
+
*/
|
|
47
70
|
disabled: {
|
|
48
71
|
type: Boolean,
|
|
49
72
|
default: false
|
|
50
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* @zh 弹出框的偏移量(弹出框距离触发器的偏移距离)
|
|
76
|
+
* @en The offset of the popup (the offset distance of the popup from the trigger)
|
|
77
|
+
*/
|
|
51
78
|
popupOffset: {
|
|
52
79
|
type: Number,
|
|
53
80
|
default: 0
|
|
54
81
|
},
|
|
82
|
+
/**
|
|
83
|
+
* @zh 弹出框的移动距离
|
|
84
|
+
* @en The moving distance of the popup
|
|
85
|
+
*/
|
|
55
86
|
popupTranslate: { type: [Array, Object] },
|
|
87
|
+
/**
|
|
88
|
+
* @zh 弹出框是否显示箭头
|
|
89
|
+
* @en Whether the popup shows an arrow
|
|
90
|
+
*/
|
|
56
91
|
showArrow: {
|
|
57
92
|
type: Boolean,
|
|
58
93
|
default: false
|
|
59
94
|
},
|
|
95
|
+
/**
|
|
96
|
+
* @zh 弹出框是否跟随鼠标
|
|
97
|
+
* @en Whether the popup follows the mouse
|
|
98
|
+
*/
|
|
60
99
|
alignPoint: {
|
|
61
100
|
type: Boolean,
|
|
62
101
|
default: false
|
|
63
102
|
},
|
|
103
|
+
/**
|
|
104
|
+
* @zh 是否在移出触发器,并移入弹出框时保持弹出框显示
|
|
105
|
+
* @en Whether to keep the popup displayed when the trigger is moved out and moved into the popup
|
|
106
|
+
*/
|
|
64
107
|
popupHoverStay: {
|
|
65
108
|
type: Boolean,
|
|
66
109
|
default: true
|
|
67
110
|
},
|
|
111
|
+
/**
|
|
112
|
+
* @zh 是否在触发器失去焦点时关闭弹出框
|
|
113
|
+
* @en Whether to close the popup when the trigger loses focus
|
|
114
|
+
*/
|
|
68
115
|
blurToClose: {
|
|
69
116
|
type: Boolean,
|
|
70
117
|
default: true
|
|
71
118
|
},
|
|
119
|
+
/**
|
|
120
|
+
* @zh 是否在点击触发器时关闭弹出框
|
|
121
|
+
* @en Whether to close the popup when the trigger is clicked
|
|
122
|
+
*/
|
|
72
123
|
clickToClose: {
|
|
73
124
|
type: Boolean,
|
|
74
125
|
default: true
|
|
75
126
|
},
|
|
127
|
+
/**
|
|
128
|
+
* @zh 是否在点击外部区域时关闭弹出框
|
|
129
|
+
* @en Whether to close the popup when clicking on the outer area
|
|
130
|
+
*/
|
|
76
131
|
clickOutsideToClose: {
|
|
77
132
|
type: Boolean,
|
|
78
133
|
default: true
|
|
79
134
|
},
|
|
135
|
+
/**
|
|
136
|
+
* @zh 是否在关闭时卸载弹出框节点
|
|
137
|
+
* @en Whether to uninstall the popup node when closing
|
|
138
|
+
*/
|
|
80
139
|
unmountOnClose: {
|
|
81
140
|
type: Boolean,
|
|
82
141
|
default: true
|
|
83
142
|
},
|
|
143
|
+
/**
|
|
144
|
+
* @zh 弹出框内容的类名
|
|
145
|
+
* @en The class name of the popup content
|
|
146
|
+
*/
|
|
84
147
|
contentClass: { type: [
|
|
85
148
|
String,
|
|
86
149
|
Array,
|
|
87
150
|
Object
|
|
88
151
|
] },
|
|
152
|
+
/**
|
|
153
|
+
* @zh 弹出框内容的样式
|
|
154
|
+
* @en The style of the popup content
|
|
155
|
+
*/
|
|
89
156
|
contentStyle: { type: Object },
|
|
157
|
+
/**
|
|
158
|
+
* @zh 弹出框箭头的类名
|
|
159
|
+
* @en The class name of the popup arrow
|
|
160
|
+
*/
|
|
90
161
|
arrowClass: { type: [
|
|
91
162
|
String,
|
|
92
163
|
Array,
|
|
93
164
|
Object
|
|
94
165
|
] },
|
|
166
|
+
/**
|
|
167
|
+
* @zh 弹出框箭头的样式
|
|
168
|
+
* @en The style of the popup arrow
|
|
169
|
+
*/
|
|
95
170
|
arrowStyle: { type: Object },
|
|
171
|
+
/**
|
|
172
|
+
* @zh 弹出框的样式
|
|
173
|
+
* @en The style of the popup
|
|
174
|
+
*/
|
|
96
175
|
popupStyle: { type: Object },
|
|
176
|
+
/**
|
|
177
|
+
* @zh 弹出动画的name
|
|
178
|
+
* @en The name of the popup animation
|
|
179
|
+
*/
|
|
97
180
|
animationName: {
|
|
98
181
|
type: String,
|
|
99
182
|
default: "fade-in"
|
|
100
183
|
},
|
|
184
|
+
/**
|
|
185
|
+
* @zh 弹出动画的持续时间
|
|
186
|
+
* @en The duration of the popup animation
|
|
187
|
+
*/
|
|
101
188
|
duration: { type: [Number, Object] },
|
|
189
|
+
/**
|
|
190
|
+
* @zh mouseenter事件延时触发的时间(毫秒)
|
|
191
|
+
* @en Delay trigger time of mouseenter event (ms)
|
|
192
|
+
*/
|
|
102
193
|
mouseEnterDelay: {
|
|
103
194
|
type: Number,
|
|
104
195
|
default: 100
|
|
105
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* @zh mouseleave事件延时触发的时间(毫秒)
|
|
199
|
+
* @en Delay trigger time of mouseleave event (ms)
|
|
200
|
+
*/
|
|
106
201
|
mouseLeaveDelay: {
|
|
107
202
|
type: Number,
|
|
108
203
|
default: 100
|
|
109
204
|
},
|
|
205
|
+
/**
|
|
206
|
+
* @zh focus事件延时触发的时间(毫秒)
|
|
207
|
+
* @en Delay trigger time of focus event (ms)
|
|
208
|
+
*/
|
|
110
209
|
focusDelay: {
|
|
111
210
|
type: Number,
|
|
112
211
|
default: 0
|
|
113
212
|
},
|
|
213
|
+
/**
|
|
214
|
+
* @zh 是否将弹出框宽度设置为触发器宽度
|
|
215
|
+
* @en Whether to set the width of the popup to the width of the trigger
|
|
216
|
+
*/
|
|
114
217
|
autoFitPopupWidth: {
|
|
115
218
|
type: Boolean,
|
|
116
219
|
default: false
|
|
117
220
|
},
|
|
221
|
+
/**
|
|
222
|
+
* @zh 是否将弹出框的最小宽度设置为触发器宽度
|
|
223
|
+
* @en Whether to set the minimum width of the popup to the trigger width
|
|
224
|
+
*/
|
|
118
225
|
autoFitPopupMinWidth: {
|
|
119
226
|
type: Boolean,
|
|
120
227
|
default: false
|
|
121
228
|
},
|
|
229
|
+
/**
|
|
230
|
+
* @zh 当触发器的尺寸发生变化时,是否重新计算弹出框位置
|
|
231
|
+
* @en When the size of the trigger changes, whether to recalculate the position of the popup
|
|
232
|
+
*/
|
|
122
233
|
autoFixPosition: {
|
|
123
234
|
type: Boolean,
|
|
124
235
|
default: true
|
|
125
236
|
},
|
|
237
|
+
/**
|
|
238
|
+
* @zh 弹出框的挂载容器
|
|
239
|
+
* @en Mount container for popup
|
|
240
|
+
*/
|
|
126
241
|
popupContainer: { type: [String, Object] },
|
|
242
|
+
/**
|
|
243
|
+
* @zh 是否在容器滚动时更新弹出框的位置
|
|
244
|
+
* @us Whether to update the position of the popup when the container is scrolled
|
|
245
|
+
*/
|
|
127
246
|
updateAtScroll: {
|
|
128
247
|
type: Boolean,
|
|
129
248
|
default: false
|
|
@@ -141,22 +260,43 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
141
260
|
Array,
|
|
142
261
|
Object
|
|
143
262
|
] },
|
|
263
|
+
/**
|
|
264
|
+
* @zh 是否自动调整弹出框位置,以适应窗口大小
|
|
265
|
+
* @en Whether to automatically adjust the position of the popup to fit the window size
|
|
266
|
+
*/
|
|
144
267
|
autoFitPosition: {
|
|
145
268
|
type: Boolean,
|
|
146
269
|
default: true
|
|
147
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* @zh 是否挂载在 `body` 元素下
|
|
273
|
+
* @en Whether to mount under the `body` element
|
|
274
|
+
*/
|
|
148
275
|
renderToBody: {
|
|
149
276
|
type: Boolean,
|
|
150
277
|
default: true
|
|
151
278
|
},
|
|
279
|
+
/**
|
|
280
|
+
* @zh 是否阻止弹出层中的元素点击时获取焦点
|
|
281
|
+
* @en Whether to prevent elements in the pop-up layer from gaining focus when clicked
|
|
282
|
+
*/
|
|
152
283
|
preventFocus: {
|
|
153
284
|
type: Boolean,
|
|
154
285
|
default: false
|
|
155
286
|
},
|
|
287
|
+
/**
|
|
288
|
+
* @zh 是否在滚动时关闭弹出框
|
|
289
|
+
* @en Whether to close the popover when scrolling
|
|
290
|
+
* @version 2.46.0
|
|
291
|
+
*/
|
|
156
292
|
scrollToClose: {
|
|
157
293
|
type: Boolean,
|
|
158
294
|
default: false
|
|
159
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* @zh 滚动阈值,当滚动距离超过该值时触发关闭
|
|
298
|
+
* @en Scroll threshold, trigger close when the scroll distance exceeds this value
|
|
299
|
+
*/
|
|
160
300
|
scrollToCloseDistance: {
|
|
161
301
|
type: Number,
|
|
162
302
|
default: 0
|
|
@@ -164,11 +304,31 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
164
304
|
},
|
|
165
305
|
emits: {
|
|
166
306
|
"update:popupVisible": (_visible) => true,
|
|
307
|
+
/**
|
|
308
|
+
* @zh 弹出框显示状态改变时触发
|
|
309
|
+
* @en Emitted when the status of the popup changes
|
|
310
|
+
* @param {boolean} visible
|
|
311
|
+
*/
|
|
167
312
|
"popupVisibleChange": (_visible) => true,
|
|
313
|
+
/**
|
|
314
|
+
* @zh 弹出框显示后(动画结束)触发
|
|
315
|
+
* @en Triggered after the trigger is shown (the animation ends)
|
|
316
|
+
* @version 2.18.0
|
|
317
|
+
*/
|
|
168
318
|
"show": () => true,
|
|
319
|
+
/**
|
|
320
|
+
* @zh 弹出框隐藏后(动画结束)触发
|
|
321
|
+
* @en Triggered after the popup is hidden (the animation ends)
|
|
322
|
+
* @version 2.18.0
|
|
323
|
+
*/
|
|
169
324
|
"hide": () => true,
|
|
170
325
|
"resize": () => true
|
|
171
326
|
},
|
|
327
|
+
/**
|
|
328
|
+
* @zh 弹出框内容
|
|
329
|
+
* @en Popup content
|
|
330
|
+
* @slot content
|
|
331
|
+
*/
|
|
172
332
|
setup(props, { emit, slots, attrs }) {
|
|
173
333
|
const prefixCls = getPrefixCls("trigger");
|
|
174
334
|
const popupAttrs = computed(() => omit(attrs, TRIGGER_EVENTS));
|
package/es/trigger/utils.js
CHANGED
|
@@ -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
|
import { isArray } from "../_utils/is.js";
|
|
3
3
|
import { getDocumentSize } from "../_utils/dom.js";
|
|
4
4
|
//#region components/trigger/utils.ts
|
package/es/typography/base.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options as ClipboardOptions } from 'copy-to-clipboard';
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
import { BaseProps, EllipsisConfig } from './interface';
|
|
3
4
|
interface BaseInternalProps extends BaseProps {
|
|
@@ -51,6 +52,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
52
|
copyText: {
|
|
52
53
|
type: StringConstructor;
|
|
53
54
|
};
|
|
55
|
+
clipboardProps: {
|
|
56
|
+
type: PropType<ClipboardOptions>;
|
|
57
|
+
};
|
|
54
58
|
copyDelay: {
|
|
55
59
|
type: NumberConstructor;
|
|
56
60
|
default: number;
|
|
@@ -122,6 +126,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
122
126
|
copyText: {
|
|
123
127
|
type: StringConstructor;
|
|
124
128
|
};
|
|
129
|
+
clipboardProps: {
|
|
130
|
+
type: PropType<ClipboardOptions>;
|
|
131
|
+
};
|
|
125
132
|
copyDelay: {
|
|
126
133
|
type: NumberConstructor;
|
|
127
134
|
default: number;
|
package/es/typography/base.js
CHANGED
|
@@ -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
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isObject } from "../_utils/is.js";
|
|
4
4
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -7,12 +7,12 @@ import { omit } from "../_utils/omit.js";
|
|
|
7
7
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
8
8
|
import Popover from "../popover/index.js";
|
|
9
9
|
import Tooltip from "../tooltip/index.js";
|
|
10
|
-
import { clipboard } from "../_utils/clipboard.js";
|
|
11
10
|
import edit_content_default from "./edit-content.js";
|
|
12
11
|
import operations_default from "./operations.js";
|
|
13
12
|
import getInnerText from "./utils/getInnerText.js";
|
|
14
13
|
import measure_default from "./utils/measure.js";
|
|
15
14
|
import { computed, createVNode, defineComponent, isVNode, mergeProps, onMounted, onUnmounted, onUpdated, reactive, ref, toRefs, watch } from "vue";
|
|
15
|
+
import copy from "copy-to-clipboard";
|
|
16
16
|
//#region components/typography/base.tsx
|
|
17
17
|
function _isSlot(s) {
|
|
18
18
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -63,46 +63,170 @@ var base_default = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
type: String,
|
|
64
64
|
required: true
|
|
65
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* @zh 文本类型
|
|
68
|
+
* @en Text type
|
|
69
|
+
*/
|
|
66
70
|
type: { type: String },
|
|
71
|
+
/**
|
|
72
|
+
* @zh 粗体
|
|
73
|
+
* @en Whether enable bold style
|
|
74
|
+
*/
|
|
67
75
|
bold: { type: Boolean },
|
|
76
|
+
/**
|
|
77
|
+
* @zh 添加标记样式
|
|
78
|
+
* @en Mark style
|
|
79
|
+
*/
|
|
68
80
|
mark: {
|
|
69
81
|
type: [Boolean, Object],
|
|
70
82
|
default: false
|
|
71
83
|
},
|
|
84
|
+
/**
|
|
85
|
+
* @zh 下划线样式
|
|
86
|
+
* @en Whether enable underline style
|
|
87
|
+
*/
|
|
72
88
|
underline: { type: Boolean },
|
|
89
|
+
/**
|
|
90
|
+
* @zh 删除线样式
|
|
91
|
+
* @en Whether enable delete style
|
|
92
|
+
*/
|
|
73
93
|
delete: { type: Boolean },
|
|
94
|
+
/**
|
|
95
|
+
* @zh 代码块样式
|
|
96
|
+
* @en Whether enable code style
|
|
97
|
+
*/
|
|
74
98
|
code: { type: Boolean },
|
|
99
|
+
/**
|
|
100
|
+
* @zh 禁用状态
|
|
101
|
+
* @en Whether disabled
|
|
102
|
+
*/
|
|
75
103
|
disabled: { type: Boolean },
|
|
104
|
+
/**
|
|
105
|
+
* @zh 开启可编辑功能
|
|
106
|
+
* @en Whether it's editable
|
|
107
|
+
*/
|
|
76
108
|
editable: { type: Boolean },
|
|
109
|
+
/**
|
|
110
|
+
* @zh 是否在编辑状态
|
|
111
|
+
* @en Whether it's editing
|
|
112
|
+
* @vModel
|
|
113
|
+
*/
|
|
77
114
|
editing: {
|
|
78
115
|
type: Boolean,
|
|
79
116
|
default: void 0
|
|
80
117
|
},
|
|
118
|
+
/**
|
|
119
|
+
* @zh 默认的编辑状态
|
|
120
|
+
* @en Default editing state
|
|
121
|
+
*/
|
|
81
122
|
defaultEditing: { type: Boolean },
|
|
123
|
+
/**
|
|
124
|
+
* @zh 编辑的文字
|
|
125
|
+
* @en Edit text
|
|
126
|
+
* @vModel
|
|
127
|
+
*/
|
|
82
128
|
editText: { type: String },
|
|
129
|
+
/**
|
|
130
|
+
* @zh 开启复制功能
|
|
131
|
+
* @en Whether turn on copy functionality
|
|
132
|
+
*/
|
|
83
133
|
copyable: { type: Boolean },
|
|
134
|
+
/**
|
|
135
|
+
* @zh 复制的文字
|
|
136
|
+
* @en Copied text
|
|
137
|
+
*/
|
|
84
138
|
copyText: { type: String },
|
|
139
|
+
/**
|
|
140
|
+
* @zh 透传给 copy-to-clipboard 的配置
|
|
141
|
+
* @en Options passed through to copy-to-clipboard
|
|
142
|
+
*/
|
|
143
|
+
clipboardProps: { type: Object },
|
|
144
|
+
/**
|
|
145
|
+
* @zh 复制成功后,复制按钮恢复到可点击状态的延迟时间,单位是毫秒
|
|
146
|
+
* @en After the copy is successful, the delay time for the copy button to return to the clickable state, in milliseconds
|
|
147
|
+
* @version 2.16.0
|
|
148
|
+
*/
|
|
85
149
|
copyDelay: {
|
|
86
150
|
type: Number,
|
|
87
151
|
default: 3e3
|
|
88
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* @zh 自动溢出省略,具体参数配置看 [EllipsisConfig](#EllipsisConfig)
|
|
155
|
+
* @en Automatic overflow omission, refer to [EllipsisConfig](#EllipsisConfig) for more information.
|
|
156
|
+
*/
|
|
89
157
|
ellipsis: {
|
|
90
158
|
type: [Boolean, Object],
|
|
91
159
|
default: false
|
|
92
160
|
},
|
|
161
|
+
/**
|
|
162
|
+
* @zh 编辑按钮问题提示配置
|
|
163
|
+
* @en Edit button question prompt configuration
|
|
164
|
+
* @version 2.32.0
|
|
165
|
+
*/
|
|
93
166
|
editTooltipProps: { type: Object },
|
|
167
|
+
/**
|
|
168
|
+
* @zh 拷贝按钮问题提示配置
|
|
169
|
+
* @en Copy button question prompt configuration
|
|
170
|
+
* @version 2.32.0
|
|
171
|
+
*/
|
|
94
172
|
copyTooltipProps: { type: Object }
|
|
95
173
|
},
|
|
96
174
|
emits: {
|
|
175
|
+
/**
|
|
176
|
+
* @zh 开始编辑
|
|
177
|
+
* @en Edit start
|
|
178
|
+
*/
|
|
97
179
|
"editStart": () => true,
|
|
180
|
+
/**
|
|
181
|
+
* @zh 编辑内容变化
|
|
182
|
+
* @en Edit content change
|
|
183
|
+
* @param {string} text
|
|
184
|
+
*/
|
|
98
185
|
"change": (_text) => true,
|
|
99
186
|
"update:editText": (_text) => true,
|
|
187
|
+
/**
|
|
188
|
+
* @zh 编辑结束
|
|
189
|
+
* @en Edit end
|
|
190
|
+
*/
|
|
100
191
|
"editEnd": () => true,
|
|
101
192
|
"update:editing": (_editing) => true,
|
|
193
|
+
/**
|
|
194
|
+
* @zh 复制
|
|
195
|
+
* @en Copy
|
|
196
|
+
* @param {string} text
|
|
197
|
+
*/
|
|
102
198
|
"copy": (_text) => true,
|
|
199
|
+
/**
|
|
200
|
+
* @zh 省略变化事件
|
|
201
|
+
* @en Ellipsis change
|
|
202
|
+
* @param {boolean} isEllipsis
|
|
203
|
+
*/
|
|
103
204
|
"ellipsis": (_isEllipsis) => true,
|
|
205
|
+
/**
|
|
206
|
+
* @zh 展开收起事件
|
|
207
|
+
* @en Expand collapse event
|
|
208
|
+
* @param {boolean} expanded
|
|
209
|
+
*/
|
|
104
210
|
"expand": (_expanded) => true
|
|
105
211
|
},
|
|
212
|
+
/**
|
|
213
|
+
* @zh 自定义复制按钮的 tooltip 内容
|
|
214
|
+
* @en Customize the tooltip content of the copy button
|
|
215
|
+
* @slot copy-tooltip
|
|
216
|
+
* @binding {boolean} copied
|
|
217
|
+
*/
|
|
218
|
+
/**
|
|
219
|
+
* @zh 自定义复制按钮图标
|
|
220
|
+
* @en Custom copy button icon
|
|
221
|
+
* @slot copy-icon
|
|
222
|
+
* @binding {boolean} copied
|
|
223
|
+
*/
|
|
224
|
+
/**
|
|
225
|
+
* @zh 自定义展开和折叠按钮
|
|
226
|
+
* @en Custom expand button
|
|
227
|
+
* @slot expand-node
|
|
228
|
+
* @binding {boolean} expanded
|
|
229
|
+
*/
|
|
106
230
|
setup(props, { slots, emit, attrs }) {
|
|
107
231
|
const { editing: propEditing, defaultEditing, ellipsis, copyable, editable, copyText, editText, copyDelay, component } = toRefs(props);
|
|
108
232
|
const prefixCls = getPrefixCls("typography");
|
|
@@ -134,7 +258,7 @@ var base_default = /* @__PURE__ */ defineComponent({
|
|
|
134
258
|
function onCopyClick() {
|
|
135
259
|
var _copyText$value;
|
|
136
260
|
const text = (_copyText$value = copyText.value) !== null && _copyText$value !== void 0 ? _copyText$value : fullText.value;
|
|
137
|
-
|
|
261
|
+
copy(text || "", props.clipboardProps);
|
|
138
262
|
isCopied.value = true;
|
|
139
263
|
emit("copy", text);
|
|
140
264
|
copyTimer = setTimeout(() => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options as ClipboardOptions } from 'copy-to-clipboard';
|
|
1
2
|
import { VNode } from 'vue';
|
|
2
3
|
export interface EllipsisConfig {
|
|
3
4
|
rows?: number;
|
|
@@ -24,6 +25,7 @@ export interface CopyProps {
|
|
|
24
25
|
copyable: boolean;
|
|
25
26
|
copyDelay: number;
|
|
26
27
|
copyText: string | undefined;
|
|
28
|
+
clipboardProps?: ClipboardOptions;
|
|
27
29
|
}
|
|
28
30
|
export interface EditProps {
|
|
29
31
|
editable: boolean;
|
|
@@ -27,10 +27,40 @@ var _sfc_main = defineComponent({
|
|
|
27
27
|
copyTooltipProps: Object
|
|
28
28
|
},
|
|
29
29
|
emits: {
|
|
30
|
+
/**
|
|
31
|
+
* @zh 点击编辑时触发
|
|
32
|
+
* @en Triggered when editing is clicked
|
|
33
|
+
*/
|
|
30
34
|
edit: () => true,
|
|
35
|
+
/**
|
|
36
|
+
* @zh 点击复制时触发
|
|
37
|
+
* @en Triggered when copy is clicked
|
|
38
|
+
*/
|
|
31
39
|
copy: () => true,
|
|
40
|
+
/**
|
|
41
|
+
* @zh 点击展开时触发
|
|
42
|
+
* @en Triggered when click to expand
|
|
43
|
+
*/
|
|
32
44
|
expand: () => true
|
|
33
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @zh 自定义复制按钮的 tooltip 内容
|
|
48
|
+
* @en Customize the tooltip content of the copy button
|
|
49
|
+
* @slot copy-tooltip
|
|
50
|
+
* @binding {boolean} copied
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* @zh 自定义复制按钮图标
|
|
54
|
+
* @en Custom copy button icon
|
|
55
|
+
* @slot copy-icon
|
|
56
|
+
* @binding {boolean} copied
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* @zh 自定义展开和折叠按钮
|
|
60
|
+
* @en Custom expand and collapse buttons
|
|
61
|
+
* @slot expand-node
|
|
62
|
+
* @binding {boolean} expanded
|
|
63
|
+
*/
|
|
34
64
|
setup(props, { emit }) {
|
|
35
65
|
const prefixCls = getPrefixCls("typography");
|
|
36
66
|
const showExpand = computed(() => props.forceRenderExpand || props.expandable && props.isEllipsis);
|
|
@@ -6,7 +6,15 @@ var paragraph_default = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
name: "TypographyParagraph",
|
|
7
7
|
inheritAttrs: false,
|
|
8
8
|
props: {
|
|
9
|
+
/**
|
|
10
|
+
* @zh 长引用
|
|
11
|
+
* @en Whether enable blockquote
|
|
12
|
+
*/
|
|
9
13
|
blockquote: { type: Boolean },
|
|
14
|
+
/**
|
|
15
|
+
* @zh 段落的的行高,长文本(大于5行)的时候推荐使用默认行高,短文本(小于等于3行)推荐使用 `close` 紧密的行高。
|
|
16
|
+
* @en The line height of the paragraph, the default line height is recommended for long text (more than 5 lines). `close` line height is recommended for short text (less than or equal to 3 lines).
|
|
17
|
+
*/
|
|
10
18
|
spacing: {
|
|
11
19
|
type: String,
|
|
12
20
|
default: "default"
|
package/es/typography/title.js
CHANGED
|
@@ -4,7 +4,12 @@ import { computed, createVNode, defineComponent, mergeProps, toRefs } from "vue"
|
|
|
4
4
|
var title_default = /* @__PURE__ */ defineComponent({
|
|
5
5
|
name: "TypographyTitle",
|
|
6
6
|
inheritAttrs: false,
|
|
7
|
-
props: {
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 标题级别,相当于 `h1` `h2` `h3` `h4` `h5` `h6`
|
|
10
|
+
* @en Heading level, equivalent to `h1` `h2` `h3` `h4` `h5` `h6`
|
|
11
|
+
*/
|
|
12
|
+
heading: {
|
|
8
13
|
type: Number,
|
|
9
14
|
default: 1
|
|
10
15
|
} },
|