hy-app 0.6.9 → 0.7.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/attributes.json +1 -1
- package/components/hy-avatar/hy-avatar.vue +12 -5
- package/components/hy-avatar/props.ts +4 -2
- package/components/hy-avatar/typing.d.ts +8 -1
- package/components/hy-calendar/hy-calendar.vue +1 -0
- package/components/hy-calendar/month.vue +25 -5
- package/components/hy-calendar/props.ts +1 -1
- package/components/hy-cascader/hy-cascader.vue +503 -0
- package/components/hy-cascader/index.scss +84 -0
- package/components/hy-cascader/props.ts +88 -0
- package/components/hy-cascader/typing.d.ts +34 -0
- package/components/hy-check-button/typing.d.ts +12 -7
- package/components/hy-code-input/hy-code-input.vue +33 -11
- package/components/hy-code-input/typing.d.ts +4 -0
- package/components/hy-config-provider/hy-config-provider.vue +58 -53
- package/components/hy-datetime-picker/props.ts +1 -1
- package/components/hy-datetime-picker/typing.d.ts +1 -1
- package/components/hy-dropdown/typing.d.ts +5 -0
- package/components/hy-form/typing.d.ts +6 -0
- package/components/hy-form-item/typing.d.ts +1 -1
- package/components/hy-grid/hy-grid.vue +12 -12
- package/components/hy-grid/index.scss +1 -2
- package/components/hy-grid/props.ts +7 -2
- package/components/hy-grid/typing.d.ts +1 -1
- package/components/hy-icon/typing.d.ts +52 -9
- package/components/hy-keyboard/constants.ts +83 -0
- package/components/hy-keyboard/hy-keyboard.vue +375 -0
- package/components/hy-keyboard/index.scss +73 -0
- package/components/hy-keyboard/key/index.scss +79 -0
- package/components/hy-keyboard/key/index.vue +91 -0
- package/components/hy-keyboard/key/types.ts +1 -0
- package/components/hy-keyboard/props.ts +108 -0
- package/components/hy-keyboard/typing.d.ts +18 -0
- package/components/hy-modal/typing.d.ts +2 -2
- package/components/hy-notice-bar/hy-column-notice.vue +54 -94
- package/components/hy-notice-bar/hy-notice-bar.vue +128 -96
- package/components/hy-notice-bar/hy-row-notice.vue +89 -121
- package/components/hy-notice-bar/props.ts +86 -85
- package/components/hy-notify/hy-notify.vue +9 -9
- package/components/hy-notify/typing.d.ts +22 -0
- package/components/hy-picker/hy-picker.vue +126 -149
- package/components/hy-picker/props.ts +4 -1
- package/components/hy-picker/typing.d.ts +22 -0
- package/components/hy-popup/index.scss +1 -0
- package/components/hy-price/hy-price.vue +52 -23
- package/components/hy-price/props.ts +54 -54
- package/components/hy-radio/props.ts +1 -1
- package/components/hy-radio/typing.d.ts +5 -1
- package/components/hy-rolling-num/typing.d.ts +1 -0
- package/components/hy-skeleton/index.scss +17 -0
- package/components/hy-steps/hy-steps.vue +1 -1
- package/components/hy-submit-bar/typing.d.ts +3 -3
- package/components/hy-swipe-action/hy-swipe-action.vue +34 -15
- package/components/hy-swipe-action/index.scss +0 -1
- package/components/hy-switch/typing.d.ts +4 -0
- package/components/hy-tabbar/props.ts +2 -1
- package/components/hy-tabbar/typing.d.ts +5 -4
- package/components/hy-tabs/hy-tabs.vue +338 -336
- package/components/hy-tabs/index.scss +6 -6
- package/components/hy-tabs/typing.d.ts +41 -33
- package/components/hy-textarea/hy-textarea.vue +2 -2
- package/components/hy-textarea/typing.d.ts +4 -0
- package/components/hy-toast/hy-toast.vue +14 -6
- package/components/hy-toast/typing.d.ts +42 -36
- package/components/hy-tooltip/hy-tooltip.vue +1 -1
- package/components/hy-tooltip/index.scss +1 -0
- package/components/hy-tooltip/props.ts +1 -1
- package/components/hy-upload/hy-upload.vue +16 -1
- package/components/hy-upload/index.scss +149 -144
- package/components/index.ts +6 -0
- package/global.d.ts +2 -0
- package/libs/config/icon.ts +442 -430
- package/libs/css/_function.scss +7 -13
- package/libs/css/iconfont.css +445 -441
- package/libs/css/theme.scss +1 -1
- package/libs/locale/lang/en-US.ts +4 -0
- package/libs/locale/lang/zh-CN.ts +4 -0
- package/libs/typing/index.ts +80 -0
- package/package.json +5 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
- package/components/hy-qrcode/qrcode.js.bak +0 -1434
|
@@ -1,121 +1,89 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="hy-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
const
|
|
79
|
-
let
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
style.animationDuration = animationDuration.value
|
|
91
|
-
style.animationPlayState = animationPlayState.value
|
|
92
|
-
return style
|
|
93
|
-
})
|
|
94
|
-
// 内部对用户传入的数据进一步分割,放到多个text标签循环,否则如果用户传入的字符串很长(100个字符以上)
|
|
95
|
-
// 放在一个text标签中进行滚动,在低端安卓机上,动画可能会出现抖动现象,需要分割到多个text中可解决此问题
|
|
96
|
-
const innerText = computed(() => {
|
|
97
|
-
let result = [],
|
|
98
|
-
// 每组text标签的字符长度
|
|
99
|
-
len = 20
|
|
100
|
-
const textArr = initValue.value.split('')
|
|
101
|
-
for (let i = 0; i < textArr.length; i += len) {
|
|
102
|
-
// 对拆分的后的text进行slice分割,得到的为数组再进行join拼接为字符串
|
|
103
|
-
result.push(textArr.slice(i, i + len).join(''))
|
|
104
|
-
}
|
|
105
|
-
return result
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
// 点击通告栏
|
|
109
|
-
const clickHandler = (index: number) => {
|
|
110
|
-
emit('click', index)
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// 点击关闭按钮
|
|
114
|
-
const close = () => {
|
|
115
|
-
emit('close')
|
|
116
|
-
}
|
|
117
|
-
</script>
|
|
118
|
-
|
|
119
|
-
<style lang="scss" scoped>
|
|
120
|
-
@import './index.scss';
|
|
121
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<view class="hy-notice__content" ref="hy-notice__content">
|
|
3
|
+
<view
|
|
4
|
+
ref="hy-notice__content--text"
|
|
5
|
+
class="hy-notice__content--text"
|
|
6
|
+
:style="animationStyle"
|
|
7
|
+
>
|
|
8
|
+
<text v-for="(item, index) in innerText" :key="index" :style="textStyle">{{
|
|
9
|
+
item
|
|
10
|
+
}}</text>
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import { ref, watch, toRefs, computed, type CSSProperties, getCurrentInstance } from 'vue'
|
|
17
|
+
import noticeBarProps from './props'
|
|
18
|
+
import { addUnit, getRect, sleep } from '../../libs'
|
|
19
|
+
|
|
20
|
+
const props = defineProps(noticeBarProps)
|
|
21
|
+
const { text, speed, fontSize, color } = toRefs(props)
|
|
22
|
+
const emit = defineEmits(['change'])
|
|
23
|
+
|
|
24
|
+
const instance = getCurrentInstance()
|
|
25
|
+
const animationDuration = ref<string>('0') // 动画执行时间
|
|
26
|
+
const animationPlayState = ref<string>('paused') // 动画的开始和结束执行
|
|
27
|
+
const initValue = ref<string>('')
|
|
28
|
+
|
|
29
|
+
watch(
|
|
30
|
+
() => text.value,
|
|
31
|
+
async (newValue) => {
|
|
32
|
+
initValue.value = Array.isArray(newValue) ? newValue.join('') : newValue
|
|
33
|
+
let boxWidth = 0,
|
|
34
|
+
textWidth = 0
|
|
35
|
+
// 进行一定的延时
|
|
36
|
+
await sleep()
|
|
37
|
+
// 查询盒子和文字的宽度
|
|
38
|
+
textWidth = (await getRect('.hy-notice__content--text', false, instance)).width!
|
|
39
|
+
boxWidth = (await getRect('.hy-notice__content', false, instance)).width!
|
|
40
|
+
// 根据t=s/v(时间=路程/速度),这里为何不需要加上#u-notice-box的宽度,因为中设置了.u-notice-content样式中设置了padding-left: 100%
|
|
41
|
+
// 恰巧计算出来的结果中已经包含了#u-notice-box的宽度
|
|
42
|
+
animationDuration.value = `${textWidth / speed.value}s`
|
|
43
|
+
// 这里必须这样开始动画,否则在APP上动画速度不会改变
|
|
44
|
+
animationPlayState.value = 'paused'
|
|
45
|
+
await sleep(10)
|
|
46
|
+
animationPlayState.value = 'running'
|
|
47
|
+
},
|
|
48
|
+
{ immediate: true }
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @description 文字内容的样式
|
|
53
|
+
* */
|
|
54
|
+
const textStyle = computed<CSSProperties>(() => {
|
|
55
|
+
let style: CSSProperties = {}
|
|
56
|
+
style.whiteSpace = 'nowrap !important'
|
|
57
|
+
style.color = color.value
|
|
58
|
+
style.fontSize = addUnit(fontSize.value)
|
|
59
|
+
return style
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @description 动画的样式
|
|
64
|
+
* */
|
|
65
|
+
const animationStyle = computed<CSSProperties>(() => {
|
|
66
|
+
let style: CSSProperties = {}
|
|
67
|
+
style.animationDuration = animationDuration.value
|
|
68
|
+
style.animationPlayState = animationPlayState.value
|
|
69
|
+
return style
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
// 内部对用户传入的数据进一步分割,放到多个text标签循环,否则如果用户传入的字符串很长(100个字符以上)
|
|
73
|
+
// 放在一个text标签中进行滚动,在低端安卓机上,动画可能会出现抖动现象,需要分割到多个text中可解决此问题
|
|
74
|
+
const innerText = computed(() => {
|
|
75
|
+
let result = [],
|
|
76
|
+
// 每组text标签的字符长度
|
|
77
|
+
len = 20
|
|
78
|
+
const textArr = initValue.value.split('')
|
|
79
|
+
for (let i = 0; i < textArr.length; i += len) {
|
|
80
|
+
// 对拆分的后的text进行slice分割,得到的为数组再进行join拼接为字符串
|
|
81
|
+
result.push(textArr.slice(i, i + len).join(''))
|
|
82
|
+
}
|
|
83
|
+
return result
|
|
84
|
+
})
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style lang="scss" scoped>
|
|
88
|
+
@import './index.scss';
|
|
89
|
+
</style>
|
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
import type { NoticeBarModeVo } from './typing'
|
|
2
|
-
import { IconConfig } from '../../libs'
|
|
3
|
-
import type { CSSProperties, PropType } from 'vue'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
1
|
+
import type { NoticeBarModeVo } from './typing'
|
|
2
|
+
import { IconConfig } from '../../libs'
|
|
3
|
+
import type { CSSProperties, PropType } from 'vue'
|
|
4
|
+
import type { HyIconProps } from '../hy-icon/typing'
|
|
5
|
+
|
|
6
|
+
const noticeBarProps = {
|
|
7
|
+
/** 显示的内容,数组 */
|
|
8
|
+
text: {
|
|
9
|
+
type: [String, Array] as PropType<string | string[]>,
|
|
10
|
+
default: []
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* 通告滚动模式,row-横向滚动,column-竖向滚动
|
|
14
|
+
* @values row,column
|
|
15
|
+
* */
|
|
16
|
+
direction: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'row'
|
|
19
|
+
},
|
|
20
|
+
/** direction = row时,是否使用步进形式滚动 */
|
|
21
|
+
step: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
/** 是否显示左侧的音量图标 */
|
|
26
|
+
icon: {
|
|
27
|
+
type: [String, Object] as PropType<string | Partial<HyIconProps>>,
|
|
28
|
+
default: IconConfig.NOTIFICATION_FILL
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
|
32
|
+
* @values link,closable
|
|
33
|
+
* */
|
|
34
|
+
mode: String,
|
|
35
|
+
/** 文字颜色,各图标也会使用文字颜色 */
|
|
36
|
+
color: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: '#ff9900'
|
|
39
|
+
},
|
|
40
|
+
/** 背景颜色 */
|
|
41
|
+
bgColor: String,
|
|
42
|
+
/** 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度 */
|
|
43
|
+
speed: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 80
|
|
46
|
+
},
|
|
47
|
+
/** 字体大小,单位px */
|
|
48
|
+
fontSize: {
|
|
49
|
+
type: [String, Number],
|
|
50
|
+
default: 14
|
|
51
|
+
},
|
|
52
|
+
/** 滚动一个周期的时间长,单位ms */
|
|
53
|
+
duration: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: 2000
|
|
56
|
+
},
|
|
57
|
+
/** 是否禁止用手滑动切换 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序 */
|
|
58
|
+
disableTouch: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* 分布
|
|
64
|
+
* @values flex-start,flex-start,center
|
|
65
|
+
* */
|
|
66
|
+
justifyContent: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: 'flex-start'
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* 跳转类型
|
|
72
|
+
* @values navigateTo,redirectTo,switchTab,reLaunch
|
|
73
|
+
* */
|
|
74
|
+
linkType: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: 'navigateTo'
|
|
77
|
+
},
|
|
78
|
+
/** 跳转地址 */
|
|
79
|
+
url: String,
|
|
80
|
+
/** 定义需要用到的外部样式 */
|
|
81
|
+
customStyle: Object as PropType<CSSProperties>,
|
|
82
|
+
/** 自定义外部类名 */
|
|
83
|
+
customClass: String
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export default noticeBarProps
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
</script>
|
|
43
43
|
|
|
44
44
|
<script setup lang="ts">
|
|
45
|
-
import type
|
|
45
|
+
import type { NotifyOptions } from './typing'
|
|
46
46
|
import { computed, ref } from 'vue'
|
|
47
47
|
import type { CSSProperties } from 'vue'
|
|
48
48
|
import { addUnit, IconConfig } from '../../libs'
|
|
@@ -60,7 +60,7 @@ defineOptions({})
|
|
|
60
60
|
|
|
61
61
|
const props = defineProps(notifyProps)
|
|
62
62
|
|
|
63
|
-
const config = ref<
|
|
63
|
+
const config = ref<NotifyOptions>({
|
|
64
64
|
// 到顶部的距离
|
|
65
65
|
top: props.top,
|
|
66
66
|
// type主题,primary,success,warning,error
|
|
@@ -78,12 +78,12 @@ const config = ref<HyNotifyProps>({
|
|
|
78
78
|
// 是否留出顶部安全距离(状态栏高度)
|
|
79
79
|
safeAreaInsetTop: props.safeAreaInsetTop
|
|
80
80
|
})
|
|
81
|
-
const tmpConfig = ref<
|
|
81
|
+
const tmpConfig = ref<NotifyOptions>({})
|
|
82
82
|
const open = ref(false)
|
|
83
83
|
let timer: ReturnType<typeof setTimeout>
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* 容器样式
|
|
87
87
|
* */
|
|
88
88
|
const containerStyle = computed(() => {
|
|
89
89
|
let top = 0
|
|
@@ -106,7 +106,7 @@ const containerStyle = computed(() => {
|
|
|
106
106
|
return style
|
|
107
107
|
})
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* 组件背景颜色
|
|
110
110
|
*/
|
|
111
111
|
const backgroundColor = computed(() => {
|
|
112
112
|
const style: CSSProperties = {}
|
|
@@ -117,7 +117,7 @@ const backgroundColor = computed(() => {
|
|
|
117
117
|
})
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* 默认主题下的图标
|
|
121
121
|
* */
|
|
122
122
|
const icon = computed(() => {
|
|
123
123
|
switch (tmpConfig.value.type) {
|
|
@@ -132,7 +132,7 @@ const icon = computed(() => {
|
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
134
|
|
|
135
|
-
const show = (options:
|
|
135
|
+
const show = (options: NotifyOptions) => {
|
|
136
136
|
// 不将结果合并到this.config变量,避免多次调用hy-toast,前后的配置造成混乱
|
|
137
137
|
tmpConfig.value = Object.assign(config.value, options)
|
|
138
138
|
// 任何定时器初始化之前,都要执行清除操作,否则可能会造成混乱
|
|
@@ -149,13 +149,13 @@ const show = (options: HyNotifyProps) => {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* 关闭notify
|
|
153
153
|
* */
|
|
154
154
|
const close = () => {
|
|
155
155
|
clearTimer()
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* 清除定时任务
|
|
159
159
|
* */
|
|
160
160
|
const clearTimer = () => {
|
|
161
161
|
open.value = false
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface NotifyOptions {
|
|
2
|
+
/** 到顶部的距离 */
|
|
3
|
+
top?: number
|
|
4
|
+
/** 主题类型 */
|
|
5
|
+
type?: NotifyType
|
|
6
|
+
/** 字体颜色 */
|
|
7
|
+
color?: string
|
|
8
|
+
/** 背景颜色 */
|
|
9
|
+
bgColor?: string
|
|
10
|
+
/** 自定义图标 */
|
|
11
|
+
icon?: string
|
|
12
|
+
/** 展示的文字内容 */
|
|
13
|
+
message?: string
|
|
14
|
+
/** 展示时长,为0时不消失 */
|
|
15
|
+
duration?: number
|
|
16
|
+
/** 字体大小 */
|
|
17
|
+
fontSize?: number | string
|
|
18
|
+
/** 是否留出顶部安全距离 */
|
|
19
|
+
safeAreaInsetTop?: boolean
|
|
20
|
+
/** 关闭后的回调函数 */
|
|
21
|
+
complete?: () => void
|
|
22
|
+
}
|