@nutui/nutui 3.1.10-beta.1 → 3.1.11-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/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/dist/nutui.d.ts +6 -6
- package/dist/nutui.es.js +1643 -1116
- package/dist/nutui.umd.js +1708 -1181
- package/dist/packages/_es/ActionSheet.js +10 -12
- package/dist/packages/_es/Address.js +31 -33
- package/dist/packages/_es/Avatar.js +5 -4
- package/dist/packages/_es/BackTop.js +5 -4
- package/dist/packages/_es/Badge.js +5 -4
- package/dist/packages/_es/Barrage.js +9 -8
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +14 -16
- package/dist/packages/_es/Cell.js +5 -4
- package/dist/packages/_es/CellGroup.js +8 -7
- package/dist/packages/_es/Checkbox.js +3 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +5 -4
- package/dist/packages/_es/Col.js +5 -4
- package/dist/packages/_es/Collapse.js +8 -7
- package/dist/packages/_es/CollapseItem.js +6 -8
- package/dist/packages/_es/CountDown.js +5 -7
- package/dist/packages/_es/CountUp.js +26 -28
- package/dist/packages/_es/DatePicker.js +11 -13
- package/dist/packages/_es/Dialog.js +14 -25
- package/dist/packages/_es/Divider.js +5 -4
- package/dist/packages/_es/Drag.js +5 -4
- package/dist/packages/_es/Elevator.js +19 -21
- package/dist/packages/_es/FixedNav.js +9 -8
- package/dist/packages/_es/Icon.js +40 -6
- package/dist/packages/_es/ImagePreview.js +12 -13
- package/dist/packages/_es/InfiniteLoading.js +5 -7
- package/dist/packages/_es/Input.js +10 -9
- package/dist/packages/_es/InputNumber.js +8 -15
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/Menu.js +203 -0
- package/dist/packages/_es/MenuItem.js +18 -171
- package/dist/packages/_es/Navbar.js +7 -6
- package/dist/packages/_es/NoticeBar.js +9 -11
- package/dist/packages/_es/Notify.js +10 -12
- package/dist/packages/_es/NumberKeyboard.js +5 -4
- package/dist/packages/_es/OverLay.js +5 -7
- package/dist/packages/_es/Pagination.js +7 -6
- package/dist/packages/_es/Picker.js +12 -14
- package/dist/packages/_es/Popover.js +10 -12
- package/dist/packages/_es/Popup.js +9 -11
- package/dist/packages/_es/Price.js +33 -14
- package/dist/packages/_es/Progress.js +5 -4
- package/dist/packages/_es/Radio.js +20 -7
- package/dist/packages/_es/RadioGroup.js +7 -3
- package/dist/packages/_es/Range.js +13 -15
- package/dist/packages/_es/Rate.js +8 -7
- package/dist/packages/_es/Row.js +5 -4
- package/dist/packages/_es/SearchBar.js +56 -55
- package/dist/packages/_es/ShortPassword.js +8 -7
- package/dist/packages/_es/Signature.js +5 -4
- package/dist/packages/_es/Sku.js +533 -0
- package/dist/packages/_es/Step.js +14 -11
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Swipe.js +5 -7
- package/dist/packages/_es/Swiper.js +12 -11
- package/dist/packages/_es/SwiperItem.js +5 -4
- package/dist/packages/_es/Switch.js +5 -4
- package/dist/packages/_es/TabPane.js +5 -4
- package/dist/packages/_es/Tabbar.js +5 -4
- package/dist/packages/_es/TabbarItem.js +9 -8
- package/dist/packages/_es/Tabs.js +43 -18
- package/dist/packages/_es/Tag.js +16 -18
- package/dist/packages/_es/TextArea.js +6 -5
- package/dist/packages/_es/TimeDetail.js +5 -7
- package/dist/packages/_es/TimePannel.js +5 -7
- package/dist/packages/_es/TimeSelect.js +5 -4
- package/dist/packages/_es/Toast.js +10 -12
- package/dist/packages/_es/Uploader.js +165 -89
- package/dist/packages/_es/Video.js +5 -7
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +12 -0
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +160 -0
- package/dist/packages/button/index.scss +3 -0
- package/dist/packages/checkbox/index.scss +2 -0
- package/dist/packages/dialog/index.scss +2 -1
- package/dist/packages/menu/index.scss +70 -4
- package/dist/packages/price/index.scss +40 -3
- package/dist/packages/progress/index.scss +2 -0
- package/dist/packages/radio/index.scss +34 -4
- package/dist/packages/radiogroup/index.scss +20 -0
- package/dist/packages/searchbar/index.scss +35 -30
- package/dist/packages/sku/index.scss +147 -0
- package/dist/packages/tabs/index.scss +47 -19
- package/dist/packages/tag/index.scss +2 -1
- package/dist/packages/uploader/index.scss +94 -8
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -1
- package/dist/styles/mixins/index.scss +0 -4
- package/dist/styles/themes/default.scss +29 -30
- package/dist/styles/variables.scss +46 -6
- package/package.json +1 -1
- package/dist/packages/_es/Tab.js +0 -178
- package/dist/packages/_es/TabPanel.js +0 -29
- package/dist/packages/_es/index.vue_vue&type=script&lang.js +0 -44
- package/dist/packages/tab/index.scss +0 -182
- package/dist/packages/tabpanel/index.scss +0 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { create } = createComponent("collapse");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
active: {
|
|
12
13
|
type: [String, Number, Array]
|
|
@@ -55,13 +56,13 @@ var _sfc_main = create({
|
|
|
55
56
|
};
|
|
56
57
|
const changeValAry = (name) => {
|
|
57
58
|
const activeItem = props.active instanceof Object ? Object.values(props.active) : props.active;
|
|
58
|
-
let
|
|
59
|
+
let index2 = -1;
|
|
59
60
|
activeItem.forEach((item, idx) => {
|
|
60
61
|
if (String(item) == String(name)) {
|
|
61
|
-
|
|
62
|
+
index2 = idx;
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
|
-
|
|
65
|
+
index2 > -1 ? activeItem.splice(index2, 1) : activeItem.push(name);
|
|
65
66
|
changeVal(activeItem);
|
|
66
67
|
};
|
|
67
68
|
const isExpanded = (name) => {
|
|
@@ -84,5 +85,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
85
|
renderSlot(_ctx.$slots, "default")
|
|
85
86
|
]);
|
|
86
87
|
}
|
|
87
|
-
_sfc_main
|
|
88
|
-
export {
|
|
88
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
89
|
+
export { index as default };
|
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
const { create, componentName } = createComponent("collapse-item");
|
|
31
|
-
|
|
29
|
+
const _sfc_main = create({
|
|
32
30
|
props: {
|
|
33
31
|
title: {
|
|
34
32
|
type: String,
|
|
@@ -123,7 +121,7 @@ var _sfc_main = create({
|
|
|
123
121
|
const currentName = computed(() => props.name);
|
|
124
122
|
const toggleOpen = () => {
|
|
125
123
|
if (parent.props.accordion) {
|
|
126
|
-
parent.children.forEach((item,
|
|
124
|
+
parent.children.forEach((item, index2) => {
|
|
127
125
|
if (currentName.value == item.name) {
|
|
128
126
|
item.changeOpen(!item.openExpanded);
|
|
129
127
|
} else {
|
|
@@ -246,5 +244,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
246
244
|
], 512)
|
|
247
245
|
], 2);
|
|
248
246
|
}
|
|
249
|
-
_sfc_main
|
|
250
|
-
export {
|
|
247
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
248
|
+
export { index as default };
|
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, Fragment, createElementVNode, createCommentVNode } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
const { componentName, create } = createComponent("countdown");
|
|
31
|
-
|
|
29
|
+
const _sfc_main = create({
|
|
32
30
|
props: {
|
|
33
31
|
modelValue: {
|
|
34
32
|
type: Object,
|
|
@@ -222,5 +220,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
220
|
], 64))
|
|
223
221
|
], 2);
|
|
224
222
|
}
|
|
225
|
-
_sfc_main
|
|
226
|
-
export {
|
|
223
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
224
|
+
export { index as default };
|
|
@@ -17,16 +17,14 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { getCurrentInstance, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
function useExtend(apis) {
|
|
31
29
|
const instance = getCurrentInstance();
|
|
32
30
|
if (instance) {
|
|
@@ -34,7 +32,7 @@ function useExtend(apis) {
|
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
const { componentName, create } = createComponent("countup");
|
|
37
|
-
|
|
35
|
+
const _sfc_main = create({
|
|
38
36
|
props: {
|
|
39
37
|
initNum: {
|
|
40
38
|
type: Number,
|
|
@@ -181,20 +179,20 @@ var _sfc_main = create({
|
|
|
181
179
|
return m / baseNum;
|
|
182
180
|
}
|
|
183
181
|
};
|
|
184
|
-
const topNumber = (
|
|
182
|
+
const topNumber = (index2) => {
|
|
185
183
|
let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
|
|
186
|
-
let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[
|
|
187
|
-
let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[
|
|
188
|
-
let num =
|
|
184
|
+
let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index2 - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index2 - (num_total_len - pointNum)]);
|
|
185
|
+
let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index2] : 10 - Number(String(initDigit1)[index2]);
|
|
186
|
+
let num = index2 > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index2 <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
|
|
189
187
|
if (num == "-1000%") {
|
|
190
188
|
num = 0;
|
|
191
189
|
}
|
|
192
190
|
return num;
|
|
193
191
|
};
|
|
194
|
-
const turnNumber = (
|
|
192
|
+
const turnNumber = (index2) => {
|
|
195
193
|
let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
|
|
196
|
-
let idx1 = String(initDigit2)[
|
|
197
|
-
let num =
|
|
194
|
+
let idx1 = String(initDigit2)[index2 - (num_total_len - pointNum)];
|
|
195
|
+
let num = index2 > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index2 <= String(initDigit1).length - 1 ? String(initDigit1)[index2] : 0;
|
|
198
196
|
return num;
|
|
199
197
|
};
|
|
200
198
|
const countChange = () => {
|
|
@@ -399,16 +397,16 @@ var _sfc_main = create({
|
|
|
399
397
|
}
|
|
400
398
|
};
|
|
401
399
|
useExtend({ machineLuck });
|
|
402
|
-
const scrollTime = (
|
|
400
|
+
const scrollTime = (index2, total, num) => {
|
|
403
401
|
let t = setInterval(() => {
|
|
404
402
|
if (num <= total) {
|
|
405
403
|
num += 10;
|
|
406
|
-
data.prizeY[
|
|
404
|
+
data.prizeY[index2] = parseFloat(String(num));
|
|
407
405
|
} else {
|
|
408
406
|
clearInterval(t);
|
|
409
407
|
t = null;
|
|
410
408
|
data.finshMachine += 1;
|
|
411
|
-
data.prizeY[
|
|
409
|
+
data.prizeY[index2] = total;
|
|
412
410
|
if (data.finshMachine == props.machineNum) {
|
|
413
411
|
let distance = props.numHeight * props.machinePrizeNum;
|
|
414
412
|
data.prizeYPrev = [];
|
|
@@ -460,16 +458,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
460
458
|
class: "run-number-machine-img",
|
|
461
459
|
style: normalizeStyle({ height: _ctx.numHeight + "px" })
|
|
462
460
|
}, [
|
|
463
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val,
|
|
461
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index2) => {
|
|
464
462
|
return openBlock(), createElementBlock("view", {
|
|
465
463
|
class: "run-number-machine-img-li",
|
|
466
464
|
ref: "run-number-machine-img-li",
|
|
467
|
-
key: "mImg" +
|
|
465
|
+
key: "mImg" + index2,
|
|
468
466
|
style: normalizeStyle({
|
|
469
467
|
width: _ctx.numWidth + "px",
|
|
470
468
|
height: _ctx.numHeight + "px",
|
|
471
469
|
backgroundImage: "url(" + _ctx.customBgImg + ")",
|
|
472
|
-
backgroundPositionY: _ctx.prizeY[
|
|
470
|
+
backgroundPositionY: _ctx.prizeY[index2] + "px"
|
|
473
471
|
})
|
|
474
472
|
}, null, 4);
|
|
475
473
|
}), 128))
|
|
@@ -478,16 +476,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
478
476
|
class: "run-number-img",
|
|
479
477
|
style: normalizeStyle({ height: _ctx.numHeight + "px" })
|
|
480
478
|
}, [
|
|
481
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val,
|
|
479
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
|
|
482
480
|
return openBlock(), createElementBlock("view", {
|
|
483
481
|
class: "run-number-img-li",
|
|
484
|
-
key: "cImg" +
|
|
482
|
+
key: "cImg" + index2,
|
|
485
483
|
style: normalizeStyle({
|
|
486
484
|
width: _ctx.numWidth + "px",
|
|
487
485
|
height: _ctx.numHeight + "px",
|
|
488
|
-
left: _ctx.numWidth * (
|
|
486
|
+
left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 == _ctx.num_total_len - _ctx.pointNum ? index2 * 1.5 : index2 * 1.3 : index2) + "px",
|
|
489
487
|
backgroundImage: "url(" + _ctx.customBgImg + ")",
|
|
490
|
-
backgroundPosition: "0 " + -(String(_ctx.relNum)[
|
|
488
|
+
backgroundPosition: "0 " + -(String(_ctx.relNum)[index2] * _ctx.numHeight + _ctx.customSpacNum * String(_ctx.relNum)[index2]) + "px",
|
|
491
489
|
transition: "all linear " + _ctx.during / 10 + "ms"
|
|
492
490
|
})
|
|
493
491
|
}, null, 4);
|
|
@@ -513,16 +511,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
513
511
|
lineHeight: _ctx.numHeight + "px"
|
|
514
512
|
})
|
|
515
513
|
}, [
|
|
516
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val,
|
|
514
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
|
|
517
515
|
return openBlock(), createElementBlock("view", {
|
|
518
516
|
ref: "numberItem",
|
|
519
517
|
class: "numberItem",
|
|
520
518
|
key: val,
|
|
521
519
|
style: normalizeStyle({
|
|
522
|
-
top: _ctx.topNumber(
|
|
523
|
-
left: _ctx.numWidth * (
|
|
520
|
+
top: _ctx.topNumber(index2),
|
|
521
|
+
left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 * 1.1 : index2) + "px"
|
|
524
522
|
}),
|
|
525
|
-
"turn-number": _ctx.turnNumber(
|
|
523
|
+
"turn-number": _ctx.turnNumber(index2)
|
|
526
524
|
}, [
|
|
527
525
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.to0_10, (item, idx) => {
|
|
528
526
|
return openBlock(), createElementBlock("view", {
|
|
@@ -554,5 +552,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
554
552
|
], 64))
|
|
555
553
|
]);
|
|
556
554
|
}
|
|
557
|
-
_sfc_main
|
|
558
|
-
export {
|
|
555
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
556
|
+
export { index as default };
|
|
@@ -17,21 +17,19 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createBlock } from "vue";
|
|
29
|
-
import
|
|
26
|
+
import picker from "./Picker.js";
|
|
30
27
|
import { c as createComponent } from "./component.js";
|
|
28
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
29
|
import "./index.js";
|
|
32
30
|
import "./Popup.js";
|
|
33
31
|
import "./OverLay.js";
|
|
34
|
-
import "./
|
|
32
|
+
import "./Icon.js";
|
|
35
33
|
import "./pxCheck.js";
|
|
36
34
|
const { componentName, create } = createComponent("datepicker");
|
|
37
35
|
const currentYear = new Date().getFullYear();
|
|
@@ -46,9 +44,9 @@ const zhCNType = {
|
|
|
46
44
|
minute: "\u5206",
|
|
47
45
|
seconds: "\u79D2"
|
|
48
46
|
};
|
|
49
|
-
|
|
47
|
+
const _sfc_main = create({
|
|
50
48
|
components: {
|
|
51
|
-
[
|
|
49
|
+
[picker.name]: picker
|
|
52
50
|
},
|
|
53
51
|
props: {
|
|
54
52
|
modelValue: null,
|
|
@@ -205,7 +203,7 @@ var _sfc_main = create({
|
|
|
205
203
|
if (!(max > min))
|
|
206
204
|
return;
|
|
207
205
|
const arr = [];
|
|
208
|
-
let
|
|
206
|
+
let index2 = 0;
|
|
209
207
|
while (min <= max) {
|
|
210
208
|
if (props.isShowChinese) {
|
|
211
209
|
arr.push(min + zhCNType[type]);
|
|
@@ -218,10 +216,10 @@ var _sfc_main = create({
|
|
|
218
216
|
min++;
|
|
219
217
|
}
|
|
220
218
|
if (min <= val) {
|
|
221
|
-
|
|
219
|
+
index2++;
|
|
222
220
|
}
|
|
223
221
|
}
|
|
224
|
-
return { values: arr, defaultIndex:
|
|
222
|
+
return { values: arr, defaultIndex: index2 };
|
|
225
223
|
};
|
|
226
224
|
const getDateIndex = (type) => {
|
|
227
225
|
if (type === "year") {
|
|
@@ -280,5 +278,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
280
278
|
onConfirm: _ctx.confirm
|
|
281
279
|
}, null, 8, ["visible", "onClose", "list-data", "onChange", "title", "onConfirm"]);
|
|
282
280
|
}
|
|
283
|
-
_sfc_main
|
|
284
|
-
export {
|
|
281
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
282
|
+
export { index as default };
|
|
@@ -17,31 +17,29 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
var __publicField = (obj, key, value) => {
|
|
24
21
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
25
22
|
return value;
|
|
26
23
|
};
|
|
27
24
|
/*!
|
|
28
|
-
* @nutui/nutui v3.1.
|
|
25
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
29
26
|
* (c) 2021 @jdf2e.
|
|
30
27
|
* Released under the MIT License.
|
|
31
28
|
*/
|
|
32
29
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, createVNode, render, h } from "vue";
|
|
33
30
|
import { c as createComponent } from "./component.js";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
31
|
+
import Popup, { popupProps } from "./Popup.js";
|
|
32
|
+
import Button from "./Button.js";
|
|
33
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
36
34
|
import "./OverLay.js";
|
|
37
|
-
import "./
|
|
35
|
+
import "./Icon.js";
|
|
38
36
|
import "./pxCheck.js";
|
|
39
37
|
const { componentName, create } = createComponent("dialog");
|
|
40
|
-
|
|
38
|
+
const _sfc_main = create({
|
|
41
39
|
inheritAttrs: false,
|
|
42
40
|
components: {
|
|
43
|
-
[
|
|
44
|
-
[
|
|
41
|
+
[Popup.name]: Popup,
|
|
42
|
+
[Button.name]: Button
|
|
45
43
|
},
|
|
46
44
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
47
45
|
closeOnClickOverlay: {
|
|
@@ -109,16 +107,7 @@ var _sfc_main = create({
|
|
|
109
107
|
default: false
|
|
110
108
|
}
|
|
111
109
|
}),
|
|
112
|
-
emits: [
|
|
113
|
-
"update",
|
|
114
|
-
"update:visible",
|
|
115
|
-
"ok",
|
|
116
|
-
"cancel",
|
|
117
|
-
"open",
|
|
118
|
-
"opened",
|
|
119
|
-
"close",
|
|
120
|
-
"closed"
|
|
121
|
-
],
|
|
110
|
+
emits: ["update", "update:visible", "ok", "cancel", "open", "opened", "close", "closed"],
|
|
122
111
|
setup(props, { emit }) {
|
|
123
112
|
const showPopup = ref(props.visible);
|
|
124
113
|
onMounted(() => {
|
|
@@ -151,8 +140,8 @@ var _sfc_main = create({
|
|
|
151
140
|
}
|
|
152
141
|
};
|
|
153
142
|
const onOk = () => {
|
|
154
|
-
closed();
|
|
155
143
|
emit("ok");
|
|
144
|
+
closed();
|
|
156
145
|
};
|
|
157
146
|
return {
|
|
158
147
|
closed,
|
|
@@ -238,7 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
238
227
|
_: 3
|
|
239
228
|
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
240
229
|
}
|
|
241
|
-
_sfc_main
|
|
230
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
242
231
|
class DialogOptions {
|
|
243
232
|
constructor() {
|
|
244
233
|
__publicField(this, "title", "");
|
|
@@ -296,7 +285,7 @@ class DialogFunction {
|
|
|
296
285
|
};
|
|
297
286
|
options.teleport = `#${root.id}`;
|
|
298
287
|
return () => {
|
|
299
|
-
return h(
|
|
288
|
+
return h(Dialog, options);
|
|
300
289
|
};
|
|
301
290
|
}
|
|
302
291
|
};
|
|
@@ -309,7 +298,7 @@ const _Dialog = function(options) {
|
|
|
309
298
|
return new DialogFunction(options);
|
|
310
299
|
};
|
|
311
300
|
_Dialog.install = (app) => {
|
|
312
|
-
app.use(
|
|
301
|
+
app.use(Dialog);
|
|
313
302
|
app.config.globalProperties.$dialog = _Dialog;
|
|
314
303
|
};
|
|
315
|
-
export {
|
|
304
|
+
export { Dialog, DialogOptions, _Dialog as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("divider");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
contentPosition: {
|
|
12
13
|
type: String,
|
|
@@ -44,5 +45,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44
45
|
renderSlot(_ctx.$slots, "default")
|
|
45
46
|
], 2);
|
|
46
47
|
}
|
|
47
|
-
_sfc_main
|
|
48
|
-
export {
|
|
48
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
49
|
+
export { index as default };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, reactive, computed, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { r as requestAniFrame } from "./raf.js";
|
|
9
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
const { componentName, create } = createComponent("drag");
|
|
10
|
-
|
|
11
|
+
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
12
13
|
attract: {
|
|
13
14
|
type: Boolean,
|
|
@@ -198,5 +199,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
199
|
renderSlot(_ctx.$slots, "default")
|
|
199
200
|
], 34);
|
|
200
201
|
}
|
|
201
|
-
_sfc_main
|
|
202
|
-
export {
|
|
202
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
203
|
+
export { index as default };
|
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { ref, reactive, computed, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
const { componentName, create } = createComponent("elevator");
|
|
31
|
-
|
|
29
|
+
const _sfc_main = create({
|
|
32
30
|
props: {
|
|
33
31
|
height: {
|
|
34
32
|
type: [Number, String],
|
|
@@ -97,29 +95,29 @@ var _sfc_main = create({
|
|
|
97
95
|
state.listHeight.push(height);
|
|
98
96
|
}
|
|
99
97
|
};
|
|
100
|
-
const scrollTo = (
|
|
101
|
-
if (!
|
|
98
|
+
const scrollTo = (index2) => {
|
|
99
|
+
if (!index2 && index2 !== 0) {
|
|
102
100
|
return;
|
|
103
101
|
}
|
|
104
102
|
if (!state.listHeight.length) {
|
|
105
103
|
calculateHeight();
|
|
106
104
|
}
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
state.currentIndex =
|
|
112
|
-
listview.value.scrollTo(0, state.listHeight[
|
|
105
|
+
if (index2 < 0)
|
|
106
|
+
index2 = 0;
|
|
107
|
+
if (index2 > state.listHeight.length - 2)
|
|
108
|
+
index2 = state.listHeight.length - 2;
|
|
109
|
+
state.currentIndex = index2;
|
|
110
|
+
listview.value.scrollTo(0, state.listHeight[index2]);
|
|
113
111
|
};
|
|
114
112
|
const touchStart = (e) => {
|
|
115
113
|
state.scrollStart = true;
|
|
116
|
-
let
|
|
114
|
+
let index2 = getData(e.target, "index");
|
|
117
115
|
let firstTouch = e.touches[0];
|
|
118
116
|
state.touchState.y1 = firstTouch.pageY;
|
|
119
|
-
state.anchorIndex = +
|
|
120
|
-
state.currentIndex = +
|
|
117
|
+
state.anchorIndex = +index2;
|
|
118
|
+
state.currentIndex = +index2;
|
|
121
119
|
console.log(state.currentIndex);
|
|
122
|
-
scrollTo(+
|
|
120
|
+
scrollTo(+index2);
|
|
123
121
|
};
|
|
124
122
|
const touchMove = (e) => {
|
|
125
123
|
let firstTouch = e.touches[0];
|
|
@@ -194,10 +192,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
194
192
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
195
193
|
}, [
|
|
196
194
|
createElementVNode("view", _hoisted_3, [
|
|
197
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item,
|
|
195
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index2) => {
|
|
198
196
|
return openBlock(), createElementBlock("view", {
|
|
199
197
|
class: "nut-elevator__bars__inner__item",
|
|
200
|
-
"data-index":
|
|
198
|
+
"data-index": index2,
|
|
201
199
|
key: item[_ctx.acceptKey],
|
|
202
200
|
onClick: ($event) => _ctx.handleClickIndex(item[_ctx.acceptKey])
|
|
203
201
|
}, toDisplayString(item[_ctx.acceptKey]), 9, _hoisted_4);
|
|
@@ -206,5 +204,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
204
|
], 32)
|
|
207
205
|
], 2);
|
|
208
206
|
}
|
|
209
|
-
_sfc_main
|
|
210
|
-
export {
|
|
207
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
208
|
+
export { index as default };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
8
|
+
import overlay from "./OverLay.js";
|
|
9
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
const { componentName, create } = createComponent("fixednav");
|
|
10
|
-
|
|
11
|
+
const _sfc_main = create({
|
|
11
12
|
components: {
|
|
12
|
-
[
|
|
13
|
+
[overlay.name]: overlay
|
|
13
14
|
},
|
|
14
15
|
props: {
|
|
15
16
|
visible: {
|
|
@@ -93,11 +94,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
94
|
}, null, 8, ["visible"])) : createCommentVNode("", true),
|
|
94
95
|
renderSlot(_ctx.$slots, "list", {}, () => [
|
|
95
96
|
createElementVNode("view", _hoisted_1, [
|
|
96
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item,
|
|
97
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index2) => {
|
|
97
98
|
return openBlock(), createElementBlock("view", {
|
|
98
99
|
class: "nut-fixednav__list-item",
|
|
99
100
|
onClick: ($event) => _ctx.selected(item, $event),
|
|
100
|
-
key: item.id ||
|
|
101
|
+
key: item.id || index2
|
|
101
102
|
}, [
|
|
102
103
|
createElementVNode("img", {
|
|
103
104
|
src: item.icon
|
|
@@ -122,5 +123,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122
123
|
])
|
|
123
124
|
], 6);
|
|
124
125
|
}
|
|
125
|
-
_sfc_main
|
|
126
|
-
export {
|
|
126
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
127
|
+
export { index as default };
|
|
@@ -1,10 +1,44 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { h } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { p as pxCheck } from "./pxCheck.js";
|
|
9
|
+
const { componentName, create } = createComponent("icon");
|
|
10
|
+
const _sfc_main = create({
|
|
11
|
+
props: {
|
|
12
|
+
name: { type: String, default: "" },
|
|
13
|
+
size: { type: [String, Number], default: "" },
|
|
14
|
+
classPrefix: { type: String, default: "nut-icon" },
|
|
15
|
+
fontClassName: { type: String, default: "nutui-iconfont" },
|
|
16
|
+
color: { type: String, default: "" },
|
|
17
|
+
tag: { type: String, default: "i" }
|
|
18
|
+
},
|
|
19
|
+
emits: ["click"],
|
|
20
|
+
setup(props, { emit, slots }) {
|
|
21
|
+
const handleClick = (event) => {
|
|
22
|
+
emit("click", event);
|
|
23
|
+
};
|
|
24
|
+
const isImage = () => {
|
|
25
|
+
return props.name ? props.name.indexOf("/") !== -1 : false;
|
|
26
|
+
};
|
|
27
|
+
return () => {
|
|
28
|
+
var _a;
|
|
29
|
+
const _isImage = isImage();
|
|
30
|
+
return h(_isImage ? "img" : props.tag, {
|
|
31
|
+
class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
|
|
32
|
+
style: {
|
|
33
|
+
color: props.color,
|
|
34
|
+
fontSize: pxCheck(props.size),
|
|
35
|
+
width: pxCheck(props.size),
|
|
36
|
+
height: pxCheck(props.size)
|
|
37
|
+
},
|
|
38
|
+
onClick: handleClick,
|
|
39
|
+
src: _isImage ? props.name : ""
|
|
40
|
+
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export { _sfc_main as default };
|