uview-plus 3.1.52 → 3.2.5

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.
Files changed (134) hide show
  1. package/changelog.md +51 -0
  2. package/components/u-action-sheet/u-action-sheet.vue +1 -1
  3. package/components/u-album/u-album.vue +261 -261
  4. package/components/u-avatar/u-avatar.vue +3 -2
  5. package/components/u-avatar-group/u-avatar-group.vue +106 -106
  6. package/components/u-button/u-button.vue +6 -1
  7. package/components/u-calendar/u-calendar.vue +4 -3
  8. package/components/u-cell/u-cell.vue +4 -2
  9. package/components/u-checkbox/props.js +5 -0
  10. package/components/u-checkbox/u-checkbox.vue +29 -17
  11. package/components/u-code/u-code.vue +1 -1
  12. package/components/u-dropdown/props.js +8 -14
  13. package/components/u-dropdown/u-dropdown.vue +202 -77
  14. package/components/u-dropdown-item/props.js +45 -36
  15. package/components/u-dropdown-item/u-dropdown-item.vue +121 -148
  16. package/components/u-form/u-form.vue +1 -1
  17. package/components/u-form-item/props.js +6 -1
  18. package/components/u-form-item/u-form-item.vue +1 -1
  19. package/components/u-grid/u-grid.vue +4 -2
  20. package/components/u-grid-item/u-grid-item.vue +8 -7
  21. package/components/u-input/u-input.vue +1 -1
  22. package/components/u-lazy-load/u-lazy-load.vue +251 -0
  23. package/components/u-number-box/u-number-box.vue +4 -4
  24. package/components/u-picker/u-picker.vue +5 -2
  25. package/components/u-popup/u-popup.vue +1 -1
  26. package/components/u-radio/u-radio.vue +2 -2
  27. package/components/u-rate/u-rate.vue +1 -1
  28. package/components/u-read-more/u-read-more.vue +164 -160
  29. package/components/u-slider/u-slider.vue +6 -6
  30. package/components/u-steps-item/u-steps-item.vue +318 -318
  31. package/components/u-subsection/u-subsection.vue +35 -21
  32. package/components/u-swiper/u-swiper.vue +6 -8
  33. package/components/u-switch/u-switch.vue +1 -1
  34. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  35. package/components/u-tabs/u-tabs.vue +1 -0
  36. package/components/u-tag/props.js +5 -2
  37. package/components/u-tag/u-tag.vue +1 -1
  38. package/components/u-text/u-text.vue +226 -226
  39. package/components/u-textarea/u-textarea.vue +275 -275
  40. package/components/u-transition/u-transition.vue +1 -1
  41. package/components/u-waterfall/u-waterfall.vue +225 -0
  42. package/index.js +5 -2
  43. package/libs/config/props/formItem.js +1 -0
  44. package/libs/config/props/tag.js +30 -29
  45. package/libs/css/common.scss +4 -1
  46. package/libs/css/components.scss +5 -5
  47. package/libs/css/flex.scss +45 -45
  48. package/libs/mixin/mixin.js +2 -2
  49. package/libs/mixin/mpShare.js +15 -13
  50. package/package.json +1 -1
  51. package/types/comps/_common.d.ts +9 -0
  52. package/types/comps/actionSheet.d.ts +121 -0
  53. package/types/comps/album.d.ts +72 -0
  54. package/types/comps/alert.d.ts +55 -0
  55. package/types/comps/avatar.d.ts +85 -0
  56. package/types/comps/avatarGroup.d.ts +62 -0
  57. package/types/comps/backTop.d.ts +74 -0
  58. package/types/comps/badge.d.ts +76 -0
  59. package/types/comps/button.d.ts +169 -0
  60. package/types/comps/calendar.d.ts +164 -0
  61. package/types/comps/cell.d.ts +133 -0
  62. package/types/comps/cellGroup.d.ts +27 -0
  63. package/types/comps/checkbox.d.ts +69 -0
  64. package/types/comps/checkboxGroup.d.ts +93 -0
  65. package/types/comps/code.d.ts +69 -0
  66. package/types/comps/codeInput.d.ts +98 -0
  67. package/types/comps/col.d.ts +43 -0
  68. package/types/comps/collapse.d.ts +52 -0
  69. package/types/comps/collapseItem.d.ts +83 -0
  70. package/types/comps/countDown.d.ts +60 -0
  71. package/types/comps/countTo.d.ts +88 -0
  72. package/types/comps/datetimePicker.d.ts +146 -0
  73. package/types/comps/divider.d.ts +58 -0
  74. package/types/comps/empty.d.ts +72 -0
  75. package/types/comps/form.d.ts +76 -0
  76. package/types/comps/formItem.d.ts +68 -0
  77. package/types/comps/gap.d.ts +35 -0
  78. package/types/comps/grid.d.ts +34 -0
  79. package/types/comps/gridItem.d.ts +28 -0
  80. package/types/comps/icon.d.ts +93 -0
  81. package/types/comps/image.d.ts +119 -0
  82. package/types/comps/indexAnchor.d.ts +38 -0
  83. package/types/comps/indexItem.d.ts +18 -0
  84. package/types/comps/indexList.d.ts +39 -0
  85. package/types/comps/input.d.ts +234 -0
  86. package/types/comps/keyboard.d.ts +125 -0
  87. package/types/comps/line.d.ts +44 -0
  88. package/types/comps/lineProgress.d.ts +51 -0
  89. package/types/comps/link.d.ts +51 -0
  90. package/types/comps/list.d.ts +92 -0
  91. package/types/comps/listItem.d.ts +18 -0
  92. package/types/comps/loadMore.d.ts +108 -0
  93. package/types/comps/loadingIcon.d.ts +68 -0
  94. package/types/comps/loadingPage.d.ts +58 -0
  95. package/types/comps/modal.d.ts +115 -0
  96. package/types/comps/navbar.d.ts +113 -0
  97. package/types/comps/noNetwork.d.ts +40 -0
  98. package/types/comps/noticeBar.d.ts +85 -0
  99. package/types/comps/notify.d.ts +73 -0
  100. package/types/comps/numberBox.d.ts +155 -0
  101. package/types/comps/overlay.d.ts +46 -0
  102. package/types/comps/parse.d.ts +101 -0
  103. package/types/comps/picker.d.ts +115 -0
  104. package/types/comps/popup.d.ts +103 -0
  105. package/types/comps/radio.d.ts +77 -0
  106. package/types/comps/radioGroup.d.ts +97 -0
  107. package/types/comps/rate.d.ts +85 -0
  108. package/types/comps/readMore.d.ts +80 -0
  109. package/types/comps/row.d.ts +34 -0
  110. package/types/comps/scrollList.d.ts +51 -0
  111. package/types/comps/search.d.ts +167 -0
  112. package/types/comps/skeleton.d.ts +70 -0
  113. package/types/comps/slider.d.ts +79 -0
  114. package/types/comps/steps.d.ts +48 -0
  115. package/types/comps/stepsItem.d.ts +41 -0
  116. package/types/comps/sticky.d.ts +48 -0
  117. package/types/comps/subsection.d.ts +64 -0
  118. package/types/comps/swipeAction.d.ts +24 -0
  119. package/types/comps/swipeActionItem.d.ts +58 -0
  120. package/types/comps/swiper.d.ts +142 -0
  121. package/types/comps/swiperIndicator.d.ts +37 -0
  122. package/types/comps/switch.d.ts +73 -0
  123. package/types/comps/tabbar.d.ts +54 -0
  124. package/types/comps/tabbarItem.d.ts +52 -0
  125. package/types/comps/tabs.d.ts +85 -0
  126. package/types/comps/tag.d.ts +93 -0
  127. package/types/comps/text.d.ts +110 -0
  128. package/types/comps/textarea.d.ts +158 -0
  129. package/types/comps/toast.d.ts +59 -0
  130. package/types/comps/tooltip.d.ts +71 -0
  131. package/types/comps/transition.d.ts +61 -0
  132. package/types/comps/upload.d.ts +163 -0
  133. package/types/comps.d.ts +99 -0
  134. package/types/index.d.ts +47 -0
@@ -0,0 +1,142 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+ import { ImageMode } from './image'
3
+
4
+ declare interface SwiperProps {
5
+ /**
6
+ * 轮播图数据
7
+ */
8
+ list?: any[]
9
+ /**
10
+ * 是否显示面板指示器
11
+ * @default false
12
+ */
13
+ indicator?: boolean
14
+ /**
15
+ * 指示器激活的颜色
16
+ * @default "#fff"
17
+ */
18
+ indicatorActiveColor?: string
19
+ /**
20
+ * 指示器非激活颜色
21
+ * @default "rgba(255, 255, 255, 0.35)"
22
+ */
23
+ indicatorInactiveColor?: string
24
+ /**
25
+ * 指示器样式,可通过bottom,left,right进行定位
26
+ */
27
+ indicatorStyle?: string | Record<string, any>
28
+ /**
29
+ * 指示器模式
30
+ * @default "line"
31
+ */
32
+ indicatorMode?: 'line' | 'dot'
33
+ /**
34
+ * 是否自动切换
35
+ * @default true
36
+ */
37
+ autoplay?: boolean
38
+ /**
39
+ * 当前所在滑块的 index
40
+ * @default 0
41
+ */
42
+ current?: string | number
43
+ /**
44
+ * 当前所在滑块的 item-id ,不能与 current 被同时指定
45
+ */
46
+ currentItemId?: string
47
+ /**
48
+ * 滑块自动切换时间间隔(ms)
49
+ * @default 3000
50
+ */
51
+ interval?: string | number
52
+ /**
53
+ * 滑块切换过程所需时间(ms),nvue不支持
54
+ * @default 300
55
+ */
56
+ duration?: string | number
57
+ /**
58
+ * 播放到末尾后是否重新回到开头
59
+ * @default false
60
+ */
61
+ circular?: boolean
62
+ /**
63
+ * 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
64
+ * @default 0
65
+ */
66
+ previousMargin?: string | number
67
+ /**
68
+ * 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
69
+ * @default 0
70
+ */
71
+ nextMargin?: string | number
72
+ /**
73
+ * 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
74
+ * @default false
75
+ */
76
+ acceleration?: boolean
77
+ /**
78
+ * 同时显示的滑块数量,nvue、支付宝小程序不支持
79
+ * @default 1
80
+ */
81
+ displayMultipleItems?: number
82
+ /**
83
+ * 指定swiper切换缓动动画类型, 只对微信小程序有效
84
+ * @default "default"
85
+ */
86
+ easingFunction?: 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic'
87
+ /**
88
+ * list数组中指定对象的目标属性名
89
+ * @default "url"
90
+ */
91
+ keyName?: string
92
+ /**
93
+ * 裁剪模式
94
+ * @default "aspectFill"
95
+ */
96
+ imgMode?: ImageMode
97
+ /**
98
+ * 组件高度
99
+ * @default 130
100
+ */
101
+ height?: string | number
102
+ /**
103
+ * 背景颜色
104
+ * @default "#f3f4f6"
105
+ */
106
+ bgColor?: string
107
+ /**
108
+ * 组件圆角,数值或带单位的字符串
109
+ * @default 4
110
+ */
111
+ radius?: string | number
112
+ /**
113
+ * 是否加载中
114
+ * @default false
115
+ */
116
+ loading?: boolean
117
+ /**
118
+ * 是否显示标题,要求数组对象中有title属性
119
+ * @default false
120
+ */
121
+ showTitle?: boolean
122
+ /**
123
+ * 点击轮播图时触发
124
+ * @param index 点击了第几张图片,从0开始
125
+ */
126
+ onClick?: (index: number) => any
127
+ /**
128
+ * 轮播图切换时触发(自动或者手动切换)
129
+ * @param index 点击了第几张图片,从0开始
130
+ */
131
+ onChange?: (index: number) => any
132
+ }
133
+
134
+ declare interface _Swiper {
135
+ new (): {
136
+ $props: AllowedComponentProps &
137
+ VNodeProps &
138
+ SwiperProps
139
+ }
140
+ }
141
+
142
+ export declare const Swiper: _Swiper
@@ -0,0 +1,37 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface SwiperIndicatorProps {
4
+ /**
5
+ * 轮播的长度
6
+ * @default 0
7
+ */
8
+ length?: string | number
9
+ /**
10
+ * 当前处于活动状态的轮播的索引
11
+ * @default 0
12
+ */
13
+ current?: string | number
14
+ /**
15
+ * 指示器非激活颜色
16
+ */
17
+ indicatorActiveColor?: string
18
+ /**
19
+ * 指示器的激活颜色
20
+ */
21
+ indicatorInactiveColor?: string
22
+ /**
23
+ * 指示器的形式
24
+ * @default "line"
25
+ */
26
+ indicatorStyle?: 'line' | 'dot'
27
+ }
28
+
29
+ declare interface _SwiperIndicator {
30
+ new (): {
31
+ $props: AllowedComponentProps &
32
+ VNodeProps &
33
+ SwiperIndicatorProps
34
+ }
35
+ }
36
+
37
+ export declare const SwiperIndicator: _SwiperIndicator
@@ -0,0 +1,73 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface SwitchProps {
4
+ /**
5
+ * 是否处于加载中
6
+ * @default false
7
+ */
8
+ loading?: boolean
9
+ /**
10
+ * 是否禁用
11
+ * @default false
12
+ */
13
+ disabled?: boolean
14
+ /**
15
+ * 开关尺寸,单位rpx
16
+ */
17
+ size?: string | number
18
+ /**
19
+ * 打开时的背景色
20
+ * @default "#2979ff"
21
+ */
22
+ activeColor?: string
23
+ /**
24
+ * 关闭时的背景色
25
+ * @default "#ffffff"
26
+ */
27
+ inactiveColor?: string
28
+ /**
29
+ * 通过v-model双向绑定的值
30
+ * @default false
31
+ */
32
+ value?: string | number | boolean
33
+ /**
34
+ * switch打开时的值
35
+ * @default true
36
+ */
37
+ activeValue?: string | number | boolean
38
+ /**
39
+ * switch关闭时的值
40
+ * @default false
41
+ */
42
+ inactiveValue?: string | number | boolean
43
+ /**
44
+ * 是否开启异步变更,开启后需要手动控制输入值
45
+ * @default false
46
+ */
47
+ asyncChange?: boolean
48
+ /**
49
+ * 圆点与外边框的距离
50
+ * @default 0
51
+ */
52
+ space?: string | number
53
+ /**
54
+ * 在`switch`打开或关闭时触发
55
+ * @param value 打开时为`activeValue`值,关闭时为`inactiveValue`值
56
+ */
57
+ onChange?: (value: any) => any
58
+ /**
59
+ * 在`switch`打开或关闭时触发(没开启异步)
60
+ * @param value 打开时为`activeValue`值,关闭时为`inactiveValue`值
61
+ */
62
+ onInput?: (value: any) => any
63
+ }
64
+
65
+ declare interface _Switch {
66
+ new (): {
67
+ $props: AllowedComponentProps &
68
+ VNodeProps &
69
+ SwitchProps
70
+ }
71
+ }
72
+
73
+ export declare const Switch: _Switch
@@ -0,0 +1,54 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TabbarProps {
4
+ /**
5
+ * 当前匹配项的name
6
+ * @default null
7
+ */
8
+ value?: string | number
9
+ /**
10
+ * 是否为iPhoneX留出底部安全距离
11
+ * @default true
12
+ */
13
+ safeAreaInsetBottom?: boolean
14
+ /**
15
+ * 是否显示上方边框
16
+ * @default true
17
+ */
18
+ border?: boolean
19
+ /**
20
+ * 元素层级z-index
21
+ * @default 1
22
+ */
23
+ zIndex?: string | number
24
+ /**
25
+ * 选中标签的颜色
26
+ * @default "#1989fa"
27
+ */
28
+ activeColor?: string
29
+ /**
30
+ * 未选中标签的颜色
31
+ * @default "#7d7e80"
32
+ */
33
+ inactiveColor?: string
34
+ /**
35
+ * 是否固定在底部
36
+ * @default true
37
+ */
38
+ fixed?: boolean
39
+ /**
40
+ * fixed定位固定在底部时,是否生成一个等高元素防止塌陷
41
+ * @default true
42
+ */
43
+ placeholder?: boolean
44
+ }
45
+
46
+ declare interface _Tabbar {
47
+ new (): {
48
+ $props: AllowedComponentProps &
49
+ VNodeProps &
50
+ TabbarProps
51
+ }
52
+ }
53
+
54
+ export declare const Tabbar: _Tabbar
@@ -0,0 +1,52 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TabbarItemProps {
4
+ /**
5
+ * item标签的名称,作为与u-tabbar的value参数匹配的标识符
6
+ * @default null
7
+ */
8
+ name?: string | number
9
+ /**
10
+ * uView内置图标或者绝对路径的图片
11
+ */
12
+ icon?: string
13
+ /**
14
+ * 右上角的角标提示信息
15
+ * @default null
16
+ */
17
+ badge?: string | number
18
+ /**
19
+ * 是否显示圆点,将会覆盖badge参数
20
+ * @default false
21
+ */
22
+ dot?: boolean
23
+ /**
24
+ * 描述文本
25
+ */
26
+ text?: string
27
+ /**
28
+ * 控制徽标的位置
29
+ * @default "top: 6px;right:2px;"
30
+ */
31
+ badgeStyle?: Record<string, any> | string
32
+ /**
33
+ * 切换选项时触发
34
+ * @param index 当前要切换项的name
35
+ */
36
+ onChange?: (index: any) => any
37
+ /**
38
+ * 切换选项时触发
39
+ * @param index 当前要切换项的name
40
+ */
41
+ onClick?: (index: any) => any
42
+ }
43
+
44
+ declare interface _TabbarItem {
45
+ new (): {
46
+ $props: AllowedComponentProps &
47
+ VNodeProps &
48
+ TabbarItemProps
49
+ }
50
+ }
51
+
52
+ export declare const TabbarItem: _TabbarItem
@@ -0,0 +1,85 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TabsProps {
4
+ /**
5
+ * 滑块移动一次所需的时间,单位ms
6
+ * @default 300
7
+ */
8
+ duration?: string | number
9
+ /**
10
+ * 标签数组,元素为对象
11
+ */
12
+ list?: any[]
13
+ /**
14
+ * 滑块颜色
15
+ * @default "#3c9cff"
16
+ */
17
+ lineColor?: string
18
+ /**
19
+ * 菜单选择中时的样式
20
+ * @default "{ color: '#303133' }"
21
+ */
22
+ activeStyle?: unknown
23
+ /**
24
+ * 菜单非选中时的样式
25
+ * @default "{ color: '#606266' }"
26
+ */
27
+ inactiveStyle?: unknown
28
+ /**
29
+ * 滑块长度
30
+ * @default 20
31
+ */
32
+ lineWidth?: string | number
33
+ /**
34
+ * 滑块高度
35
+ * @default 3
36
+ */
37
+ lineHeight?: string | number
38
+ /**
39
+ * 滑块背景显示大小
40
+ * @default "cover"
41
+ */
42
+ lineBgSize?: string
43
+ /**
44
+ * 菜单item的样式
45
+ * @default "{ height: '44px' }"
46
+ */
47
+ itemStyle?: unknown
48
+ /**
49
+ * 菜单是否可滚动
50
+ * @default true
51
+ */
52
+ scrollable?: boolean
53
+ /**
54
+ * 当前选中标签的索引
55
+ * @default 0
56
+ */
57
+ current?: string | number
58
+ /**
59
+ * 从`list`元素对象中读取的键名
60
+ * @default "name"
61
+ */
62
+ keyName?: string
63
+ /**
64
+ * 点击标签时触发
65
+ * @param index 标签索引值
66
+ * @param item 传入的其他值
67
+ */
68
+ onClick?: (index: number, item: any) => any
69
+ /**
70
+ * 标签索引改变时触发(`disalbed`时不会触发)
71
+ * @param index 标签索引值
72
+ * @param item 传入的其他值
73
+ */
74
+ onChange?: (index: number, item: any) => any
75
+ }
76
+
77
+ declare interface _Tabs {
78
+ new (): {
79
+ $props: AllowedComponentProps &
80
+ VNodeProps &
81
+ TabsProps
82
+ }
83
+ }
84
+
85
+ export declare const Tabs: _Tabs
@@ -0,0 +1,93 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TagProps {
4
+ /**
5
+ * 主题类型
6
+ * @default "primary"
7
+ */
8
+ type?: 'primary' | 'success' | 'info' | 'warning' | 'error'
9
+ /**
10
+ * 不可用
11
+ * @default false
12
+ */
13
+ disabled?: boolean | string
14
+ /**
15
+ * 标签大小
16
+ * @default "medium"
17
+ */
18
+ size?: 'medium' | 'large' | 'mini'
19
+ /**
20
+ * 标签形状
21
+ * @default "square"
22
+ */
23
+ shape?: 'square' | 'circle'
24
+ /**
25
+ * 标签的文字内容
26
+ */
27
+ text?: string | number
28
+ /**
29
+ * 背景颜色,默认为空字符串,即不处理
30
+ * @default "#C6C7CB"
31
+ */
32
+ bgColor?: string
33
+ /**
34
+ * 标签字体颜色,默认为空字符串,即不处理
35
+ */
36
+ color?: string
37
+ /**
38
+ * 标签的边框颜色
39
+ */
40
+ borderColor?: string
41
+ /**
42
+ * 关闭按钮图标的颜色
43
+ */
44
+ closeColor?: string
45
+ /**
46
+ * 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
47
+ */
48
+ name?: string | number
49
+ /**
50
+ * 镂空时是否填充背景色
51
+ * @default false
52
+ */
53
+ plainFill?: boolean
54
+ /**
55
+ * 是否镂空
56
+ * @default false
57
+ */
58
+ plain?: boolean
59
+ /**
60
+ * 是否可关闭,设置为`true`,文字右边会出现一个关闭图标
61
+ * @default false
62
+ */
63
+ closable?: boolean
64
+ /**
65
+ * 标签显示与否
66
+ * @default true
67
+ */
68
+ show?: boolean
69
+ /**
70
+ * 内置图标,或绝对路径的图片
71
+ */
72
+ icon?: string
73
+ /**
74
+ * 点击触发事件
75
+ * @param index 传递的`index`参数值
76
+ */
77
+ onClick?: (index: number) => any
78
+ /**
79
+ * `closable`为`true`时,点击标签关闭按钮触发
80
+ * @param index 传递的`index`参数值
81
+ */
82
+ onClose?: (index: number) => any
83
+ }
84
+
85
+ declare interface _Tag {
86
+ new (): {
87
+ $props: AllowedComponentProps &
88
+ VNodeProps &
89
+ TagProps
90
+ }
91
+ }
92
+
93
+ export declare const Tag: _Tag
@@ -0,0 +1,110 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TextProps {
4
+ /**
5
+ * 主题颜色
6
+ */
7
+ type?: string
8
+ /**
9
+ * 是否显示
10
+ * @default true
11
+ */
12
+ show?: boolean
13
+ /**
14
+ * 显示的值
15
+ */
16
+ text?: string | number
17
+ /**
18
+ * 前置图标
19
+ */
20
+ prefixIcon?: string
21
+ /**
22
+ * 后置图标
23
+ */
24
+ suffixIcon?: string
25
+ /**
26
+ * 文本处理的匹配模式text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
27
+ */
28
+ mode?: 'text' | 'price' | 'phone' | 'name' | 'date' | 'link'
29
+ /**
30
+ * mode=link下,配置的链接
31
+ */
32
+ href?: string
33
+ /**
34
+ * 格式化规则
35
+ */
36
+ format?: string | ((value: any) => any)
37
+ /**
38
+ * mode=phone时,点击文本是否拨打电话
39
+ * @default false
40
+ */
41
+ call?: boolean
42
+ /**
43
+ * 小程序的打开方式
44
+ */
45
+ openType?: string
46
+ /**
47
+ * 是否粗体,默认normal
48
+ * @default false
49
+ */
50
+ bold?: boolean
51
+ /**
52
+ * 是否块状
53
+ */
54
+ block?: boolean
55
+ /**
56
+ * 文本显示的行数,如果设置,超出此行数,将会显示省略号
57
+ */
58
+ lines?: string | number
59
+ /**
60
+ * 文本颜色
61
+ * @default "#303133"
62
+ */
63
+ color?: string
64
+ /**
65
+ * 字体大小
66
+ * @default 15
67
+ */
68
+ size?: string | number
69
+ /**
70
+ * 图标的样式
71
+ */
72
+ iconStyle?: Record<string, any> | string
73
+ /**
74
+ * 文字装饰,下划线,中划线等
75
+ * @default "none"
76
+ */
77
+ decoration?: 'none' | 'underline' | 'line-through'
78
+ /**
79
+ * 外边距,对象、字符串,数值形式均可
80
+ */
81
+ margin?: Record<string, any> | string | number
82
+ /**
83
+ * 文本行高
84
+ */
85
+ lineHeight?: number | string
86
+ /**
87
+ * 文本对齐方式
88
+ * @default "left"
89
+ */
90
+ align?: 'left' | 'center' | 'right'
91
+ /**
92
+ * 文字换行
93
+ * @default "normal"
94
+ */
95
+ wordWrap?: 'normal' | 'break-word' | 'any-where'
96
+ /**
97
+ * 点击触发事件
98
+ */
99
+ onClick?: () => any
100
+ }
101
+
102
+ declare interface _Text {
103
+ new (): {
104
+ $props: AllowedComponentProps &
105
+ VNodeProps &
106
+ TextProps
107
+ }
108
+ }
109
+
110
+ export declare const Text: _Text