sard-uniapp 1.15.1 → 1.15.3

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 (43) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/components/accordion-item/accordion-item.vue +1 -1
  3. package/components/alert/alert.vue +2 -2
  4. package/components/avatar/avatar.vue +6 -1
  5. package/components/back-top/back-top.vue +1 -1
  6. package/components/button/button.vue +1 -1
  7. package/components/calendar/calendar.vue +2 -2
  8. package/components/cascader/cascader.vue +1 -1
  9. package/components/check-icon/check-icon.vue +1 -1
  10. package/components/crop-image/crop-image.vue +6 -2
  11. package/components/dialog/dialog.vue +1 -1
  12. package/components/dropdown-item/dropdown-item.vue +2 -2
  13. package/components/empty/empty.vue +1 -1
  14. package/components/fab/fab.vue +2 -2
  15. package/components/grid-item/grid-item.vue +1 -1
  16. package/components/input/input.vue +1 -1
  17. package/components/keyboard/keyboard.vue +1 -1
  18. package/components/list-item/list-item.vue +2 -2
  19. package/components/menu-item/menu-item.vue +1 -1
  20. package/components/navbar-item/navbar-item.vue +1 -1
  21. package/components/notice-bar/notice-bar.vue +5 -2
  22. package/components/popout/popout.vue +1 -1
  23. package/components/popout-input/popout-input.vue +1 -1
  24. package/components/progress-bar/progress-bar.vue +1 -1
  25. package/components/progress-circle/progress-circle.vue +1 -1
  26. package/components/rate/rate.vue +2 -2
  27. package/components/result/result.vue +1 -1
  28. package/components/search/search.vue +1 -1
  29. package/components/share-sheet/share-sheet.vue +1 -1
  30. package/components/stepper/stepper.vue +2 -2
  31. package/components/steps/steps.vue +1 -1
  32. package/components/tab/tab.vue +1 -1
  33. package/components/tabbar-item/tabbar-item.vue +5 -1
  34. package/components/tabs/common.d.ts +8 -8
  35. package/components/tabs/tabs.d.ts +4 -4
  36. package/components/tabs/tabs.vue +6 -6
  37. package/components/tag/tag.vue +1 -1
  38. package/components/timeline-item/timeline-item.vue +5 -1
  39. package/components/toast/toast.vue +1 -1
  40. package/components/tree-node/tree-node.vue +5 -5
  41. package/components/upload/upload.vue +1 -1
  42. package/components/upload-preview/upload-preview.vue +8 -4
  43. package/package.json +5 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [1.15.3](https://github.com/sutras/sard-uniapp/compare/v1.15.2...v1.15.3) (2025-05-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * tabs组件允许name为boolean类型 ([6897055](https://github.com/sutras/sard-uniapp/commit/68970555842b6f51649e3c96c5e770390e6e7c40))
7
+
8
+
9
+
10
+ ## [1.15.2](https://github.com/sutras/sard-uniapp/compare/v1.15.1...v1.15.2) (2025-05-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 内部icon设置固定family ([3c73574](https://github.com/sutras/sard-uniapp/commit/3c735740a6cf33bcb9933c6d0915f2cbfbdd1b37))
16
+
17
+
18
+
1
19
  ## [1.15.1](https://github.com/sutras/sard-uniapp/compare/v1.15.0...v1.15.1) (2025-05-21)
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 v-else name="person" :root-class="bem.e('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>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view :class="backTopClass" :style="backTopStyle" @click="onClick">
3
3
  <slot>
4
- <sar-icon name="backtop" />
4
+ <sar-icon family="sari" name="backtop" />
5
5
  </slot>
6
6
  </view>
7
7
  </template>
@@ -42,7 +42,7 @@
42
42
  <sar-icon
43
43
  v-else-if="icon"
44
44
  :name="icon"
45
- :family="iconFamily"
45
+ :family="iconFamily || 'sari'"
46
46
  :size="iconSize"
47
47
  />
48
48
  </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>
@@ -51,7 +51,7 @@
51
51
  }}
52
52
  </view>
53
53
  <view :class="bem.e('option-icon')">
54
- <sar-icon name="success" />
54
+ <sar-icon family="sari" name="success" />
55
55
  </view>
56
56
  </view>
57
57
  </scroll-view>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view :class="checkIconClass">
3
- <sar-icon v-if="iconName" :name="iconName" />
3
+ <sar-icon v-if="iconName" family="sari" :name="iconName" />
4
4
  </view>
5
5
  </template>
6
6
 
@@ -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 name="rotate-left" size="var(--sar-text-xl)" />
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">
@@ -21,7 +21,7 @@
21
21
  block
22
22
  @click="onClose"
23
23
  >
24
- <sar-icon name="close" />
24
+ <sar-icon family="sari" name="close" />
25
25
  </sar-button>
26
26
  </view>
27
27
  </view>
@@ -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 :name="icon" :family="iconFamily" />
5
+ <sar-icon :family="iconFamily || 'sari'" :name="icon" />
6
6
  </slot>
7
7
  </view>
8
8
  <slot name="description">
@@ -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>
@@ -14,7 +14,7 @@
14
14
  :name="icon"
15
15
  :color="iconColor"
16
16
  :size="iconSize"
17
- :family="iconFamily"
17
+ :family="iconFamily || 'sari'"
18
18
  />
19
19
  </slot>
20
20
  </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>
@@ -96,7 +96,7 @@
96
96
  </template>
97
97
  <view :class="backspaceClass" style="order: 100" @click="onBackspace">
98
98
  <view :class="bem.e('key')">
99
- <sar-icon name="backspace" />
99
+ <sar-icon family="sari" name="backspace" />
100
100
  </view>
101
101
  </view>
102
102
  </view>
@@ -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 }}
@@ -9,7 +9,7 @@
9
9
  v-if="icon"
10
10
  :class="bem.e('item-icon')"
11
11
  :name="icon"
12
- :family="iconFamily"
12
+ :family="iconFamily || 'sari'"
13
13
  :size="iconSize"
14
14
  />
15
15
 
@@ -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 :name="closable ? 'close' : linkable ? 'right' : ''" />
24
+ <sar-icon
25
+ family="sari"
26
+ :name="closable ? 'close' : linkable ? 'right' : ''"
27
+ />
25
28
  </slot>
26
29
  </view>
27
30
  </view>
@@ -52,7 +52,7 @@
52
52
  @click="onCloseClick"
53
53
  >
54
54
  <sar-button type="pale-text" theme="neutral" size="large" block>
55
- <sar-icon name="close" />
55
+ <sar-icon family="sari" name="close" />
56
56
  </sar-button>
57
57
  </view>
58
58
  </view>
@@ -20,7 +20,7 @@
20
20
  <sar-loading />
21
21
  </view>
22
22
  <view v-if="!isReadonly" :class="bem.e('arrow')">
23
- <sar-icon name="caret-right" />
23
+ <sar-icon family="sari" name="caret-right" />
24
24
  </view>
25
25
  </view>
26
26
  </template>
@@ -11,7 +11,7 @@
11
11
  <slot>{{ percent }}%</slot>
12
12
  </view>
13
13
  <view v-if="status" :class="bem.e('status')">
14
- <sar-icon :name="iconName" />
14
+ <sar-icon family="sari" :name="iconName" />
15
15
  </view>
16
16
  </view>
17
17
  </template>
@@ -9,7 +9,7 @@
9
9
  <slot>
10
10
  <view v-if="!status" :class="bem.e('text')">{{ percent }}%</view>
11
11
  <view v-if="status" :class="bem.e('status')">
12
- <sar-icon :name="iconName" />
12
+ <sar-icon family="sari" :name="iconName" />
13
13
  </view>
14
14
  </slot>
15
15
  </view>
@@ -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>
@@ -4,7 +4,7 @@
4
4
  <view :class="iconClass">
5
5
  <sar-icon
6
6
  :name="icon || mapStatusIcon[status]"
7
- :family="iconFamily"
7
+ :family="iconFamily || 'sari'"
8
8
  :color="iconColor"
9
9
  />
10
10
  </view>
@@ -25,7 +25,7 @@
25
25
  >
26
26
  <template #prepend>
27
27
  <slot name="input-prepend">
28
- <sar-icon name="search" :root-class="bem.e('icon')" />
28
+ <sar-icon family="sari" name="search" :root-class="bem.e('icon')" />
29
29
  </slot>
30
30
  </template>
31
31
  <template #append>
@@ -47,7 +47,7 @@
47
47
  <sar-icon
48
48
  v-else
49
49
  :name="item.icon"
50
- :family="item.iconFamily"
50
+ :family="item.iconFamily || 'sari'"
51
51
  />
52
52
  </view>
53
53
  <view :class="bem.e('item-name')">{{ item.name }}</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>
@@ -33,7 +33,7 @@ export default _defineComponent({
33
33
  rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
34
34
  rootClass: { type: String, required: false },
35
35
  title: { type: String, required: false },
36
- name: { type: [String, Number], required: true },
36
+ name: { type: [String, Number, Boolean], required: true },
37
37
  disabled: { type: Boolean, required: false }
38
38
  },
39
39
  emits: ["click"],
@@ -3,7 +3,11 @@
3
3
  <slot>
4
4
  <view :class="bem.e('icon')">
5
5
  <slot name="icon" :active="isCurrent">
6
- <sar-icon :name="icon" :family="iconFamily" :size="iconSize" />
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>
@@ -4,13 +4,13 @@ export interface TabOption {
4
4
  rootStyle?: StyleValue;
5
5
  rootClass?: string;
6
6
  title?: string;
7
- name?: string | number;
7
+ name?: string | number | boolean;
8
8
  disabled?: boolean;
9
9
  }
10
10
  export interface TabsProps {
11
11
  rootStyle?: StyleValue;
12
12
  rootClass?: string;
13
- current?: string | number;
13
+ current?: string | number | boolean;
14
14
  list?: TabOption[];
15
15
  type?: 'line' | 'pill' | 'card';
16
16
  scrollable?: boolean;
@@ -22,14 +22,14 @@ export interface TabsSlots {
22
22
  default?(props: Record<string, never>): any;
23
23
  }
24
24
  export interface TabsEmits {
25
- (e: 'update:current', name: string | number): void;
26
- (e: 'change', name: string | number): void;
25
+ (e: 'update:current', name: string | number | boolean): void;
26
+ (e: 'change', name: string | number | boolean): void;
27
27
  }
28
28
  export interface TabProps {
29
29
  rootStyle?: StyleValue;
30
30
  rootClass?: string;
31
31
  title?: string;
32
- name: string | number;
32
+ name: string | number | boolean;
33
33
  disabled?: boolean;
34
34
  }
35
35
  export interface TabSlots {
@@ -40,10 +40,10 @@ export interface TabEmits {
40
40
  }
41
41
  export interface TabContext {
42
42
  current: any;
43
- select: (name: string | number, initial?: boolean) => void;
44
- register: (name: string | number, expose: {
43
+ select: (name: string | number | boolean, initial?: boolean) => void;
44
+ register: (name: string | number | boolean, expose: {
45
45
  getRect: () => Promise<NodeRect>;
46
46
  }) => void;
47
- unregister: (name: string | number) => void;
47
+ unregister: (name: string | number | boolean) => void;
48
48
  }
49
49
  export declare const tabContextSymbol: unique symbol;
@@ -1,11 +1,11 @@
1
1
  import { type TabsProps, type TabsSlots } from './common';
2
2
  declare function __VLS_template(): Readonly<TabsSlots> & TabsSlots;
3
3
  declare const __VLS_component: import("vue").DefineComponent<TabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
- change: (name: string | number) => any;
5
- "update:current": (name: string | number) => any;
4
+ change: (name: string | number | boolean) => any;
5
+ "update:current": (name: string | number | boolean) => any;
6
6
  }, string, import("vue").PublicProps, Readonly<TabsProps> & Readonly<{
7
- onChange?: ((name: string | number) => any) | undefined;
8
- "onUpdate:current"?: ((name: string | number) => any) | undefined;
7
+ onChange?: ((name: string | number | boolean) => any) | undefined;
8
+ "onUpdate:current"?: ((name: string | number | boolean) => any) | undefined;
9
9
  }>, {
10
10
  type: "line" | "pill" | "card";
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -68,7 +68,7 @@ export default _defineComponent({
68
68
  props: _mergeDefaults({
69
69
  rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
70
70
  rootClass: { type: String, required: false },
71
- current: { type: [String, Number], required: false },
71
+ current: { type: [String, Number, Boolean], required: false },
72
72
  list: { type: Array, required: false },
73
73
  type: { type: String, required: false },
74
74
  scrollable: { type: Boolean, required: false }
@@ -80,13 +80,13 @@ export default _defineComponent({
80
80
  const emit = __emit;
81
81
  const bem = createBem("tabs");
82
82
  const scrollToTab = async (name) => {
83
- if (!needScrollToTab.value || !tabMap[name]) {
83
+ if (!needScrollToTab.value || !tabMap.has(name)) {
84
84
  return;
85
85
  }
86
86
  const [scrollRect, wrapperRect, tabRect] = await Promise.all([
87
87
  getBoundingClientRect(`#${scrollId}`, instance),
88
88
  getBoundingClientRect(`#${wrapperId}`, instance),
89
- tabMap[name].getRect()
89
+ tabMap.get(name).getRect()
90
90
  ]);
91
91
  scrollLeft.value = tabRect.left - wrapperRect.left - (scrollRect.width - tabRect.width) / 2;
92
92
  if (props.type === "line") {
@@ -114,7 +114,7 @@ export default _defineComponent({
114
114
  const lineLeft = ref(0);
115
115
  const scrollLeft = ref(0);
116
116
  const scrollInitialized = ref(false);
117
- const tabMap = {};
117
+ const tabMap = new Map();
118
118
  const needScrollToTab = computed(() => {
119
119
  return props.type === "line" || props.type === "pill" && props.scrollable;
120
120
  });
@@ -141,10 +141,10 @@ export default _defineComponent({
141
141
  reactive({
142
142
  current: innerCurrent,
143
143
  register(name, expose) {
144
- tabMap[name] = expose;
144
+ tabMap.set(name, expose);
145
145
  },
146
146
  unregister(name) {
147
- delete tabMap[name];
147
+ tabMap.delete(name);
148
148
  },
149
149
  select(name, initial) {
150
150
  innerCurrent.value = name;
@@ -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 :name="icon" :family="iconFamily" :color="iconColor" />
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>
@@ -26,7 +26,7 @@
26
26
  >
27
27
  <slot name="select">
28
28
  <view :class="bem.e('select-icon')">
29
- <sar-icon name="plus" />
29
+ <sar-icon family="sari" name="plus" />
30
30
  </view>
31
31
  </slot>
32
32
  </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 v-else-if="status === 'failed'" name="x-circle" />
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.1",
5
+ "version": "1.15.3",
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.7",
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
  }