hy-app 0.5.7 → 0.5.9

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 (107) 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/index.scss +1 -1
  4. package/components/hy-back-top/index.scss +1 -1
  5. package/components/hy-badge/index.scss +1 -1
  6. package/components/hy-button/index.scss +1 -1
  7. package/components/hy-calendar/index.scss +1 -1
  8. package/components/hy-card/hy-card.vue +1 -1
  9. package/components/hy-card/index.scss +1 -1
  10. package/components/hy-cell-item/hy-cell-item.vue +1 -0
  11. package/components/hy-cell-item/index.scss +1 -1
  12. package/components/hy-check-button/hy-check-button.vue +1 -1
  13. package/components/hy-checkbox/index.scss +1 -1
  14. package/components/hy-checkbox-group/index.scss +1 -1
  15. package/components/hy-checkbox-item/index.scss +1 -1
  16. package/components/hy-code-input/hy-code-input.vue +1 -1
  17. package/components/hy-code-input/index.scss +1 -1
  18. package/components/hy-config-provider/hy-config-provider.vue +4 -2
  19. package/components/hy-config-provider/index.scss +1 -1
  20. package/components/hy-count-down/index.scss +1 -1
  21. package/components/hy-count-to/index.scss +1 -1
  22. package/components/hy-coupon/index.scss +1 -1
  23. package/components/hy-datetime-picker/index.scss +1 -1
  24. package/components/hy-divider/index.scss +1 -1
  25. package/components/hy-dropdown/index.scss +1 -1
  26. package/components/hy-dropdown-item/index.scss +1 -1
  27. package/components/hy-empty/index.scss +1 -1
  28. package/components/hy-flex/index.scss +1 -1
  29. package/components/hy-float-button/hy-float-button.vue +10 -11
  30. package/components/hy-float-button/index.scss +13 -13
  31. package/components/hy-folding-panel-item/index.scss +1 -1
  32. package/components/hy-form-item/index.scss +1 -1
  33. package/components/hy-grid/index.scss +1 -1
  34. package/components/hy-icon/index.scss +1 -1
  35. package/components/hy-image/index.scss +1 -1
  36. package/components/hy-input/hy-input.vue +0 -1
  37. package/components/hy-input/index.scss +1 -1
  38. package/components/hy-input/props.ts +1 -1
  39. package/components/hy-input/typing.d.ts +4 -0
  40. package/components/hy-line/index.scss +1 -1
  41. package/components/hy-line-progress/index.scss +1 -1
  42. package/components/hy-list/index.scss +1 -1
  43. package/components/hy-loading/index.scss +1 -1
  44. package/components/hy-menu/index.scss +1 -1
  45. package/components/hy-modal/index.scss +1 -1
  46. package/components/hy-navbar/hy-navbar.vue +26 -23
  47. package/components/hy-navbar/index.scss +2 -2
  48. package/components/hy-notice-bar/index.scss +1 -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/hy-picker.vue +92 -87
  54. package/components/hy-picker/index.scss +2 -2
  55. package/components/hy-picker/props.ts +1 -1
  56. package/components/hy-popover/index.scss +1 -1
  57. package/components/hy-popup/hy-popup.vue +3 -3
  58. package/components/hy-popup/index.scss +2 -1
  59. package/components/hy-price/index.scss +1 -1
  60. package/components/hy-qrcode/index.scss +1 -1
  61. package/components/hy-radio/index.scss +1 -1
  62. package/components/hy-rate/index.scss +1 -1
  63. package/components/hy-read-more/index.scss +2 -2
  64. package/components/hy-rolling-num/hy-rolling-num.vue +188 -0
  65. package/components/hy-rolling-num/index.scss +34 -0
  66. package/components/hy-rolling-num/props.ts +68 -0
  67. package/components/hy-rolling-num/typing.d.ts +0 -0
  68. package/components/hy-scroll-list/index.scss +1 -1
  69. package/components/hy-search/index.scss +1 -1
  70. package/components/hy-signature/index.scss +1 -1
  71. package/components/hy-slider/index.scss +1 -1
  72. package/components/hy-status-bar/index.scss +1 -1
  73. package/components/hy-steps/index.scss +1 -1
  74. package/components/hy-sticky/hy-sticky.vue +5 -5
  75. package/components/hy-sticky/index.scss +1 -1
  76. package/components/hy-submit-bar/index.scss +1 -1
  77. package/components/hy-subsection/index.scss +1 -1
  78. package/components/hy-swipe-action/index.scss +1 -1
  79. package/components/hy-swiper/index.scss +2 -2
  80. package/components/hy-switch/index.scss +1 -1
  81. package/components/hy-tabbar/hy-tabbar.vue +0 -1
  82. package/components/hy-tabbar/index.scss +1 -1
  83. package/components/hy-tabbar-group/index.scss +1 -1
  84. package/components/hy-tabbar-item/index.scss +1 -1
  85. package/components/hy-table/hy-table.vue +358 -0
  86. package/components/hy-table/index.scss +197 -0
  87. package/components/hy-table/props.ts +47 -0
  88. package/components/hy-table/typing.d.ts +34 -0
  89. package/components/hy-tabs/hy-tabs.vue +21 -23
  90. package/components/hy-tabs/index.scss +1 -1
  91. package/components/hy-tag/index.scss +1 -1
  92. package/components/hy-text/hy-text.vue +1 -1
  93. package/components/hy-text/index.scss +1 -1
  94. package/components/hy-textarea/index.scss +1 -1
  95. package/components/hy-toast/index.scss +2 -1
  96. package/components/hy-tooltip/index.scss +2 -2
  97. package/components/hy-upload/index.scss +1 -1
  98. package/components/hy-warn/hy-warn.vue +2 -2
  99. package/components/hy-warn/index.scss +1 -1
  100. package/components/hy-waterfall/index.scss +1 -1
  101. package/components/hy-watermark/index.scss +1 -1
  102. package/global.d.ts +1 -0
  103. package/index.scss +1 -1
  104. package/libs/css/{mixin.scss → _mixin.scss} +27 -13
  105. package/libs/css/theme.scss +4 -1
  106. package/libs/css/vars.scss +6 -0
  107. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @include b(address-picker) {
3
3
  flex: 1;
4
4
  @include e(has-input) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(avatar) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(back-top) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  $hy-badge-dot-size: 8px !default;
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
 
@@ -44,7 +44,7 @@
44
44
  </text>
45
45
  </view>
46
46
  </view>
47
- <view class="hy-card__head--right" v-if="subTitle">
47
+ <view class="hy-card__head--right" v-if="rightText">
48
48
  <text
49
49
  class="hy-card__head--right__text"
50
50
  :style="{
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
 
@@ -24,6 +24,7 @@
24
24
  :stop="icon?.stop"
25
25
  :round="icon?.round"
26
26
  :customStyle="icon?.customStyle"
27
+ :customClass="icon?.customClass"
27
28
  ></hy-icon>
28
29
  </view>
29
30
  <view class="hy-cell-item__left--title">
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
 
@@ -87,7 +87,7 @@ const onCheckbox = ({ name }: TagParamsVo) => {
87
87
  </script>
88
88
 
89
89
  <style lang="scss" scoped>
90
- @import '../../libs/css/mixin.scss';
90
+ @import '../../libs/css/mixin';
91
91
  @include b(check-button) {
92
92
  display: grid;
93
93
  grid-template-columns: v-bind(col);
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(checkbox) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
 
3
3
  @include b(checkbox) {
4
4
  @include m(group) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(checkbox) {
@@ -209,7 +209,7 @@ const inputHandler = (e: InputOnInputEvent) => {
209
209
 
210
210
  <style scoped lang="scss">
211
211
  @import './index.scss';
212
- @import '../../libs/css/mixin.scss';
212
+ @import '../../libs/css/mixin';
213
213
  @import '../../libs/css/theme';
214
214
  @include b(code-input) {
215
215
  @include m(item) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(code-input) {
5
5
  @include flex;
@@ -27,7 +27,6 @@ import configProviderProps from './props'
27
27
  */
28
28
  defineOptions({})
29
29
 
30
- // const props = withDefaults(defineProps<IProps>(), defaultProps);
31
30
  const props = defineProps(configProviderProps)
32
31
 
33
32
  const themeClass = computed(() => {
@@ -38,7 +37,10 @@ const themeStyle = computed(() => {
38
37
  return [
39
38
  {
40
39
  '--hy-theme-color': props.themeColor,
41
- '--hy-theme--light': colorGradient(props.themeColor)[90],
40
+ '--hy-theme--light':
41
+ props.theme === 'light'
42
+ ? colorGradient(props.themeColor)[80]
43
+ : colorGradient(props.themeColor, '#000')[60],
42
44
  padding: addUnit(props.padding)
43
45
  },
44
46
  props.customStyle
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(count-down) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(count-to) {
@@ -1,4 +1,4 @@
1
- @use '../../libs/css/mixin.scss' as *;
1
+ @use '../../libs/css/mixin' as *;
2
2
  @use '../../libs/css/theme.scss' as *;
3
3
 
4
4
  $hy-box-width: 180rpx;
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
 
3
3
  @include b(datetime-picker) {
4
4
  flex: 1;
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(divider) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(dropdown) {
5
5
  width: 100%;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(dropdown-item) {
5
5
  @include e(header) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(empty) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @include b(flex) {
3
3
  box-sizing: border-box;
4
4
 
@@ -79,7 +79,7 @@ import { computed, getCurrentInstance, onMounted, ref, reactive, watch } from 'v
79
79
  import type { CSSProperties } from 'vue'
80
80
  import type { IFloatButtonEmits } from './typing'
81
81
  import type { MenusType } from './typing'
82
- import { addUnit, getPx, getRect, guid, isH5 } from '../../libs'
82
+ import { addUnit, debounce, getPx, getRect, guid, isH5, throttle } from '../../libs'
83
83
  import floatButtonProps from './props'
84
84
  // 组件
85
85
  import HyIcon from '../hy-icon/hy-icon.vue'
@@ -133,7 +133,7 @@ watch(
133
133
  )
134
134
 
135
135
  /**
136
- * @description 初始化距离
136
+ * 初始化距离
137
137
  * */
138
138
  const initPosition = () => {
139
139
  const { minLeft, minTop, maxLeft, maxTop } = bounding
@@ -193,7 +193,7 @@ const initPosition = () => {
193
193
  }
194
194
 
195
195
  /**
196
- * @description 获取组件大小
196
+ * 获取组件大小
197
197
  * */
198
198
  const getFloatBtnSize = computed(() => {
199
199
  if (typeof props.size === 'string' && Object.keys(btnSize).includes(props.size)) {
@@ -204,16 +204,15 @@ const getFloatBtnSize = computed(() => {
204
204
  })
205
205
 
206
206
  /**
207
- * @description 悬浮按钮样式
207
+ * 悬浮按钮样式
208
208
  * */
209
209
  const FloatButtonStyle = computed(() => {
210
210
  const style: CSSProperties = {
211
- top: currentCoordinate.top + 'px',
212
- left: currentCoordinate.left + 'px',
211
+ top: `${currentCoordinate.top}px`,
212
+ left: `${currentCoordinate.left}px`,
213
213
  backgroundColor: props.bgColor,
214
214
  zIndex: props.zIndex,
215
- color: props.textColor,
216
- transition: 'all ease 0.3s'
215
+ color: props.textColor
217
216
  }
218
217
  if (props.fixed) style.position = 'fixed'
219
218
 
@@ -267,7 +266,7 @@ const menusStyle = computed(() => {
267
266
  })
268
267
 
269
268
  /**
270
- * @description 获取悬浮按钮大小
269
+ * 获取悬浮按钮大小
271
270
  * */
272
271
  const getFatRect = () => {
273
272
  return new Promise((resolve, reject) => {
@@ -285,7 +284,7 @@ const getFatRect = () => {
285
284
  }
286
285
 
287
286
  /**
288
- * @description 点击悬浮按钮
287
+ * 点击悬浮按钮
289
288
  * */
290
289
  const handleClick = () => {
291
290
  emit('click')
@@ -295,7 +294,7 @@ const handleClick = () => {
295
294
  }
296
295
 
297
296
  /**
298
- * @description 点击单条菜单栏
297
+ * 点击单条菜单栏
299
298
  * */
300
299
  const handleMenuItemClick = (temp: MenusType, index: number) => {
301
300
  emit('clickItem', temp, index)
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(float-button) {
@@ -14,18 +14,18 @@
14
14
  box-shadow: $hy-box-shadow;
15
15
  }
16
16
 
17
- @include e(animation) {
18
- animation: floatAnimation 2s ease-in-out infinite;
19
- @keyframes floatAnimation {
20
- 0%,
21
- 100% {
22
- transform: translateY(0); /* 初始位置 */
23
- }
24
- 50% {
25
- transform: translateY(-20px); /* 上浮20像素 */
26
- }
27
- }
28
- }
17
+ //@include e(animation) {
18
+ // animation: floatAnimation 2s ease-in-out infinite;
19
+ // @keyframes floatAnimation {
20
+ // 0%,
21
+ // 100% {
22
+ // transform: translateY(0); /* 初始位置 */
23
+ // }
24
+ // 50% {
25
+ // transform: translateY(-20px); /* 上浮20像素 */
26
+ // }
27
+ // }
28
+ //}
29
29
 
30
30
  @include e(container) {
31
31
  border-radius: 50%;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme.scss" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(folding-panel-item) {
5
5
  position: relative;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(form-item) {
5
5
  display: flex;
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(grid) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/iconfont.css" as *;
3
3
  @use "../../libs/css/theme" as *;
4
4
 
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(image) {
@@ -152,7 +152,6 @@ watch(
152
152
  changeFromInner.value = false
153
153
  return
154
154
  }
155
- console.log(newVal, 'newVal')
156
155
  innerValue.value = newVal
157
156
  // 在H5中,外部value变化后,修改input中的值,不会触发@input事件,此时手动调用值变化方法
158
157
  if (!firstChange.value && !changeFromInner.value) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(input) {
@@ -181,6 +181,6 @@ const inputProps = {
181
181
  },
182
182
  /** 自定义外部类名 */
183
183
  customClass: String
184
- }
184
+ } as const
185
185
 
186
186
  export default inputProps
@@ -4,6 +4,10 @@ import type {
4
4
  InputOnFocusEvent,
5
5
  InputOnKeyboardheightchange
6
6
  } from '@uni-helper/uni-types'
7
+ import type { ExtractPropTypes } from 'vue'
8
+ import type inputProps from './props'
9
+
10
+ export interface HyInputProps extends ExtractPropTypes<typeof inputProps> {}
7
11
 
8
12
  export interface IInputEmits {
9
13
  /** 输入框失去焦点时触发 */
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(line) {
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(line-progress) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(virtual-container) {
5
5
  padding: 0 $hy-border-margin-padding-base;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(loading-icon) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(menu) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(modal) {
5
5
  max-width: 650rpx;
@@ -17,29 +17,30 @@
17
17
  }"
18
18
  >
19
19
  <!-- 左边 -->
20
- <slot v-if="$slots.left" name="left"></slot>
21
20
  <view
22
- v-else
23
21
  class="hy-navbar__content__left"
24
22
  hover-class="hy-navbar__content__left--hover"
25
23
  hover-start-time="150"
26
24
  @tap="leftClick"
27
25
  >
28
- <hy-icon
29
- v-if="leftIcon"
30
- :name="leftIcon"
31
- :size="leftIconSize"
32
- :color="leftIconColor"
33
- ></hy-icon>
34
- <text
35
- v-if="leftText"
36
- :style="{
37
- color: leftIconColor
38
- }"
39
- class="hy-navbar__content__left--text"
40
- >
41
- {{ leftText }}
42
- </text>
26
+ <slot v-if="$slots.left" name="left"></slot>
27
+ <template v-else>
28
+ <hy-icon
29
+ v-if="leftIcon"
30
+ :name="leftIcon"
31
+ :size="leftIconSize"
32
+ :color="leftIconColor"
33
+ ></hy-icon>
34
+ <text
35
+ v-if="leftText"
36
+ :style="{
37
+ color: leftIconColor
38
+ }"
39
+ class="hy-navbar__content__left--text"
40
+ >
41
+ {{ leftText }}
42
+ </text>
43
+ </template>
43
44
  </view>
44
45
  <!-- 左边 -->
45
46
 
@@ -74,12 +75,14 @@
74
75
  <!-- 中间 -->
75
76
 
76
77
  <!-- 右边 -->
77
- <slot v-if="$slots.right" name="right"></slot>
78
- <view class="hy-navbar__content__right" v-else @tap="rightClick">
79
- <hy-icon v-if="rightIcon" :name="rightIcon" size="20"></hy-icon>
80
- <text v-if="rightText" class="hy-navbar__content__right--text">{{
81
- rightText
82
- }}</text>
78
+ <view class="hy-navbar__content__right" @tap="rightClick">
79
+ <slot v-if="$slots.right" name="right"></slot>
80
+ <template v-else>
81
+ <hy-icon v-if="rightIcon" :name="rightIcon" size="20"></hy-icon>
82
+ <text v-if="rightText" class="hy-navbar__content__right--text">{{
83
+ rightText
84
+ }}</text>
85
+ </template>
83
86
  </view>
84
87
  <!-- 右边 -->
85
88
  </view>
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(navbar) {
@@ -15,7 +15,7 @@
15
15
  @include flex(row);
16
16
  align-items: center;
17
17
  height: 44px;
18
- background-color: $hy-background;
18
+ background-color: $hy-background--container;
19
19
  position: relative;
20
20
  justify-content: center;
21
21
 
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(notice) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(notify) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(number-box) {
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(overlay) {
5
5
  position: fixed;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
 
5
5
  @include b(pagination) {