@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
|
@@ -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
|
*/
|
|
@@ -7,7 +7,7 @@ import { computed, resolveComponent, openBlock, createElementBlock, normalizeCla
|
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import overlay from "./OverLay.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
|
-
const { componentName, create } = createComponent("fixednav");
|
|
10
|
+
const { componentName, create, translate } = createComponent("fixednav");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
components: {
|
|
13
13
|
[overlay.name]: overlay
|
|
@@ -26,11 +26,11 @@ const _sfc_main = create({
|
|
|
26
26
|
type: Array
|
|
27
27
|
},
|
|
28
28
|
activeText: {
|
|
29
|
-
default: "
|
|
29
|
+
default: "",
|
|
30
30
|
type: String
|
|
31
31
|
},
|
|
32
32
|
unActiveText: {
|
|
33
|
-
default: "
|
|
33
|
+
default: "",
|
|
34
34
|
type: String
|
|
35
35
|
},
|
|
36
36
|
position: {
|
|
@@ -47,7 +47,6 @@ const _sfc_main = create({
|
|
|
47
47
|
type: String
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
components: {},
|
|
51
50
|
emits: ["update:visible", "selected"],
|
|
52
51
|
setup(props, { emit }) {
|
|
53
52
|
const classes = computed(() => {
|
|
@@ -67,7 +66,7 @@ const _sfc_main = create({
|
|
|
67
66
|
event
|
|
68
67
|
});
|
|
69
68
|
};
|
|
70
|
-
return { classes, updateValue, selected };
|
|
69
|
+
return { classes, updateValue, selected, translate };
|
|
71
70
|
}
|
|
72
71
|
});
|
|
73
72
|
const _hoisted_1 = { class: "nut-fixednav__list" };
|
|
@@ -118,7 +117,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
118
117
|
name: "left",
|
|
119
118
|
color: "#fff"
|
|
120
119
|
}),
|
|
121
|
-
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.visible ? _ctx.activeText : _ctx.unActiveText), 1)
|
|
120
|
+
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
|
|
122
121
|
])
|
|
123
122
|
])
|
|
124
123
|
], 6);
|
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { i as isPromise } from "./util.js";
|
|
6
|
+
import { g as getPropByPath, i as isPromise, c as createComponent } from "./component.js";
|
|
8
7
|
import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
|
|
9
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
9
|
const component = {
|
|
@@ -61,9 +60,6 @@ const component = {
|
|
|
61
60
|
resolve(errorMsg);
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
|
-
const getPropByPath = (obj, keyPath) => {
|
|
65
|
-
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
66
|
-
};
|
|
67
63
|
if (!prop) {
|
|
68
64
|
console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
|
|
69
65
|
}
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -30,7 +30,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
30
30
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
31
31
|
return value.replace(regExp, "");
|
|
32
32
|
}
|
|
33
|
-
const { componentName, create } = createComponent("input");
|
|
33
|
+
const { componentName, create, translate } = createComponent("input");
|
|
34
34
|
const _sfc_main = create({
|
|
35
35
|
props: {
|
|
36
36
|
ref: {
|
|
@@ -47,7 +47,7 @@ const _sfc_main = create({
|
|
|
47
47
|
},
|
|
48
48
|
placeholder: {
|
|
49
49
|
type: String,
|
|
50
|
-
default: "
|
|
50
|
+
default: ""
|
|
51
51
|
},
|
|
52
52
|
label: {
|
|
53
53
|
type: String,
|
|
@@ -93,7 +93,7 @@ const _sfc_main = create({
|
|
|
93
93
|
type: Boolean,
|
|
94
94
|
default: false
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
maxLength: {
|
|
97
97
|
type: [String, Number],
|
|
98
98
|
default: ""
|
|
99
99
|
},
|
|
@@ -258,8 +258,8 @@ const _sfc_main = create({
|
|
|
258
258
|
}, 200);
|
|
259
259
|
const input = event.target;
|
|
260
260
|
let value = input.value;
|
|
261
|
-
if (props.
|
|
262
|
-
value = value.slice(0, Number(props.
|
|
261
|
+
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
262
|
+
value = value.slice(0, Number(props.maxLength));
|
|
263
263
|
}
|
|
264
264
|
updateValue(getModelValue(), "onBlur");
|
|
265
265
|
emit("blur", value, event);
|
|
@@ -300,14 +300,15 @@ const _sfc_main = create({
|
|
|
300
300
|
clear,
|
|
301
301
|
onClickInput,
|
|
302
302
|
onClickLeftIcon,
|
|
303
|
-
onClickRightIcon
|
|
303
|
+
onClickRightIcon,
|
|
304
|
+
translate
|
|
304
305
|
};
|
|
305
306
|
}
|
|
306
307
|
});
|
|
307
308
|
const _hoisted_1 = { class: "label-string" };
|
|
308
309
|
const _hoisted_2 = { class: "nut-input-value" };
|
|
309
310
|
const _hoisted_3 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
310
|
-
const _hoisted_4 = ["type", "
|
|
311
|
+
const _hoisted_4 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
311
312
|
const _hoisted_5 = {
|
|
312
313
|
key: 0,
|
|
313
314
|
class: "nut-input-word-limit"
|
|
@@ -349,7 +350,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
349
350
|
ref: "inputRef",
|
|
350
351
|
style: normalizeStyle(_ctx.stylesTextarea),
|
|
351
352
|
maxlength: _ctx.maxLength,
|
|
352
|
-
placeholder: _ctx.placeholder,
|
|
353
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
353
354
|
disabled: _ctx.disabled,
|
|
354
355
|
readonly: _ctx.readonly,
|
|
355
356
|
value: _ctx.modelValue,
|
|
@@ -364,8 +365,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
364
365
|
ref: "inputRef",
|
|
365
366
|
style: normalizeStyle(_ctx.styles),
|
|
366
367
|
type: _ctx.inputType(_ctx.type),
|
|
367
|
-
|
|
368
|
-
placeholder: _ctx.placeholder,
|
|
368
|
+
maxlength: _ctx.maxLength,
|
|
369
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
369
370
|
disabled: _ctx.disabled,
|
|
370
371
|
readonly: _ctx.readonly,
|
|
371
372
|
value: _ctx.modelValue,
|
|
@@ -399,9 +400,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
399
400
|
class: "nut-input-button"
|
|
400
401
|
}) : createCommentVNode("", true)
|
|
401
402
|
]),
|
|
402
|
-
_ctx.showWordLimit && _ctx.
|
|
403
|
+
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
403
404
|
createElementVNode("span", _hoisted_6, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
404
|
-
createTextVNode("/" + toDisplayString(_ctx.
|
|
405
|
+
createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
|
|
405
406
|
])) : createCommentVNode("", true),
|
|
406
407
|
_ctx.errorMessage ? (openBlock(), createElementBlock("view", {
|
|
407
408
|
key: 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.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
|
*/
|
|
@@ -22,7 +22,7 @@ const _sfc_main = create({
|
|
|
22
22
|
default: false
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
emits: ["
|
|
25
|
+
emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
|
|
26
26
|
setup(props, { emit }) {
|
|
27
27
|
const { fixed, safeAreaInsetTop } = toRefs(props);
|
|
28
28
|
const classes = computed(() => {
|
|
@@ -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,17 +1,17 @@
|
|
|
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 { ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } 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("numberkeyboard");
|
|
9
|
+
const { create, translate } = createComponent("numberkeyboard");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
confirmText: {
|
|
13
13
|
type: String,
|
|
14
|
-
default: "
|
|
14
|
+
default: ""
|
|
15
15
|
},
|
|
16
16
|
title: {
|
|
17
17
|
type: String,
|
|
@@ -145,7 +145,8 @@ const _sfc_main = create({
|
|
|
145
145
|
genCustomKeys,
|
|
146
146
|
getBasicKeys,
|
|
147
147
|
root,
|
|
148
|
-
show
|
|
148
|
+
show,
|
|
149
|
+
translate
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
152
|
});
|
|
@@ -196,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
197
|
createElementVNode("span", {
|
|
197
198
|
class: "keyboard-close",
|
|
198
199
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
199
|
-
}, "
|
|
200
|
+
}, toDisplayString(_ctx.translate("done")), 1)
|
|
200
201
|
])) : createCommentVNode("", true),
|
|
201
202
|
createElementVNode("div", _hoisted_4, [
|
|
202
203
|
createElementVNode("div", _hoisted_5, [
|
|
@@ -246,7 +247,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
246
247
|
}, [
|
|
247
248
|
createElementVNode("div", {
|
|
248
249
|
class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
249
|
-
}, toDisplayString(_ctx.confirmText), 3)
|
|
250
|
+
}, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
|
|
250
251
|
])) : createCommentVNode("", true)
|
|
251
252
|
])) : createCommentVNode("", true)
|
|
252
253
|
])
|
|
@@ -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
|
*/
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.19-beta.
|
|
18
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
19
19
|
* (c) 2022 @jdf2e.
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|
|
@@ -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, watchEffect, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, 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 { componentName, create } = createComponent("pagination");
|
|
9
|
+
const { componentName, create, translate } = createComponent("pagination");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: {
|
|
@@ -19,11 +19,11 @@ const _sfc_main = create({
|
|
|
19
19
|
},
|
|
20
20
|
prevText: {
|
|
21
21
|
type: String,
|
|
22
|
-
default: "
|
|
22
|
+
default: ""
|
|
23
23
|
},
|
|
24
24
|
nextText: {
|
|
25
25
|
type: String,
|
|
26
|
-
default: "
|
|
26
|
+
default: ""
|
|
27
27
|
},
|
|
28
28
|
pageCount: {
|
|
29
29
|
type: [String, Number],
|
|
@@ -108,7 +108,8 @@ const _sfc_main = create({
|
|
|
108
108
|
countRef,
|
|
109
109
|
mode,
|
|
110
110
|
pages,
|
|
111
|
-
forceEllipses
|
|
111
|
+
forceEllipses,
|
|
112
|
+
translate
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
115
|
});
|
|
@@ -130,7 +131,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
131
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
131
132
|
}, [
|
|
132
133
|
renderSlot(_ctx.$slots, "prev-text", {}, () => [
|
|
133
|
-
createTextVNode(toDisplayString(_ctx.prevText), 1)
|
|
134
|
+
createTextVNode(toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
|
|
134
135
|
])
|
|
135
136
|
], 2),
|
|
136
137
|
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
@@ -154,7 +155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.select(_ctx.modelValue + 1, true))
|
|
155
156
|
}, [
|
|
156
157
|
renderSlot(_ctx.$slots, "next-text", {}, () => [
|
|
157
|
-
createTextVNode(toDisplayString(_ctx.nextText), 1)
|
|
158
|
+
createTextVNode(toDisplayString(_ctx.nextText || _ctx.translate("next")), 1)
|
|
158
159
|
])
|
|
159
160
|
], 2)
|
|
160
161
|
]);
|
|
@@ -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
|
*/
|
|
@@ -241,7 +241,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
241
241
|
], 32);
|
|
242
242
|
}
|
|
243
243
|
var column = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
244
|
-
const { componentName, create } = createComponent("picker");
|
|
244
|
+
const { componentName, create, translate } = createComponent("picker");
|
|
245
245
|
const _sfc_main = create({
|
|
246
246
|
components: {
|
|
247
247
|
[column.name]: column,
|
|
@@ -258,11 +258,11 @@ const _sfc_main = create({
|
|
|
258
258
|
},
|
|
259
259
|
cancelText: {
|
|
260
260
|
type: String,
|
|
261
|
-
default: "
|
|
261
|
+
default: ""
|
|
262
262
|
},
|
|
263
263
|
okText: {
|
|
264
264
|
type: String,
|
|
265
|
-
default: "
|
|
265
|
+
default: ""
|
|
266
266
|
},
|
|
267
267
|
columns: {
|
|
268
268
|
type: Array,
|
|
@@ -407,7 +407,8 @@ const _sfc_main = create({
|
|
|
407
407
|
close,
|
|
408
408
|
changeHandler,
|
|
409
409
|
confirmHandler,
|
|
410
|
-
defaultValues
|
|
410
|
+
defaultValues,
|
|
411
|
+
translate
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
414
|
});
|
|
@@ -437,12 +438,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
438
|
createElementVNode("view", {
|
|
438
439
|
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
439
440
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
440
|
-
}, toDisplayString(_ctx.cancelText), 1),
|
|
441
|
+
}, toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
441
442
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
442
443
|
createElementVNode("view", {
|
|
443
444
|
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
444
445
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
|
|
445
|
-
}, toDisplayString(_ctx.okText), 1)
|
|
446
|
+
}, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
446
447
|
]),
|
|
447
448
|
createElementVNode("view", _hoisted_3, [
|
|
448
449
|
_hoisted_4,
|
|
@@ -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,9 +1,9 @@
|
|
|
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
|
-
import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock } from "vue";
|
|
6
|
+
import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
const { create } = createComponent("progress");
|
|
@@ -60,6 +60,7 @@ const _sfc_main = create({
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
setup(props, { emit }) {
|
|
63
|
+
const slotDefault = !!useSlots().default;
|
|
63
64
|
const height = ref(props.strokeWidth + "px");
|
|
64
65
|
const progressOuter = ref();
|
|
65
66
|
const insideText = ref();
|
|
@@ -81,7 +82,8 @@ const _sfc_main = create({
|
|
|
81
82
|
bgStyle,
|
|
82
83
|
textStyle,
|
|
83
84
|
progressOuter,
|
|
84
|
-
insideText
|
|
85
|
+
insideText,
|
|
86
|
+
slotDefault
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
89
|
});
|
|
@@ -98,7 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
98
100
|
class: normalizeClass(["nut-progress-inner", _ctx.status == "active" ? "nut-active" : ""]),
|
|
99
101
|
style: normalizeStyle(_ctx.bgStyle)
|
|
100
102
|
}, [
|
|
101
|
-
_ctx.showText && _ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
103
|
+
_ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
|
|
102
104
|
key: 0,
|
|
103
105
|
class: "nut-progress-text nut-progress-insidetext",
|
|
104
106
|
ref: "insideText",
|
|
@@ -112,6 +114,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
112
114
|
createElementVNode("span", {
|
|
113
115
|
style: normalizeStyle(_ctx.textStyle)
|
|
114
116
|
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
|
|
117
|
+
], 4)) : createCommentVNode("", true),
|
|
118
|
+
_ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
|
|
119
|
+
key: 1,
|
|
120
|
+
ref: "insideText",
|
|
121
|
+
style: normalizeStyle({
|
|
122
|
+
position: `absolute`,
|
|
123
|
+
top: `50%`,
|
|
124
|
+
left: `${_ctx.percentage}%`,
|
|
125
|
+
transform: `translate(-${+_ctx.percentage}%,-50%)`
|
|
126
|
+
})
|
|
127
|
+
}, [
|
|
128
|
+
renderSlot(_ctx.$slots, "default")
|
|
115
129
|
], 4)) : createCommentVNode("", true)
|
|
116
130
|
], 6)
|
|
117
131
|
], 6),
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.19-beta.
|
|
18
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
19
19
|
* (c) 2022 @jdf2e.
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|
|
@@ -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
|
*/
|
package/dist/packages/_es/Row.js
CHANGED