hy-app 0.3.2 → 0.3.4

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 (93) hide show
  1. package/components/hy-action-sheet/index.scss +1 -1
  2. package/components/hy-address-picker/index.scss +1 -1
  3. package/components/hy-avatar/hy-avatar.vue +10 -13
  4. package/components/hy-avatar/index.scss +2 -2
  5. package/components/hy-back-top/index.scss +2 -2
  6. package/components/hy-badge/index.scss +1 -1
  7. package/components/hy-button/index.scss +3 -3
  8. package/components/hy-calendar/header.vue +11 -11
  9. package/components/hy-calendar/index.scss +26 -26
  10. package/components/hy-calendar/month.vue +18 -19
  11. package/components/hy-card/hy-card.vue +10 -12
  12. package/components/hy-card/index.scss +12 -10
  13. package/components/hy-cell/hy-cell.vue +13 -13
  14. package/components/hy-cell/index.scss +16 -16
  15. package/components/hy-checkbox/hy-checkbox.vue +10 -10
  16. package/components/hy-checkbox/index.scss +25 -24
  17. package/components/hy-code-input/hy-code-input.vue +314 -314
  18. package/components/hy-code-input/index.scss +1 -1
  19. package/components/hy-config-provider/index.scss +3 -2
  20. package/components/hy-count-down/index.scss +1 -1
  21. package/components/hy-count-to/index.scss +1 -1
  22. package/components/hy-divider/index.scss +1 -1
  23. package/components/hy-dropdown/index.scss +1 -1
  24. package/components/hy-dropdown-item/index.scss +1 -1
  25. package/components/hy-empty/hy-empty.vue +15 -12
  26. package/components/hy-empty/icon.ts +32 -58
  27. package/components/hy-empty/index.scss +3 -3
  28. package/components/hy-empty/typing.d.ts +48 -35
  29. package/components/hy-float-button/index.scss +1 -1
  30. package/components/hy-folding-panel/index.scss +1 -1
  31. package/components/hy-form/hy-form.vue +3 -2
  32. package/components/hy-form-group/index.scss +1 -1
  33. package/components/hy-form-item/index.scss +41 -41
  34. package/components/hy-grid/index.scss +1 -1
  35. package/components/hy-icon/index.scss +1 -1
  36. package/components/hy-image/index.scss +1 -1
  37. package/components/hy-input/hy-input.vue +2 -2
  38. package/components/hy-input/index.scss +1 -1
  39. package/components/hy-line/index.scss +1 -1
  40. package/components/hy-line-progress/index.scss +1 -1
  41. package/components/hy-list/index.scss +1 -1
  42. package/components/hy-loading/index.scss +1 -1
  43. package/components/hy-menu/index.scss +1 -1
  44. package/components/hy-modal/index.scss +1 -1
  45. package/components/hy-navbar/index.scss +1 -1
  46. package/components/hy-notice-bar/hy-column-notice.vue +2 -2
  47. package/components/hy-notice-bar/hy-row-notice.vue +1 -1
  48. package/components/hy-notice-bar/index.scss +7 -1
  49. package/components/hy-notify/index.scss +1 -1
  50. package/components/hy-number-step/index.scss +1 -1
  51. package/components/hy-overlay/index.scss +1 -1
  52. package/components/hy-pagination/index.scss +1 -1
  53. package/components/hy-picker/index.scss +1 -1
  54. package/components/hy-popover/index.scss +4 -4
  55. package/components/hy-popup/index.scss +1 -1
  56. package/components/hy-price/index.scss +1 -1
  57. package/components/hy-qrcode/index.scss +1 -1
  58. package/components/hy-radio/index.scss +1 -1
  59. package/components/hy-read-more/index.scss +1 -1
  60. package/components/hy-scroll-list/index.scss +1 -1
  61. package/components/hy-search/hy-search.vue +2 -9
  62. package/components/hy-search/index.scss +1 -1
  63. package/components/hy-signature/index.scss +1 -1
  64. package/components/hy-slider/hy-slider.vue +1 -1
  65. package/components/hy-slider/index.scss +1 -1
  66. package/components/hy-steps/index.scss +1 -1
  67. package/components/hy-submit-bar/index.scss +1 -1
  68. package/components/hy-subsection/index.scss +1 -1
  69. package/components/hy-swipe-action/index.scss +1 -1
  70. package/components/hy-swiper/index.scss +1 -1
  71. package/components/hy-switch/index.scss +1 -1
  72. package/components/hy-tabBar/index.scss +1 -1
  73. package/components/hy-tabs/index.scss +1 -1
  74. package/components/hy-tag/hy-tag.vue +2 -2
  75. package/components/hy-tag/index.scss +14 -13
  76. package/components/hy-text/index.scss +1 -1
  77. package/components/hy-textarea/index.scss +7 -1
  78. package/components/hy-toast/index.scss +1 -1
  79. package/components/hy-tooltip/index.scss +1 -1
  80. package/components/hy-upload/hy-upload.vue +5 -12
  81. package/components/hy-upload/index.scss +1 -1
  82. package/components/hy-upload/typing.d.ts +21 -0
  83. package/components/hy-warn/index.scss +1 -1
  84. package/components/hy-watermark/index.scss +1 -1
  85. package/index.scss +3 -2
  86. package/libs/css/common.scss +1 -1
  87. package/libs/css/mixin.scss +16 -13
  88. package/{theme.scss → libs/css/theme.scss} +2 -0
  89. package/libs/css/{vars.css → vars.scss} +2 -0
  90. package/package.json +6 -3
  91. package/typing/modules/common.d.ts +2 -0
  92. package/web-types.json +1 -1
  93. package/components/avatar.zip +0 -0
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
  @include b(dropdown-item) {
@@ -1,22 +1,22 @@
1
1
  <template>
2
2
  <view :class="['hy-empty', customClass]" v-if="show" :style="emptyStyle">
3
3
  <view class="hy-empty__img" :style="imgStyle">
4
- <HyIcon
5
- :name="imageUrl || emptyIcon[mode].icon"
4
+ <HyImage
5
+ :src="imageUrl || emptyIcon[mode].icon"
6
6
  :width="width"
7
7
  :height="height"
8
8
  img-mode="widthFix"
9
- ></HyIcon>
9
+ ></HyImage>
10
10
  </view>
11
11
  <view v-if="$slots.default">
12
12
  <slot></slot>
13
13
  </view>
14
- <view class="hy-empty__description" v-else>
14
+ <view class="hy-empty--description" v-else>
15
15
  <slot v-if="$slots.description" name="description"></slot>
16
16
  <text v-else :style="descriptionStyle">{{
17
- emptyDescription || emptyIcon[mode].name
17
+ emptyDescription || emptyIcon[mode].desc
18
18
  }}</text>
19
- <view class="hy-empty__button" v-if="button?.text">
19
+ <view class="hy-empty--button" v-if="button?.text">
20
20
  <HyButton
21
21
  :text="button?.text"
22
22
  :size="button?.size"
@@ -51,7 +51,7 @@ import type { HyButtonProps } from "../hy-button/typing";
51
51
  import type { IEmptyEmits } from "./typing";
52
52
  // 组件
53
53
  import HyButton from "../hy-button/hy-button.vue";
54
- import HyIcon from "../hy-icon/hy-icon.vue";
54
+ import HyImage from "../hy-image/hy-image.vue";
55
55
 
56
56
  /**
57
57
  * 加载的第一页数据就为空
@@ -67,10 +67,13 @@ const props = defineProps({
67
67
  default: true,
68
68
  required: true,
69
69
  },
70
- /** 缺省页内容 */
70
+ /**
71
+ * 缺省页内容
72
+ * @values content,search,address,network,order,coupon,favor,history,message,comment,integral
73
+ * */
71
74
  mode: {
72
75
  type: String,
73
- default: "car",
76
+ default: "content",
74
77
  },
75
78
  /** 空状态图片 */
76
79
  imageUrl: String,
@@ -81,13 +84,13 @@ const props = defineProps({
81
84
  },
82
85
  /** 组件层级 */
83
86
  width: {
84
- type: Number,
85
- default: 350,
87
+ type: [String, Number],
88
+ default: "240px",
86
89
  },
87
90
  /** icon高度 */
88
91
  height: {
89
92
  type: [String, Number],
90
- default: "auto",
93
+ default: "240px",
91
94
  },
92
95
  /** 提示信息 */
93
96
  description: String,
@@ -1,78 +1,52 @@
1
- export default {
2
- car: {
3
- name: '购物车为空',
4
- icon: 'https://pic1.imgdb.cn/item/685b54cb58cb8da5c86d0d4c.png',
5
- },
6
- page: {
7
- name: '页面不存在',
8
- icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f64.webp',
1
+ import type { IEmptyIcon } from "./typing";
2
+
3
+ const url = "https://registry.npmmirror.com/wot-design-uni-assets/*/files/";
4
+
5
+ const emptyIcon: IEmptyIcon = {
6
+ content: {
7
+ desc: "暂无内容",
8
+ icon: url + "content.png",
9
9
  },
10
10
  search: {
11
- name: '没有搜索结果',
12
- icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e84.webp',
11
+ desc: "没有搜索结果",
12
+ icon: url + "search.png",
13
13
  },
14
14
  address: {
15
- name: '没有收货地址',
16
- icon: 'https://pic1.imgdb.cn/item/685a6b3558cb8da5c86b6f1a.webp',
15
+ desc: "没有收货地址",
16
+ icon: url + "png",
17
17
  },
18
- wifi: {
19
- name: '没有网络',
20
- icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e87.webp',
18
+ network: {
19
+ desc: "没有网络",
20
+ icon: url + "network.png",
21
21
  },
22
22
  order: {
23
- name: '订单为空',
24
- icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e85.webp',
23
+ desc: "订单为空",
24
+ icon: url + "png",
25
25
  },
26
26
  coupon: {
27
- name: '没有优惠券',
28
- icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f63.webp',
27
+ desc: "没有优惠券",
28
+ icon: url + "png",
29
29
  },
30
30
  favor: {
31
- name: '暂无收藏',
32
- icon: 'https://pic1.imgdb.cn/item/685a6b3558cb8da5c86b6f1b.webp',
33
- },
34
- permission: {
35
- name: '无权限',
36
- icon: 'https://pic1.imgdb.cn/item/685a6b4358cb8da5c86b6f85.webp',
31
+ desc: "暂无收藏",
32
+ icon: url + "collect.png",
37
33
  },
38
34
  history: {
39
- name: '无历史记录',
40
- icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f62.webp',
35
+ desc: "无历史记录",
36
+ icon: url + "png",
41
37
  },
42
38
  message: {
43
- name: '消息列表为空',
44
- icon: 'https://pic1.imgdb.cn/item/685a6aef58cb8da5c86b6d30.webp',
45
- },
46
- image: {
47
- name: '暂无图片',
48
- icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f65.webp',
49
- },
50
- video: {
51
- name: '暂无视频',
52
- icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f66.webp',
39
+ desc: "消息列表为空",
40
+ icon: url + "message.png",
53
41
  },
54
42
  comment: {
55
- name: '暂无评论',
56
- icon: 'https://pic1.imgdb.cn/item/685a6aef58cb8da5c86b6d30.webp',
43
+ desc: "暂无评论",
44
+ icon: url + "comment.png",
57
45
  },
58
46
  integral: {
59
- name: '暂无积分',
60
- icon: 'https://pic1.imgdb.cn/item/685a6aef58cb8da5c86b6d2f.webp',
61
- },
62
- subscribe: {
63
- name: '暂无预约',
64
- icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e86.webp',
65
- },
66
- earnings: {
67
- name: '暂无收益',
68
- icon: 'https://pic1.imgdb.cn/item/685a6b3558cb8da5c86b6f1c.webp',
69
- },
70
- announcement: {
71
- name: '暂无公告',
72
- icon: 'https://pic1.imgdb.cn/item/685a6b3558cb8da5c86b6f1d.webp',
73
- },
74
- signIn: {
75
- name: '暂无打卡',
76
- icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e83.webp',
47
+ desc: "暂无积分",
48
+ icon: url + "halo.png",
77
49
  },
78
- }
50
+ };
51
+
52
+ export default emptyIcon;
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -12,14 +12,14 @@
12
12
  align-items: center;
13
13
  flex-direction: column;
14
14
  background: $hy-background;
15
- &__description {
15
+ @include m(description) {
16
16
  width: 70%;
17
17
  text-align: center;
18
18
  margin-top: $hy-border-margin-padding-base;
19
19
  color: $hy-text-color--grey;
20
20
  }
21
21
 
22
- &__button {
22
+ @include m(button) {
23
23
  margin-top: 100rpx;
24
24
  }
25
25
  }
@@ -1,83 +1,96 @@
1
- import type { CSSProperties } from 'vue'
2
- import type HyButtonProps from '../hy-button/typing'
1
+ import type { CSSProperties } from "vue";
2
+ import type HyButtonProps from "../hy-button/typing";
3
3
 
4
4
  type EmptyModeType =
5
- | 'car'
6
- | 'page'
7
- | 'search'
8
- | 'address'
9
- | 'wifi'
10
- | 'order'
11
- | 'coupon'
12
- | 'favor'
13
- | 'permission'
14
- | 'history'
15
- | 'message'
16
- | 'image'
17
- | 'video'
18
- | 'comment'
19
- | 'integral'
20
- | 'subscribe'
21
- | 'earnings'
22
- | 'announcement'
23
- | 'signIn'
5
+ | "car"
6
+ | "page"
7
+ | "search"
8
+ | "address"
9
+ | "wifi"
10
+ | "order"
11
+ | "coupon"
12
+ | "favor"
13
+ | "permission"
14
+ | "history"
15
+ | "message"
16
+ | "image"
17
+ | "video"
18
+ | "comment"
19
+ | "integral"
20
+ | "subscribe"
21
+ | "earnings"
22
+ | "announcement"
23
+ | "signIn";
24
+
25
+ export type IEmptyIcon = {
26
+ [key: string]: {
27
+ /**
28
+ * 提示信息
29
+ * */
30
+ desc: string;
31
+ /**
32
+ * 空状态图片地址
33
+ * */
34
+ icon: string;
35
+ };
36
+ };
24
37
 
25
38
  export default interface HyEmptyProps {
26
39
  /**
27
40
  * @description 是否显示空状态
28
41
  * */
29
- show?: boolean
42
+ show?: boolean;
30
43
  /**
31
44
  * @description 缺省页内容
32
45
  * */
33
- mode?: EmptyModeType
46
+ mode?: EmptyModeType;
34
47
  /**
35
48
  * @description 空状态图片
36
49
  * */
37
- imageUrl?: string
50
+ imageUrl?: string;
38
51
  /**
39
52
  * @description 组件层级
40
53
  * */
41
- zIndex?: number
54
+ zIndex?: number;
42
55
  /**
43
56
  * @description icon宽度
44
57
  * */
45
- width?: number | string
58
+ width?: number | string;
46
59
  /**
47
60
  * @description icon高度
48
61
  * */
49
- height?: number | string
62
+ height?: number | string;
50
63
  /**
51
64
  * @description 提示信息
52
65
  * */
53
- description?: string
66
+ description?: string;
54
67
  /**
55
68
  * @description 提示信息大小
56
69
  * */
57
- desSize?: string | number
70
+ desSize?: string | number;
58
71
  /**
59
72
  * @description 提示信息颜色
60
73
  * */
61
- desColor?: string
74
+ desColor?: string;
62
75
  /**
63
76
  * @description 图片margin
64
77
  * */
65
- imgMargin?: string
78
+ imgMargin?: string;
66
79
  /**
67
80
  * @description 按钮属性只
68
81
  * */
69
- button?: HyButtonProps
82
+ button?: HyButtonProps;
70
83
  /**
71
84
  * @description 跳转地址
72
85
  * */
73
- navigateUrl?: string
86
+ navigateUrl?: string;
74
87
  /**
75
88
  * @description 自定义输入框外部样式
76
89
  * */
77
- customStyle?: CSSProperties
90
+ customStyle?: CSSProperties;
78
91
  }
79
92
 
80
93
  export interface IEmptyEmits {
81
94
  /** 点击按钮触发 */
82
- (e: 'click'): void
95
+ (e: "click"): void;
83
96
  }
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
  @include b(folding-panel) {
@@ -20,6 +20,7 @@ import { provide, reactive, ref } from "vue";
20
20
  import type { PropType } from "vue";
21
21
  import type { FormItemRule } from "./typing";
22
22
  import { clearVal, isArray } from "../../utils";
23
+ import type { AppType } from "vite";
23
24
 
24
25
  /**
25
26
  * 表单组件父组件,需要搭配hy-form-item
@@ -47,7 +48,7 @@ const props = defineProps({
47
48
  * @values left,top
48
49
  * */
49
50
  labelPosition: {
50
- type: String,
51
+ type: String as PropType<HyApp.LabelPosition>,
51
52
  default: "left",
52
53
  },
53
54
  /**
@@ -55,7 +56,7 @@ const props = defineProps({
55
56
  * @values left,center,right
56
57
  * */
57
58
  labelAlign: {
58
- type: String,
59
+ type: String as PropType<HyApp.ColumnCenterType>,
59
60
  default: "left",
60
61
  },
61
62
  });
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,41 +1,41 @@
1
- @use "../../theme.scss" as *;
2
- @use "../../libs/css/mixin.scss" as *;
3
-
4
- @include b(form-item) {
5
- display: flex;
6
- margin-bottom: 16px;
7
-
8
- @include m(left) {
9
- flex-direction: row;
10
- align-items: flex-start;
11
- }
12
-
13
- @include m(top) {
14
- flex-direction: column;
15
- }
16
-
17
- @include e(label) {
18
- position: relative;
19
- padding-right: 8px;
20
- font-size: 14px;
21
- color: $hy-text-color;
22
- line-height: 2.5;
23
-
24
- @include m(required) {
25
- color: #ff4d4f;
26
- margin-right: 2px;
27
- }
28
- }
29
-
30
- @include e(content) {
31
- flex: 1;
32
- min-width: 0;
33
- }
34
-
35
- @include e(error) {
36
- margin-top: 4px;
37
- font-size: 12px;
38
- color: #ff4d4f;
39
- line-height: 1.5;
40
- }
41
- }
1
+ @use "../../libs/css/theme" as *;
2
+ @use "../../libs/css/mixin.scss" as *;
3
+
4
+ @include b(form-item) {
5
+ display: flex;
6
+ margin-bottom: 16px;
7
+
8
+ @include m(left) {
9
+ flex-direction: row;
10
+ align-items: flex-start;
11
+ }
12
+
13
+ @include m(top) {
14
+ flex-direction: column;
15
+ }
16
+
17
+ @include e(label) {
18
+ position: relative;
19
+ padding-right: 8px;
20
+ font-size: 14px;
21
+ color: $hy-text-color;
22
+ line-height: 2.5;
23
+
24
+ @include m(required) {
25
+ color: #ff4d4f;
26
+ margin-right: 2px;
27
+ }
28
+ }
29
+
30
+ @include e(content) {
31
+ flex: 1;
32
+ min-width: 0;
33
+ }
34
+
35
+ @include e(error) {
36
+ margin-top: 4px;
37
+ font-size: 12px;
38
+ color: #ff4d4f;
39
+ line-height: 1.5;
40
+ }
41
+ }
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/mixin.scss" as *;
2
- @use "../../theme.scss" as *;
2
+ @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(grid) {
5
5
  justify-content: center;
@@ -1,6 +1,6 @@
1
1
  @use "../../libs/css/mixin.scss" as *;
2
2
  @use "../../public/font/iconfont.css" as *;
3
- @use "../../theme.scss" as *;
3
+ @use "../../libs/css/theme" as *;
4
4
 
5
5
 
6
6
  @include b(icon) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/mixin.scss" as *;
2
- @use "../../theme.scss" as *;
2
+ @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(image) {
5
5
  position: relative;
@@ -291,7 +291,7 @@ const props = defineProps({
291
291
  * @values surround,bottom,none
292
292
  * */
293
293
  border: {
294
- type: String,
294
+ type: String as PropType<HyApp.BorderType>,
295
295
  default: "surround",
296
296
  },
297
297
  /** 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 */
@@ -304,7 +304,7 @@ const props = defineProps({
304
304
  * @values circle,square
305
305
  * */
306
306
  shape: {
307
- type: String,
307
+ type: String as PropType<HyApp.ShapeType>,
308
308
  default: "square",
309
309
  },
310
310
  /** 是否忽略组件内对文本合成系统事件的处理 */
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/mixin.scss" as *;
2
- @use "../../theme.scss" as *;
2
+ @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(input) {
5
5
  @include flex(row);
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/mixin.scss" as *;
2
- @use "../../theme.scss" as *;
2
+ @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(line) {
5
5
  /* #ifndef APP-NVUE */
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/mixin.scss" as *;
2
- @use "../../theme.scss" as *;
2
+ @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(line-progress) {
5
5
  align-items: stretch;
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
  @include b(virtual-container) {
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
  @include b(modal) {
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -8,8 +8,8 @@
8
8
  </slot>
9
9
  <swiper
10
10
  :disable-touch="disableTouch"
11
- :vertical="step ? false : true"
12
- circular
11
+ :vertical="!step"
12
+ :circular="true"
13
13
  :interval="duration"
14
14
  :autoplay="true"
15
15
  class="hy-notice__swiper"
@@ -53,7 +53,7 @@ import type IProps from "./typing";
53
53
  import defaultProps from "./props";
54
54
  import { addUnit, getRect, sleep } from "../../utils";
55
55
  import { IconConfig } from "../../config";
56
-
56
+ // 组件
57
57
  import HyIcon from "../hy-icon/hy-icon.vue";
58
58
 
59
59
  const props = withDefaults(defineProps<IProps>(), defaultProps);
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -24,6 +24,12 @@
24
24
  }
25
25
  }
26
26
 
27
+ &__right-icon {
28
+ :deep(.hy-icon) {
29
+ color: $hy-warning;
30
+ }
31
+ }
32
+
27
33
  &__right-icon {
28
34
  margin-left: 5px;
29
35
  align-items: center;
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
  @include b(overlay) {
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../theme.scss" as *;
1
+ @use "../../libs/css/theme" as *;
2
2
  @use "../../libs/css/mixin.scss" as *;
3
3
 
4
4