fusions-ui 1.2.4 → 1.2.7

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 (176) hide show
  1. package/components/fu-avatar/fu-avatar.vue +4 -2
  2. package/components/fu-avatar/props.js +52 -15
  3. package/components/fu-avatar-group/fu-avatar-group.vue +3 -2
  4. package/components/fu-avatar-group/props.js +31 -9
  5. package/components/fu-badge/fu-badge.vue +8 -14
  6. package/components/fu-badge/props.js +56 -16
  7. package/components/fu-banner-arc/fu-banner-arc.vue +4 -5
  8. package/components/fu-banner-arc/props.js +15 -4
  9. package/components/fu-button/fu-button.vue +18 -20
  10. package/components/fu-button/props.js +108 -35
  11. package/components/fu-cell/fu-cell.vue +9 -8
  12. package/components/fu-cell-group/fu-cell-group.vue +2 -1
  13. package/components/fu-cell-group/props.js +7 -2
  14. package/components/fu-checkbox/fu-checkbox.vue +5 -4
  15. package/components/fu-checkbox/props.js +51 -14
  16. package/components/fu-code-input/fu-code-input.vue +10 -6
  17. package/components/fu-code-input/props.js +66 -17
  18. package/components/fu-code-verify/fu-code-verify.vue +9 -5
  19. package/components/fu-code-verify/props.js +64 -17
  20. package/components/fu-collapse/fu-collapse.vue +10 -3
  21. package/components/fu-collapse/props.js +9 -3
  22. package/components/fu-collapse-item/fu-collapse-item.vue +45 -31
  23. package/components/fu-collapse-item/props.js +49 -16
  24. package/components/fu-countdown/fu-countdown.vue +2 -1
  25. package/components/fu-countdown/props.js +15 -4
  26. package/components/fu-datetime-picker/fu-datetime-picker.vue +6 -5
  27. package/components/fu-datetime-picker/props.js +91 -25
  28. package/components/fu-form/fu-form.vue +2 -1
  29. package/components/fu-form/props.js +34 -6
  30. package/components/fu-form-item/fu-form-item.vue +26 -33
  31. package/components/fu-form-item/props.js +30 -8
  32. package/components/fu-grid/fu-grid.vue +16 -17
  33. package/components/fu-grid/props.js +20 -5
  34. package/components/fu-grid-item/fu-grid-item.vue +31 -35
  35. package/components/fu-grid-item/props.js +11 -3
  36. package/components/fu-icon/fu-icon.vue +110 -0
  37. package/components/fu-icon/fuicon.css +584 -0
  38. package/components/{fu-icons/icons.js → fu-icon/fuicon.js} +1031 -1031
  39. package/components/{fu-icons/fuicons.ttf → fu-icon/fuicon.ttf} +0 -0
  40. package/components/fu-icon/props.js +55 -0
  41. package/components/fu-image/fu-image.vue +15 -10
  42. package/components/fu-image/props.js +69 -18
  43. package/components/fu-index-anchor/fu-index-anchor.vue +6 -5
  44. package/components/fu-index-anchor/props.js +20 -6
  45. package/components/fu-index-item/fu-index-item.vue +4 -4
  46. package/components/fu-index-list/fu-index-list.vue +9 -9
  47. package/components/fu-index-list/props.js +19 -6
  48. package/components/fu-input/fu-input.vue +54 -68
  49. package/components/fu-input/props.js +145 -53
  50. package/components/fu-keyboard/fu-keyboard.vue +19 -9
  51. package/components/fu-keyboard/keyboard-car.vue +33 -22
  52. package/components/fu-keyboard/keyboard-number.vue +17 -9
  53. package/components/fu-keyboard/props.js +66 -17
  54. package/components/fu-line/fu-line.vue +17 -13
  55. package/components/fu-line/props.js +30 -5
  56. package/components/fu-link/fu-link.vue +14 -8
  57. package/components/fu-link/props.js +22 -7
  58. package/components/fu-loading/fu-loading.vue +32 -27
  59. package/components/fu-loading/props.js +28 -8
  60. package/components/fu-loading-more/fu-loading-more.vue +19 -23
  61. package/components/fu-loading-more/props.js +27 -13
  62. package/components/fu-modal/fu-modal.vue +11 -6
  63. package/components/fu-modal/props.js +61 -17
  64. package/components/{fu-nav-bar/fu-nav-bar.vue → fu-navbar/fu-navbar.vue} +37 -44
  65. package/components/fu-notice-bar/fu-notice-bar.vue +10 -8
  66. package/components/fu-notice-bar/notice-column.vue +187 -122
  67. package/components/fu-notice-bar/notice-row.vue +85 -28
  68. package/components/fu-notice-bar/props.js +83 -22
  69. package/components/fu-number-box/fu-number-box.vue +26 -28
  70. package/components/fu-number-box/props.js +37 -11
  71. package/components/fu-parse/fu-parse.vue +0 -1
  72. package/components/fu-picker/fu-picker.vue +22 -17
  73. package/components/fu-picker/props.js +70 -19
  74. package/components/fu-popup/fu-popup.vue +38 -43
  75. package/components/fu-popup/props.js +34 -9
  76. package/components/fu-progress/fu-progress.vue +3 -2
  77. package/components/fu-progress/props.js +36 -9
  78. package/components/fu-rate/fu-rate.vue +40 -32
  79. package/components/fu-rate/props.js +47 -13
  80. package/components/fu-read-more/fu-read-more.vue +19 -14
  81. package/components/fu-read-more/props.js +68 -46
  82. package/components/fu-ribbon/fu-ribbon.vue +8 -7
  83. package/components/fu-ribbon/props.js +15 -4
  84. package/components/fu-scroll-list/fu-scroll-list.vue +18 -34
  85. package/components/fu-scroll-list/props.js +19 -10
  86. package/components/fu-search/fu-search.vue +13 -18
  87. package/components/fu-search/props.js +69 -17
  88. package/components/fu-section/fu-section.vue +19 -22
  89. package/components/fu-section/props.js +30 -4
  90. package/components/fu-sign-board/fu-sign-board.vue +34 -17
  91. package/components/fu-sign-board/props.js +15 -5
  92. package/components/fu-skeleton/fu-skeleton.vue +8 -12
  93. package/components/fu-skeleton/props.js +15 -4
  94. package/components/fu-steps/fu-steps.vue +3 -2
  95. package/components/fu-steps/props.js +23 -7
  96. package/components/fu-steps-item/fu-steps-item.vue +3 -3
  97. package/components/fu-steps-item/props.js +15 -5
  98. package/components/fu-sticky/fu-sticky.vue +3 -3
  99. package/components/fu-sticky/props.js +21 -7
  100. package/components/fu-subsection/fu-subsection.vue +29 -22
  101. package/components/fu-subsection/props.js +40 -10
  102. package/components/fu-swipe-action-item/bindingx.js +1 -1
  103. package/components/fu-swipe-action-item/fu-swipe-action-item.vue +134 -123
  104. package/components/fu-swipe-action-item/mpwxs.js +1 -1
  105. package/components/fu-swipe-action-item/props.js +22 -6
  106. package/components/fu-swiper/fu-swiper.vue +29 -27
  107. package/components/fu-swiper/props.js +81 -25
  108. package/components/fu-switch/fu-switch.vue +20 -12
  109. package/components/fu-switch/props.js +48 -13
  110. package/components/fu-tabs/fu-tabs.vue +36 -33
  111. package/components/fu-tabs/props.js +46 -13
  112. package/components/fu-tag/fu-tag.vue +24 -21
  113. package/components/fu-tag/props.js +63 -17
  114. package/components/fu-text/fu-text.vue +72 -33
  115. package/components/fu-text/props.js +85 -27
  116. package/components/fu-text/value.js +6 -6
  117. package/components/fu-textarea/fu-textarea.vue +13 -17
  118. package/components/fu-textarea/props.js +103 -30
  119. package/components/fu-timeaxis/fu-timeaxis.vue +1 -1
  120. package/components/fu-timeaxis-item/fu-timeaxis-item.vue +8 -4
  121. package/components/fu-transition/fu-transition.vue +48 -49
  122. package/components/fu-transition/props.js +21 -0
  123. package/components/fu-upload/fu-upload.vue +3 -1
  124. package/components/fu-upload/props.js +67 -19
  125. package/components/fu-upload/upload-file.vue +31 -18
  126. package/components/fu-upload/upload-image.vue +37 -19
  127. package/components/fu-vtabs/fu-vtabs.vue +6 -4
  128. package/components/fu-vtabs/props.js +50 -15
  129. package/components/fu-waterfall/fu-waterfall.vue +11 -9
  130. package/components/fu-waterfall/props.js +37 -15
  131. package/index.js +17 -24
  132. package/index.scss +9 -7
  133. package/libs/config/config.js +16 -9
  134. package/libs/function/applyEven.js +9 -9
  135. package/libs/function/check.js +81 -89
  136. package/libs/function/{index.js → common.js} +5 -5
  137. package/libs/function/message.js +0 -27
  138. package/libs/mixin/mixin.js +26 -21
  139. package/libs/{utils/min.router.config.js → route/min.route.config.js} +7 -7
  140. package/libs/{utils/router.config.js → route/route.config.js} +10 -11
  141. package/libs/{css/main.scss → style/common.scss} +50 -87
  142. package/libs/style/style.h5.scss +8 -0
  143. package/libs/style/style.mp.scss +15 -0
  144. package/package.json +1 -1
  145. package/components/fu-calendar/calendar-item.vue +0 -214
  146. package/components/fu-calendar/calendar.js +0 -546
  147. package/components/fu-calendar/fu-calendar.vue +0 -536
  148. package/components/fu-calendar/i18n/en.json +0 -12
  149. package/components/fu-calendar/i18n/index.js +0 -8
  150. package/components/fu-calendar/i18n/zh-Hans.json +0 -12
  151. package/components/fu-calendar/i18n/zh-Hant.json +0 -12
  152. package/components/fu-calendar/util.js +0 -360
  153. package/components/fu-date-picker/calendar-item.vue +0 -177
  154. package/components/fu-date-picker/calendar.vue +0 -917
  155. package/components/fu-date-picker/fu-date-picker.vue +0 -1069
  156. package/components/fu-date-picker/i18n/en.json +0 -22
  157. package/components/fu-date-picker/i18n/index.js +0 -8
  158. package/components/fu-date-picker/i18n/zh-Hans.json +0 -22
  159. package/components/fu-date-picker/i18n/zh-Hant.json +0 -22
  160. package/components/fu-date-picker/props.js +0 -68
  161. package/components/fu-date-picker/time-picker.vue +0 -924
  162. package/components/fu-date-picker/util.js +0 -419
  163. package/components/fu-icons/fu-icons.vue +0 -102
  164. package/components/fu-icons/fuicons.css +0 -585
  165. package/components/fu-landscape/fu-landscape.vue +0 -167
  166. package/components/fu-landscape/props.js +0 -64
  167. package/components/fu-tabbar/fu-tabbar.vue +0 -333
  168. package/components/fu-tabbar/props.js +0 -78
  169. package/libs/css/style.h5.scss +0 -35
  170. package/libs/css/style.mp.scss +0 -50
  171. package/libs/utils/util.js +0 -58
  172. /package/components/{fu-nav-bar → fu-navbar}/props.js +0 -0
  173. /package/components/{fu-nav-bar → fu-navbar}/status-bar.vue +0 -0
  174. /package/{components/fu-datetime-picker → libs/function}/dayjs.js +0 -0
  175. /package/libs/{css → style}/color.scss +0 -0
  176. /package/libs/{css/component.scss → style/components.scss} +0 -0
@@ -1,29 +1,34 @@
1
- import * as index from '../function/index.js'
2
- import * as check from '../function/check.js'
1
+ import * as common from '../function/common.js'
2
+ import check from '../function/check.js'
3
3
  import { debounce, throttle } from '../function/applyEven.js'
4
4
 
5
5
  export default {
6
6
  // 定义每个组件都可能需要用到的外部样式以及类名
7
7
  props: {
8
- // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
8
+ /**
9
+ * @description 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
10
+ */
9
11
  customStyle: {
10
12
  type: [Object,String],
11
13
  default: () => ({})
12
14
  },
15
+ /**
16
+ * @description 每个组件都有的父组件传递的样式类
17
+ */
13
18
  customClass: {
14
19
  type: String,
15
20
  default: ''
16
21
  },
17
22
  // 背景颜色
18
- bgColor: {
19
- type: String,
20
- default: ''
21
- },
22
- // 字体颜色
23
- color: {
24
- type: String,
25
- default: ''
26
- }
23
+ // bgColor: {
24
+ // type: String,
25
+ // default: ''
26
+ // },
27
+ // // 字体颜色
28
+ // color: {
29
+ // type: String,
30
+ // default: ''
31
+ // }
27
32
  },
28
33
  onLoad() {
29
34
  // getRect挂载到$fu上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
@@ -34,15 +39,15 @@ export default {
34
39
  this.$fu.getRect = this.$fuGetRect;
35
40
  },
36
41
  computed: {
37
- $fu() {
38
- const obj = {
39
- ...index,
40
- debounce,
41
- throttle,
42
- ...check
43
- };
44
- return obj
45
- }
42
+ // $fu() {
43
+ // const obj = {
44
+ // ...index,
45
+ // debounce,
46
+ // throttle,
47
+ // ...check
48
+ // };
49
+ // return obj
50
+ // }
46
51
  },
47
52
  methods: {
48
53
  // 查询节点信息
@@ -129,16 +129,16 @@ function install(Vue, routerConfig) {
129
129
  uni.$fu.$parseURL = parseURL.bind(globalProperties)
130
130
  }
131
131
 
132
- function minRouterConfig(options) {
133
- if (!(this instanceof minRouterConfig)) {
134
- throw Error("minRouterConfig是一个构造函数,应该用`new`关键字调用")
132
+ function minRouteConfig(options) {
133
+ if (!(this instanceof minRouteConfig)) {
134
+ throw Error("minRouteConfig是一个构造函数,应该用`new`关键字调用")
135
135
  }
136
136
  isDefault(options) && (options = {})
137
137
  this.options = options;
138
138
  this._router = options.routes || [];
139
139
  }
140
140
 
141
- minRouterConfig.install = install;
142
- minRouterConfig.prototype.openPage = openPage;
143
- minRouterConfig.prototype.parseURL = parseURL;
144
- export default minRouterConfig;
141
+ minRouteConfig.install = install;
142
+ minRouteConfig.prototype.openPage = openPage;
143
+ minRouteConfig.prototype.parseURL = parseURL;
144
+ export default minRouteConfig;
@@ -9,7 +9,7 @@
9
9
  * import { getCurrentInstance } from 'vue';
10
10
  * const { $openPage } = getCurrentInstance().appContext.config.globalProperties;
11
11
  * $openPage({name: 'my', query: {id: 123}, type: 'navigateTo'}) 传参方式
12
- * $openPage('my') 不传参数可以简写
12
+ * $openPage('my') 不传参数可以简写
13
13
  * Vue2 和 Vue3
14
14
  * 视图中可直接使用 $openPage('my')
15
15
  * 配置参数项说明:
@@ -18,17 +18,14 @@
18
18
  * type 跳转的方式 ['navigateTo', 'switchTab', 'reLaunch', 'redirectTo'] 不传默认navigateTo
19
19
  */
20
20
  import pagesJson from '@/pages.json'
21
- import minRouterConfig from './min.router.config.js'
21
+ import minRouteConfig from './min.route.config.js'
22
+
22
23
 
23
24
  // 处理 pages 数组
24
25
  function processPages(pages) {
25
26
  return pages.map(page => {
26
- if (!page.name) {
27
- throw Error(`Page is missing the 'name' property: ${JSON.stringify(page)}`);
28
- }
29
-
30
27
  const processedPage = {
31
- name: page.name,
28
+ name: page.name || page.path,
32
29
  path: page.path
33
30
  }
34
31
 
@@ -39,17 +36,19 @@ function processPages(pages) {
39
36
 
40
37
  return processedPage
41
38
  });
39
+ return []
42
40
  }
43
41
 
44
42
  // 处理 subPackages 数组
45
43
  function processSubPackages(subPackages) {
46
- if(!subPackages) return []
47
-
44
+ if (!subPackages) return []
45
+
48
46
  let routes = [];
49
47
  subPackages.forEach(subPackage => {
50
48
  routes = routes.concat(processPages(subPackage.pages).map(page => {
51
49
  return {
52
50
  ...page,
51
+ name: page.name || subPackage.root + '/' + page.path,
53
52
  path: subPackage.root + '/' + page.path
54
53
  };
55
54
  }));
@@ -57,11 +56,11 @@ function processSubPackages(subPackages) {
57
56
  return routes;
58
57
  }
59
58
 
60
- const router = new minRouterConfig({
59
+ const route = new minRouteConfig({
61
60
  routes: [ // 权限路由 在main.js可实现路由拦截 所以路由都需要注册
62
61
  ...processPages(pagesJson.pages),
63
62
  ...processSubPackages(pagesJson.subPackages)
64
63
  ]
65
64
  })
66
65
 
67
- export default router
66
+ export default route
@@ -22,7 +22,7 @@ $cursor: (
22
22
 
23
23
  /* #ifndef APP-NVUE */
24
24
  /* gap 间距 */
25
- $gap: (5, 10, 15, 20, 25, 30, 35, 40);
25
+ $gap: (5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100);
26
26
  @each $i in $gap {
27
27
  // 结果如: fu-gap-20
28
28
  .fu-gap-#{$i} {
@@ -57,11 +57,11 @@ $gap: (5, 10, 15, 20, 25, 30, 35, 40);
57
57
 
58
58
  /* flex 伸缩基准值 */
59
59
  /* #ifndef APP-NVUE */
60
- $flex-basis-values: (0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100);
60
+ $flex-basis-values: (5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100);
61
61
  @each $i in $flex-basis-values {
62
62
  // 结果如: fu-flex-basic-20
63
63
  .fu-flex-basic-#{$i} {
64
- flex-basis: #{$i * 1%}!important;
64
+ flex-basis: #{$i * 1%};
65
65
  }
66
66
  }
67
67
  /* #endif */
@@ -141,11 +141,9 @@ $flex-properties: (
141
141
  }
142
142
 
143
143
  /* flex 设置不被压缩 */
144
- /* #ifndef APP-NVUE */
145
144
  .fu-flex-shrink {
146
- flex-shrink: 0;
145
+ flex: 0 0 auto;
147
146
  }
148
- /* #endif */
149
147
 
150
148
  /* #ifndef APP-NVUE */
151
149
  /* white-space 空白字符是否合并,以及如何合并。是否换行,以及如何换行。 */
@@ -211,42 +209,42 @@ $z-index: (1, 9, 99, 999);
211
209
  @for $i from 0 through 200 {
212
210
  // fu-t-0 在相对盒子范围内
213
211
  .fu-t-#{$i} {
214
- top: $i + rpx!important;
212
+ top: $i + rpx;
215
213
  }
216
214
 
217
215
  // fu-t--5 超出相对盒子范围
218
216
  .fu-t--#{$i} {
219
- top: - $i + rpx!important;
217
+ top: - $i + rpx;
220
218
  }
221
219
 
222
220
  // fu-b-0 在相对盒子范围内
223
221
  .fu-b-#{$i} {
224
- bottom: $i + rpx!important;
222
+ bottom: $i + rpx;
225
223
  }
226
224
 
227
225
  // fu-b--5 超出相对盒子范围
228
226
  .fu-b--#{$i} {
229
- bottom: - $i + rpx!important;
227
+ bottom: - $i + rpx;
230
228
  }
231
229
 
232
230
  // fu-l-0 在相对盒子范围内
233
231
  .fu-l-#{$i} {
234
- left: $i + rpx!important;
232
+ left: $i + rpx;
235
233
  }
236
234
 
237
235
  // fu-l--5 超出相对盒子范围
238
236
  .fu-l--#{$i} {
239
- left: - $i + rpx!important;
237
+ left: - $i + rpx;
240
238
  }
241
239
 
242
240
  // fu-r-0 在相对盒子范围内
243
241
  .fu-r-#{$i} {
244
- right: $i + rpx!important;
242
+ right: $i + rpx;
245
243
  }
246
244
 
247
245
  // fu-r--5 超出相对盒子范围
248
246
  .fu-r--#{$i} {
249
- right: - $i + rpx!important;
247
+ right: - $i + rpx;
250
248
  }
251
249
  }
252
250
 
@@ -256,64 +254,53 @@ $z-index: (1, 9, 99, 999);
256
254
  @if $i % 2 == 0 or $i % 5 == 0 {
257
255
  // 得出:fu-m-30
258
256
  .fu-m-#{$i} {
259
- margin: $i + rpx!important;
257
+ margin: $i + rpx;
260
258
  }
261
259
 
262
260
  // 缩写版,结果如: fu-m-x-30
263
261
  .fu-m-x-#{$i} {
264
- margin-left: $i + rpx !important;
265
- margin-right: $i + rpx !important;
262
+ margin-left: $i + rpx ;
263
+ margin-right: $i + rpx ;
266
264
  }
267
265
 
268
266
  // 缩写版,结果如: fu-m-y-30
269
267
  .fu-m-y-#{$i} {
270
- margin-top: $i + rpx !important;
271
- margin-bottom: $i + rpx !important;
268
+ margin-top: $i + rpx ;
269
+ margin-bottom: $i + rpx ;
272
270
  }
273
271
 
274
272
  // 得出:fu-p-30
275
273
  .fu-p-#{$i} {
276
- padding: $i + rpx!important;
274
+ padding: $i + rpx;
277
275
  }
278
276
 
279
277
  // 缩写版,结果如: fu-p-x-30
280
278
  .fu-p-x-#{$i} {
281
- padding-left: $i + rpx!important;
282
- padding-right: $i + rpx!important;
279
+ padding-left: $i + rpx;
280
+ padding-right: $i + rpx;
283
281
  }
284
282
 
285
283
  // 缩写版,结果如: fu-p-y-30
286
284
  .fu-p-y-#{$i} {
287
- padding-top: $i + rpx!important;
288
- padding-bottom: $i + rpx!important;
285
+ padding-top: $i + rpx;
286
+ padding-bottom: $i + rpx;
289
287
  }
290
288
 
291
289
  @each $short, $long in l left, t top, r right, b bottom {
292
290
  // 缩写版,结果如: fu-m-l-30
293
291
  // 定义外边距
294
292
  .fu-m-#{$short}-#{$i} {
295
- margin-#{$long}: $i + rpx!important;
293
+ margin-#{$long}: $i + rpx;
296
294
  }
297
295
 
298
296
  // 缩写版,结果如: fu-m-l--30
299
297
  .fu-m-#{$short}--#{$i} {
300
- margin-#{$long}: - $i + rpx!important;
298
+ margin-#{$long}: - $i + rpx;
301
299
  }
302
300
 
303
301
  // 定义内边距
304
302
  .fu-p-#{$short}-#{$i} {
305
- padding-#{$long}: $i + rpx!important;
306
- }
307
-
308
- // 完整版,结果如:fu-margin-left-30
309
- // 定义外边距
310
- .fu-margin-#{$long}-#{$i} {
311
- margin-#{$long}: $i + rpx!important;
312
- }
313
-
314
- // 定义内边距
315
- .fu-padding-#{$long}-#{$i} {
316
- padding-#{$long}: $i + rpx!important;
303
+ padding-#{$long}: $i + rpx;
317
304
  }
318
305
  }
319
306
  }
@@ -322,17 +309,17 @@ $z-index: (1, 9, 99, 999);
322
309
  @each $short, $long in l left, r right, t top, b bottom {
323
310
  // 定义外间距最后一个为0
324
311
  .fu-m-l-#{$short}:last-child {
325
- margin-#{$long}: 0 !important;
312
+ margin-#{$long}: 0 ;
326
313
  }
327
314
 
328
315
  // 定义外间距第一个为0
329
316
  .fu-m-f-#{$short}:first-child {
330
- margin-#{$long}: 0 !important;
317
+ margin-#{$long}: 0 ;
331
318
  }
332
319
 
333
320
  // 定义边框第一个为0
334
321
  .fu-br-#{$short}:last-child {
335
- border-#{$long}: 0 !important;
322
+ border-#{$long}: 0 ;
336
323
  }
337
324
  }
338
325
 
@@ -342,41 +329,37 @@ $z-index: (1, 9, 99, 999);
342
329
  @if $i % 2 == 0 or $i % 5 == 0 {
343
330
  // 得出:fu-b-r-30
344
331
  .fu-b-r-#{$i} {
345
- border-radius: $i + rpx!important;
346
- }
347
-
348
- .fu-b-r-p-#{$i} {
349
- border-radius: #{$i * 1%} !important;
332
+ border-radius: $i + rpx;
350
333
  }
351
334
 
352
335
  /* #ifndef APP-NVUE */
353
336
  @each $short, $long in l left, t top, r right, b bottom {
354
- // 缩写版,结果如: fu-b-r-t-30/fu-b-r-t-30
337
+ // 缩写版,结果如: fu-b-r-t-30 & fu-b-r-t-30
355
338
  // 定义top圆角
356
339
  .fu-b-r-t-#{$i} {
357
- border-top-#{$long}-radius: $i + rpx!important;
358
- border-top-#{$long}-radius: $i + rpx!important;
340
+ border-top-#{$long}-radius: $i + rpx;
341
+ border-top-#{$long}-radius: $i + rpx;
359
342
  }
360
343
 
361
- // 完整版,结果如:fu-b-r-b-30/fu-b-r-b-30
344
+ // 缩写版,结果如:fu-b-r-b-30 & fu-b-r-b-30
362
345
  // 定义bottom圆角
363
346
  .fu-b-r-b-#{$i} {
364
- border-bottom-#{$long}-radius: $i + rpx!important;
365
- border-bottom-#{$long}-radius: $i + rpx!important;
347
+ border-bottom-#{$long}-radius: $i + rpx;
348
+ border-bottom-#{$long}-radius: $i + rpx;
366
349
  }
367
350
 
368
- // 缩写版,结果如: fu-b-r-t-l-30/fu-b-r-t-r-30
351
+ // 缩写版,结果如: fu-b-r-t-l-30 & fu-b-r-t-r-30
369
352
  // 定义top-left, top-right圆角
370
353
  .fu-b-r-t-#{$short}-#{$i} {
371
- border-top-#{$long}-radius: $i + rpx!important;
372
- border-top-#{$long}-radius: $i + rpx!important;
354
+ border-top-#{$long}-radius: $i + rpx;
355
+ border-top-#{$long}-radius: $i + rpx;
373
356
  }
374
357
 
375
- // 完整版,结果如:fu-b-r-b-l-30/fu-b-r-b-r-30
358
+ // 缩写版,结果如:fu-b-r-b-l-30 & fu-b-r-b-r-30
376
359
  // 定义bottom-left, bottom-right圆角
377
360
  .fu-b-r-b-#{$short}-#{$i} {
378
- border-bottom-#{$long}-radius: $i + rpx!important;
379
- border-bottom-#{$long}-radius: $i + rpx!important;
361
+ border-bottom-#{$long}-radius: $i + rpx;
362
+ border-bottom-#{$long}-radius: $i + rpx;
380
363
  }
381
364
  }
382
365
  /* #endif */
@@ -386,39 +369,19 @@ $z-index: (1, 9, 99, 999);
386
369
  // 定义宽度
387
370
  @for $i from 0 through 750 {
388
371
  .fu-w-#{$i} {
389
- width: $i+rpx!important;
390
- }
391
-
392
- /* #ifndef APP-NVUE */
393
- .fu-min-w-#{$i} { // 最小高度
394
- min-width: $i+rpx!important;
395
- }
396
-
397
- .fu-max-w-#{$i} { // 最大高度
398
- max-width: $i+rpx!important;
372
+ width: $i + rpx;
399
373
  }
400
- /* #endif */
401
374
  }
402
375
 
403
- // 定义高度 垂直高度 最小高度 最大高度
376
+ // 定义高度 垂直高度
404
377
  @for $i from 0 through 200 {
405
378
  .fu-h-#{$i} { // 高度
406
- height: $i + rpx!important;
379
+ height: $i + rpx;
407
380
  }
408
381
 
409
382
  .fu-l-h-#{$i} { // 垂直高度
410
- line-height: $i + rpx!important;
383
+ line-height: $i + rpx;
411
384
  }
412
-
413
- /* #ifndef APP-NVUE */
414
- .fu-min-h-#{$i} { // 最小高度
415
- min-height: $i + rpx!important;
416
- }
417
-
418
- .fu-max-h-#{$i} { // 最大高度
419
- max-height: $i + rpx!important;
420
- }
421
- /* #endif */
422
385
  }
423
386
 
424
387
  // 定义透明度
@@ -466,7 +429,7 @@ $z-index: (1, 9, 99, 999);
466
429
  // 定义字体大小
467
430
  @for $i from 0 through 100 {
468
431
  .fu-font-#{$i} {
469
- font-size: $i + rpx!important;
432
+ font-size: $i + rpx;
470
433
  }
471
434
  }
472
435
 
@@ -501,12 +464,12 @@ $font-weight: (
501
464
  white-space: nowrap;
502
465
  text-overflow: ellipsis;
503
466
  } @else {
504
- display: -webkit-box!important;
467
+ display: -webkit-box;
505
468
  overflow: hidden;
506
469
  text-overflow: ellipsis;
507
470
  word-break: break-all;
508
471
  -webkit-line-clamp: $i;
509
- -webkit-box-orient: vertical!important;
472
+ -webkit-box-orient: vertical;
510
473
  }
511
474
  /* #endif */
512
475
  }
@@ -515,7 +478,7 @@ $font-weight: (
515
478
  // 文本 underline下划线 line-through删除线
516
479
  @each $start, $long in underline underline, line-through line-through {
517
480
  .fu-text-#{$start} {
518
- text-decoration: $long !important;
481
+ text-decoration: $long ;
519
482
  }
520
483
  }
521
484
 
@@ -535,6 +498,6 @@ $text-align: (
535
498
 
536
499
  @each $start, $long in l left, r right, c center {
537
500
  .fu-text-#{$start} {
538
- text-align: $long !important;
501
+ text-align: $long ;
539
502
  }
540
503
  }
@@ -0,0 +1,8 @@
1
+ /* H5的时候,隐藏滚动条 */
2
+ ::-webkit-scrollbar {
3
+ display: none;
4
+ width: 0 !important;
5
+ height: 0 !important;
6
+ -webkit-appearance: none;
7
+ background: transparent;
8
+ }
@@ -0,0 +1,15 @@
1
+ @import './style.h5.scss';
2
+
3
+ /* 微信小程序编译后页面有组件名的元素,特别处理 start */
4
+ /* #ifdef MP-WEIXIN || MP-QQ */
5
+ // 各家小程序宫格组件外层设置为100%,避免受到父元素display: flex;的影响
6
+
7
+ /* #endif */
8
+ /* 微信小程序编译后页面有组件名的元素,特别处理 end */
9
+
10
+ /* 头条小程序编译后页面有组件名的元素,特别处理 start */
11
+ /* #ifdef MP-TOUTIAO */
12
+ // 各家小程序宫格组件外层设置为100%,避免受到父元素display: flex;的影响
13
+
14
+ /* #endif */
15
+ /* 头条小程序编译后页面有组件名的元素,特别处理 end */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusions-ui",
3
- "version": "1.2.4",
3
+ "version": "1.2.7",
4
4
  "description": "FusionsUI Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {