@nutui/nutui 3.1.19-beta.2 → 3.1.19-beta.3
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 +1191 -1140
- package/dist/nutui.umd.js +1199 -1147
- package/dist/packages/_es/ActionSheet.js +1 -1
- 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 +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/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +9 -10
- 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 +1 -1
- package/dist/packages/_es/FixedNav.js +7 -6
- package/dist/packages/_es/Form.js +6 -2
- 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 +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 +7 -8
- package/dist/packages/_es/Picker.js +1 -1
- 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 +5 -6
- 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 +3 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/packages/_es/Video.js +6 -7
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +3 -135
- 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 +17 -22
- 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/_es/util.js +47 -0
- package/dist/packages/ecard/index.scss +83 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +47 -46
- package/dist/styles/themes/jdt.scss +47 -46
- package/dist/styles/variables-jdt.scss +3 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/__VUE/actionsheet/index.d.ts +3 -3
- 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/calendaritem/index.d.ts +1 -2
- package/dist/types/__VUE/cell/index.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +4 -5
- package/dist/types/__VUE/ecard/index.d.ts +123 -0
- package/dist/types/__VUE/fixednav/index.d.ts +1 -2
- package/dist/types/__VUE/grid/index.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.d.ts +4 -4
- package/dist/types/__VUE/menu/index.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.d.ts +2 -2
- package/dist/types/__VUE/numberkeyboard/index.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.d.ts +3 -3
- package/dist/types/__VUE/pagination/index.d.ts +0 -1
- package/dist/types/__VUE/picker/index.d.ts +3 -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/searchbar/index.d.ts +0 -1
- package/dist/types/__VUE/shortpassword/index.d.ts +1 -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/switch/index.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.d.ts +1 -1
- package/dist/types/__VUE/video/index.d.ts +1 -2
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +1 -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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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: "\u65E5\u5386\u9009\u62E9"
|
|
48
48
|
},
|
|
49
49
|
confirmText: {
|
|
50
50
|
type: String,
|
|
51
|
-
default: ""
|
|
51
|
+
default: "\u786E\u8BA4"
|
|
52
52
|
},
|
|
53
53
|
startText: {
|
|
54
54
|
type: String,
|
|
55
|
-
default: ""
|
|
55
|
+
default: "\u5F00\u59CB"
|
|
56
56
|
},
|
|
57
57
|
endText: {
|
|
58
58
|
type: String,
|
|
59
|
-
default: ""
|
|
59
|
+
default: "\u7ED3\u675F"
|
|
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.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
39
39
|
* (c) 2022 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -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.3 Fri Apr 08 2022 09:46:28 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
|
|
37
|
+
const { componentName, create } = 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: "\u53D6\u6D88"
|
|
72
72
|
},
|
|
73
73
|
okText: {
|
|
74
74
|
type: String,
|
|
75
|
-
default: ""
|
|
75
|
+
default: "\u786E\u5B9A"
|
|
76
76
|
},
|
|
77
77
|
okBtnDisabled: {
|
|
78
78
|
type: Boolean,
|
|
@@ -136,8 +136,7 @@ const _sfc_main = create({
|
|
|
136
136
|
classes,
|
|
137
137
|
onCancel,
|
|
138
138
|
onOk,
|
|
139
|
-
showPopup
|
|
140
|
-
translate
|
|
139
|
+
showPopup
|
|
141
140
|
};
|
|
142
141
|
}
|
|
143
142
|
});
|
|
@@ -191,7 +190,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
191
190
|
onClick: _ctx.onCancel
|
|
192
191
|
}, {
|
|
193
192
|
default: withCtx(() => [
|
|
194
|
-
createTextVNode(toDisplayString(_ctx.cancelText
|
|
193
|
+
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
195
194
|
]),
|
|
196
195
|
_: 1
|
|
197
196
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -204,7 +203,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
204
203
|
onClick: _ctx.onOk
|
|
205
204
|
}, {
|
|
206
205
|
default: withCtx(() => [
|
|
207
|
-
createTextVNode(toDisplayString(_ctx.okText
|
|
206
|
+
createTextVNode(toDisplayString(_ctx.okText), 1)
|
|
208
207
|
]),
|
|
209
208
|
_: 1
|
|
210
209
|
}, 8, ["class", "disabled", "onClick"])) : createCommentVNode("", true)
|
|
@@ -220,8 +219,8 @@ class DialogOptions {
|
|
|
220
219
|
constructor() {
|
|
221
220
|
__publicField(this, "title", "");
|
|
222
221
|
__publicField(this, "content", "");
|
|
223
|
-
__publicField(this, "cancelText", "");
|
|
224
|
-
__publicField(this, "okText", "");
|
|
222
|
+
__publicField(this, "cancelText", "\u53D6\u6D88");
|
|
223
|
+
__publicField(this, "okText", "\u786E\u5B9A");
|
|
225
224
|
__publicField(this, "textAlign", "center");
|
|
226
225
|
__publicField(this, "teleport", "body");
|
|
227
226
|
__publicField(this, "id", new Date().getTime());
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
const { componentName, create } = createComponent("ecard");
|
|
10
|
+
const _sfc_main = create({
|
|
11
|
+
props: {
|
|
12
|
+
chooseText: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "\u8BF7\u9009\u62E9\u7535\u5B50\u5361\u9762\u503C"
|
|
15
|
+
},
|
|
16
|
+
otherValueText: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "\u5176\u4ED6\u9762\u503C"
|
|
19
|
+
},
|
|
20
|
+
dataList: {
|
|
21
|
+
type: [Object, Array],
|
|
22
|
+
default: () => {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
cardAmountMin: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 1
|
|
29
|
+
},
|
|
30
|
+
cardAmountMax: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 9999
|
|
33
|
+
},
|
|
34
|
+
cardBuyMin: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 1
|
|
37
|
+
},
|
|
38
|
+
cardBuyMax: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 9999
|
|
41
|
+
},
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 0
|
|
45
|
+
},
|
|
46
|
+
placeholder: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "\u8BF7\u8F93\u51651-5000\u6574\u6570"
|
|
49
|
+
},
|
|
50
|
+
suffix: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "\xA5"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
emits: ["inputChange", "changeStep", "inputClick", "change", "update:modelValue"],
|
|
56
|
+
setup(props, { emit }) {
|
|
57
|
+
const currentIndex = ref(null);
|
|
58
|
+
const inputValue = ref();
|
|
59
|
+
const stepValue = ref(props.cardAmountMin);
|
|
60
|
+
const money = ref(props.modelValue);
|
|
61
|
+
const handleClick = (item, index2) => {
|
|
62
|
+
currentIndex.value = index2;
|
|
63
|
+
inputValue.value = "";
|
|
64
|
+
emit("change", item);
|
|
65
|
+
};
|
|
66
|
+
const change = (event) => {
|
|
67
|
+
let input = event.target;
|
|
68
|
+
let val = input.value.replace(/[^\d]/g, "");
|
|
69
|
+
inputValue.value = val;
|
|
70
|
+
if (Number(val) > props.cardAmountMax) {
|
|
71
|
+
inputValue.value = props.cardAmountMax;
|
|
72
|
+
}
|
|
73
|
+
if (Number(val) < props.cardAmountMin) {
|
|
74
|
+
inputValue.value = props.cardAmountMin;
|
|
75
|
+
}
|
|
76
|
+
emit("inputChange", Number(inputValue.value));
|
|
77
|
+
};
|
|
78
|
+
const inputClick = () => {
|
|
79
|
+
currentIndex.value = "input";
|
|
80
|
+
emit("update:modelValue", 0);
|
|
81
|
+
emit("inputClick");
|
|
82
|
+
};
|
|
83
|
+
const changeStep = (value) => {
|
|
84
|
+
stepValue.value = value;
|
|
85
|
+
emit("changeStep", stepValue.value);
|
|
86
|
+
};
|
|
87
|
+
watch(() => props.modelValue, (value) => {
|
|
88
|
+
console.log("value", value);
|
|
89
|
+
money.value = value;
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
handleClick,
|
|
93
|
+
changeStep,
|
|
94
|
+
change,
|
|
95
|
+
inputClick,
|
|
96
|
+
stepValue,
|
|
97
|
+
currentIndex,
|
|
98
|
+
inputValue,
|
|
99
|
+
money
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const _hoisted_1 = { class: "nut-ecard" };
|
|
104
|
+
const _hoisted_2 = { class: "nut-ecard__title" };
|
|
105
|
+
const _hoisted_3 = { class: "nut-ecard__list" };
|
|
106
|
+
const _hoisted_4 = ["onClick"];
|
|
107
|
+
const _hoisted_5 = { class: "nut-ecard__list__input--con" };
|
|
108
|
+
const _hoisted_6 = ["placeholder"];
|
|
109
|
+
const _hoisted_7 = { class: "nut-ecard__list__step" };
|
|
110
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
111
|
+
const _component_nut_inputnumber = resolveComponent("nut-inputnumber");
|
|
112
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
113
|
+
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.chooseText), 1),
|
|
114
|
+
createElementVNode("view", _hoisted_3, [
|
|
115
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataList, (item, index2) => {
|
|
116
|
+
return openBlock(), createElementBlock("view", {
|
|
117
|
+
key: index2,
|
|
118
|
+
class: normalizeClass(["nut-ecard__list__item", _ctx.currentIndex == index2 ? "active" : ""]),
|
|
119
|
+
onClick: ($event) => _ctx.handleClick(item, index2)
|
|
120
|
+
}, toDisplayString(item.price), 11, _hoisted_4);
|
|
121
|
+
}), 128)),
|
|
122
|
+
createElementVNode("view", {
|
|
123
|
+
class: normalizeClass(["nut-ecard__list__input", _ctx.currentIndex == "input" ? "active" : ""]),
|
|
124
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.inputClick && _ctx.inputClick(...args))
|
|
125
|
+
}, [
|
|
126
|
+
createElementVNode("view", null, toDisplayString(_ctx.otherValueText), 1),
|
|
127
|
+
createElementVNode("view", _hoisted_5, [
|
|
128
|
+
withDirectives(createElementVNode("input", {
|
|
129
|
+
type: "text",
|
|
130
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
131
|
+
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
132
|
+
placeholder: _ctx.placeholder
|
|
133
|
+
}, null, 40, _hoisted_6), [
|
|
134
|
+
[vModelText, _ctx.inputValue]
|
|
135
|
+
]),
|
|
136
|
+
createTextVNode(" " + toDisplayString(_ctx.suffix), 1)
|
|
137
|
+
])
|
|
138
|
+
], 2),
|
|
139
|
+
createElementVNode("view", _hoisted_7, [
|
|
140
|
+
createElementVNode("view", null, toDisplayString(_ctx.suffix) + toDisplayString(_ctx.money), 1),
|
|
141
|
+
createVNode(_component_nut_inputnumber, {
|
|
142
|
+
modelValue: _ctx.stepValue,
|
|
143
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.stepValue = $event),
|
|
144
|
+
min: _ctx.cardBuyMin,
|
|
145
|
+
max: _ctx.cardBuyMax,
|
|
146
|
+
onChange: _ctx.changeStep
|
|
147
|
+
}, null, 8, ["modelValue", "min", "max", "onChange"])
|
|
148
|
+
])
|
|
149
|
+
])
|
|
150
|
+
]);
|
|
151
|
+
}
|
|
152
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
153
|
+
export { index as default };
|
|
@@ -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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 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
|
|
10
|
+
const { componentName, create } = 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: "\u6536\u8D77\u5BFC\u822A",
|
|
30
30
|
type: String
|
|
31
31
|
},
|
|
32
32
|
unActiveText: {
|
|
33
|
-
default: "",
|
|
33
|
+
default: "\u5FEB\u901F\u5BFC\u822A",
|
|
34
34
|
type: String
|
|
35
35
|
},
|
|
36
36
|
position: {
|
|
@@ -47,6 +47,7 @@ const _sfc_main = create({
|
|
|
47
47
|
type: String
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
components: {},
|
|
50
51
|
emits: ["update:visible", "selected"],
|
|
51
52
|
setup(props, { emit }) {
|
|
52
53
|
const classes = computed(() => {
|
|
@@ -66,7 +67,7 @@ const _sfc_main = create({
|
|
|
66
67
|
event
|
|
67
68
|
});
|
|
68
69
|
};
|
|
69
|
-
return { classes, updateValue, selected
|
|
70
|
+
return { classes, updateValue, selected };
|
|
70
71
|
}
|
|
71
72
|
});
|
|
72
73
|
const _hoisted_1 = { class: "nut-fixednav__list" };
|
|
@@ -117,7 +118,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
117
118
|
name: "left",
|
|
118
119
|
color: "#fff"
|
|
119
120
|
}),
|
|
120
|
-
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.visible ? _ctx.activeText
|
|
121
|
+
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.visible ? _ctx.activeText : _ctx.unActiveText), 1)
|
|
121
122
|
])
|
|
122
123
|
])
|
|
123
124
|
], 6);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { c as createComponent } from "./component.js";
|
|
7
|
+
import { i as isPromise } from "./util.js";
|
|
7
8
|
import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
|
|
8
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
const component = {
|
|
@@ -60,6 +61,9 @@ const component = {
|
|
|
60
61
|
resolve(errorMsg);
|
|
61
62
|
});
|
|
62
63
|
};
|
|
64
|
+
const getPropByPath = (obj, keyPath) => {
|
|
65
|
+
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
66
|
+
};
|
|
63
67
|
if (!prop) {
|
|
64
68
|
console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
|
|
65
69
|
}
|
|
@@ -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.3 Fri Apr 08 2022 09:46:28 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.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|