@nutui/nutui 3.1.18-beta.0 → 3.1.18
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 +41 -0
- package/LICENSE +1 -1
- package/README.md +6 -0
- package/dist/nutui.d.ts +3 -1
- package/dist/nutui.es.js +2230 -1192
- package/dist/nutui.umd.js +2240 -1201
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +17 -11
- package/dist/packages/_es/Audio.js +2 -2
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/BackTop.js +5 -2
- package/dist/packages/_es/Badge.js +2 -2
- package/dist/packages/_es/Barrage.js +2 -2
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +15 -16
- package/dist/packages/_es/Card.js +2 -2
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Cell.js +24 -17
- package/dist/packages/_es/CellGroup.js +2 -2
- package/dist/packages/_es/Checkbox.js +4 -4
- package/dist/packages/_es/CheckboxGroup.js +3 -3
- package/dist/packages/_es/CircleProgress.js +2 -2
- package/dist/packages/_es/Col.js +2 -2
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +28 -18
- package/dist/packages/_es/CountDown.js +4 -2
- package/dist/packages/_es/CountUp.js +25 -16
- package/dist/packages/_es/DatePicker.js +83 -47
- package/dist/packages/_es/Dialog.js +5 -3
- package/dist/packages/_es/Divider.js +2 -2
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Elevator.js +2 -2
- package/dist/packages/_es/Empty.js +2 -2
- package/dist/packages/_es/FixedNav.js +2 -2
- package/dist/packages/_es/Form.js +8 -6
- package/dist/packages/_es/FormItem.js +9 -6
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Icon.js +2 -2
- package/dist/packages/_es/ImagePreview.js +2 -2
- package/dist/packages/_es/Indicator.js +2 -2
- package/dist/packages/_es/InfiniteLoading.js +2 -2
- package/dist/packages/_es/Input.js +290 -66
- package/dist/packages/_es/InputNumber.js +2 -2
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/List.js +124 -0
- package/dist/packages/_es/Menu.js +2 -2
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +16 -10
- package/dist/packages/_es/NoticeBar.js +6 -5
- package/dist/packages/_es/Notify.js +7 -3
- package/dist/packages/_es/NumberKeyboard.js +9 -4
- package/dist/packages/_es/OverLay.js +2 -2
- package/dist/packages/_es/Pagination.js +2 -2
- package/dist/packages/_es/Picker.js +163 -157
- package/dist/packages/_es/Popover.js +2 -2
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +2 -2
- package/dist/packages/_es/Progress.js +14 -22
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +129 -19
- package/dist/packages/_es/Rate.js +2 -2
- package/dist/packages/_es/Row.js +2 -2
- package/dist/packages/_es/SearchBar.js +2 -2
- package/dist/packages/_es/ShortPassword.js +2 -2
- package/dist/packages/_es/SideNavBar.js +2 -2
- package/dist/packages/_es/SideNavBarItem.js +2 -2
- package/dist/packages/_es/Signature.js +25 -6
- package/dist/packages/_es/Skeleton.js +2 -2
- package/dist/packages/_es/Sku.js +31 -13
- package/dist/packages/_es/Step.js +28 -12
- package/dist/packages/_es/Steps.js +8 -3
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavBar.js +2 -2
- 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 +2 -2
- package/dist/packages/_es/TabPane.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/TabbarItem.js +17 -6
- package/dist/packages/_es/Table.js +2 -2
- package/dist/packages/_es/Tabs.js +8 -5
- package/dist/packages/_es/Tag.js +11 -5
- package/dist/packages/_es/TextArea.js +38 -6
- package/dist/packages/_es/TimeDetail.js +2 -2
- package/dist/packages/_es/TimePannel.js +2 -2
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Toast.js +2 -2
- package/dist/packages/_es/Uploader.js +2 -4
- package/dist/packages/_es/Video.js +12 -8
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +2 -2
- package/dist/packages/_es/index.js +2 -2
- package/dist/packages/_es/index2.js +2 -2
- package/dist/packages/_es/index3.js +2 -2
- package/dist/packages/_es/index4.js +2 -2
- package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
- package/dist/packages/_es/pxCheck.js +2 -2
- package/dist/packages/_es/raf.js +2 -2
- package/dist/packages/_es/util.js +2 -2
- package/dist/packages/badge/index.scss +11 -13
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/calendar/index.scss +9 -4
- package/dist/packages/calendaritem/index.scss +0 -207
- package/dist/packages/cell/index.scss +6 -6
- package/dist/packages/checkbox/index.scss +4 -3
- package/dist/packages/collapseitem/index.scss +21 -11
- package/dist/packages/countdown/index.scss +3 -1
- package/dist/packages/divider/index.scss +8 -8
- package/dist/packages/elevator/index.scss +36 -36
- package/dist/packages/formitem/index.scss +15 -8
- package/dist/packages/indicator/index.scss +1 -1
- package/dist/packages/input/index.scss +70 -24
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/list/index.scss +24 -0
- package/dist/packages/menu/index.scss +3 -3
- package/dist/packages/navbar/index.scss +28 -8
- package/dist/packages/noticebar/index.scss +7 -8
- package/dist/packages/notify/index.scss +9 -0
- package/dist/packages/numberkeyboard/index.scss +22 -21
- package/dist/packages/oldpicker/index.scss +131 -0
- package/dist/packages/picker/index.scss +38 -32
- package/dist/packages/progress/index.scss +6 -5
- package/dist/packages/radio/index.scss +7 -6
- package/dist/packages/range/index.scss +109 -2
- package/dist/packages/searchbar/index.scss +7 -7
- package/dist/packages/sidenavbaritem/index.scss +5 -5
- package/dist/packages/step/index.scss +29 -29
- package/dist/packages/subsidenavbar/index.scss +10 -8
- package/dist/packages/tabbaritem/index.scss +15 -0
- package/dist/packages/timedetail/index.scss +13 -13
- package/dist/packages/timepannel/index.scss +7 -7
- package/dist/packages/timeselect/index.scss +3 -3
- package/dist/packages/uploader/index.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +39 -37
- package/dist/styles/themes/jdt.scss +91 -0
- package/dist/styles/variables-jdt.scss +727 -0
- package/dist/styles/variables.scss +250 -44
- package/package.json +2 -1
- package/dist/styles/themes/jdd.scss +0 -2
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.18
|
|
22
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { c as createComponent } from "./component.js";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,26 +16,27 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.18
|
|
19
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
20
23
|
* Released under the MIT License.
|
|
21
24
|
*/
|
|
22
25
|
import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode } from "vue";
|
|
23
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { popupProps } from "./Popup.js";
|
|
24
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
|
+
import "./OverLay.js";
|
|
30
|
+
import "./Icon.js";
|
|
31
|
+
import "./pxCheck.js";
|
|
25
32
|
const { componentName, create } = createComponent("address");
|
|
26
33
|
const _sfc_main = create({
|
|
27
34
|
inheritAttrs: false,
|
|
28
|
-
props: {
|
|
35
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
29
36
|
modelValue: {
|
|
30
37
|
type: Array,
|
|
31
38
|
default: () => []
|
|
32
39
|
},
|
|
33
|
-
visible: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false
|
|
36
|
-
},
|
|
37
40
|
type: {
|
|
38
41
|
type: String,
|
|
39
42
|
default: "custom"
|
|
@@ -98,7 +101,7 @@ const _sfc_main = create({
|
|
|
98
101
|
type: [String, Array],
|
|
99
102
|
default: "\u8BF7\u9009\u62E9"
|
|
100
103
|
}
|
|
101
|
-
},
|
|
104
|
+
}),
|
|
102
105
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
103
106
|
setup(props, { emit }) {
|
|
104
107
|
const regionLine = ref(null);
|
|
@@ -368,7 +371,8 @@ const _sfc_main = create({
|
|
|
368
371
|
selectedExist,
|
|
369
372
|
clickOverlay,
|
|
370
373
|
handClose,
|
|
371
|
-
handleElevatorItem
|
|
374
|
+
handleElevatorItem,
|
|
375
|
+
initCustomSelected
|
|
372
376
|
}, toRefs(props));
|
|
373
377
|
}
|
|
374
378
|
});
|
|
@@ -423,7 +427,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
423
427
|
onClickOverlay: _ctx.clickOverlay,
|
|
424
428
|
onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.closeWay = "self"),
|
|
425
429
|
visible: _ctx.showPopup,
|
|
426
|
-
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event)
|
|
430
|
+
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event),
|
|
431
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
432
|
+
teleport: _ctx.teleport
|
|
427
433
|
}, {
|
|
428
434
|
default: withCtx(() => [
|
|
429
435
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -552,7 +558,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
552
558
|
])
|
|
553
559
|
]),
|
|
554
560
|
_: 1
|
|
555
|
-
}, 8, ["onClose", "onClickOverlay", "visible"]);
|
|
561
|
+
}, 8, ["onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
556
562
|
}
|
|
557
563
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
558
564
|
export { index as default };
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.18
|
|
22
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, renderSlot, createCommentVNode } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
|
|
@@ -116,6 +116,9 @@ const _sfc_main = create({
|
|
|
116
116
|
initCancelAniFrame();
|
|
117
117
|
}
|
|
118
118
|
onMounted(() => {
|
|
119
|
+
if (props.distance == 0) {
|
|
120
|
+
state.backTop = true;
|
|
121
|
+
}
|
|
119
122
|
init();
|
|
120
123
|
});
|
|
121
124
|
onUnmounted(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, computed, openBlock, createElementBlock, createElementVNode, renderSlot, withDirectives, toDisplayString, normalizeClass, normalizeStyle, vShow } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
@@ -15,8 +15,8 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.18
|
|
19
|
-
* (c)
|
|
18
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
19
|
+
* (c) 2022 @jdf2e.
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|
|
22
22
|
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode, resolveComponent, createBlock, withCtx, createSlots } from "vue";
|
|
@@ -465,11 +465,7 @@ const _sfc_main$1 = create$1({
|
|
|
465
465
|
return state.isRange && day.type == "curr" && getClass(day, month) == "calendar-month-day-active";
|
|
466
466
|
};
|
|
467
467
|
const isStartTip = (day, month) => {
|
|
468
|
-
|
|
469
|
-
return isStart(getCurrDate(day, month));
|
|
470
|
-
} else {
|
|
471
|
-
return false;
|
|
472
|
-
}
|
|
468
|
+
return isActive(day, month) && isStart(getCurrDate(day, month));
|
|
473
469
|
};
|
|
474
470
|
const isEndTip = (day, month) => {
|
|
475
471
|
if (state.currDate.length >= 2 && isEnd(getCurrDate(day, month))) {
|
|
@@ -482,12 +478,12 @@ const _sfc_main$1 = create$1({
|
|
|
482
478
|
return Utils.isEqual(state.currDate[0], state.currDate[1]);
|
|
483
479
|
}
|
|
484
480
|
};
|
|
485
|
-
const isCurrDay = (
|
|
486
|
-
const date = `${
|
|
481
|
+
const isCurrDay = (dateInfo) => {
|
|
482
|
+
const date = `${dateInfo.year}-${dateInfo.month}-${dateInfo.day < 10 ? "0" + dateInfo.day : dateInfo.day}`;
|
|
487
483
|
return Utils.isEqual(date, Utils.date2Str(new Date()));
|
|
488
484
|
};
|
|
489
485
|
const mothsViewScroll = (e) => {
|
|
490
|
-
|
|
486
|
+
const currentScrollTop = e.target.scrollTop;
|
|
491
487
|
let current = Math.floor(currentScrollTop / state.avgHeight);
|
|
492
488
|
if (current == 0) {
|
|
493
489
|
if (currentScrollTop >= state.monthsData[current + 1].cssScrollHeight) {
|
|
@@ -501,10 +497,11 @@ const _sfc_main$1 = create$1({
|
|
|
501
497
|
current -= 1;
|
|
502
498
|
}
|
|
503
499
|
} else {
|
|
504
|
-
|
|
500
|
+
const viewPosition = Math.round(currentScrollTop + viewHeight.value);
|
|
501
|
+
if (viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight && currentScrollTop > state.monthsData[current - 1].cssScrollHeight) {
|
|
505
502
|
current -= 1;
|
|
506
503
|
}
|
|
507
|
-
if (current + 1 <= state.monthsNum &&
|
|
504
|
+
if (current + 1 <= state.monthsNum && viewPosition >= state.monthsData[current + 1].cssScrollHeight + state.monthsData[current + 1].cssHeight) {
|
|
508
505
|
current += 1;
|
|
509
506
|
}
|
|
510
507
|
if (currentScrollTop < state.monthsData[current - 1].cssScrollHeight) {
|
|
@@ -663,7 +660,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
663
660
|
date: day.type == "curr" ? day : ""
|
|
664
661
|
})
|
|
665
662
|
])) : createCommentVNode("", true),
|
|
666
|
-
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(
|
|
663
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, " \u4ECA\u5929 ")) : createCommentVNode("", true),
|
|
667
664
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
668
665
|
key: 3,
|
|
669
666
|
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(day, month) }])
|
|
@@ -822,13 +819,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
822
819
|
"start-text": _ctx.startText,
|
|
823
820
|
"end-text": _ctx.endText,
|
|
824
821
|
"default-value": _ctx.defaultValue,
|
|
825
|
-
"show-today": _ctx.showToday,
|
|
826
822
|
"start-date": _ctx.startDate,
|
|
827
823
|
"end-date": _ctx.endDate,
|
|
828
824
|
onUpdate: _ctx.update,
|
|
829
825
|
onClose: _ctx.close,
|
|
830
826
|
onChoose: _ctx.choose,
|
|
831
827
|
onSelect: _ctx.select,
|
|
828
|
+
"show-today": _ctx.showToday,
|
|
832
829
|
"show-title": _ctx.showTitle,
|
|
833
830
|
"show-sub-title": _ctx.showSubTitle
|
|
834
831
|
}, createSlots({ _: 2 }, [
|
|
@@ -862,7 +859,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
862
859
|
})
|
|
863
860
|
])
|
|
864
861
|
} : void 0
|
|
865
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "
|
|
862
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : createCommentVNode("", true)
|
|
866
863
|
]),
|
|
867
864
|
_: 3
|
|
868
865
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
@@ -877,9 +874,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
877
874
|
"default-value": _ctx.defaultValue,
|
|
878
875
|
"start-date": _ctx.startDate,
|
|
879
876
|
"end-date": _ctx.endDate,
|
|
877
|
+
onUpdate: _ctx.update,
|
|
880
878
|
onClose: _ctx.close,
|
|
881
879
|
onChoose: _ctx.choose,
|
|
882
880
|
onSelect: _ctx.select,
|
|
881
|
+
"show-today": _ctx.showToday,
|
|
883
882
|
"show-title": _ctx.showTitle,
|
|
884
883
|
"show-sub-title": _ctx.showSubTitle
|
|
885
884
|
}, createSlots({ _: 2 }, [
|
|
@@ -913,7 +912,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
913
912
|
})
|
|
914
913
|
])
|
|
915
914
|
} : void 0
|
|
916
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onClose", "onChoose", "onSelect", "show-title", "show-sub-title"]));
|
|
915
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
|
|
917
916
|
}
|
|
918
917
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
919
918
|
export { index as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
@@ -35,8 +35,8 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.18
|
|
39
|
-
* (c)
|
|
38
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
39
|
+
* (c) 2022 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
|
42
42
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode } from "vue";
|
|
@@ -52,8 +52,16 @@ const _sfc_main = create({
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
const _hoisted_1 = {
|
|
56
|
-
|
|
55
|
+
const _hoisted_1 = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "nut-cell__icon"
|
|
58
|
+
};
|
|
59
|
+
const _hoisted_2 = {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: "nut-cell__title"
|
|
62
|
+
};
|
|
63
|
+
const _hoisted_3 = { class: "title" };
|
|
64
|
+
const _hoisted_4 = { class: "nut-cell__title-desc" };
|
|
57
65
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
66
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
59
67
|
return openBlock(), createElementBlock("view", {
|
|
@@ -62,29 +70,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62
70
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
63
71
|
}, [
|
|
64
72
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
65
|
-
_ctx.
|
|
66
|
-
key: 0,
|
|
67
|
-
class: normalizeClass(["nut-cell__title", { icon: _ctx.icon || _ctx.$slots.icon }])
|
|
68
|
-
}, [
|
|
73
|
+
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
69
74
|
_ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
70
75
|
key: 1,
|
|
71
76
|
class: "icon",
|
|
72
77
|
name: _ctx.icon
|
|
73
|
-
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
79
|
+
])) : createCommentVNode("", true),
|
|
80
|
+
_ctx.title || _ctx.subTitle ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
81
|
+
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
82
|
+
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.title), 1),
|
|
83
|
+
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.subTitle), 1)
|
|
84
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
78
85
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
79
86
|
], 64))
|
|
80
|
-
]
|
|
87
|
+
])) : createCommentVNode("", true),
|
|
81
88
|
_ctx.desc ? (openBlock(), createElementBlock("view", {
|
|
82
|
-
key:
|
|
89
|
+
key: 2,
|
|
83
90
|
class: "nut-cell__value",
|
|
84
91
|
style: normalizeStyle({ "text-align": _ctx.descTextAlign })
|
|
85
92
|
}, toDisplayString(_ctx.desc), 5)) : createCommentVNode("", true),
|
|
86
|
-
_ctx.$slots.link ? renderSlot(_ctx.$slots, "link", { key:
|
|
87
|
-
key:
|
|
93
|
+
_ctx.$slots.link ? renderSlot(_ctx.$slots, "link", { key: 3 }) : _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, {
|
|
94
|
+
key: 4,
|
|
88
95
|
class: "nut-cell__link",
|
|
89
96
|
name: "right"
|
|
90
97
|
})) : createCommentVNode("", true)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, computed, onMounted, getCurrentInstance, h } from "vue";
|
|
@@ -27,7 +27,7 @@ const _sfc_main = create({
|
|
|
27
27
|
},
|
|
28
28
|
iconSize: {
|
|
29
29
|
type: [String, Number],
|
|
30
|
-
default: "
|
|
30
|
+
default: ""
|
|
31
31
|
},
|
|
32
32
|
iconName: {
|
|
33
33
|
type: String,
|
|
@@ -54,7 +54,7 @@ const _sfc_main = create({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const pDisabled = computed(() => {
|
|
57
|
-
return hasParent.value ? parent.disabled : props.disabled;
|
|
57
|
+
return hasParent.value ? parent.disabled.value : props.disabled;
|
|
58
58
|
});
|
|
59
59
|
const checked = computed(() => !!props.modelValue);
|
|
60
60
|
const color = computed(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, provide, computed, watch, h } from "vue";
|
|
@@ -43,7 +43,7 @@ const _sfc_main = create({
|
|
|
43
43
|
};
|
|
44
44
|
provide("parent", {
|
|
45
45
|
value: computed(() => props.modelValue),
|
|
46
|
-
disabled: props.disabled,
|
|
46
|
+
disabled: computed(() => props.disabled),
|
|
47
47
|
updateValue,
|
|
48
48
|
relation
|
|
49
49
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.18
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.18
|
|
22
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted,
|
|
25
|
+
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, nextTick, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
28
|
const { create, componentName } = createComponent("collapse-item");
|
|
@@ -165,19 +165,30 @@ const _sfc_main = create({
|
|
|
165
165
|
onMounted(() => {
|
|
166
166
|
const { name } = props;
|
|
167
167
|
const active = parent && parent.props.active;
|
|
168
|
-
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
nextTick(() => {
|
|
169
|
+
if (typeof active == "number" || typeof active == "string") {
|
|
170
|
+
if (name == active) {
|
|
171
|
+
defaultOpen();
|
|
172
|
+
}
|
|
173
|
+
} else if (Object.values(active) instanceof Array) {
|
|
174
|
+
const f = Object.values(active).filter((item) => item == name);
|
|
175
|
+
if (f.length > 0) {
|
|
176
|
+
defaultOpen();
|
|
177
|
+
}
|
|
176
178
|
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
const emptyContent = computed(() => {
|
|
182
|
+
let ele = contentRef.value;
|
|
183
|
+
let _class = "";
|
|
184
|
+
if (!(ele == null ? void 0 : ele.innerText)) {
|
|
185
|
+
_class = "empty";
|
|
177
186
|
}
|
|
187
|
+
return _class;
|
|
178
188
|
});
|
|
179
189
|
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
180
|
-
classes
|
|
190
|
+
classes,
|
|
191
|
+
emptyContent
|
|
181
192
|
}, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
|
|
182
193
|
wrapperRef,
|
|
183
194
|
contentRef,
|
|
@@ -200,10 +211,6 @@ const _hoisted_6 = {
|
|
|
200
211
|
class: "collapse-wrapper",
|
|
201
212
|
ref: "wrapperRef"
|
|
202
213
|
};
|
|
203
|
-
const _hoisted_7 = {
|
|
204
|
-
class: "collapse-content",
|
|
205
|
-
ref: "contentRef"
|
|
206
|
-
};
|
|
207
214
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
208
215
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
209
216
|
return openBlock(), createElementBlock("view", {
|
|
@@ -248,9 +255,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
248
255
|
}, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
|
|
249
256
|
], 2),
|
|
250
257
|
createElementVNode("view", _hoisted_6, [
|
|
251
|
-
createElementVNode("view",
|
|
258
|
+
createElementVNode("view", {
|
|
259
|
+
class: normalizeClass(["collapse-content", _ctx.emptyContent]),
|
|
260
|
+
ref: "contentRef"
|
|
261
|
+
}, [
|
|
252
262
|
renderSlot(_ctx.$slots, "default")
|
|
253
|
-
],
|
|
263
|
+
], 2)
|
|
254
264
|
], 512)
|
|
255
265
|
], 2);
|
|
256
266
|
}
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.18
|
|
22
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, Fragment, createElementVNode, createCommentVNode } from "vue";
|
|
@@ -125,6 +125,8 @@ const _sfc_main = create({
|
|
|
125
125
|
const end = getTimeStamp(props.endTime || curr);
|
|
126
126
|
const diffTime = curr - start;
|
|
127
127
|
state.restTime = end - (start + diffTime);
|
|
128
|
+
clearInterval(state.timer);
|
|
129
|
+
state.timer = null;
|
|
128
130
|
state.timer = setInterval(() => {
|
|
129
131
|
if (!props.paused) {
|
|
130
132
|
let restTime2 = end - (Date.now() - state.p + diffTime);
|