@nutui/nutui 3.1.19-beta.3 → 3.1.19-beta.4
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/dist/nutui.es.js +365 -204
- package/dist/nutui.umd.js +364 -203
- package/dist/packages/_es/ActionSheet.js +50 -34
- package/dist/packages/_es/Address.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/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 +5 -5
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +3 -3
- 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/CountDown.js +7 -6
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +3 -3
- package/dist/packages/_es/Dialog.js +10 -9
- 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/Empty.js +6 -5
- package/dist/packages/_es/FixedNav.js +6 -7
- package/dist/packages/_es/Form.js +2 -6
- 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/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 +14 -13
- 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 +2 -2
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +7 -6
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +8 -7
- package/dist/packages/_es/Picker.js +8 -7
- 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 +18 -4
- 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 +6 -5
- package/dist/packages/_es/ShortPassword.js +13 -12
- 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 +2 -3
- 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 +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +7 -6
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +6 -5
- 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 +8 -8
- package/dist/packages/_es/Video.js +7 -6
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +165 -3
- 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 +22 -17
- 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/actionsheet/index.scss +8 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +47 -47
- package/dist/styles/themes/jdt.scss +47 -47
- package/dist/types/__VUE/actionsheet/index.d.ts +15 -4
- package/dist/types/__VUE/address/index.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.d.ts +2 -1
- package/dist/types/__VUE/cascader/cascader-item.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.d.ts +1 -0
- package/dist/types/__VUE/datepicker/index.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.d.ts +4 -3
- package/dist/types/__VUE/ecard/index.d.ts +1 -1
- package/dist/types/__VUE/empty/index.d.ts +1 -0
- package/dist/types/__VUE/fixednav/index.d.ts +2 -1
- package/dist/types/__VUE/infiniteloading/index.d.ts +4 -4
- package/dist/types/__VUE/input/index.d.ts +4 -3
- package/dist/types/__VUE/menu/index.d.ts +1 -1
- package/dist/types/__VUE/navbar/index.d.ts +1 -2
- package/dist/types/__VUE/numberkeyboard/index.d.ts +2 -1
- package/dist/types/__VUE/oldpicker/index.d.ts +2 -2
- package/dist/types/__VUE/pagination/index.d.ts +1 -0
- package/dist/types/__VUE/picker/index.d.ts +3 -2
- package/dist/types/__VUE/popover/index.d.ts +2 -2
- package/dist/types/__VUE/popup/index.d.ts +3 -3
- package/dist/types/__VUE/progress/index.d.ts +1 -0
- package/dist/types/__VUE/range/index.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.d.ts +1 -0
- package/dist/types/__VUE/shortpassword/index.d.ts +2 -1
- package/dist/types/__VUE/sku/index.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.d.ts +2 -2
- package/dist/types/__VUE/switch/index.d.ts +1 -1
- package/dist/types/__VUE/table/common.d.ts +2 -1
- package/dist/types/__VUE/table/index.d.ts +1 -0
- package/dist/types/__VUE/textarea/index.d.ts +1 -0
- package/dist/types/__VUE/video/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/_es/util.js +0 -47
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { c as createComponent } from "./component.js";
|
|
26
|
-
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeStyle,
|
|
26
|
+
import { useSlots, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createBlock } from "vue";
|
|
27
27
|
import { popupProps } from "./Popup.js";
|
|
28
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
29
|
import "./OverLay.js";
|
|
@@ -67,10 +67,15 @@ const _sfc_main = create({
|
|
|
67
67
|
isWrapTeleport: {
|
|
68
68
|
type: Boolean,
|
|
69
69
|
default: true
|
|
70
|
+
},
|
|
71
|
+
safeAreaInsetBottom: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false
|
|
70
74
|
}
|
|
71
75
|
}),
|
|
72
76
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
73
77
|
setup(props, { emit }) {
|
|
78
|
+
const slotDefault = !!useSlots().default;
|
|
74
79
|
const classes = computed(() => {
|
|
75
80
|
const prefixCls = componentName;
|
|
76
81
|
return {
|
|
@@ -78,23 +83,24 @@ const _sfc_main = create({
|
|
|
78
83
|
};
|
|
79
84
|
});
|
|
80
85
|
const isHighlight = (item) => {
|
|
81
|
-
return props.chooseTagValue && props.chooseTagValue === item[props.optionTag] ? props.color : "
|
|
86
|
+
return props.chooseTagValue && props.chooseTagValue === item[props.optionTag] ? props.color : "";
|
|
82
87
|
};
|
|
83
88
|
const cancelActionSheet = () => {
|
|
84
89
|
emit("cancel");
|
|
85
90
|
emit("update:visible", false);
|
|
86
91
|
};
|
|
87
92
|
const chooseItem = (item, index2) => {
|
|
88
|
-
if (!item.disable) {
|
|
93
|
+
if (!item.disable && !item.loading) {
|
|
89
94
|
emit("choose", item, index2);
|
|
90
95
|
emit("update:visible", false);
|
|
91
96
|
}
|
|
92
97
|
};
|
|
93
|
-
const close = () => {
|
|
94
|
-
emit("close");
|
|
98
|
+
const close = (e) => {
|
|
99
|
+
emit("close", e);
|
|
95
100
|
emit("update:visible", false);
|
|
96
101
|
};
|
|
97
102
|
return {
|
|
103
|
+
slotDefault,
|
|
98
104
|
isHighlight,
|
|
99
105
|
cancelActionSheet,
|
|
100
106
|
chooseItem,
|
|
@@ -103,22 +109,24 @@ const _sfc_main = create({
|
|
|
103
109
|
};
|
|
104
110
|
}
|
|
105
111
|
});
|
|
106
|
-
const _hoisted_1 = {
|
|
107
|
-
const _hoisted_2 = {
|
|
112
|
+
const _hoisted_1 = {
|
|
108
113
|
key: 0,
|
|
109
114
|
class: "nut-actionsheet-title"
|
|
110
115
|
};
|
|
116
|
+
const _hoisted_2 = { key: 1 };
|
|
111
117
|
const _hoisted_3 = {
|
|
112
|
-
key:
|
|
118
|
+
key: 0,
|
|
113
119
|
class: "nut-actionsheet-item desc"
|
|
114
120
|
};
|
|
115
121
|
const _hoisted_4 = {
|
|
116
|
-
key:
|
|
122
|
+
key: 1,
|
|
117
123
|
class: "nut-actionsheet-menu"
|
|
118
124
|
};
|
|
119
125
|
const _hoisted_5 = ["onClick"];
|
|
120
|
-
const _hoisted_6 = {
|
|
126
|
+
const _hoisted_6 = { key: 1 };
|
|
127
|
+
const _hoisted_7 = { class: "subdesc" };
|
|
121
128
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
129
|
+
const _component_nut_icon = resolveComponent("nut-icon");
|
|
122
130
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
123
131
|
return openBlock(), createElementBlock("view", {
|
|
124
132
|
class: normalizeClass(_ctx.classes)
|
|
@@ -132,30 +140,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
140
|
onClickOverlay: _ctx.close
|
|
133
141
|
}, {
|
|
134
142
|
default: withCtx(() => [
|
|
135
|
-
createElementVNode("view",
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
_ctx.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
143
|
+
createElementVNode("view", {
|
|
144
|
+
class: normalizeClass(["nut-actionsheet-panel", { "nut-actionsheet-safebottom": _ctx.safeAreaInsetBottom }])
|
|
145
|
+
}, [
|
|
146
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
147
|
+
renderSlot(_ctx.$slots, "default"),
|
|
148
|
+
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
149
|
+
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
150
|
+
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
151
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
|
|
152
|
+
return openBlock(), createElementBlock("view", {
|
|
153
|
+
class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable, "nut-actionsheet-item-loading": item.loading }]),
|
|
154
|
+
style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
|
|
155
|
+
key: index2,
|
|
156
|
+
onClick: ($event) => _ctx.chooseItem(item, index2)
|
|
157
|
+
}, [
|
|
158
|
+
item.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
159
|
+
key: 0,
|
|
160
|
+
name: "loading"
|
|
161
|
+
})) : (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(item[_ctx.optionTag]), 1)),
|
|
162
|
+
createElementVNode("view", _hoisted_7, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
163
|
+
], 14, _hoisted_5);
|
|
164
|
+
}), 128))
|
|
165
|
+
])) : createCommentVNode("", true),
|
|
166
|
+
_ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
|
|
167
|
+
key: 2,
|
|
168
|
+
class: "nut-actionsheet-cancel",
|
|
169
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancelActionSheet && _ctx.cancelActionSheet(...args))
|
|
170
|
+
}, toDisplayString(_ctx.cancelTxt), 1)) : createCommentVNode("", true)
|
|
171
|
+
])) : createCommentVNode("", true)
|
|
172
|
+
], 2)
|
|
157
173
|
]),
|
|
158
|
-
_:
|
|
174
|
+
_: 3
|
|
159
175
|
}, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
|
|
160
176
|
], 2);
|
|
161
177
|
}
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -44,19 +44,19 @@ const _sfc_main = create({
|
|
|
44
44
|
},
|
|
45
45
|
title: {
|
|
46
46
|
type: String,
|
|
47
|
-
default: "
|
|
47
|
+
default: ""
|
|
48
48
|
},
|
|
49
49
|
confirmText: {
|
|
50
50
|
type: String,
|
|
51
|
-
default: "
|
|
51
|
+
default: ""
|
|
52
52
|
},
|
|
53
53
|
startText: {
|
|
54
54
|
type: String,
|
|
55
|
-
default: "
|
|
55
|
+
default: ""
|
|
56
56
|
},
|
|
57
57
|
endText: {
|
|
58
58
|
type: String,
|
|
59
|
-
default: "
|
|
59
|
+
default: ""
|
|
60
60
|
},
|
|
61
61
|
defaultValue: {
|
|
62
62
|
type: [String, Array]
|
|
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.19-beta.
|
|
38
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
39
39
|
* (c) 2022 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
|
@@ -163,7 +163,7 @@ class Tree {
|
|
|
163
163
|
return Array.isArray(children) && Boolean(children.length);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const { create: create$1 } = createComponent("cascader-item");
|
|
166
|
+
const { create: create$1, translate } = createComponent("cascader-item");
|
|
167
167
|
const _sfc_main$1 = create$1({
|
|
168
168
|
props: {
|
|
169
169
|
visible: Boolean,
|
|
@@ -355,7 +355,7 @@ const _sfc_main$1 = create$1({
|
|
|
355
355
|
tabsCursor.value = tab.paneKey;
|
|
356
356
|
},
|
|
357
357
|
formatTabTitle(pane) {
|
|
358
|
-
return pane.selectedNode ? pane.selectedNode.text : "
|
|
358
|
+
return pane.selectedNode ? pane.selectedNode.text : translate("select");
|
|
359
359
|
},
|
|
360
360
|
isSelected(pane, node) {
|
|
361
361
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
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";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
-
const { componentName, create } = createComponent("countdown");
|
|
28
|
+
const { componentName, create, translate } = createComponent("countdown");
|
|
29
29
|
const _sfc_main = create({
|
|
30
30
|
props: {
|
|
31
31
|
modelValue: {
|
|
@@ -81,7 +81,7 @@ const _sfc_main = create({
|
|
|
81
81
|
});
|
|
82
82
|
const plainText = computed(() => {
|
|
83
83
|
const { d, h, m, s } = resttime.value;
|
|
84
|
-
return `${d > 0 && props.showDays ? d + "
|
|
84
|
+
return `${d > 0 && props.showDays ? d + translate("day") + h : h}${translate("hour")}${m}${translate("minute")}${s}${translate("second")}`;
|
|
85
85
|
});
|
|
86
86
|
watch(() => props.value, (value) => {
|
|
87
87
|
});
|
|
@@ -188,7 +188,8 @@ const _sfc_main = create({
|
|
|
188
188
|
getTimeStamp,
|
|
189
189
|
initTimer,
|
|
190
190
|
resttime,
|
|
191
|
-
plainText
|
|
191
|
+
plainText,
|
|
192
|
+
translate
|
|
192
193
|
});
|
|
193
194
|
}
|
|
194
195
|
});
|
|
@@ -197,7 +198,7 @@ const _hoisted_1 = {
|
|
|
197
198
|
class: "nut-cd-block"
|
|
198
199
|
};
|
|
199
200
|
const _hoisted_2 = { class: "nut-cd-block" };
|
|
200
|
-
const _hoisted_3 =
|
|
201
|
+
const _hoisted_3 = { class: "nut-cd-dot" };
|
|
201
202
|
const _hoisted_4 = { class: "nut-cd-block" };
|
|
202
203
|
const _hoisted_5 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cd-dot" }, ":", -1);
|
|
203
204
|
const _hoisted_6 = { class: "nut-cd-block" };
|
|
@@ -211,7 +212,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211
212
|
_ctx.slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.showPlainText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.plainText), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
212
213
|
_ctx.resttime.d >= 0 && _ctx.showDays ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
213
214
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.resttime.d), 1),
|
|
214
|
-
_hoisted_3
|
|
215
|
+
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.translate("day")), 1)
|
|
215
216
|
], 64)) : createCommentVNode("", true),
|
|
216
217
|
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.resttime.h), 1),
|
|
217
218
|
_hoisted_5,
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -62,11 +62,11 @@ const _sfc_main = create({
|
|
|
62
62
|
},
|
|
63
63
|
okText: {
|
|
64
64
|
type: String,
|
|
65
|
-
default: "
|
|
65
|
+
default: ""
|
|
66
66
|
},
|
|
67
67
|
cancelText: {
|
|
68
68
|
type: String,
|
|
69
|
-
default: "
|
|
69
|
+
default: ""
|
|
70
70
|
},
|
|
71
71
|
type: {
|
|
72
72
|
type: String,
|
|
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
/*!
|
|
25
|
-
* @nutui/nutui v3.1.19-beta.
|
|
25
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
26
26
|
* (c) 2022 @jdf2e.
|
|
27
27
|
* Released under the MIT License.
|
|
28
28
|
*/
|
|
@@ -34,7 +34,7 @@ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
|
34
34
|
import "./OverLay.js";
|
|
35
35
|
import "./Icon.js";
|
|
36
36
|
import "./pxCheck.js";
|
|
37
|
-
const { componentName, create } = createComponent("dialog");
|
|
37
|
+
const { componentName, create, translate } = createComponent("dialog");
|
|
38
38
|
const _sfc_main = create({
|
|
39
39
|
inheritAttrs: false,
|
|
40
40
|
components: {
|
|
@@ -68,11 +68,11 @@ const _sfc_main = create({
|
|
|
68
68
|
},
|
|
69
69
|
cancelText: {
|
|
70
70
|
type: String,
|
|
71
|
-
default: "
|
|
71
|
+
default: ""
|
|
72
72
|
},
|
|
73
73
|
okText: {
|
|
74
74
|
type: String,
|
|
75
|
-
default: "
|
|
75
|
+
default: ""
|
|
76
76
|
},
|
|
77
77
|
okBtnDisabled: {
|
|
78
78
|
type: Boolean,
|
|
@@ -136,7 +136,8 @@ const _sfc_main = create({
|
|
|
136
136
|
classes,
|
|
137
137
|
onCancel,
|
|
138
138
|
onOk,
|
|
139
|
-
showPopup
|
|
139
|
+
showPopup,
|
|
140
|
+
translate
|
|
140
141
|
};
|
|
141
142
|
}
|
|
142
143
|
});
|
|
@@ -190,7 +191,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
191
|
onClick: _ctx.onCancel
|
|
191
192
|
}, {
|
|
192
193
|
default: withCtx(() => [
|
|
193
|
-
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
194
|
+
createTextVNode(toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1)
|
|
194
195
|
]),
|
|
195
196
|
_: 1
|
|
196
197
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -203,7 +204,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
203
204
|
onClick: _ctx.onOk
|
|
204
205
|
}, {
|
|
205
206
|
default: withCtx(() => [
|
|
206
|
-
createTextVNode(toDisplayString(_ctx.okText), 1)
|
|
207
|
+
createTextVNode(toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
207
208
|
]),
|
|
208
209
|
_: 1
|
|
209
210
|
}, 8, ["class", "disabled", "onClick"])) : createCommentVNode("", true)
|
|
@@ -219,8 +220,8 @@ class DialogOptions {
|
|
|
219
220
|
constructor() {
|
|
220
221
|
__publicField(this, "title", "");
|
|
221
222
|
__publicField(this, "content", "");
|
|
222
|
-
__publicField(this, "cancelText", "
|
|
223
|
-
__publicField(this, "okText", "
|
|
223
|
+
__publicField(this, "cancelText", "");
|
|
224
|
+
__publicField(this, "okText", "");
|
|
224
225
|
__publicField(this, "textAlign", "center");
|
|
225
226
|
__publicField(this, "teleport", "body");
|
|
226
227
|
__publicField(this, "id", new Date().getTime());
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, Fragment, createCommentVNode, toDisplayString } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
-
const { componentName, create } = createComponent("empty");
|
|
9
|
+
const { componentName, create, translate } = createComponent("empty");
|
|
10
10
|
const defaultStatus = {
|
|
11
11
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
12
12
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
@@ -24,7 +24,7 @@ const _sfc_main = create({
|
|
|
24
24
|
},
|
|
25
25
|
description: {
|
|
26
26
|
type: String,
|
|
27
|
-
default: "
|
|
27
|
+
default: ""
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(props) {
|
|
@@ -42,7 +42,8 @@ const _sfc_main = create({
|
|
|
42
42
|
const imageUrl = isHttpUrl ? image.value : defaultStatus[image.value];
|
|
43
43
|
return {
|
|
44
44
|
imageUrl,
|
|
45
|
-
imgStyle
|
|
45
|
+
imgStyle,
|
|
46
|
+
translate
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
});
|
|
@@ -66,7 +67,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
67
|
}, null, 8, _hoisted_2)) : createCommentVNode("", true)
|
|
67
68
|
], 64))
|
|
68
69
|
], 4),
|
|
69
|
-
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)),
|
|
70
|
+
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
|
|
70
71
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
|
|
71
72
|
]);
|
|
72
73
|
}
|