uview-plus 3.8.37 → 3.8.42
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/README.md +2 -0
- package/changelog.md +31 -0
- package/components/u-calendar-strip/calendarStrip.js +36 -0
- package/components/u-calendar-strip/props.js +68 -0
- package/components/u-calendar-strip/u-calendar-strip.vue +507 -0
- package/components/u-guide/guide.js +16 -0
- package/components/u-guide/props.js +51 -0
- package/components/u-guide/u-guide.vue +259 -0
- package/components/u-signature/u-signature.vue +11 -0
- package/components/u-tabbar/props.js +35 -0
- package/components/u-tabbar/tabbar.js +8 -1
- package/components/u-tabbar/u-tabbar.vue +82 -4
- package/components/u-tabbar-item/props.js +51 -1
- package/components/u-tabbar-item/tabbarItem.js +11 -1
- package/components/u-tabbar-item/u-tabbar-item.vue +327 -58
- package/components/u-tabs/props.js +11 -6
- package/components/u-tabs/tabs.js +7 -6
- package/components/u-tabs/u-tabs.vue +145 -5
- package/libs/config/props.js +4 -0
- package/libs/root/LICENSE +21 -0
- package/package.json +1 -1
- package/types/comps/calendarStrip.d.ts +116 -0
- package/types/comps/guide.d.ts +45 -0
- package/types/comps/tabs.d.ts +5 -0
- package/types/comps.d.ts +2 -0
- package/types/index.d.ts +2 -0
package/libs/config/props.js
CHANGED
|
@@ -21,6 +21,7 @@ import Backtop from '../../components/u-back-top/backtop'
|
|
|
21
21
|
import Badge from '../../components/u-badge/badge'
|
|
22
22
|
import Button from '../../components/u-button/button'
|
|
23
23
|
import Calendar from '../../components/u-calendar/calendar'
|
|
24
|
+
import CalendarStrip from '../../components/u-calendar-strip/calendarStrip'
|
|
24
25
|
import CarKeyboard from '../../components/u-car-keyboard/carKeyboard'
|
|
25
26
|
import Card from '../../components/u-card/card'
|
|
26
27
|
import Cell from '../../components/u-cell/cell'
|
|
@@ -42,6 +43,7 @@ import Empty from '../../components/u-empty/empty'
|
|
|
42
43
|
import Form from '../../components/u-form/form'
|
|
43
44
|
import FormItem from '../../components/u-form-item/formItem'
|
|
44
45
|
import Gap from '../../components/u-gap/gap'
|
|
46
|
+
import Guide from '../../components/u-guide/guide'
|
|
45
47
|
import Grid from '../../components/u-grid/grid'
|
|
46
48
|
import GridItem from '../../components/u-grid-item/gridItem'
|
|
47
49
|
import Icon from '../../components/u-icon/icon'
|
|
@@ -112,6 +114,7 @@ const props = {
|
|
|
112
114
|
...Badge,
|
|
113
115
|
...Button,
|
|
114
116
|
...Calendar,
|
|
117
|
+
...CalendarStrip,
|
|
115
118
|
...CarKeyboard,
|
|
116
119
|
...Card,
|
|
117
120
|
...Cell,
|
|
@@ -133,6 +136,7 @@ const props = {
|
|
|
133
136
|
...Form,
|
|
134
137
|
...FormItem,
|
|
135
138
|
...Gap,
|
|
139
|
+
...Guide,
|
|
136
140
|
...Grid,
|
|
137
141
|
...GridItem,
|
|
138
142
|
...Icon,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present, Skiyee (Sky)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
4
|
"displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙跨端移动组件库,组件丰富维护更新稳定。",
|
|
5
|
-
"version": "3.8.
|
|
5
|
+
"version": "3.8.42",
|
|
6
6
|
"description": "零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CalendarStripPayload {
|
|
4
|
+
date: string
|
|
5
|
+
month: string
|
|
6
|
+
scene: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare interface CalendarStripProps {
|
|
10
|
+
/**
|
|
11
|
+
* 当前选中日期
|
|
12
|
+
*/
|
|
13
|
+
modelValue?: string | number | Date | null
|
|
14
|
+
/**
|
|
15
|
+
* 最小可选日期
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
minDate?: string | number
|
|
19
|
+
/**
|
|
20
|
+
* 最大可选日期
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
maxDate?: string | number
|
|
24
|
+
/**
|
|
25
|
+
* 主题色
|
|
26
|
+
* @default "#3c9cff"
|
|
27
|
+
*/
|
|
28
|
+
color?: string
|
|
29
|
+
/**
|
|
30
|
+
* 星期文案(周一到周日)
|
|
31
|
+
*/
|
|
32
|
+
weekText?: string[]
|
|
33
|
+
/**
|
|
34
|
+
* 是否支持下拉展开完整月历
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
fullCalendar?: boolean
|
|
38
|
+
/**
|
|
39
|
+
* 透传给内嵌 up-calendar 的额外参数
|
|
40
|
+
*/
|
|
41
|
+
fullCalendarProps?: Record<string, any>
|
|
42
|
+
/**
|
|
43
|
+
* 完整月历可浏览月份数(仅在未传 minDate/maxDate 时生效)
|
|
44
|
+
* @default 24
|
|
45
|
+
*/
|
|
46
|
+
fullMonthNum?: string | number
|
|
47
|
+
/**
|
|
48
|
+
* 下拉/上拉手势触发阈值,单位 px
|
|
49
|
+
* @default 40
|
|
50
|
+
*/
|
|
51
|
+
pullDownThreshold?: string | number
|
|
52
|
+
/**
|
|
53
|
+
* 在完整月历中选择日期后是否自动收起
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
collapseAfterSelect?: boolean
|
|
57
|
+
/**
|
|
58
|
+
* 是否只读
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
readonly?: boolean
|
|
62
|
+
/**
|
|
63
|
+
* 是否高亮今天
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
showToday?: boolean
|
|
67
|
+
/**
|
|
68
|
+
* 顶部月份格式化模板,遵循 dayjs 格式
|
|
69
|
+
*/
|
|
70
|
+
monthFormat?: string
|
|
71
|
+
/**
|
|
72
|
+
* 收起状态提示文案
|
|
73
|
+
* @default "下拉展开月历"
|
|
74
|
+
*/
|
|
75
|
+
expandHint?: string
|
|
76
|
+
/**
|
|
77
|
+
* 展开状态提示文案
|
|
78
|
+
* @default "上拉收起月历"
|
|
79
|
+
*/
|
|
80
|
+
collapseHint?: string
|
|
81
|
+
/**
|
|
82
|
+
* 日期变更时触发
|
|
83
|
+
*/
|
|
84
|
+
onChange?: (payload: CalendarStripPayload) => any
|
|
85
|
+
/**
|
|
86
|
+
* 日期确认时触发
|
|
87
|
+
*/
|
|
88
|
+
onConfirm?: (payload: CalendarStripPayload) => any
|
|
89
|
+
/**
|
|
90
|
+
* 月份变更时触发
|
|
91
|
+
*/
|
|
92
|
+
onMonthChange?: (payload: { month: string; scene: string }) => any
|
|
93
|
+
/**
|
|
94
|
+
* 展开/收起完整月历时触发
|
|
95
|
+
*/
|
|
96
|
+
onToggleFull?: (payload: { show: boolean; source: string }) => any
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare interface _CalendarStrip {
|
|
100
|
+
new (): {
|
|
101
|
+
$props: AllowedComponentProps &
|
|
102
|
+
VNodeProps &
|
|
103
|
+
CalendarStripProps
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare interface _CalendarStripRef {
|
|
108
|
+
prevMonth: () => void
|
|
109
|
+
nextMonth: () => void
|
|
110
|
+
toggleFull: () => void
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export declare const CalendarStrip: _CalendarStrip
|
|
114
|
+
|
|
115
|
+
export declare const CalendarStripRef: _CalendarStripRef
|
|
116
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface GuideItem {
|
|
4
|
+
image: string
|
|
5
|
+
title?: string
|
|
6
|
+
desc?: string
|
|
7
|
+
backgroundColor?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare interface GuideProps {
|
|
11
|
+
show?: boolean
|
|
12
|
+
list?: GuideItem[]
|
|
13
|
+
storageKey?: string
|
|
14
|
+
once?: boolean
|
|
15
|
+
showSkip?: boolean
|
|
16
|
+
skipText?: string
|
|
17
|
+
nextText?: string
|
|
18
|
+
finishText?: string
|
|
19
|
+
indicator?: boolean
|
|
20
|
+
bgColor?: string
|
|
21
|
+
zIndex?: string | number
|
|
22
|
+
['onUpdate:show']?: (value: boolean) => any
|
|
23
|
+
onChange?: (payload: { current: number }) => any
|
|
24
|
+
onSkip?: () => any
|
|
25
|
+
onFinish?: () => any
|
|
26
|
+
onClose?: () => any
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare interface _GuideRef {
|
|
30
|
+
open: () => void
|
|
31
|
+
close: (remember?: boolean) => void
|
|
32
|
+
reset: () => void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare interface _Guide {
|
|
36
|
+
new (): {
|
|
37
|
+
$props: AllowedComponentProps &
|
|
38
|
+
VNodeProps &
|
|
39
|
+
GuideProps
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const Guide: _Guide
|
|
44
|
+
|
|
45
|
+
export declare const GuideRef: _GuideRef
|
package/types/comps/tabs.d.ts
CHANGED
package/types/comps.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare module 'vue' {
|
|
|
18
18
|
['up-form']: typeof import('./comps/form')['Form']
|
|
19
19
|
['up-form-item']: typeof import('./comps/formItem')['FormItem']
|
|
20
20
|
['up-calendar']: typeof import('./comps/calendar')['Calendar']
|
|
21
|
+
['up-calendar-strip']: typeof import('./comps/calendarStrip')['CalendarStrip']
|
|
21
22
|
['up-keyboard']: typeof import('./comps/keyboard')['Keyboard']
|
|
22
23
|
['up-picker']: typeof import('./comps/picker')['Picker']
|
|
23
24
|
['up-datetime-picker']: typeof import('./comps/datetimePicker')['DatetimePicker']
|
|
@@ -45,6 +46,7 @@ declare module 'vue' {
|
|
|
45
46
|
|
|
46
47
|
// 反馈组件
|
|
47
48
|
['up-tooltip']: typeof import('./comps/tooltip')['Tooltip']
|
|
49
|
+
['up-guide']: typeof import('./comps/guide')['Guide']
|
|
48
50
|
['up-action-sheet']: typeof import('./comps/actionSheet')['ActionSheet']
|
|
49
51
|
['up-alert']: typeof import('./comps/alert')['Alert']
|
|
50
52
|
['up-toast']: typeof import('./comps/toast')['Toast']
|
package/types/index.d.ts
CHANGED
|
@@ -181,5 +181,7 @@ declare type UniUploadRef = typeof import('./comps/upload')['UploadRef']
|
|
|
181
181
|
declare type UniDatetimePickerRef = typeof import('./comps/datetimePicker')['DatetimePickerRef']
|
|
182
182
|
declare type UniPickerRef = typeof import('./comps/picker')['PickerRef']
|
|
183
183
|
declare type UniCalendarRef = typeof import('./comps/calendar')['CalendarRef']
|
|
184
|
+
declare type UniCalendarStripRef = typeof import('./comps/calendarStrip')['CalendarStripRef']
|
|
184
185
|
declare type UniTextareaRef = typeof import('./comps/textarea')['TextareaRef']
|
|
185
186
|
declare type UniFormRef = typeof import('./comps/form')['FormRef']
|
|
187
|
+
declare type UniGuideRef = typeof import('./comps/guide')['GuideRef']
|