sard-uniapp 1.15.0 → 1.15.2
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/CHANGELOG.md +18 -0
- package/components/accordion-item/accordion-item.vue +1 -1
- package/components/alert/alert.vue +2 -2
- package/components/avatar/avatar.vue +6 -1
- package/components/back-top/back-top.vue +1 -1
- package/components/button/button.vue +1 -1
- package/components/calendar/calendar.vue +2 -2
- package/components/cascader/cascader.vue +1 -1
- package/components/check-icon/check-icon.vue +1 -1
- package/components/crop-image/crop-image.vue +6 -2
- package/components/dialog/dialog.vue +1 -1
- package/components/dropdown-item/dropdown-item.vue +2 -2
- package/components/empty/empty.vue +1 -1
- package/components/fab/fab.vue +2 -2
- package/components/grid-item/grid-item.vue +1 -1
- package/components/input/input.vue +1 -1
- package/components/keyboard/keyboard.vue +1 -1
- package/components/list-item/list-item.vue +2 -2
- package/components/menu-item/menu-item.vue +1 -1
- package/components/navbar-item/navbar-item.vue +1 -1
- package/components/notice-bar/notice-bar.vue +5 -2
- package/components/popout/popout.vue +1 -1
- package/components/popout-input/popout-input.vue +1 -1
- package/components/progress-bar/progress-bar.vue +1 -1
- package/components/progress-circle/progress-circle.vue +1 -1
- package/components/rate/rate.vue +2 -2
- package/components/result/result.vue +1 -1
- package/components/search/search.vue +1 -1
- package/components/share-sheet/share-sheet.vue +1 -1
- package/components/stepper/stepper.vue +2 -2
- package/components/steps/steps.vue +1 -1
- package/components/tabbar-item/tabbar-item.vue +5 -1
- package/components/tag/tag.vue +1 -1
- package/components/timeline-item/timeline-item.vue +5 -1
- package/components/toast/toast.vue +1 -1
- package/components/tree-node/tree-node.vue +5 -5
- package/components/upload/upload.vue +1 -1
- package/components/upload-preview/upload-preview.vue +8 -4
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.15.2](https://github.com/sutras/sard-uniapp/compare/v1.15.1...v1.15.2) (2025-05-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 内部icon设置固定family ([3c73574](https://github.com/sutras/sard-uniapp/commit/3c735740a6cf33bcb9933c6d0915f2cbfbdd1b37))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.15.1](https://github.com/sutras/sard-uniapp/compare/v1.15.0...v1.15.1) (2025-05-21)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* dialog beforeClose 新增 loading 参数 ([715a961](https://github.com/sutras/sard-uniapp/commit/715a961ad6de63d68111b95af292bfb22e209434))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.14.4](https://github.com/sutras/sard-uniapp/compare/v1.14.3...v1.14.4) (2025-05-16)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<view :class="bem.e('title')">{{ title }}</view>
|
|
5
5
|
<view v-if="value" :class="bem.e('value')">{{ value }}</view>
|
|
6
6
|
<view :class="bem.e('arrow')">
|
|
7
|
-
<sar-icon :name="arrowName" />
|
|
7
|
+
<sar-icon family="sari" :name="arrowName" />
|
|
8
8
|
</view>
|
|
9
9
|
</view>
|
|
10
10
|
<sar-collapse :visible="visible">
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<view v-if="visible" :class="alertClass" :style="alertStyle">
|
|
3
3
|
<view v-if="showIcon" :class="bem.e('icon')">
|
|
4
4
|
<slot name="icon">
|
|
5
|
-
<sar-icon :name="mapTypeIcon[type]" />
|
|
5
|
+
<sar-icon family="sari" :name="mapTypeIcon[type]" />
|
|
6
6
|
</slot>
|
|
7
7
|
</view>
|
|
8
8
|
<view :class="bem.e('content')"><slot></slot></view>
|
|
9
9
|
<view v-if="closable" :class="bem.e('close')" @click="onClose">
|
|
10
|
-
<sar-icon name="close" />
|
|
10
|
+
<sar-icon family="sari" name="close" />
|
|
11
11
|
</view>
|
|
12
12
|
</view>
|
|
13
13
|
</template>
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
:class="classNames(bem.e('image'), bem.m(shape))"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<sar-icon
|
|
11
|
+
<sar-icon
|
|
12
|
+
v-else
|
|
13
|
+
family="sari"
|
|
14
|
+
name="person"
|
|
15
|
+
:root-class="bem.e('icon')"
|
|
16
|
+
/>
|
|
12
17
|
</slot>
|
|
13
18
|
<slot name="extra"></slot>
|
|
14
19
|
</view>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:block="false"
|
|
13
13
|
@click="onPrevMonthClick"
|
|
14
14
|
>
|
|
15
|
-
<sar-icon name="left" size="32rpx" />
|
|
15
|
+
<sar-icon family="sari" name="left" size="32rpx" />
|
|
16
16
|
</sar-button>
|
|
17
17
|
<sar-button
|
|
18
18
|
type="pale-text"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
:block="false"
|
|
37
37
|
@click="onNextMonthClick"
|
|
38
38
|
>
|
|
39
|
-
<sar-icon name="right" size="32rpx" />
|
|
39
|
+
<sar-icon family="sari" name="right" size="32rpx" />
|
|
40
40
|
</sar-button>
|
|
41
41
|
</view>
|
|
42
42
|
</view>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
block
|
|
50
50
|
@click="onReset"
|
|
51
51
|
>
|
|
52
|
-
<sar-icon name="undo" size="var(--sar-text-xl)" />
|
|
52
|
+
<sar-icon family="sari" name="undo" size="var(--sar-text-xl)" />
|
|
53
53
|
</sar-button>
|
|
54
54
|
<sar-button
|
|
55
55
|
size="small"
|
|
@@ -58,7 +58,11 @@
|
|
|
58
58
|
block
|
|
59
59
|
@click="onRotate"
|
|
60
60
|
>
|
|
61
|
-
<sar-icon
|
|
61
|
+
<sar-icon
|
|
62
|
+
family="sari"
|
|
63
|
+
name="rotate-left"
|
|
64
|
+
size="var(--sar-text-xl)"
|
|
65
|
+
/>
|
|
62
66
|
</sar-button>
|
|
63
67
|
<sar-button size="small" block @click="onConfirm">
|
|
64
68
|
<text style="font-weight: bold">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{{ placeholder }}
|
|
21
21
|
</view>
|
|
22
22
|
<view :class="bem.e('arrow')">
|
|
23
|
-
<sar-icon :name="currentArrow" />
|
|
23
|
+
<sar-icon family="sari" :name="currentArrow" />
|
|
24
24
|
</view>
|
|
25
25
|
</view>
|
|
26
26
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
>
|
|
62
62
|
<template #arrow>
|
|
63
63
|
<view :class="bem.e('option-icon')">
|
|
64
|
-
<sar-icon name="success" />
|
|
64
|
+
<sar-icon family="sari" name="success" />
|
|
65
65
|
</view>
|
|
66
66
|
</template>
|
|
67
67
|
</sar-list-item>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view :class="emptyClass" :style="emptyStyle">
|
|
3
3
|
<view :class="bem.e('icon')" :style="iconStyle">
|
|
4
4
|
<slot name="icon">
|
|
5
|
-
<sar-icon :
|
|
5
|
+
<sar-icon :family="iconFamily || 'sari'" :name="icon" />
|
|
6
6
|
</slot>
|
|
7
7
|
</view>
|
|
8
8
|
<slot name="description">
|
package/components/fab/fab.vue
CHANGED
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
stringifyStyle({ background: item.background, color: item.color })
|
|
28
28
|
"
|
|
29
29
|
>
|
|
30
|
-
<sar-icon :family="item.iconFamily" :name="item.icon" />
|
|
30
|
+
<sar-icon :family="item.iconFamily || 'sari'" :name="item.icon" />
|
|
31
31
|
</view>
|
|
32
32
|
</view>
|
|
33
33
|
</view>
|
|
34
34
|
<view :class="itemEntryClass" @click="onItemEntryClick">
|
|
35
35
|
<view :class="bem.e('item-btn')" :style="itemEntryBtnStyle">
|
|
36
|
-
<sar-icon name="plus" />
|
|
36
|
+
<sar-icon family="sari" name="plus" />
|
|
37
37
|
</view>
|
|
38
38
|
</view>
|
|
39
39
|
</view>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
@touchend="onClearTouchEnd"
|
|
106
106
|
@touchcancel="onClearTouchEnd"
|
|
107
107
|
>
|
|
108
|
-
<sar-icon name="x-circle-fill" />
|
|
108
|
+
<sar-icon family="sari" name="x-circle-fill" />
|
|
109
109
|
</view>
|
|
110
110
|
<view v-if="$slots.append" :class="bem.e('append')">
|
|
111
111
|
<slot name="append"></slot>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:name="icon"
|
|
12
12
|
:color="iconColor"
|
|
13
13
|
:size="iconSize"
|
|
14
|
-
:family="iconFamily"
|
|
14
|
+
:family="iconFamily || 'sari'"
|
|
15
15
|
/>
|
|
16
16
|
</slot>
|
|
17
17
|
</view>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</view>
|
|
34
34
|
<slot name="arrow">
|
|
35
35
|
<view v-if="arrow" :class="bem.e('arrow')">
|
|
36
|
-
<sar-icon :name="arrowDirection" />
|
|
36
|
+
<sar-icon family="sari" :name="arrowDirection" />
|
|
37
37
|
</view>
|
|
38
38
|
</slot>
|
|
39
39
|
</slot>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-if="icon || (withIcon && direction === 'vertical')"
|
|
5
5
|
:class="bem.e('icon')"
|
|
6
6
|
>
|
|
7
|
-
<sar-icon v-if="icon" :name="icon" :family="iconFamily" />
|
|
7
|
+
<sar-icon v-if="icon" :name="icon" :family="iconFamily || 'sari'" />
|
|
8
8
|
</view>
|
|
9
9
|
<view v-if="text" :class="bem.e('text')">
|
|
10
10
|
{{ text }}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view :class="noticeBarClass" :style="noticeBarStyle" @click="onClick">
|
|
3
3
|
<view v-if="!hideLeftIcon" :class="bem.e('left-icon')">
|
|
4
4
|
<slot name="left-icon">
|
|
5
|
-
<sar-icon name="volume-up" />
|
|
5
|
+
<sar-icon family="sari" name="volume-up" />
|
|
6
6
|
</slot>
|
|
7
7
|
</view>
|
|
8
8
|
<view :class="bem.e('content')" :id="contentId">
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
@click="onRightIconClick"
|
|
22
22
|
>
|
|
23
23
|
<slot name="right-icon">
|
|
24
|
-
<sar-icon
|
|
24
|
+
<sar-icon
|
|
25
|
+
family="sari"
|
|
26
|
+
:name="closable ? 'close' : linkable ? 'right' : ''"
|
|
27
|
+
/>
|
|
25
28
|
</slot>
|
|
26
29
|
</view>
|
|
27
30
|
</view>
|
package/components/rate/rate.vue
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<template v-if="voidText">
|
|
32
32
|
{{ voidText }}
|
|
33
33
|
</template>
|
|
34
|
-
<sar-icon v-else :name="voidIcon" :family="iconFamily" />
|
|
34
|
+
<sar-icon v-else :name="voidIcon" :family="iconFamily || 'sari'" />
|
|
35
35
|
</view>
|
|
36
36
|
<view
|
|
37
37
|
:class="bem.e('star')"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<template v-if="text">
|
|
46
46
|
{{ text }}
|
|
47
47
|
</template>
|
|
48
|
-
<sar-icon v-else :name="icon" :family="iconFamily" />
|
|
48
|
+
<sar-icon v-else :name="icon" :family="iconFamily || 'sari'" />
|
|
49
49
|
</view>
|
|
50
50
|
</view>
|
|
51
51
|
</view>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@touchcancel="onTouchEnd"
|
|
16
16
|
@mousedown="onMouseDown(-1)"
|
|
17
17
|
>
|
|
18
|
-
<sar-icon name="minus" />
|
|
18
|
+
<sar-icon family="sari" name="minus" />
|
|
19
19
|
</view>
|
|
20
20
|
<input
|
|
21
21
|
:class="bem.e('input')"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@touchcancel="onTouchEnd"
|
|
45
45
|
@mousedown="onMouseDown(1)"
|
|
46
46
|
>
|
|
47
|
-
<sar-icon name="plus" />
|
|
47
|
+
<sar-icon family="sari" name="plus" />
|
|
48
48
|
</view>
|
|
49
49
|
</view>
|
|
50
50
|
</template>
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
<view :class="classNames(bem.e('line'), bem.e('line-before'))"></view>
|
|
16
16
|
<view :class="bem.e('icon')">
|
|
17
17
|
<sar-icon
|
|
18
|
+
:family="iconFamily || 'sari'"
|
|
18
19
|
:name="getStatusIcon(item.status ?? getStatus(current, i))"
|
|
19
20
|
:size="iconSize"
|
|
20
|
-
:family="iconFamily"
|
|
21
21
|
/>
|
|
22
22
|
</view>
|
|
23
23
|
<view :class="classNames(bem.e('line'), bem.e('line-after'))"></view>
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
<slot>
|
|
4
4
|
<view :class="bem.e('icon')">
|
|
5
5
|
<slot name="icon" :active="isCurrent">
|
|
6
|
-
<sar-icon
|
|
6
|
+
<sar-icon
|
|
7
|
+
:name="icon"
|
|
8
|
+
:family="iconFamily || 'sari'"
|
|
9
|
+
:size="iconSize"
|
|
10
|
+
/>
|
|
7
11
|
</slot>
|
|
8
12
|
<sar-badge v-if="badge || dot" :value="badge" :dot="dot" fixed />
|
|
9
13
|
</view>
|
package/components/tag/tag.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view :class="tagClass" :style="tagStyle" @click="$emit('click', $event)">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
<view v-if="closable" :class="iconClass" @click="$emit('close', $event)">
|
|
5
|
-
<sar-icon name="close" />
|
|
5
|
+
<sar-icon family="sari" name="close" />
|
|
6
6
|
</view>
|
|
7
7
|
</view>
|
|
8
8
|
</template>
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
<view :class="bem.e('icon-wrapper')">
|
|
6
6
|
<view v-if="icon || $slots.icon" :class="bem.e('icon')">
|
|
7
7
|
<slot name="icon">
|
|
8
|
-
<sar-icon
|
|
8
|
+
<sar-icon
|
|
9
|
+
:name="icon"
|
|
10
|
+
:family="iconFamily || 'sari'"
|
|
11
|
+
:color="iconColor"
|
|
12
|
+
/>
|
|
9
13
|
</slot>
|
|
10
14
|
</view>
|
|
11
15
|
<view v-else :class="bem.e('dot')"></view>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<view :class="toastClass" :style="toastStyle">
|
|
11
11
|
<view v-if="type !== 'text'" :class="iconClass">
|
|
12
12
|
<sar-loading v-if="type === 'loading'" />
|
|
13
|
-
<sar-icon v-else :name="type" />
|
|
13
|
+
<sar-icon v-else family="sari" :name="type" />
|
|
14
14
|
</view>
|
|
15
15
|
<view :class="bem.e('title')">{{ title }}</view>
|
|
16
16
|
</view>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<view :style="indentStyle"></view>
|
|
12
12
|
<view :class="arrowClass">
|
|
13
|
-
<sar-icon name="right" />
|
|
13
|
+
<sar-icon family="sari" name="right" />
|
|
14
14
|
</view>
|
|
15
15
|
<view
|
|
16
16
|
v-if="treeContext.selectable"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@mousedown.stop="onEditMouseDown"
|
|
46
46
|
@click.stop
|
|
47
47
|
>
|
|
48
|
-
<sar-icon name="pencil-square" />
|
|
48
|
+
<sar-icon family="sari" name="pencil-square" />
|
|
49
49
|
</view>
|
|
50
50
|
<view
|
|
51
51
|
v-if="treeContext.draggable"
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
@mousedown.stop="onDragMouseDown"
|
|
59
59
|
@click.stop
|
|
60
60
|
>
|
|
61
|
-
<sar-icon name="list" />
|
|
61
|
+
<sar-icon family="sari" name="list" />
|
|
62
62
|
<view :class="bem.e('level-btn')">
|
|
63
|
-
<sar-icon v-if="isLastNode" name="left" />
|
|
64
|
-
<sar-icon v-if="index !== 0" name="right" />
|
|
63
|
+
<sar-icon v-if="isLastNode" family="sari" name="left" />
|
|
64
|
+
<sar-icon v-if="index !== 0" family="sari" name="right" />
|
|
65
65
|
</view>
|
|
66
66
|
</view>
|
|
67
67
|
</view>
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
/>
|
|
19
19
|
|
|
20
20
|
<view :class="bem.e('video-play')" @click="onPlayClick">
|
|
21
|
-
<sar-icon name="play" size="80rpx" />
|
|
21
|
+
<sar-icon family="sari" name="play" size="80rpx" />
|
|
22
22
|
</view>
|
|
23
23
|
</view>
|
|
24
24
|
<view v-else :class="bem.e('file')">
|
|
25
25
|
<view :class="bem.e('file-icon')">
|
|
26
|
-
<sar-icon name="file" />
|
|
26
|
+
<sar-icon family="sari" name="file" />
|
|
27
27
|
</view>
|
|
28
28
|
<view :class="bem.e('file-name')">
|
|
29
29
|
{{ name }}
|
|
@@ -35,7 +35,11 @@
|
|
|
35
35
|
>
|
|
36
36
|
<view :class="bem.e('status-icon')">
|
|
37
37
|
<sar-loading v-if="status === 'uploading'" />
|
|
38
|
-
<sar-icon
|
|
38
|
+
<sar-icon
|
|
39
|
+
v-else-if="status === 'failed'"
|
|
40
|
+
family="sari"
|
|
41
|
+
name="x-circle"
|
|
42
|
+
/>
|
|
39
43
|
</view>
|
|
40
44
|
|
|
41
45
|
<view v-if="message" :class="bem.e('status-message')">{{ message }}</view>
|
|
@@ -46,7 +50,7 @@
|
|
|
46
50
|
@click="onRemove"
|
|
47
51
|
>
|
|
48
52
|
<view :class="bem.e('close')">
|
|
49
|
-
<sar-icon name="close" />
|
|
53
|
+
<sar-icon family="sari" name="close" />
|
|
50
54
|
</view>
|
|
51
55
|
</view>
|
|
52
56
|
</view>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sard-uniapp",
|
|
3
3
|
"name": "sard-uniapp",
|
|
4
4
|
"displayName": "sard-uniapp",
|
|
5
|
-
"version": "1.15.
|
|
5
|
+
"version": "1.15.2",
|
|
6
6
|
"description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"lodash-es": "^4.17.21",
|
|
123
123
|
"prettier": "^2.8.8",
|
|
124
124
|
"region-data": "^1.2.3",
|
|
125
|
-
"sard-cli": "^1.1.
|
|
125
|
+
"sard-cli": "^1.1.8",
|
|
126
126
|
"sass": "^1.69.7",
|
|
127
127
|
"tel-area-code": "^1.1.0",
|
|
128
128
|
"ts-custom-error": "^3.3.1",
|
|
@@ -225,6 +225,8 @@
|
|
|
225
225
|
"HBuilderX": "^3.6.0"
|
|
226
226
|
},
|
|
227
227
|
"pnpm": {
|
|
228
|
-
"overrides": {
|
|
228
|
+
"overrides": {
|
|
229
|
+
"sard-cli": "link:../sard-cli"
|
|
230
|
+
}
|
|
229
231
|
}
|
|
230
232
|
}
|