@nutui/nutui 3.1.23-beta.2 → 3.1.23-beta.5
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 +7 -0
- package/dist/nutui.es.js +187 -99
- package/dist/nutui.umd.js +187 -99
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- 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/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +7 -4
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Comment.js +4 -3
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +16 -5
- 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/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- 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/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.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 +53 -27
- package/dist/packages/_es/Popover.js +1 -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/PullRefresh.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +33 -13
- package/dist/packages/_es/Table.js +36 -21
- 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 +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +10 -3
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.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 +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- 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/backtop/index.scss +8 -0
- package/dist/packages/badge/index.scss +8 -0
- package/dist/packages/calendar/index.scss +27 -1
- package/dist/packages/cascader/index.scss +13 -0
- package/dist/packages/cell/index.scss +2 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/oldpicker/index.scss +2 -0
- package/dist/packages/picker/index.scss +11 -0
- package/dist/packages/table/index.scss +33 -0
- package/dist/packages/timedetail/index.scss +16 -0
- package/dist/packages/timepannel/index.scss +10 -0
- package/dist/packages/timeselect/index.scss +19 -1
- package/dist/packages/uploader/index.scss +10 -0
- package/dist/smartips/attributes.json +8 -0
- package/dist/smartips/tags.json +4 -2
- package/dist/smartips/web-types.json +19 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/styles/variables-jdb.scss +5 -4
- package/dist/styles/variables-jdt.scss +5 -4
- package/dist/styles/variables.scss +5 -4
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +6 -6
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +7 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/Column.vue.d.ts +9 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +16 -2
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +9 -3
- package/dist/types/__VUE/table/common.d.ts +3 -0
- package/dist/types/__VUE/table/index.vue.d.ts +3 -0
- package/dist/types/__VUE/table/types.d.ts +2 -0
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/nutui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:27 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -526,7 +526,7 @@ const _hoisted_2$14 = {
|
|
|
526
526
|
key: 1,
|
|
527
527
|
class: "nut-cell__title"
|
|
528
528
|
};
|
|
529
|
-
const _hoisted_3$
|
|
529
|
+
const _hoisted_3$Q = { class: "title" };
|
|
530
530
|
const _hoisted_4$E = { class: "nut-cell__title-desc" };
|
|
531
531
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
532
532
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -548,7 +548,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
548
|
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2$14, [
|
|
549
549
|
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
550
550
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
551
|
-
createElementVNode("view", _hoisted_3$
|
|
551
|
+
createElementVNode("view", _hoisted_3$Q, toDisplayString(_ctx.title), 1)
|
|
552
552
|
]),
|
|
553
553
|
createElementVNode("view", _hoisted_4$E, toDisplayString(_ctx.subTitle), 1)
|
|
554
554
|
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
@@ -645,14 +645,14 @@ const _hoisted_2$13 = {
|
|
|
645
645
|
key: 3,
|
|
646
646
|
class: "nut-cell-group__desc"
|
|
647
647
|
};
|
|
648
|
-
const _hoisted_3$
|
|
648
|
+
const _hoisted_3$P = { class: "nut-cell-group__warp" };
|
|
649
649
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
650
650
|
return openBlock(), createElementBlock("view", {
|
|
651
651
|
class: normalizeClass(_ctx.classes)
|
|
652
652
|
}, [
|
|
653
653
|
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$1j, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
654
654
|
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$13, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
655
|
-
createElementVNode("view", _hoisted_3$
|
|
655
|
+
createElementVNode("view", _hoisted_3$P, [
|
|
656
656
|
renderSlot(_ctx.$slots, "default")
|
|
657
657
|
])
|
|
658
658
|
], 2);
|
|
@@ -1152,7 +1152,7 @@ const _hoisted_2$12 = {
|
|
|
1152
1152
|
key: 0,
|
|
1153
1153
|
class: "nut-img-loading"
|
|
1154
1154
|
};
|
|
1155
|
-
const _hoisted_3$
|
|
1155
|
+
const _hoisted_3$O = {
|
|
1156
1156
|
key: 1,
|
|
1157
1157
|
class: "nut-img-error"
|
|
1158
1158
|
};
|
|
@@ -1178,7 +1178,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1178
1178
|
})) : createCommentVNode("", true),
|
|
1179
1179
|
renderSlot(_ctx.$slots, "loading")
|
|
1180
1180
|
])) : createCommentVNode("", true),
|
|
1181
|
-
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
1181
|
+
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$O, [
|
|
1182
1182
|
!_ctx.slotError ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1183
1183
|
key: 0,
|
|
1184
1184
|
name: "image-error"
|
|
@@ -1880,7 +1880,7 @@ const _hoisted_2$11 = {
|
|
|
1880
1880
|
key: 1,
|
|
1881
1881
|
class: "nut-navbar__text"
|
|
1882
1882
|
};
|
|
1883
|
-
const _hoisted_3$
|
|
1883
|
+
const _hoisted_3$N = { class: "nut-navbar__title" };
|
|
1884
1884
|
const _hoisted_4$D = {
|
|
1885
1885
|
key: 0,
|
|
1886
1886
|
class: "nut-navbar__text"
|
|
@@ -1914,7 +1914,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1914
1914
|
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$11, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1915
1915
|
renderSlot(_ctx.$slots, "left")
|
|
1916
1916
|
]),
|
|
1917
|
-
createElementVNode("view", _hoisted_3$
|
|
1917
|
+
createElementVNode("view", _hoisted_3$N, [
|
|
1918
1918
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1919
1919
|
key: 0,
|
|
1920
1920
|
class: "title",
|
|
@@ -2041,7 +2041,7 @@ const _sfc_main$1z = create$1z({
|
|
|
2041
2041
|
});
|
|
2042
2042
|
const _hoisted_1$1e = { class: "nut-fixednav__list" };
|
|
2043
2043
|
const _hoisted_2$10 = ["onClick"];
|
|
2044
|
-
const _hoisted_3$
|
|
2044
|
+
const _hoisted_3$M = ["src"];
|
|
2045
2045
|
const _hoisted_4$C = { class: "span" };
|
|
2046
2046
|
const _hoisted_5$s = {
|
|
2047
2047
|
key: 0,
|
|
@@ -2071,7 +2071,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2071
2071
|
}, [
|
|
2072
2072
|
createElementVNode("img", {
|
|
2073
2073
|
src: item.icon
|
|
2074
|
-
}, null, 8, _hoisted_3$
|
|
2074
|
+
}, null, 8, _hoisted_3$M),
|
|
2075
2075
|
createElementVNode("view", _hoisted_4$C, toDisplayString(item.text), 1),
|
|
2076
2076
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
2077
2077
|
], 8, _hoisted_2$10);
|
|
@@ -2462,10 +2462,10 @@ const _sfc_main$1w = create$1w({
|
|
|
2462
2462
|
val: props.visible,
|
|
2463
2463
|
children: []
|
|
2464
2464
|
});
|
|
2465
|
-
function changeIndex(active) {
|
|
2465
|
+
function changeIndex(index, active) {
|
|
2466
2466
|
emit("update:visible", active);
|
|
2467
2467
|
parentData.modelValue = active;
|
|
2468
|
-
emit("tab-switch", parentData.children[
|
|
2468
|
+
emit("tab-switch", parentData.children[index], active);
|
|
2469
2469
|
}
|
|
2470
2470
|
let parentData = reactive({
|
|
2471
2471
|
children: mdValue.children,
|
|
@@ -2499,6 +2499,9 @@ const _sfc_main$1v = create$1v({
|
|
|
2499
2499
|
type: String,
|
|
2500
2500
|
default: ""
|
|
2501
2501
|
},
|
|
2502
|
+
name: {
|
|
2503
|
+
type: String
|
|
2504
|
+
},
|
|
2502
2505
|
icon: {
|
|
2503
2506
|
type: String,
|
|
2504
2507
|
default: ""
|
|
@@ -2544,15 +2547,25 @@ const _sfc_main$1v = create$1v({
|
|
|
2544
2547
|
});
|
|
2545
2548
|
const router = useRouter();
|
|
2546
2549
|
const relation = (child) => {
|
|
2550
|
+
var _a;
|
|
2547
2551
|
if (child.proxy) {
|
|
2548
|
-
let index = parent.children.length;
|
|
2549
|
-
state.index = index;
|
|
2550
2552
|
parent.children.push(child.proxy);
|
|
2553
|
+
const index = computed(() => parent.children.indexOf(child.proxy));
|
|
2554
|
+
state.index = (_a = props.name) != null ? _a : index.value;
|
|
2551
2555
|
}
|
|
2552
2556
|
};
|
|
2553
2557
|
relation(getCurrentInstance());
|
|
2554
|
-
|
|
2555
|
-
|
|
2558
|
+
const active = computed(() => state.index === state.active);
|
|
2559
|
+
function change() {
|
|
2560
|
+
var _a;
|
|
2561
|
+
let key = (_a = props.name) != null ? _a : state.index;
|
|
2562
|
+
let index = null;
|
|
2563
|
+
if (props.name) {
|
|
2564
|
+
index = parent.children.findIndex((item) => {
|
|
2565
|
+
return item.name == key;
|
|
2566
|
+
});
|
|
2567
|
+
}
|
|
2568
|
+
parent.changeIndex(index != null ? index : key, state.index);
|
|
2556
2569
|
}
|
|
2557
2570
|
const choosed = computed(() => {
|
|
2558
2571
|
if (parent) {
|
|
@@ -2562,13 +2575,19 @@ const _sfc_main$1v = create$1v({
|
|
|
2562
2575
|
});
|
|
2563
2576
|
watch(choosed, (value, oldValue) => {
|
|
2564
2577
|
state.active = value;
|
|
2578
|
+
let index = value;
|
|
2579
|
+
if (props.name) {
|
|
2580
|
+
index = parent.children.findIndex((item) => {
|
|
2581
|
+
return item.name == value;
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2565
2584
|
setTimeout(() => {
|
|
2566
|
-
if (parent.children[
|
|
2567
|
-
window.location.href = parent.children[
|
|
2585
|
+
if (parent.children[index].href) {
|
|
2586
|
+
window.location.href = parent.children[index].href;
|
|
2568
2587
|
return;
|
|
2569
2588
|
}
|
|
2570
|
-
if (parent.children[
|
|
2571
|
-
let to = parent.children[
|
|
2589
|
+
if (parent.children[index].to) {
|
|
2590
|
+
let to = parent.children[index].to;
|
|
2572
2591
|
if (to && router) {
|
|
2573
2592
|
router.push(to);
|
|
2574
2593
|
} else {
|
|
@@ -2579,6 +2598,7 @@ const _sfc_main$1v = create$1v({
|
|
|
2579
2598
|
});
|
|
2580
2599
|
return {
|
|
2581
2600
|
state,
|
|
2601
|
+
active,
|
|
2582
2602
|
change
|
|
2583
2603
|
};
|
|
2584
2604
|
}
|
|
@@ -2588,7 +2608,7 @@ const _hoisted_2$Z = {
|
|
|
2588
2608
|
key: 0,
|
|
2589
2609
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2590
2610
|
};
|
|
2591
|
-
const _hoisted_3$
|
|
2611
|
+
const _hoisted_3$L = {
|
|
2592
2612
|
key: 1,
|
|
2593
2613
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2594
2614
|
};
|
|
@@ -2601,15 +2621,15 @@ const _hoisted_6$o = { key: 0 };
|
|
|
2601
2621
|
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2602
2622
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2603
2623
|
return openBlock(), createElementBlock("div", {
|
|
2604
|
-
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.
|
|
2624
|
+
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": !_ctx.active }]),
|
|
2605
2625
|
style: normalizeStyle({
|
|
2606
|
-
color: _ctx.
|
|
2626
|
+
color: _ctx.active ? _ctx.state.activeColor : _ctx.state.unactiveColor
|
|
2607
2627
|
}),
|
|
2608
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(
|
|
2628
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change())
|
|
2609
2629
|
}, [
|
|
2610
2630
|
createElementVNode("view", _hoisted_1$1b, [
|
|
2611
2631
|
!_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2612
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$Z, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
2632
|
+
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$Z, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$L, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
2613
2633
|
], 64)) : createCommentVNode("", true),
|
|
2614
2634
|
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$B)) : createCommentVNode("", true),
|
|
2615
2635
|
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5$r, [
|
|
@@ -2625,7 +2645,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2625
2645
|
key: 3,
|
|
2626
2646
|
class: "nut-tabbar-item_icon-box_icon",
|
|
2627
2647
|
style: normalizeStyle({
|
|
2628
|
-
backgroundImage: `url(${_ctx.
|
|
2648
|
+
backgroundImage: `url(${_ctx.active ? _ctx.activeImg : _ctx.img})`,
|
|
2629
2649
|
width: _ctx.state.size,
|
|
2630
2650
|
height: _ctx.state.size
|
|
2631
2651
|
})
|
|
@@ -2822,7 +2842,7 @@ const _sfc_main$1u = create$1u({
|
|
|
2822
2842
|
});
|
|
2823
2843
|
const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
|
|
2824
2844
|
const _hoisted_2$Y = ["onClick"];
|
|
2825
|
-
const _hoisted_3$
|
|
2845
|
+
const _hoisted_3$K = ["innerHTML"];
|
|
2826
2846
|
const _hoisted_4$A = { class: "fixed-title" };
|
|
2827
2847
|
const _hoisted_5$q = { class: "nut-elevator__bars__inner" };
|
|
2828
2848
|
const _hoisted_6$n = ["data-index", "onClick"];
|
|
@@ -2853,7 +2873,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2853
2873
|
!_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
2854
2874
|
key: 0,
|
|
2855
2875
|
innerHTML: subitem.name
|
|
2856
|
-
}, null, 8, _hoisted_3$
|
|
2876
|
+
}, null, 8, _hoisted_3$K)) : renderSlot(_ctx.$slots, "default", {
|
|
2857
2877
|
key: 1,
|
|
2858
2878
|
item: subitem
|
|
2859
2879
|
})
|
|
@@ -3009,7 +3029,7 @@ const _hoisted_2$X = {
|
|
|
3009
3029
|
key: 0,
|
|
3010
3030
|
class: "nut-pagination-contain"
|
|
3011
3031
|
};
|
|
3012
|
-
const _hoisted_3$
|
|
3032
|
+
const _hoisted_3$J = ["onClick"];
|
|
3013
3033
|
const _hoisted_4$z = {
|
|
3014
3034
|
key: 1,
|
|
3015
3035
|
class: "nut-pagination-contain"
|
|
@@ -3035,7 +3055,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3035
3055
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
3036
3056
|
createTextVNode(toDisplayString(item.text), 1)
|
|
3037
3057
|
])
|
|
3038
|
-
], 10, _hoisted_3$
|
|
3058
|
+
], 10, _hoisted_3$J);
|
|
3039
3059
|
}), 128))
|
|
3040
3060
|
])) : createCommentVNode("", true),
|
|
3041
3061
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$z, [
|
|
@@ -3510,7 +3530,7 @@ const _sfc_main$1n = create$1n({
|
|
|
3510
3530
|
});
|
|
3511
3531
|
const _hoisted_1$15 = ["ikey"];
|
|
3512
3532
|
const _hoisted_2$U = { class: "nut-subsidenavbar__title__text" };
|
|
3513
|
-
const _hoisted_3$
|
|
3533
|
+
const _hoisted_3$I = { class: "nut-subsidenavbar__title__icon" };
|
|
3514
3534
|
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3515
3535
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3516
3536
|
return openBlock(), createElementBlock("view", {
|
|
@@ -3522,7 +3542,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3522
3542
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3523
3543
|
}, [
|
|
3524
3544
|
createElementVNode("span", _hoisted_2$U, toDisplayString(_ctx.title), 1),
|
|
3525
|
-
createElementVNode("span", _hoisted_3$
|
|
3545
|
+
createElementVNode("span", _hoisted_3$I, [
|
|
3526
3546
|
createVNode(_component_nut_icon, {
|
|
3527
3547
|
name: "down-arrow",
|
|
3528
3548
|
class: normalizeClass(_ctx.direction)
|
|
@@ -3896,7 +3916,7 @@ const _hoisted_2$T = {
|
|
|
3896
3916
|
key: 0,
|
|
3897
3917
|
class: "nut-range-mark"
|
|
3898
3918
|
};
|
|
3899
|
-
const _hoisted_3$
|
|
3919
|
+
const _hoisted_3$H = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
3900
3920
|
const _hoisted_4$y = {
|
|
3901
3921
|
key: 0,
|
|
3902
3922
|
class: "number"
|
|
@@ -3971,7 +3991,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3971
3991
|
}, [
|
|
3972
3992
|
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$y, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
3973
3993
|
], 4))
|
|
3974
|
-
], 42, _hoisted_3$
|
|
3994
|
+
], 42, _hoisted_3$H);
|
|
3975
3995
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
3976
3996
|
key: 1,
|
|
3977
3997
|
role: "slider",
|
|
@@ -4160,7 +4180,7 @@ const _hoisted_2$S = {
|
|
|
4160
4180
|
key: 1,
|
|
4161
4181
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
4162
4182
|
};
|
|
4163
|
-
const _hoisted_3$
|
|
4183
|
+
const _hoisted_3$G = { class: "nut-searchbar__input-inner" };
|
|
4164
4184
|
const _hoisted_4$x = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
4165
4185
|
const _hoisted_5$n = {
|
|
4166
4186
|
key: 2,
|
|
@@ -4187,7 +4207,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4187
4207
|
}, [
|
|
4188
4208
|
renderSlot(_ctx.$slots, "leftin")
|
|
4189
4209
|
])) : createCommentVNode("", true),
|
|
4190
|
-
createElementVNode("view", _hoisted_3$
|
|
4210
|
+
createElementVNode("view", _hoisted_3$G, [
|
|
4191
4211
|
createElementVNode("form", {
|
|
4192
4212
|
action: "#",
|
|
4193
4213
|
onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -4579,7 +4599,7 @@ const _hoisted_1$12 = {
|
|
|
4579
4599
|
class: "nut-cascader-pane"
|
|
4580
4600
|
};
|
|
4581
4601
|
const _hoisted_2$R = ["aria-checked", "aria-disabled", "onClick"];
|
|
4582
|
-
const _hoisted_3$
|
|
4602
|
+
const _hoisted_3$F = { class: "nut-cascader-item__title" };
|
|
4583
4603
|
const _hoisted_4$w = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4584
4604
|
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4585
4605
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -4609,7 +4629,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4609
4629
|
role: "menuitemradio",
|
|
4610
4630
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4611
4631
|
}, [
|
|
4612
|
-
createElementVNode("view", _hoisted_3$
|
|
4632
|
+
createElementVNode("view", _hoisted_3$F, toDisplayString(node.text), 1),
|
|
4613
4633
|
node.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4614
4634
|
key: 0,
|
|
4615
4635
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -5406,7 +5426,7 @@ const _hoisted_2$Q = {
|
|
|
5406
5426
|
key: 1,
|
|
5407
5427
|
class: "calendar-top-slot"
|
|
5408
5428
|
};
|
|
5409
|
-
const _hoisted_3$
|
|
5429
|
+
const _hoisted_3$E = {
|
|
5410
5430
|
key: 2,
|
|
5411
5431
|
class: "calendar-curr-month"
|
|
5412
5432
|
};
|
|
@@ -5456,7 +5476,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5456
5476
|
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$Q, [
|
|
5457
5477
|
renderSlot(_ctx.$slots, "btn")
|
|
5458
5478
|
])) : createCommentVNode("", true),
|
|
5459
|
-
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
5479
|
+
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$E, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
5460
5480
|
createElementVNode("view", _hoisted_4$v, [
|
|
5461
5481
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
5462
5482
|
return openBlock(), createElementBlock("view", {
|
|
@@ -6004,6 +6024,10 @@ const _sfc_main$1e = create$1e({
|
|
|
6004
6024
|
readonly: {
|
|
6005
6025
|
type: Boolean,
|
|
6006
6026
|
default: false
|
|
6027
|
+
},
|
|
6028
|
+
threeDimensional: {
|
|
6029
|
+
type: Boolean,
|
|
6030
|
+
default: true
|
|
6007
6031
|
}
|
|
6008
6032
|
},
|
|
6009
6033
|
emits: ["click", "change"],
|
|
@@ -6028,7 +6052,6 @@ const _sfc_main$1e = create$1e({
|
|
|
6028
6052
|
});
|
|
6029
6053
|
const roller = ref(null);
|
|
6030
6054
|
const list = ref(null);
|
|
6031
|
-
const listItem = ref(null);
|
|
6032
6055
|
const moving = ref(false);
|
|
6033
6056
|
const touchDeg = ref(0);
|
|
6034
6057
|
const touchTime = ref(0);
|
|
@@ -6040,7 +6063,7 @@ const _sfc_main$1e = create$1e({
|
|
|
6040
6063
|
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
6041
6064
|
};
|
|
6042
6065
|
});
|
|
6043
|
-
const
|
|
6066
|
+
const touchTileStyle = computed(() => {
|
|
6044
6067
|
return {
|
|
6045
6068
|
transition: `transform ${touchTime.value}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,
|
|
6046
6069
|
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
@@ -6052,7 +6075,11 @@ const _sfc_main$1e = create$1e({
|
|
|
6052
6075
|
const onTouchStart = (event) => {
|
|
6053
6076
|
touch.start(event);
|
|
6054
6077
|
if (moving.value) {
|
|
6055
|
-
|
|
6078
|
+
let dom = list.value;
|
|
6079
|
+
if (!props.threeDimensional) {
|
|
6080
|
+
dom = roller.value;
|
|
6081
|
+
}
|
|
6082
|
+
const { transform } = window.getComputedStyle(dom);
|
|
6056
6083
|
state.scrollDistance = +transform.slice(7, transform.length - 1).split(", ")[5];
|
|
6057
6084
|
}
|
|
6058
6085
|
state.touchParams.startY = touch.deltaY.value;
|
|
@@ -6066,13 +6093,8 @@ const _sfc_main$1e = create$1e({
|
|
|
6066
6093
|
preventDefault2(event, true);
|
|
6067
6094
|
}
|
|
6068
6095
|
state.touchParams.lastY = touch.deltaY.value;
|
|
6069
|
-
const now = Date.now();
|
|
6070
6096
|
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
6071
6097
|
setMove(move);
|
|
6072
|
-
if (now - state.touchParams.startTime > INERTIA_TIME) {
|
|
6073
|
-
state.touchParams.startTime = now;
|
|
6074
|
-
state.touchParams.startY = state.touchParams.lastY;
|
|
6075
|
-
}
|
|
6076
6098
|
};
|
|
6077
6099
|
const onTouchEnd = (event) => {
|
|
6078
6100
|
state.touchParams.lastY = touch.deltaY.value;
|
|
@@ -6126,13 +6148,15 @@ const _sfc_main$1e = create$1e({
|
|
|
6126
6148
|
setTransform(endMove, type, time, deg);
|
|
6127
6149
|
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
6128
6150
|
} else {
|
|
6129
|
-
let deg =
|
|
6151
|
+
let deg = 0;
|
|
6130
6152
|
let currentDeg = (-updateMove / state.lineSpacing + 1) * state.rotation;
|
|
6131
6153
|
const maxDeg = (props.column.length + 1) * state.rotation;
|
|
6132
6154
|
const minDeg = 0;
|
|
6133
|
-
deg = Math.min(Math.max(currentDeg, minDeg), maxDeg)
|
|
6134
|
-
|
|
6135
|
-
|
|
6155
|
+
deg = Math.min(Math.max(currentDeg, minDeg), maxDeg);
|
|
6156
|
+
if (minDeg < deg && deg < maxDeg) {
|
|
6157
|
+
setTransform(updateMove, null, void 0, deg + "deg");
|
|
6158
|
+
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
6159
|
+
}
|
|
6136
6160
|
}
|
|
6137
6161
|
};
|
|
6138
6162
|
const setChooseValue = () => {
|
|
@@ -6159,7 +6183,14 @@ const _sfc_main$1e = create$1e({
|
|
|
6159
6183
|
setChooseValue();
|
|
6160
6184
|
};
|
|
6161
6185
|
watch(() => props.column, (val) => {
|
|
6162
|
-
|
|
6186
|
+
if (props.column && props.column.length > 0) {
|
|
6187
|
+
state.transformY = 0;
|
|
6188
|
+
modifyStatus(false);
|
|
6189
|
+
}
|
|
6190
|
+
}, {
|
|
6191
|
+
deep: true
|
|
6192
|
+
});
|
|
6193
|
+
watch(() => props.value, (val) => {
|
|
6163
6194
|
state.transformY = 0;
|
|
6164
6195
|
modifyStatus(false);
|
|
6165
6196
|
}, {
|
|
@@ -6176,19 +6207,25 @@ const _sfc_main$1e = create$1e({
|
|
|
6176
6207
|
isHidden,
|
|
6177
6208
|
roller,
|
|
6178
6209
|
list,
|
|
6179
|
-
listItem,
|
|
6180
6210
|
onTouchStart,
|
|
6181
6211
|
onTouchMove,
|
|
6182
6212
|
onTouchEnd,
|
|
6183
6213
|
touchRollerStyle,
|
|
6184
|
-
|
|
6214
|
+
touchTileStyle,
|
|
6185
6215
|
setMove,
|
|
6186
6216
|
stopMomentum
|
|
6187
6217
|
};
|
|
6188
6218
|
}
|
|
6189
6219
|
});
|
|
6190
|
-
const _hoisted_1$$ =
|
|
6191
|
-
|
|
6220
|
+
const _hoisted_1$$ = {
|
|
6221
|
+
key: 1,
|
|
6222
|
+
class: "nut-picker-roller-item-tile"
|
|
6223
|
+
};
|
|
6224
|
+
const _hoisted_2$P = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
|
|
6225
|
+
const _hoisted_3$D = {
|
|
6226
|
+
key: 0,
|
|
6227
|
+
class: "nut-picker-content"
|
|
6228
|
+
};
|
|
6192
6229
|
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6193
6230
|
return openBlock(), createElementBlock("view", {
|
|
6194
6231
|
class: "nut-picker__list",
|
|
@@ -6199,29 +6236,30 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6199
6236
|
createElementVNode("view", {
|
|
6200
6237
|
class: "nut-picker-roller",
|
|
6201
6238
|
ref: "roller",
|
|
6202
|
-
style: normalizeStyle(_ctx.touchRollerStyle),
|
|
6239
|
+
style: normalizeStyle(_ctx.threeDimensional ? _ctx.touchRollerStyle : _ctx.touchTileStyle),
|
|
6203
6240
|
onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
6204
6241
|
}, [
|
|
6205
6242
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.column, (item, index) => {
|
|
6206
6243
|
return openBlock(), createElementBlock(Fragment, {
|
|
6207
6244
|
key: item.value ? item.value : index
|
|
6208
6245
|
}, [
|
|
6209
|
-
item && item.text ? (openBlock(), createElementBlock("view", {
|
|
6246
|
+
item && item.text && _ctx.threeDimensional ? (openBlock(), createElementBlock("view", {
|
|
6210
6247
|
key: 0,
|
|
6211
6248
|
class: normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
6212
6249
|
style: normalizeStyle(_ctx.setRollerStyle(index + 1))
|
|
6213
|
-
}, toDisplayString(item.text), 7)) : createCommentVNode("", true)
|
|
6250
|
+
}, toDisplayString(item.text), 7)) : createCommentVNode("", true),
|
|
6251
|
+
item && item.text && !_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_1$$, toDisplayString(item.text), 1)) : createCommentVNode("", true)
|
|
6214
6252
|
], 64);
|
|
6215
6253
|
}), 128))
|
|
6216
6254
|
], 36),
|
|
6217
|
-
|
|
6218
|
-
|
|
6255
|
+
_hoisted_2$P,
|
|
6256
|
+
_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_3$D, [
|
|
6219
6257
|
createElementVNode("view", {
|
|
6220
6258
|
class: "nut-picker-list-panel",
|
|
6221
6259
|
ref: "list",
|
|
6222
|
-
style: normalizeStyle(_ctx.
|
|
6260
|
+
style: normalizeStyle(_ctx.touchTileStyle)
|
|
6223
6261
|
}, null, 4)
|
|
6224
|
-
])
|
|
6262
|
+
])) : createCommentVNode("", true)
|
|
6225
6263
|
], 32);
|
|
6226
6264
|
}
|
|
6227
6265
|
var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1a]]);
|
|
@@ -6258,6 +6296,10 @@ const _sfc_main$1d = create$1d({
|
|
|
6258
6296
|
readonly: {
|
|
6259
6297
|
type: Boolean,
|
|
6260
6298
|
default: false
|
|
6299
|
+
},
|
|
6300
|
+
threeDimensional: {
|
|
6301
|
+
type: Boolean,
|
|
6302
|
+
default: true
|
|
6261
6303
|
}
|
|
6262
6304
|
},
|
|
6263
6305
|
emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
|
|
@@ -6338,11 +6380,14 @@ const _sfc_main$1d = create$1d({
|
|
|
6338
6380
|
defaultValues.value[columnIndex] = option.value ? option.value : "";
|
|
6339
6381
|
let index = columnIndex;
|
|
6340
6382
|
let cursor = option;
|
|
6341
|
-
while (cursor && cursor.children) {
|
|
6383
|
+
while (cursor && cursor.children && cursor.children[0]) {
|
|
6342
6384
|
defaultValues.value[index + 1] = cursor.children[0].value;
|
|
6343
6385
|
index++;
|
|
6344
6386
|
cursor = cursor.children[0];
|
|
6345
6387
|
}
|
|
6388
|
+
if (cursor && cursor.children && cursor.children.length == 0) {
|
|
6389
|
+
defaultValues.value = defaultValues.value.slice(0, index + 1);
|
|
6390
|
+
}
|
|
6346
6391
|
} else {
|
|
6347
6392
|
defaultValues.value[columnIndex] = option.hasOwnProperty("value") ? option.value : "";
|
|
6348
6393
|
}
|
|
@@ -6451,10 +6496,11 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6451
6496
|
readonly: _ctx.readonly,
|
|
6452
6497
|
columnsType: _ctx.columnsType,
|
|
6453
6498
|
value: _ctx.defaultValues[columnIndex],
|
|
6499
|
+
threeDimensional: _ctx.threeDimensional,
|
|
6454
6500
|
onChange: (option) => {
|
|
6455
6501
|
_ctx.changeHandler(columnIndex, option);
|
|
6456
6502
|
}
|
|
6457
|
-
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "onChange"])
|
|
6503
|
+
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
|
|
6458
6504
|
]);
|
|
6459
6505
|
}), 128))
|
|
6460
6506
|
], 512),
|
|
@@ -6530,6 +6576,10 @@ const _sfc_main$1c = create$1c({
|
|
|
6530
6576
|
type: Function,
|
|
6531
6577
|
default: null
|
|
6532
6578
|
},
|
|
6579
|
+
threeDimensional: {
|
|
6580
|
+
type: Boolean,
|
|
6581
|
+
default: true
|
|
6582
|
+
},
|
|
6533
6583
|
filter: Function
|
|
6534
6584
|
},
|
|
6535
6585
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
@@ -6657,7 +6707,7 @@ const _sfc_main$1c = create$1c({
|
|
|
6657
6707
|
selectedValue,
|
|
6658
6708
|
selectedOptions
|
|
6659
6709
|
}) => {
|
|
6660
|
-
if (["date", "datetime", "datehour", "month-day"].includes(props.type)) {
|
|
6710
|
+
if (["date", "datetime", "datehour", "month-day", "year-month"].includes(props.type)) {
|
|
6661
6711
|
let formatDate = [];
|
|
6662
6712
|
selectedValue.forEach((item) => {
|
|
6663
6713
|
formatDate.push(item);
|
|
@@ -6665,11 +6715,14 @@ const _sfc_main$1c = create$1c({
|
|
|
6665
6715
|
if (props.type == "month-day" && formatDate.length < 3) {
|
|
6666
6716
|
formatDate.unshift(new Date(props.modelValue || props.minDate || props.maxDate).getFullYear());
|
|
6667
6717
|
}
|
|
6718
|
+
if (props.type == "year-month" && formatDate.length < 3) {
|
|
6719
|
+
formatDate.push(new Date(props.modelValue || props.minDate || props.maxDate).getDate());
|
|
6720
|
+
}
|
|
6668
6721
|
const year = Number(formatDate[0]);
|
|
6669
6722
|
const month = Number(formatDate[1]) - 1;
|
|
6670
6723
|
const day = Math.min(Number(formatDate[2]), getMonthEndDay(Number(formatDate[0]), Number(formatDate[1])));
|
|
6671
6724
|
let date = null;
|
|
6672
|
-
if (props.type === "date" || props.type === "month-day") {
|
|
6725
|
+
if (props.type === "date" || props.type === "month-day" || props.type === "year-month") {
|
|
6673
6726
|
date = new Date(year, month, day);
|
|
6674
6727
|
} else if (props.type === "datetime") {
|
|
6675
6728
|
date = new Date(year, month, day, Number(formatDate[3]), Number(formatDate[4]));
|
|
@@ -6767,13 +6820,17 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6767
6820
|
onChange: _ctx.changeHandler,
|
|
6768
6821
|
title: _ctx.title,
|
|
6769
6822
|
onConfirm: _ctx.confirm,
|
|
6770
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
6823
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
6824
|
+
threeDimensional: _ctx.threeDimensional
|
|
6771
6825
|
}, {
|
|
6826
|
+
top: withCtx(() => [
|
|
6827
|
+
renderSlot(_ctx.$slots, "top")
|
|
6828
|
+
]),
|
|
6772
6829
|
default: withCtx(() => [
|
|
6773
6830
|
renderSlot(_ctx.$slots, "default")
|
|
6774
6831
|
]),
|
|
6775
6832
|
_: 3
|
|
6776
|
-
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
|
|
6833
|
+
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
|
|
6777
6834
|
}
|
|
6778
6835
|
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$18]]);
|
|
6779
6836
|
const { componentName: componentName$10, create: create$1b } = createComponent("inputnumber");
|
|
@@ -8083,7 +8140,11 @@ class Uploader$1 {
|
|
|
8083
8140
|
xhr.setRequestHeader(key, value);
|
|
8084
8141
|
}
|
|
8085
8142
|
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
8086
|
-
|
|
8143
|
+
if (options.method.toLowerCase() == "put") {
|
|
8144
|
+
xhr.send(options.sourceFile);
|
|
8145
|
+
} else {
|
|
8146
|
+
xhr.send(options.formData);
|
|
8147
|
+
}
|
|
8087
8148
|
} else {
|
|
8088
8149
|
console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest");
|
|
8089
8150
|
}
|
|
@@ -8207,6 +8268,10 @@ const _sfc_main$14 = create$14({
|
|
|
8207
8268
|
uploadOption.xhrState = props.xhrState;
|
|
8208
8269
|
uploadOption.headers = props.headers;
|
|
8209
8270
|
uploadOption.withCredentials = props.withCredentials;
|
|
8271
|
+
try {
|
|
8272
|
+
uploadOption.sourceFile = fileItem.formData.get(props.name);
|
|
8273
|
+
} catch (error) {
|
|
8274
|
+
}
|
|
8210
8275
|
uploadOption.onStart = (option) => {
|
|
8211
8276
|
fileItem.status = "ready";
|
|
8212
8277
|
fileItem.message = translate$i("readyUpload");
|
|
@@ -8433,7 +8498,6 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8433
8498
|
])) : createCommentVNode("", true),
|
|
8434
8499
|
_ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, {
|
|
8435
8500
|
key: 2,
|
|
8436
|
-
color: "rgba(0,0,0,0.6)",
|
|
8437
8501
|
onClick: ($event) => _ctx.onDelete(item, index),
|
|
8438
8502
|
class: "close",
|
|
8439
8503
|
name: "failure"
|
|
@@ -9708,6 +9772,10 @@ const _sfc_main$Z = create$Z({
|
|
|
9708
9772
|
isWrapTeleport: {
|
|
9709
9773
|
type: Boolean,
|
|
9710
9774
|
default: true
|
|
9775
|
+
},
|
|
9776
|
+
closeAbled: {
|
|
9777
|
+
type: Boolean,
|
|
9778
|
+
default: true
|
|
9711
9779
|
}
|
|
9712
9780
|
},
|
|
9713
9781
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
@@ -9775,7 +9843,8 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9775
9843
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
9776
9844
|
position: "bottom",
|
|
9777
9845
|
round: "",
|
|
9778
|
-
onClickOverlay: _ctx.close
|
|
9846
|
+
onClickOverlay: _ctx.close,
|
|
9847
|
+
closeOnClickOverlay: _ctx.closeAbled
|
|
9779
9848
|
}, {
|
|
9780
9849
|
default: withCtx(() => [
|
|
9781
9850
|
createElementVNode("view", _hoisted_1$O, [
|
|
@@ -9808,7 +9877,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9808
9877
|
])
|
|
9809
9878
|
]),
|
|
9810
9879
|
_: 3
|
|
9811
|
-
}, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
|
|
9880
|
+
}, 8, ["visible", "isWrapTeleport", "onClickOverlay", "closeOnClickOverlay"])
|
|
9812
9881
|
], 2);
|
|
9813
9882
|
}
|
|
9814
9883
|
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Y]]);
|
|
@@ -17189,9 +17258,19 @@ const component = (componentName2, translate2) => {
|
|
|
17189
17258
|
[`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
|
|
17190
17259
|
};
|
|
17191
17260
|
};
|
|
17261
|
+
const stylehead = (item) => {
|
|
17262
|
+
return item.stylehead ? item.stylehead : "";
|
|
17263
|
+
};
|
|
17264
|
+
const stylecolumn = (item) => {
|
|
17265
|
+
return item.stylecolumn ? item.stylecolumn : "";
|
|
17266
|
+
};
|
|
17192
17267
|
const getColumnItem = (value) => {
|
|
17193
17268
|
return props.columns.filter((item) => item.key === value)[0];
|
|
17194
17269
|
};
|
|
17270
|
+
const getColumnItemStyle = (value) => {
|
|
17271
|
+
const style = props.columns.filter((item) => item.key === value);
|
|
17272
|
+
return style[0].stylecolumn ? style[0].stylecolumn : "";
|
|
17273
|
+
};
|
|
17195
17274
|
const handleSorterClick = (item) => {
|
|
17196
17275
|
if (item.sorter) {
|
|
17197
17276
|
emit("sorter", item);
|
|
@@ -17211,9 +17290,12 @@ const component = (componentName2, translate2) => {
|
|
|
17211
17290
|
classes,
|
|
17212
17291
|
cellClasses,
|
|
17213
17292
|
getColumnItem,
|
|
17293
|
+
getColumnItemStyle,
|
|
17214
17294
|
handleSorterClick,
|
|
17215
17295
|
sortDataItem,
|
|
17216
|
-
translate: translate2
|
|
17296
|
+
translate: translate2,
|
|
17297
|
+
stylehead,
|
|
17298
|
+
stylecolumn
|
|
17217
17299
|
};
|
|
17218
17300
|
}
|
|
17219
17301
|
};
|
|
@@ -17227,17 +17309,17 @@ const _hoisted_4$g = { class: "nut-table__main__body" };
|
|
|
17227
17309
|
const _hoisted_5$9 = { key: 1 };
|
|
17228
17310
|
const _hoisted_6$8 = {
|
|
17229
17311
|
key: 0,
|
|
17230
|
-
class: "nut-table__summary"
|
|
17231
|
-
};
|
|
17232
|
-
const _hoisted_7$6 = ["innerHTML"];
|
|
17233
|
-
const _hoisted_8$3 = {
|
|
17234
|
-
key: 1,
|
|
17235
17312
|
class: "nut-table__nodata"
|
|
17236
17313
|
};
|
|
17237
|
-
const
|
|
17314
|
+
const _hoisted_7$6 = {
|
|
17238
17315
|
key: 0,
|
|
17239
17316
|
class: "nut-table__nodata__text"
|
|
17240
17317
|
};
|
|
17318
|
+
const _hoisted_8$3 = {
|
|
17319
|
+
key: 1,
|
|
17320
|
+
class: "nut-table__summary"
|
|
17321
|
+
};
|
|
17322
|
+
const _hoisted_9$3 = ["innerHTML"];
|
|
17241
17323
|
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17242
17324
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
17243
17325
|
const _component_RenderColumn = resolveComponent("RenderColumn");
|
|
@@ -17253,7 +17335,8 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17253
17335
|
return openBlock(), createElementBlock("span", {
|
|
17254
17336
|
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
17255
17337
|
key: item.key,
|
|
17256
|
-
onClick: ($event) => _ctx.handleSorterClick(item)
|
|
17338
|
+
onClick: ($event) => _ctx.handleSorterClick(item),
|
|
17339
|
+
style: normalizeStyle(item.stylehead)
|
|
17257
17340
|
}, [
|
|
17258
17341
|
createTextVNode(toDisplayString(item.title) + " ", 1),
|
|
17259
17342
|
renderSlot(_ctx.$slots, "icon"),
|
|
@@ -17262,7 +17345,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17262
17345
|
name: "down-arrow",
|
|
17263
17346
|
size: "12px"
|
|
17264
17347
|
})) : createCommentVNode("", true)
|
|
17265
|
-
],
|
|
17348
|
+
], 14, _hoisted_3$j);
|
|
17266
17349
|
}), 128))
|
|
17267
17350
|
])
|
|
17268
17351
|
]),
|
|
@@ -17275,32 +17358,33 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17275
17358
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render2]) => {
|
|
17276
17359
|
return openBlock(), createElementBlock("span", {
|
|
17277
17360
|
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
17278
|
-
key: value
|
|
17361
|
+
key: value,
|
|
17362
|
+
style: normalizeStyle(_ctx.getColumnItemStyle(value))
|
|
17279
17363
|
}, [
|
|
17280
17364
|
typeof item[value] === "function" || typeof render2 === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
|
|
17281
17365
|
key: 0,
|
|
17282
17366
|
slots: [render2, item[value]],
|
|
17283
17367
|
record: item
|
|
17284
17368
|
}, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_5$9, toDisplayString(item[value]), 1))
|
|
17285
|
-
],
|
|
17369
|
+
], 6);
|
|
17286
17370
|
}), 128))
|
|
17287
17371
|
]);
|
|
17288
17372
|
}), 128))
|
|
17289
17373
|
])
|
|
17290
17374
|
], 2),
|
|
17291
|
-
_ctx.
|
|
17292
|
-
createElementVNode("span", {
|
|
17293
|
-
class: "nut-table__summary__text",
|
|
17294
|
-
innerHTML: _ctx.summary().value
|
|
17295
|
-
}, null, 8, _hoisted_7$6)
|
|
17296
|
-
])) : createCommentVNode("", true),
|
|
17297
|
-
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_8$3, [
|
|
17375
|
+
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_6$8, [
|
|
17298
17376
|
createElementVNode("div", {
|
|
17299
17377
|
class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
|
|
17300
17378
|
}, [
|
|
17301
17379
|
renderSlot(_ctx.$slots, "nodata"),
|
|
17302
|
-
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div",
|
|
17380
|
+
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_7$6, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
|
|
17303
17381
|
], 2)
|
|
17382
|
+
])) : createCommentVNode("", true),
|
|
17383
|
+
_ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_8$3, [
|
|
17384
|
+
createElementVNode("span", {
|
|
17385
|
+
class: "nut-table__summary__text",
|
|
17386
|
+
innerHTML: _ctx.summary().value
|
|
17387
|
+
}, null, 8, _hoisted_9$3)
|
|
17304
17388
|
])) : createCommentVNode("", true)
|
|
17305
17389
|
], 2);
|
|
17306
17390
|
}
|
|
@@ -19321,9 +19405,12 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19321
19405
|
createElementVNode("div", _hoisted_5$6, toDisplayString(_ctx.title), 1),
|
|
19322
19406
|
renderSlot(_ctx.$slots, "prolist"),
|
|
19323
19407
|
_ctx.isNeedPrice ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
19324
|
-
|
|
19325
|
-
_ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
19408
|
+
_ctx.isHaveSlot("price") ? renderSlot(_ctx.$slots, "price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
19326
19409
|
key: 1,
|
|
19410
|
+
price: _ctx.price
|
|
19411
|
+
}, null, 8, ["price"])),
|
|
19412
|
+
_ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 2 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
19413
|
+
key: 3,
|
|
19327
19414
|
class: "nut-card__right__price__origin",
|
|
19328
19415
|
price: _ctx.vipPrice
|
|
19329
19416
|
}, null, 8, ["price"]))
|
|
@@ -20342,7 +20429,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20342
20429
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
20343
20430
|
"icon-size": "10",
|
|
20344
20431
|
spacing: "5",
|
|
20345
|
-
|
|
20432
|
+
readonly: "",
|
|
20346
20433
|
onChange: _ctx.handleClick
|
|
20347
20434
|
}, null, 8, ["modelValue", "onChange"])
|
|
20348
20435
|
])
|
|
@@ -20366,7 +20453,8 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20366
20453
|
modelValue: _ctx.info.score,
|
|
20367
20454
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
20368
20455
|
"icon-size": "12",
|
|
20369
|
-
spacing: "3"
|
|
20456
|
+
spacing: "3",
|
|
20457
|
+
readonly: ""
|
|
20370
20458
|
}, null, 8, ["modelValue"]),
|
|
20371
20459
|
createElementVNode("i", {
|
|
20372
20460
|
class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
|
|
@@ -20717,6 +20805,6 @@ function install(app) {
|
|
|
20717
20805
|
}
|
|
20718
20806
|
});
|
|
20719
20807
|
}
|
|
20720
|
-
const version = "3.1.23-beta.
|
|
20808
|
+
const version = "3.1.23-beta.5";
|
|
20721
20809
|
var nutui_vue_build = { install, version, Locale };
|
|
20722
20810
|
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1g as Checkbox, _sfc_main$1f as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1J as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1C as Grid, GridItem, _sfc_main$1P as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1H as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$19 as Radio, _sfc_main$18 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$G as Steps, _sfc_main$1E as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };
|