fusions-ui 1.2.3 → 1.2.6
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/components/fu-avatar/fu-avatar.vue +4 -2
- package/components/fu-avatar/props.js +52 -15
- package/components/fu-avatar-group/fu-avatar-group.vue +3 -2
- package/components/fu-avatar-group/props.js +31 -9
- package/components/fu-badge/fu-badge.vue +8 -14
- package/components/fu-badge/props.js +56 -16
- package/components/fu-banner-arc/fu-banner-arc.vue +4 -5
- package/components/fu-banner-arc/props.js +15 -4
- package/components/fu-button/fu-button.vue +18 -19
- package/components/fu-button/props.js +108 -35
- package/components/fu-cell/fu-cell.vue +9 -8
- package/components/fu-cell-group/fu-cell-group.vue +2 -1
- package/components/fu-cell-group/props.js +7 -2
- package/components/fu-checkbox/fu-checkbox.vue +5 -4
- package/components/fu-checkbox/props.js +51 -14
- package/components/fu-code-input/fu-code-input.vue +10 -6
- package/components/fu-code-input/props.js +66 -17
- package/components/fu-code-verify/fu-code-verify.vue +9 -5
- package/components/fu-code-verify/props.js +64 -17
- package/components/fu-collapse/fu-collapse.vue +10 -3
- package/components/fu-collapse/props.js +9 -3
- package/components/fu-collapse-item/fu-collapse-item.vue +45 -31
- package/components/fu-collapse-item/props.js +49 -16
- package/components/fu-countdown/fu-countdown.vue +2 -1
- package/components/fu-countdown/props.js +15 -4
- package/components/fu-datetime-picker/fu-datetime-picker.vue +6 -5
- package/components/fu-datetime-picker/props.js +91 -25
- package/components/fu-form/fu-form.vue +2 -1
- package/components/fu-form/props.js +34 -6
- package/components/fu-form-item/fu-form-item.vue +46 -56
- package/components/fu-form-item/props.js +34 -7
- package/components/fu-grid/fu-grid.vue +16 -17
- package/components/fu-grid/props.js +20 -5
- package/components/fu-grid-item/fu-grid-item.vue +31 -35
- package/components/fu-grid-item/props.js +11 -3
- package/components/fu-icon/fu-icon.vue +107 -0
- package/components/fu-icon/icon.css +584 -0
- package/components/{fu-icons/icons.js → fu-icon/icon.js} +1031 -1031
- package/components/{fu-icons/fuicons.ttf → fu-icon/icon.ttf} +0 -0
- package/components/fu-icon/props.js +55 -0
- package/components/fu-image/fu-image.vue +15 -10
- package/components/fu-image/props.js +69 -18
- package/components/fu-index-anchor/fu-index-anchor.vue +6 -5
- package/components/fu-index-anchor/props.js +20 -6
- package/components/fu-index-item/fu-index-item.vue +4 -4
- package/components/fu-index-list/fu-index-list.vue +9 -9
- package/components/fu-index-list/props.js +19 -6
- package/components/fu-input/fu-input.vue +54 -68
- package/components/fu-input/props.js +145 -53
- package/components/fu-keyboard/fu-keyboard.vue +19 -9
- package/components/fu-keyboard/keyboard-car.vue +33 -22
- package/components/fu-keyboard/keyboard-number.vue +17 -9
- package/components/fu-keyboard/props.js +66 -17
- package/components/fu-line/fu-line.vue +17 -13
- package/components/fu-line/props.js +30 -5
- package/components/fu-link/fu-link.vue +14 -8
- package/components/fu-link/props.js +22 -7
- package/components/fu-loading/fu-loading.vue +32 -27
- package/components/fu-loading/props.js +28 -8
- package/components/fu-loading-more/fu-loading-more.vue +19 -23
- package/components/fu-loading-more/props.js +27 -13
- package/components/fu-modal/fu-modal.vue +11 -6
- package/components/fu-modal/props.js +61 -17
- package/components/{fu-nav-bar/fu-nav-bar.vue → fu-navbar/fu-navbar.vue} +37 -44
- package/components/fu-notice-bar/fu-notice-bar.vue +10 -8
- package/components/fu-notice-bar/notice-column.vue +187 -122
- package/components/fu-notice-bar/notice-row.vue +85 -28
- package/components/fu-notice-bar/props.js +83 -22
- package/components/fu-number-box/fu-number-box.vue +26 -28
- package/components/fu-number-box/props.js +37 -11
- package/components/fu-parse/fu-parse.vue +0 -1
- package/components/fu-picker/fu-picker.vue +22 -17
- package/components/fu-picker/props.js +70 -19
- package/components/fu-popup/fu-popup.vue +39 -44
- package/components/fu-popup/props.js +34 -9
- package/components/fu-progress/fu-progress.vue +3 -2
- package/components/fu-progress/props.js +36 -9
- package/components/fu-rate/fu-rate.vue +40 -32
- package/components/fu-rate/props.js +47 -13
- package/components/fu-read-more/fu-read-more.vue +19 -14
- package/components/fu-read-more/props.js +68 -46
- package/components/fu-ribbon/fu-ribbon.vue +8 -7
- package/components/fu-ribbon/props.js +15 -4
- package/components/fu-scroll-list/fu-scroll-list.vue +18 -34
- package/components/fu-scroll-list/props.js +19 -10
- package/components/fu-search/fu-search.vue +13 -18
- package/components/fu-search/props.js +69 -17
- package/components/fu-section/fu-section.vue +19 -22
- package/components/fu-section/props.js +30 -4
- package/components/fu-sign-board/fu-sign-board.vue +18 -3
- package/components/fu-sign-board/props.js +15 -5
- package/components/fu-skeleton/fu-skeleton.vue +8 -12
- package/components/fu-skeleton/props.js +15 -4
- package/components/fu-steps/fu-steps.vue +3 -2
- package/components/fu-steps/props.js +23 -7
- package/components/fu-steps-item/fu-steps-item.vue +3 -3
- package/components/fu-steps-item/props.js +15 -5
- package/components/fu-sticky/fu-sticky.vue +3 -3
- package/components/fu-sticky/props.js +21 -7
- package/components/fu-subsection/fu-subsection.vue +29 -22
- package/components/fu-subsection/props.js +40 -10
- package/components/fu-swipe-action-item/bindingx.js +1 -1
- package/components/fu-swipe-action-item/fu-swipe-action-item.vue +134 -123
- package/components/fu-swipe-action-item/mpwxs.js +1 -1
- package/components/fu-swipe-action-item/props.js +22 -6
- package/components/fu-swiper/fu-swiper.vue +26 -24
- package/components/fu-swiper/props.js +80 -24
- package/components/fu-switch/fu-switch.vue +20 -12
- package/components/fu-switch/props.js +48 -13
- package/components/fu-tabs/fu-tabs.vue +36 -33
- package/components/fu-tabs/props.js +46 -13
- package/components/fu-tag/fu-tag.vue +24 -21
- package/components/fu-tag/props.js +63 -17
- package/components/fu-text/fu-text.vue +72 -33
- package/components/fu-text/props.js +85 -27
- package/components/fu-text/value.js +6 -6
- package/components/fu-textarea/fu-textarea.vue +13 -17
- package/components/fu-textarea/props.js +103 -30
- package/components/fu-timeaxis/fu-timeaxis.vue +1 -1
- package/components/fu-timeaxis-item/fu-timeaxis-item.vue +8 -4
- package/components/fu-transition/fu-transition.vue +48 -49
- package/components/fu-transition/props.js +21 -0
- package/components/fu-upload/fu-upload.vue +3 -1
- package/components/fu-upload/props.js +67 -19
- package/components/fu-upload/upload-file.vue +31 -18
- package/components/fu-upload/upload-image.vue +37 -19
- package/components/fu-vtabs/fu-vtabs.vue +6 -4
- package/components/fu-vtabs/props.js +50 -15
- package/components/fu-waterfall/fu-waterfall.vue +11 -9
- package/components/fu-waterfall/props.js +37 -15
- package/index.js +17 -24
- package/index.scss +9 -7
- package/libs/config/config.js +16 -9
- package/libs/function/applyEven.js +9 -9
- package/libs/function/check.js +81 -89
- package/libs/function/{index.js → common.js} +5 -5
- package/libs/function/message.js +0 -27
- package/libs/mixin/mixin.js +26 -21
- package/libs/{utils/min.router.config.js → route/min.route.config.js} +7 -7
- package/libs/{utils/router.config.js → route/route.config.js} +10 -11
- package/libs/{css/main.scss → style/common.scss} +50 -87
- package/libs/style/style.h5.scss +8 -0
- package/libs/style/style.mp.scss +15 -0
- package/package.json +1 -1
- package/components/fu-calendar/calendar-item.vue +0 -214
- package/components/fu-calendar/calendar.js +0 -546
- package/components/fu-calendar/fu-calendar.vue +0 -536
- package/components/fu-calendar/i18n/en.json +0 -12
- package/components/fu-calendar/i18n/index.js +0 -8
- package/components/fu-calendar/i18n/zh-Hans.json +0 -12
- package/components/fu-calendar/i18n/zh-Hant.json +0 -12
- package/components/fu-calendar/util.js +0 -360
- package/components/fu-date-picker/calendar-item.vue +0 -177
- package/components/fu-date-picker/calendar.vue +0 -917
- package/components/fu-date-picker/fu-date-picker.vue +0 -1069
- package/components/fu-date-picker/i18n/en.json +0 -22
- package/components/fu-date-picker/i18n/index.js +0 -8
- package/components/fu-date-picker/i18n/zh-Hans.json +0 -22
- package/components/fu-date-picker/i18n/zh-Hant.json +0 -22
- package/components/fu-date-picker/props.js +0 -68
- package/components/fu-date-picker/time-picker.vue +0 -924
- package/components/fu-date-picker/util.js +0 -419
- package/components/fu-icons/fu-icons.vue +0 -102
- package/components/fu-icons/fuicons.css +0 -585
- package/components/fu-landscape/fu-landscape.vue +0 -167
- package/components/fu-landscape/props.js +0 -64
- package/components/fu-tabbar/fu-tabbar.vue +0 -333
- package/components/fu-tabbar/props.js +0 -78
- package/libs/css/style.h5.scss +0 -35
- package/libs/css/style.mp.scss +0 -50
- package/libs/utils/util.js +0 -58
- /package/components/{fu-nav-bar → fu-navbar}/props.js +0 -0
- /package/components/{fu-nav-bar → fu-navbar}/status-bar.vue +0 -0
- /package/{components/fu-datetime-picker → libs/function}/dayjs.js +0 -0
- /package/libs/{css → style}/color.scss +0 -0
- /package/libs/{css/component.scss → style/components.scss} +0 -0
package/libs/mixin/mixin.js
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
// 字体颜色
|
|
23
|
-
color: {
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
133
|
-
if (!(this instanceof
|
|
134
|
-
throw Error("
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
export default
|
|
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
|
|
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
|
|
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
|
|
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: (
|
|
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%}
|
|
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
|
|
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
|
|
212
|
+
top: $i + rpx;
|
|
215
213
|
}
|
|
216
214
|
|
|
217
215
|
// fu-t--5 超出相对盒子范围
|
|
218
216
|
.fu-t--#{$i} {
|
|
219
|
-
top: - $i + rpx
|
|
217
|
+
top: - $i + rpx;
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
// fu-b-0 在相对盒子范围内
|
|
223
221
|
.fu-b-#{$i} {
|
|
224
|
-
bottom: $i + rpx
|
|
222
|
+
bottom: $i + rpx;
|
|
225
223
|
}
|
|
226
224
|
|
|
227
225
|
// fu-b--5 超出相对盒子范围
|
|
228
226
|
.fu-b--#{$i} {
|
|
229
|
-
bottom: - $i + rpx
|
|
227
|
+
bottom: - $i + rpx;
|
|
230
228
|
}
|
|
231
229
|
|
|
232
230
|
// fu-l-0 在相对盒子范围内
|
|
233
231
|
.fu-l-#{$i} {
|
|
234
|
-
left: $i + rpx
|
|
232
|
+
left: $i + rpx;
|
|
235
233
|
}
|
|
236
234
|
|
|
237
235
|
// fu-l--5 超出相对盒子范围
|
|
238
236
|
.fu-l--#{$i} {
|
|
239
|
-
left: - $i + rpx
|
|
237
|
+
left: - $i + rpx;
|
|
240
238
|
}
|
|
241
239
|
|
|
242
240
|
// fu-r-0 在相对盒子范围内
|
|
243
241
|
.fu-r-#{$i} {
|
|
244
|
-
right: $i + rpx
|
|
242
|
+
right: $i + rpx;
|
|
245
243
|
}
|
|
246
244
|
|
|
247
245
|
// fu-r--5 超出相对盒子范围
|
|
248
246
|
.fu-r--#{$i} {
|
|
249
|
-
right: - $i + rpx
|
|
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
|
|
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
|
|
265
|
-
margin-right: $i + rpx
|
|
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
|
|
271
|
-
margin-bottom: $i + rpx
|
|
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
|
|
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
|
|
282
|
-
padding-right: $i + rpx
|
|
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
|
|
288
|
-
padding-bottom: $i + rpx
|
|
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
|
|
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
|
|
298
|
+
margin-#{$long}: - $i + rpx;
|
|
301
299
|
}
|
|
302
300
|
|
|
303
301
|
// 定义内边距
|
|
304
302
|
.fu-p-#{$short}-#{$i} {
|
|
305
|
-
padding-#{$long}: $i + rpx
|
|
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
|
|
312
|
+
margin-#{$long}: 0 ;
|
|
326
313
|
}
|
|
327
314
|
|
|
328
315
|
// 定义外间距第一个为0
|
|
329
316
|
.fu-m-f-#{$short}:first-child {
|
|
330
|
-
margin-#{$long}: 0
|
|
317
|
+
margin-#{$long}: 0 ;
|
|
331
318
|
}
|
|
332
319
|
|
|
333
320
|
// 定义边框第一个为0
|
|
334
321
|
.fu-br-#{$short}:last-child {
|
|
335
|
-
border-#{$long}: 0
|
|
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
|
|
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
|
|
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
|
|
358
|
-
border-top-#{$long}-radius: $i + rpx
|
|
340
|
+
border-top-#{$long}-radius: $i + rpx;
|
|
341
|
+
border-top-#{$long}-radius: $i + rpx;
|
|
359
342
|
}
|
|
360
343
|
|
|
361
|
-
//
|
|
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
|
|
365
|
-
border-bottom-#{$long}-radius: $i + rpx
|
|
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
|
|
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
|
|
372
|
-
border-top-#{$long}-radius: $i + rpx
|
|
354
|
+
border-top-#{$long}-radius: $i + rpx;
|
|
355
|
+
border-top-#{$long}-radius: $i + rpx;
|
|
373
356
|
}
|
|
374
357
|
|
|
375
|
-
//
|
|
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
|
|
379
|
-
border-bottom-#{$long}-radius: $i + rpx
|
|
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
|
|
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
|
|
379
|
+
height: $i + rpx;
|
|
407
380
|
}
|
|
408
381
|
|
|
409
382
|
.fu-l-h-#{$i} { // 垂直高度
|
|
410
|
-
line-height: $i + rpx
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
501
|
+
text-align: $long ;
|
|
539
502
|
}
|
|
540
503
|
}
|
|
@@ -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 */
|