@nutui/nutui 3.1.17 → 3.1.18-beta.0
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/README.md +1 -1
- package/dist/nutui.es.js +179 -162
- package/dist/nutui.umd.js +183 -165
- package/dist/packages/_es/ActionSheet.js +7 -2
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +3 -3
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Cell.js +2 -2
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +4 -2
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +2 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -3
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +2 -2
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +18 -59
- package/dist/packages/_es/NoticeBar.js +38 -20
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +2 -1
- package/dist/packages/_es/Popover.js +4 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +3 -3
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +8 -3
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +7 -3
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +7 -2
- package/dist/packages/_es/Toast.js +15 -8
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +5 -7
- package/dist/packages/_es/index2.js +8 -31
- package/dist/packages/_es/index3.js +28 -56
- package/dist/packages/_es/index4.js +64 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/actionsheet/index.scss +7 -6
- package/dist/packages/button/index.scss +5 -5
- package/dist/packages/cell/index.scss +3 -3
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/navbar/index.scss +2 -0
- package/dist/packages/noticebar/index.scss +11 -5
- package/dist/packages/notify/index.scss +1 -0
- package/dist/packages/progress/index.scss +21 -17
- package/dist/packages/range/index.scss +4 -4
- package/dist/packages/swiper/index.scss +4 -4
- package/dist/packages/switch/index.scss +8 -8
- package/dist/packages/tabbar/index.scss +3 -2
- package/dist/packages/tabbaritem/index.scss +4 -3
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/toast/index.scss +8 -7
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +41 -41
- package/dist/styles/variables.scss +89 -11
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -30,6 +30,10 @@ const _sfc_main = create({
|
|
|
30
30
|
default: () => {
|
|
31
31
|
return [];
|
|
32
32
|
}
|
|
33
|
+
},
|
|
34
|
+
isWrapTeleport: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
emits: ["update:visible", "select"],
|
|
@@ -72,6 +76,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
76
|
position: "bottom",
|
|
73
77
|
closeable: "",
|
|
74
78
|
round: "",
|
|
79
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
75
80
|
visible: _ctx.visible,
|
|
76
81
|
style: normalizeStyle(_ctx.popStyle),
|
|
77
82
|
onClickOverlay: _ctx.close,
|
|
@@ -95,7 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
95
100
|
], 2)
|
|
96
101
|
]),
|
|
97
102
|
_: 3
|
|
98
|
-
}, 8, ["visible", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
103
|
+
}, 8, ["isWrapTeleport", "visible", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
99
104
|
}
|
|
100
105
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
101
106
|
export { index as default };
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -53,6 +53,10 @@ const _sfc_main = create({
|
|
|
53
53
|
type: [String, Number],
|
|
54
54
|
default: "base"
|
|
55
55
|
},
|
|
56
|
+
iconSize: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "20"
|
|
59
|
+
},
|
|
56
60
|
icon: String,
|
|
57
61
|
textAlignCenter: {
|
|
58
62
|
type: Boolean,
|
|
@@ -64,7 +68,7 @@ const _sfc_main = create({
|
|
|
64
68
|
},
|
|
65
69
|
bgColor: {
|
|
66
70
|
type: String,
|
|
67
|
-
default: "
|
|
71
|
+
default: ""
|
|
68
72
|
},
|
|
69
73
|
onClose: Function,
|
|
70
74
|
unmount: Function,
|
|
@@ -74,7 +78,7 @@ const _sfc_main = create({
|
|
|
74
78
|
},
|
|
75
79
|
coverColor: {
|
|
76
80
|
type: String,
|
|
77
|
-
default: "
|
|
81
|
+
default: ""
|
|
78
82
|
},
|
|
79
83
|
title: {
|
|
80
84
|
type: String,
|
|
@@ -85,7 +89,8 @@ const _sfc_main = create({
|
|
|
85
89
|
default: false
|
|
86
90
|
}
|
|
87
91
|
},
|
|
88
|
-
|
|
92
|
+
emits: ["close"],
|
|
93
|
+
setup(props, { emit }) {
|
|
89
94
|
let timer;
|
|
90
95
|
const state = reactive({
|
|
91
96
|
mounted: false
|
|
@@ -113,6 +118,7 @@ const _sfc_main = create({
|
|
|
113
118
|
const clickCover = () => {
|
|
114
119
|
if (props.closeOnClickOverlay) {
|
|
115
120
|
hide();
|
|
121
|
+
emit("close");
|
|
116
122
|
}
|
|
117
123
|
};
|
|
118
124
|
if (props.duration) {
|
|
@@ -189,10 +195,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
195
|
}, [
|
|
190
196
|
_ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
191
197
|
createVNode(_component_nut_icon, {
|
|
192
|
-
size:
|
|
198
|
+
size: _ctx.iconSize,
|
|
193
199
|
color: "#ffffff",
|
|
194
200
|
name: _ctx.icon
|
|
195
|
-
}, null, 8, ["name"])
|
|
201
|
+
}, null, 8, ["size", "name"])
|
|
196
202
|
])) : createCommentVNode("", true),
|
|
197
203
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
198
204
|
createElementVNode("view", {
|
|
@@ -218,14 +224,15 @@ const defaultOptions = {
|
|
|
218
224
|
customClass: "",
|
|
219
225
|
bottom: "30px",
|
|
220
226
|
size: "base",
|
|
227
|
+
iconSize: "20",
|
|
221
228
|
icon: null,
|
|
222
229
|
textAlignCenter: true,
|
|
223
230
|
loadingRotate: true,
|
|
224
|
-
bgColor: "
|
|
231
|
+
bgColor: "",
|
|
225
232
|
onClose: null,
|
|
226
233
|
unmount: null,
|
|
227
234
|
cover: false,
|
|
228
|
-
coverColor: "
|
|
235
|
+
coverColor: "",
|
|
229
236
|
closeOnClickOverlay: false
|
|
230
237
|
};
|
|
231
238
|
let idsMap = [];
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.
|
|
22
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2021 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { getCurrentInstance } from "vue";
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
Object.assign(instance.proxy, apis);
|
|
11
|
-
}
|
|
7
|
+
function useRouter() {
|
|
8
|
+
const proxy = getCurrentInstance().proxy;
|
|
9
|
+
return proxy.$router || null;
|
|
12
10
|
}
|
|
13
|
-
export {
|
|
11
|
+
export { useRouter as u };
|
|
@@ -1,36 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const element = unref(elementRef);
|
|
12
|
-
if (isWindow(element)) {
|
|
13
|
-
const width = element.innerWidth;
|
|
14
|
-
const height = element.innerHeight;
|
|
15
|
-
return {
|
|
16
|
-
top: 0,
|
|
17
|
-
left: 0,
|
|
18
|
-
right: width,
|
|
19
|
-
bottom: height,
|
|
20
|
-
width,
|
|
21
|
-
height
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
if (element && element.getBoundingClientRect) {
|
|
25
|
-
return element.getBoundingClientRect();
|
|
6
|
+
import { getCurrentInstance } from "vue";
|
|
7
|
+
function useExpose(apis) {
|
|
8
|
+
const instance = getCurrentInstance();
|
|
9
|
+
if (instance) {
|
|
10
|
+
Object.assign(instance.proxy, apis);
|
|
26
11
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
left: 0,
|
|
30
|
-
right: 0,
|
|
31
|
-
bottom: 0,
|
|
32
|
-
width: 0,
|
|
33
|
-
height: 0
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export { useRect as u };
|
|
12
|
+
}
|
|
13
|
+
export { useExpose as u };
|
|
@@ -1,64 +1,36 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { unref } from "vue";
|
|
7
|
+
function isWindow(val) {
|
|
8
|
+
return val === window;
|
|
9
|
+
}
|
|
10
|
+
const useRect = (elementRef) => {
|
|
11
|
+
const element = unref(elementRef);
|
|
12
|
+
if (isWindow(element)) {
|
|
13
|
+
const width = element.innerWidth;
|
|
14
|
+
const height = element.innerHeight;
|
|
15
|
+
return {
|
|
16
|
+
top: 0,
|
|
17
|
+
left: 0,
|
|
18
|
+
right: width,
|
|
19
|
+
bottom: height,
|
|
20
|
+
width,
|
|
21
|
+
height
|
|
22
|
+
};
|
|
11
23
|
}
|
|
12
|
-
if (
|
|
13
|
-
return
|
|
24
|
+
if (element && element.getBoundingClientRect) {
|
|
25
|
+
return element.getBoundingClientRect();
|
|
14
26
|
}
|
|
15
|
-
return "";
|
|
16
|
-
}
|
|
17
|
-
function useTouch() {
|
|
18
|
-
const startX = ref(0);
|
|
19
|
-
const startY = ref(0);
|
|
20
|
-
const deltaX = ref(0);
|
|
21
|
-
const deltaY = ref(0);
|
|
22
|
-
const offsetX = ref(0);
|
|
23
|
-
const offsetY = ref(0);
|
|
24
|
-
const direction = ref("");
|
|
25
|
-
const isVertical = () => direction.value === "vertical";
|
|
26
|
-
const isHorizontal = () => direction.value === "horizontal";
|
|
27
|
-
const reset = () => {
|
|
28
|
-
deltaX.value = 0;
|
|
29
|
-
deltaY.value = 0;
|
|
30
|
-
offsetX.value = 0;
|
|
31
|
-
offsetY.value = 0;
|
|
32
|
-
direction.value = "";
|
|
33
|
-
};
|
|
34
|
-
const start = (event) => {
|
|
35
|
-
reset();
|
|
36
|
-
startX.value = event.touches[0].clientX;
|
|
37
|
-
startY.value = event.touches[0].clientY;
|
|
38
|
-
};
|
|
39
|
-
const move = (event) => {
|
|
40
|
-
const touch = event.touches[0];
|
|
41
|
-
deltaX.value = touch.clientX - startX.value;
|
|
42
|
-
deltaY.value = touch.clientY - startY.value;
|
|
43
|
-
offsetX.value = Math.abs(deltaX.value);
|
|
44
|
-
offsetY.value = Math.abs(deltaY.value);
|
|
45
|
-
if (!direction.value) {
|
|
46
|
-
direction.value = getDirection(offsetX.value, offsetY.value);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
27
|
return {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
deltaY,
|
|
57
|
-
offsetX,
|
|
58
|
-
offsetY,
|
|
59
|
-
direction,
|
|
60
|
-
isVertical,
|
|
61
|
-
isHorizontal
|
|
28
|
+
top: 0,
|
|
29
|
+
left: 0,
|
|
30
|
+
right: 0,
|
|
31
|
+
bottom: 0,
|
|
32
|
+
width: 0,
|
|
33
|
+
height: 0
|
|
62
34
|
};
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
35
|
+
};
|
|
36
|
+
export { useRect as u };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2021 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { ref } from "vue";
|
|
7
|
+
const MIN_DISTANCE = 10;
|
|
8
|
+
function getDirection(x, y) {
|
|
9
|
+
if (x > y && x > MIN_DISTANCE) {
|
|
10
|
+
return "horizontal";
|
|
11
|
+
}
|
|
12
|
+
if (y > x && y > MIN_DISTANCE) {
|
|
13
|
+
return "vertical";
|
|
14
|
+
}
|
|
15
|
+
return "";
|
|
16
|
+
}
|
|
17
|
+
function useTouch() {
|
|
18
|
+
const startX = ref(0);
|
|
19
|
+
const startY = ref(0);
|
|
20
|
+
const deltaX = ref(0);
|
|
21
|
+
const deltaY = ref(0);
|
|
22
|
+
const offsetX = ref(0);
|
|
23
|
+
const offsetY = ref(0);
|
|
24
|
+
const direction = ref("");
|
|
25
|
+
const isVertical = () => direction.value === "vertical";
|
|
26
|
+
const isHorizontal = () => direction.value === "horizontal";
|
|
27
|
+
const reset = () => {
|
|
28
|
+
deltaX.value = 0;
|
|
29
|
+
deltaY.value = 0;
|
|
30
|
+
offsetX.value = 0;
|
|
31
|
+
offsetY.value = 0;
|
|
32
|
+
direction.value = "";
|
|
33
|
+
};
|
|
34
|
+
const start = (event) => {
|
|
35
|
+
reset();
|
|
36
|
+
startX.value = event.touches[0].clientX;
|
|
37
|
+
startY.value = event.touches[0].clientY;
|
|
38
|
+
};
|
|
39
|
+
const move = (event) => {
|
|
40
|
+
const touch = event.touches[0];
|
|
41
|
+
deltaX.value = touch.clientX - startX.value;
|
|
42
|
+
deltaY.value = touch.clientY - startY.value;
|
|
43
|
+
offsetX.value = Math.abs(deltaX.value);
|
|
44
|
+
offsetY.value = Math.abs(deltaY.value);
|
|
45
|
+
if (!direction.value) {
|
|
46
|
+
direction.value = getDirection(offsetX.value, offsetY.value);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
move,
|
|
51
|
+
start,
|
|
52
|
+
reset,
|
|
53
|
+
startX,
|
|
54
|
+
startY,
|
|
55
|
+
deltaX,
|
|
56
|
+
deltaY,
|
|
57
|
+
offsetX,
|
|
58
|
+
offsetY,
|
|
59
|
+
direction,
|
|
60
|
+
isVertical,
|
|
61
|
+
isHorizontal
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export { useTouch as u };
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -37,22 +37,23 @@
|
|
|
37
37
|
display: block;
|
|
38
38
|
// height: 24px;
|
|
39
39
|
padding: 10px;
|
|
40
|
-
line-height:
|
|
41
|
-
font-size: $font-size
|
|
42
|
-
color: $
|
|
40
|
+
line-height: $actionsheet-item-line-height;
|
|
41
|
+
font-size: $actionsheet-item-font-size;
|
|
42
|
+
color: $actionsheet-item-font-color;
|
|
43
43
|
text-align: center;
|
|
44
44
|
background-color: #fff;
|
|
45
|
+
border-bottom: $actionsheet-item-border-bottom;
|
|
45
46
|
cursor: pointer;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.desc {
|
|
49
|
-
font-size: $font-size
|
|
50
|
+
font-size: $actionsheet-item-font-size;
|
|
50
51
|
color: #999;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
.subdesc {
|
|
54
55
|
display: block;
|
|
55
|
-
font-size: $font-size
|
|
56
|
+
font-size: $actionsheet-item-subdesc-font-size;
|
|
56
57
|
color: #999;
|
|
57
58
|
}
|
|
58
59
|
|
|
@@ -63,6 +64,6 @@
|
|
|
63
64
|
|
|
64
65
|
.nut-actionsheet-cancel {
|
|
65
66
|
margin-top: 5px;
|
|
66
|
-
border-top:
|
|
67
|
+
border-top: $actionsheet-item-cancel-border-top;
|
|
67
68
|
}
|
|
68
69
|
}
|
|
@@ -126,21 +126,21 @@
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
&--normal {
|
|
129
|
-
padding:
|
|
129
|
+
padding: $button-default-padding;
|
|
130
130
|
font-size: $button-default-font-size;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&--small {
|
|
134
134
|
height: $button-small-height;
|
|
135
135
|
line-height: $button-small-line-height;
|
|
136
|
-
padding:
|
|
137
|
-
font-size: $font-size
|
|
136
|
+
padding: $button-small-padding;
|
|
137
|
+
font-size: $button-small-font-size;
|
|
138
138
|
}
|
|
139
139
|
&--mini {
|
|
140
140
|
height: $button-mini-height;
|
|
141
141
|
line-height: 1.2;
|
|
142
|
-
padding:
|
|
143
|
-
font-size: $font-size
|
|
142
|
+
padding: $button-mini-padding;
|
|
143
|
+
font-size: $button-mini-font-size;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
&--block {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
width: 100%;
|
|
5
|
-
line-height:
|
|
6
|
-
padding:
|
|
5
|
+
line-height: $cell-line-height;
|
|
6
|
+
padding: $cell-padding;
|
|
7
7
|
background: $white;
|
|
8
8
|
border-radius: $cell-border-radius;
|
|
9
9
|
box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
content: ' ';
|
|
25
25
|
pointer-events: none;
|
|
26
|
-
right:
|
|
26
|
+
right: $cell-after-right;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
left: 16px;
|
|
29
29
|
transform: scaleY(0.5);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
.nut-noticebar-page {
|
|
2
|
-
width: 100%;
|
|
2
|
+
// width: 100%;
|
|
3
3
|
display: flex;
|
|
4
|
+
padding: 0px $noticebar-box-padding-right 0 $noticebar-box-padding-left;
|
|
4
5
|
height: $noticebar-height;
|
|
5
6
|
font-size: $noticebar-font-size;
|
|
6
7
|
position: relative;
|
|
7
8
|
align-items: center;
|
|
8
9
|
&.wrapable {
|
|
9
10
|
height: auto;
|
|
10
|
-
padding:
|
|
11
|
+
padding: $noticebar-wrapable-padding-bottom $noticebar-wrapable-padding-right $noticebar-wrapable-padding-bottom
|
|
12
|
+
$noticebar-wrapable-padding-left;
|
|
11
13
|
.wrap {
|
|
12
14
|
height: auto;
|
|
13
15
|
.content {
|
|
@@ -25,7 +27,8 @@
|
|
|
25
27
|
.left-icon {
|
|
26
28
|
height: $noticebar-left-icon-width;
|
|
27
29
|
min-width: $noticebar-left-icon-width;
|
|
28
|
-
margin:
|
|
30
|
+
margin: $noticebar-lefticon-padding-top $noticebar-lefticon-padding-right $noticebar-lefticon-padding-bottom
|
|
31
|
+
$noticebar-lefticon-padding-left;
|
|
29
32
|
background-size: 100% 100%;
|
|
30
33
|
}
|
|
31
34
|
.right-icon {
|
|
@@ -33,9 +36,11 @@
|
|
|
33
36
|
align-items: center;
|
|
34
37
|
justify-content: center;
|
|
35
38
|
width: $noticebar-right-icon-width;
|
|
36
|
-
margin:
|
|
39
|
+
margin: $noticebar-righticon-padding-top $noticebar-righticon-padding-right $noticebar-righticon-padding-bottom
|
|
40
|
+
$noticebar-righticon-padding-left;
|
|
37
41
|
}
|
|
38
42
|
.wrap {
|
|
43
|
+
display: flex;
|
|
39
44
|
flex: 1;
|
|
40
45
|
height: $noticebar-line-height;
|
|
41
46
|
line-height: $noticebar-line-height;
|
|
@@ -72,7 +77,7 @@
|
|
|
72
77
|
|
|
73
78
|
@keyframes nut-notice-bar-play-infinite {
|
|
74
79
|
to {
|
|
75
|
-
transform:
|
|
80
|
+
transform: translateX(-100%);
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
// 垂直方向的滚动
|
|
@@ -90,6 +95,7 @@
|
|
|
90
95
|
height: $noticebar-height;
|
|
91
96
|
font-size: $noticebar-font-size;
|
|
92
97
|
overflow: hidden;
|
|
98
|
+
padding: 0px $noticebar-box-padding-right 0 $noticebar-box-padding-left;
|
|
93
99
|
|
|
94
100
|
.horseLamp_list {
|
|
95
101
|
margin: 0;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
.nut-progress-outer {
|
|
6
6
|
flex: 1;
|
|
7
|
-
background-color:
|
|
8
|
-
border-radius:
|
|
7
|
+
background-color: $progress-outer-background-color;
|
|
8
|
+
border-radius: $progress-outer-border-radius;
|
|
9
9
|
height: 10px;
|
|
10
10
|
.nut-progress-inner {
|
|
11
11
|
width: 30%;
|
|
12
12
|
height: 100%;
|
|
13
|
-
border-radius:
|
|
13
|
+
border-radius: $progress-outer-border-radius;
|
|
14
14
|
background: $progress-inner-background-color;
|
|
15
15
|
-webkit-transition: all 0.4s;
|
|
16
16
|
transition: all 0.4s;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
left: 0;
|
|
31
31
|
right: 0;
|
|
32
32
|
bottom: 0;
|
|
33
|
-
border-radius:
|
|
33
|
+
border-radius: $progress-outer-border-radius;
|
|
34
34
|
animation: progressActive 2s ease-in-out infinite;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -49,26 +49,30 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
&.nut-progress-small {
|
|
52
|
-
height:
|
|
52
|
+
height: $progress-small-height;
|
|
53
53
|
.nut-progress-text {
|
|
54
|
-
font-size:
|
|
55
|
-
line-height:
|
|
56
|
-
padding:
|
|
57
|
-
top: -
|
|
54
|
+
font-size: $progress-small-text-font-size;
|
|
55
|
+
line-height: $progress-small-text-line-height;
|
|
56
|
+
padding: $progress-small-text-padding;
|
|
57
|
+
top: $progress-small-text-top;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
&.nut-progress-base {
|
|
61
|
-
height:
|
|
61
|
+
height: $progress-base-height;
|
|
62
62
|
.nut-progress-text {
|
|
63
|
-
font-size:
|
|
64
|
-
line-height:
|
|
63
|
+
font-size: $progress-base-text-font-size;
|
|
64
|
+
line-height: $progress-base-text-line-height;
|
|
65
|
+
padding: $progress-base-text-padding;
|
|
66
|
+
top: $progress-base-text-top;
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
&.nut-progress-large {
|
|
68
|
-
height:
|
|
70
|
+
height: $progress-large-height;
|
|
69
71
|
.nut-progress-text {
|
|
70
|
-
font-size:
|
|
71
|
-
line-height:
|
|
72
|
+
font-size: $progress-large-text-font-size;
|
|
73
|
+
line-height: $progress-large-text-line-height;
|
|
74
|
+
padding: $progress-large-text-padding;
|
|
75
|
+
top: $progress-large-text-top;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
}
|
|
@@ -82,9 +86,9 @@
|
|
|
82
86
|
min-width: 35px;
|
|
83
87
|
}
|
|
84
88
|
.nut-progress-insidetext {
|
|
85
|
-
padding:
|
|
89
|
+
padding: $progress-insidetext-padding;
|
|
86
90
|
background: $progress-insidetext-background;
|
|
87
|
-
border-radius:
|
|
91
|
+
border-radius: $progress-insidetext-border-radius;
|
|
88
92
|
position: absolute;
|
|
89
93
|
transition: all 0.4s;
|
|
90
94
|
top: -42%;
|