@nutui/nutui 3.1.19-beta.2 → 3.1.19-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/dist/nutui.es.js +1273 -1061
- package/dist/nutui.umd.js +1281 -1068
- 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 +1 -1
- 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 +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +153 -0
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Empty.js +6 -5
- 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/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 +1 -1
- 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 +1 -1
- 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 +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 +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 +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +49 -19
- 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/actionsheet/index.scss +8 -0
- package/dist/packages/ecard/index.scss +83 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +49 -48
- package/dist/styles/themes/jdt.scss +49 -48
- package/dist/styles/variables-jdt.scss +3 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/__VUE/actionsheet/index.d.ts +16 -5
- package/dist/types/__VUE/address/index.d.ts +2 -2
- package/dist/types/__VUE/avatar/index.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.d.ts +1 -1
- package/dist/types/__VUE/badge/index.d.ts +1 -1
- package/dist/types/__VUE/button/index.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.d.ts +1 -1
- package/dist/types/__VUE/cascader/cascader-item.d.ts +1 -1
- package/dist/types/__VUE/cell/index.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.d.ts +1 -0
- package/dist/types/__VUE/datepicker/index.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +4 -4
- package/dist/types/__VUE/ecard/index.d.ts +123 -0
- package/dist/types/__VUE/empty/index.d.ts +1 -0
- package/dist/types/__VUE/fixednav/index.d.ts +1 -1
- 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/noticebar/index.d.ts +2 -2
- package/dist/types/__VUE/numberkeyboard/index.d.ts +2 -1
- package/dist/types/__VUE/oldpicker/index.d.ts +3 -3
- package/dist/types/__VUE/picker/index.d.ts +4 -3
- 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/shortpassword/index.d.ts +2 -1
- package/dist/types/__VUE/skeleton/index.d.ts +1 -1
- package/dist/types/__VUE/sku/index.d.ts +2 -2
- package/dist/types/__VUE/step/index.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/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/uploader/index.d.ts +1 -1
- package/dist/types/__VUE/video/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vModelText, Fragment, renderList, createCommentVNode } 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 { create } = createComponent("shortpassword");
|
|
9
|
+
const { create, translate } = createComponent("shortpassword");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
title: {
|
|
13
13
|
type: String,
|
|
14
|
-
default: "
|
|
14
|
+
default: ""
|
|
15
15
|
},
|
|
16
16
|
desc: {
|
|
17
17
|
type: String,
|
|
18
|
-
default: "
|
|
18
|
+
default: ""
|
|
19
19
|
},
|
|
20
20
|
tips: {
|
|
21
21
|
type: String,
|
|
22
|
-
default: "
|
|
22
|
+
default: ""
|
|
23
23
|
},
|
|
24
24
|
visible: {
|
|
25
25
|
type: Boolean,
|
|
@@ -127,7 +127,8 @@ const _sfc_main = create({
|
|
|
127
127
|
onTips,
|
|
128
128
|
show,
|
|
129
129
|
systemStyle,
|
|
130
|
-
closeIcon
|
|
130
|
+
closeIcon,
|
|
131
|
+
translate
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
});
|
|
@@ -168,8 +169,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168
169
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
169
170
|
}, {
|
|
170
171
|
default: withCtx(() => [
|
|
171
|
-
createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title), 1),
|
|
172
|
-
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.desc), 1),
|
|
172
|
+
createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
173
|
+
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
|
|
173
174
|
createElementVNode("div", _hoisted_3, [
|
|
174
175
|
withDirectives(createElementVNode("input", {
|
|
175
176
|
ref: "realpwd",
|
|
@@ -199,7 +200,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
199
200
|
]),
|
|
200
201
|
createElementVNode("view", _hoisted_6, [
|
|
201
202
|
createElementVNode("view", _hoisted_7, toDisplayString(_ctx.errorMsg), 1),
|
|
202
|
-
_ctx.tips ? (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
203
|
+
_ctx.tips || _ctx.translate("tips") ? (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
203
204
|
createVNode(_component_nut_icon, {
|
|
204
205
|
class: "icon",
|
|
205
206
|
size: "11px",
|
|
@@ -207,18 +208,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
208
|
}),
|
|
208
209
|
createElementVNode("view", {
|
|
209
210
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onTips && _ctx.onTips(...args))
|
|
210
|
-
}, toDisplayString(_ctx.tips), 1)
|
|
211
|
+
}, toDisplayString(_ctx.tips || _ctx.translate("tips")), 1)
|
|
211
212
|
])) : createCommentVNode("", true)
|
|
212
213
|
]),
|
|
213
214
|
!_ctx.noButton ? (openBlock(), createElementBlock("view", _hoisted_9, [
|
|
214
215
|
createElementVNode("view", {
|
|
215
216
|
class: "nut-shortpsd-cancle",
|
|
216
217
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.close && _ctx.close(...args))
|
|
217
|
-
}, "
|
|
218
|
+
}, toDisplayString(_ctx.translate("cancel")), 1),
|
|
218
219
|
createElementVNode("view", {
|
|
219
220
|
class: "nut-shortpsd-sure",
|
|
220
221
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.sureClick && _ctx.sureClick(...args))
|
|
221
|
-
}, "
|
|
222
|
+
}, toDisplayString(_ctx.translate("confirm")), 1)
|
|
222
223
|
])) : createCommentVNode("", true)
|
|
223
224
|
]),
|
|
224
225
|
_: 1
|
|
@@ -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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
package/dist/packages/_es/Sku.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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -33,7 +33,7 @@ var RenderColumn = {
|
|
|
33
33
|
slots: Function
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const component = (componentName2) => {
|
|
36
|
+
const component = (componentName2, translate2) => {
|
|
37
37
|
return {
|
|
38
38
|
components: {
|
|
39
39
|
RenderColumn
|
|
@@ -103,13 +103,14 @@ const component = (componentName2) => {
|
|
|
103
103
|
cellClasses,
|
|
104
104
|
getColumnItem,
|
|
105
105
|
handleSorterClick,
|
|
106
|
-
sortDataItem
|
|
106
|
+
sortDataItem,
|
|
107
|
+
translate: translate2
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
110
|
};
|
|
110
111
|
};
|
|
111
|
-
const { componentName, create } = createComponent("table");
|
|
112
|
-
const _sfc_main = create(component(componentName));
|
|
112
|
+
const { componentName, create, translate } = createComponent("table");
|
|
113
|
+
const _sfc_main = create(component(componentName, translate));
|
|
113
114
|
const _hoisted_1 = { class: "nut-table__main__head" };
|
|
114
115
|
const _hoisted_2 = { class: "nut-table__main__head__tr" };
|
|
115
116
|
const _hoisted_3 = ["onClick"];
|
|
@@ -188,7 +189,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
188
189
|
class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
|
|
189
190
|
}, [
|
|
190
191
|
renderSlot(_ctx.$slots, "nodata"),
|
|
191
|
-
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_8, "
|
|
192
|
+
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
|
|
192
193
|
], 2)
|
|
193
194
|
])) : createCommentVNode("", true)
|
|
194
195
|
], 2);
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.19-beta.
|
|
22
|
+
* @nutui/nutui v3.1.19-beta.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2022 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } 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("textarea");
|
|
9
|
+
const { componentName, create, translate } = createComponent("textarea");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: {
|
|
@@ -31,7 +31,7 @@ const _sfc_main = create({
|
|
|
31
31
|
},
|
|
32
32
|
placeholder: {
|
|
33
33
|
type: String,
|
|
34
|
-
default: "
|
|
34
|
+
default: ""
|
|
35
35
|
},
|
|
36
36
|
readonly: {
|
|
37
37
|
type: Boolean,
|
|
@@ -129,7 +129,8 @@ const _sfc_main = create({
|
|
|
129
129
|
styles,
|
|
130
130
|
change,
|
|
131
131
|
focus,
|
|
132
|
-
blur
|
|
132
|
+
blur,
|
|
133
|
+
translate
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
136
|
});
|
|
@@ -154,7 +155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
155
156
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
156
157
|
maxlength: _ctx.maxLength,
|
|
157
|
-
placeholder: _ctx.placeholder,
|
|
158
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
158
159
|
autofocus: _ctx.autofocus
|
|
159
160
|
}, null, 44, _hoisted_1),
|
|
160
161
|
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
@@ -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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 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.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.19-beta.
|
|
22
|
+
* @nutui/nutui v3.1.19-beta.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2022 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|
|
@@ -110,11 +110,11 @@ class Uploader {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
const { componentName, create } = createComponent("uploader");
|
|
113
|
+
const { componentName, create, translate } = createComponent("uploader");
|
|
114
114
|
class FileItem {
|
|
115
115
|
constructor() {
|
|
116
116
|
__publicField(this, "status", "ready");
|
|
117
|
-
__publicField(this, "message", "
|
|
117
|
+
__publicField(this, "message", translate("ready"));
|
|
118
118
|
__publicField(this, "uid", new Date().getTime().toString());
|
|
119
119
|
__publicField(this, "name");
|
|
120
120
|
__publicField(this, "url");
|
|
@@ -196,19 +196,19 @@ const _sfc_main = create({
|
|
|
196
196
|
uploadOption.withCredentials = props.withCredentials;
|
|
197
197
|
uploadOption.onStart = (option) => {
|
|
198
198
|
fileItem.status = "ready";
|
|
199
|
-
fileItem.message = "
|
|
199
|
+
fileItem.message = translate("readyUpload");
|
|
200
200
|
clearUploadQueue(index2);
|
|
201
201
|
emit("start", option);
|
|
202
202
|
};
|
|
203
203
|
uploadOption.onProgress = (event, option) => {
|
|
204
204
|
fileItem.status = "uploading";
|
|
205
|
-
fileItem.message = "
|
|
205
|
+
fileItem.message = translate("uploading");
|
|
206
206
|
fileItem.percentage = (event.loaded / event.total * 100).toFixed(0);
|
|
207
207
|
emit("progress", { event, option, percentage: fileItem.percentage });
|
|
208
208
|
};
|
|
209
209
|
uploadOption.onSuccess = (responseText, option) => {
|
|
210
210
|
fileItem.status = "success";
|
|
211
|
-
fileItem.message = "
|
|
211
|
+
fileItem.message = translate("success");
|
|
212
212
|
emit("success", {
|
|
213
213
|
responseText,
|
|
214
214
|
option,
|
|
@@ -218,7 +218,7 @@ const _sfc_main = create({
|
|
|
218
218
|
};
|
|
219
219
|
uploadOption.onFailure = (responseText, option) => {
|
|
220
220
|
fileItem.status = "error";
|
|
221
|
-
fileItem.message = "
|
|
221
|
+
fileItem.message = translate("error");
|
|
222
222
|
emit("failure", {
|
|
223
223
|
responseText,
|
|
224
224
|
option,
|
|
@@ -258,7 +258,7 @@ const _sfc_main = create({
|
|
|
258
258
|
fileItem.status = "ready";
|
|
259
259
|
fileItem.type = file.type;
|
|
260
260
|
fileItem.formData = formData;
|
|
261
|
-
fileItem.message = "
|
|
261
|
+
fileItem.message = translate("waitingUpload");
|
|
262
262
|
executeUpload(fileItem, index2);
|
|
263
263
|
if (props.isPreview && file.type.includes("image")) {
|
|
264
264
|
const reader = new FileReader();
|
|
@@ -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.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, reactive, defineComponent } from "vue";
|
|
7
7
|
const lang$1 = {
|
|
8
|
-
name: "\u59D3\u540D",
|
|
9
|
-
tel: "\u7535\u8BDD",
|
|
10
8
|
save: "\u4FDD\u5B58",
|
|
11
|
-
confirm: "\u786E\
|
|
9
|
+
confirm: "\u786E\u8BA4",
|
|
12
10
|
cancel: "\u53D6\u6D88",
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
done: "\u5B8C\u6210",
|
|
12
|
+
noData: "\u6682\u65E0\u6570\u636E",
|
|
13
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
14
|
+
select: "\u8BF7\u9009\u62E9",
|
|
15
15
|
video: {
|
|
16
16
|
errorTip: "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25",
|
|
17
17
|
clickRetry: "\u70B9\u51FB\u91CD\u8BD5"
|
|
18
18
|
},
|
|
19
|
-
searchbar: {
|
|
20
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
21
|
-
},
|
|
22
19
|
fixednav: {
|
|
23
20
|
activeText: "\u6536\u8D77\u5BFC\u822A",
|
|
24
21
|
unActiveText: "\u5FEB\u901F\u5BFC\u822A"
|
|
@@ -29,29 +26,44 @@ const lang$1 = {
|
|
|
29
26
|
},
|
|
30
27
|
calendaritem: {
|
|
31
28
|
weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
|
|
32
|
-
confirm: "\u786E\u8BA4",
|
|
33
29
|
end: "\u7ED3\u675F",
|
|
34
30
|
start: "\u5F00\u59CB",
|
|
35
31
|
title: "\u65E5\u5386\u9009\u62E9",
|
|
36
32
|
monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
|
|
37
33
|
today: "\u4ECA\u5929"
|
|
34
|
+
},
|
|
35
|
+
shortpassword: {
|
|
36
|
+
title: "\u8BF7\u8F93\u5165\u5BC6\u7801",
|
|
37
|
+
desc: "\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1",
|
|
38
|
+
tips: "\u5FD8\u8BB0\u5BC6\u7801"
|
|
39
|
+
},
|
|
40
|
+
uploader: {
|
|
41
|
+
ready: "\u51C6\u5907\u5B8C\u6210",
|
|
42
|
+
readyUpload: "\u51C6\u5907\u4E0A\u4F20",
|
|
43
|
+
waitingUpload: "\u7B49\u5F85\u4E0A\u4F20",
|
|
44
|
+
uploading: "\u4E0A\u4F20\u4E2D",
|
|
45
|
+
success: "\u4E0A\u4F20\u6210\u529F",
|
|
46
|
+
error: "\u4E0A\u4F20\u5931\u8D25"
|
|
47
|
+
},
|
|
48
|
+
countdown: {
|
|
49
|
+
day: "\u5929",
|
|
50
|
+
hour: "\u65F6",
|
|
51
|
+
minute: "\u5206",
|
|
52
|
+
second: "\u79D2"
|
|
38
53
|
}
|
|
39
54
|
};
|
|
40
55
|
const lang = {
|
|
41
|
-
name: "Name",
|
|
42
|
-
tel: "Phone",
|
|
43
56
|
save: "Save",
|
|
44
57
|
confirm: "Confirm",
|
|
45
58
|
cancel: "Cancel",
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
done: "Done",
|
|
60
|
+
noData: "No Data",
|
|
61
|
+
placeholder: "Placeholder",
|
|
62
|
+
select: "Select",
|
|
48
63
|
video: {
|
|
49
64
|
errorTip: "Error Tip",
|
|
50
65
|
clickRetry: "Click Retry"
|
|
51
66
|
},
|
|
52
|
-
searchbar: {
|
|
53
|
-
placeholder: "Placeholder"
|
|
54
|
-
},
|
|
55
67
|
fixednav: {
|
|
56
68
|
activeText: "Close Nav",
|
|
57
69
|
unActiveText: "Open Nav"
|
|
@@ -62,15 +74,33 @@ const lang = {
|
|
|
62
74
|
},
|
|
63
75
|
calendaritem: {
|
|
64
76
|
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
65
|
-
confirm: "Confirm",
|
|
66
77
|
end: "End",
|
|
67
78
|
start: "Start",
|
|
68
79
|
title: "Calendar",
|
|
69
80
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
70
81
|
today: "Today"
|
|
82
|
+
},
|
|
83
|
+
shortpassword: {
|
|
84
|
+
title: "Please input a password",
|
|
85
|
+
desc: "Verify",
|
|
86
|
+
tips: "Forget password"
|
|
87
|
+
},
|
|
88
|
+
uploader: {
|
|
89
|
+
ready: "Ready",
|
|
90
|
+
readyUpload: "Ready to upload",
|
|
91
|
+
waitingUpload: "Waiting for upload",
|
|
92
|
+
uploading: "Uploading",
|
|
93
|
+
success: "Upload successful",
|
|
94
|
+
error: "Upload failed"
|
|
95
|
+
},
|
|
96
|
+
countdown: {
|
|
97
|
+
day: " Day ",
|
|
98
|
+
hour: " Hour ",
|
|
99
|
+
minute: " Minute ",
|
|
100
|
+
second: " Second "
|
|
71
101
|
}
|
|
72
102
|
};
|
|
73
|
-
const currentLang = ref("
|
|
103
|
+
const currentLang = ref("zh-CN");
|
|
74
104
|
const langs = reactive({
|
|
75
105
|
"zh-CN": lang$1,
|
|
76
106
|
"en-US": lang
|
|
@@ -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.5 Wed Apr 13 2022 09:15:11 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
package/dist/packages/_es/raf.js
CHANGED