@nutui/nutui 4.0.9 → 4.0.10
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/CHANGELOG.md +17 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +15382 -0
- package/dist/nutui.umd.js +1 -7
- package/dist/packages/_es/ActionSheet.js +78 -111
- package/dist/packages/_es/Address.js +250 -375
- package/dist/packages/_es/AddressList.js +269 -354
- package/dist/packages/_es/Animate.js +41 -58
- package/dist/packages/_es/Audio.js +128 -197
- package/dist/packages/_es/AudioOperate.js +60 -71
- package/dist/packages/_es/Avatar.js +66 -89
- package/dist/packages/_es/AvatarGroup.js +23 -31
- package/dist/packages/_es/Backtop.js +59 -99
- package/dist/packages/_es/Badge.js +36 -47
- package/dist/packages/_es/Barrage.js +68 -147
- package/dist/packages/_es/Button.js +47 -66
- package/dist/packages/_es/Calendar.js +135 -157
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +42 -56
- package/dist/packages/_es/Cascader.js +315 -474
- package/dist/packages/_es/Category.js +29 -39
- package/dist/packages/_es/CategoryPane.js +57 -83
- package/dist/packages/_es/Cell.js +56 -71
- package/dist/packages/_es/CellGroup.js +19 -27
- package/dist/packages/_es/Checkbox.js +109 -156
- package/dist/packages/_es/CheckboxGroup.js +38 -59
- package/dist/packages/_es/CircleProgress.js +67 -96
- package/dist/packages/_es/Col.js +23 -31
- package/dist/packages/_es/Collapse.js +33 -58
- package/dist/packages/_es/CollapseItem.js +78 -108
- package/dist/packages/_es/Comment.js +207 -279
- package/dist/packages/_es/ConfigProvider.js +37 -55
- package/dist/packages/_es/Countdown.js +100 -212
- package/dist/packages/_es/Countup.js +232 -445
- package/dist/packages/_es/DatePicker.js +162 -265
- package/dist/packages/_es/Dialog.js +161 -213
- package/dist/packages/_es/Divider.js +42 -57
- package/dist/packages/_es/Drag.js +70 -153
- package/dist/packages/_es/Ecard.js +64 -104
- package/dist/packages/_es/Elevator.js +143 -219
- package/dist/packages/_es/Ellipsis.js +95 -178
- package/dist/packages/_es/Empty.js +23 -39
- package/dist/packages/_es/FixedNav.js +93 -116
- package/dist/packages/_es/Form.js +107 -178
- package/dist/packages/_es/FormItem.js +48 -61
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +58 -84
- package/dist/packages/_es/Image.js +90 -129
- package/dist/packages/_es/ImagePreview.js +256 -412
- package/dist/packages/_es/Indicator.js +30 -34
- package/dist/packages/_es/InfiniteLoading.js +83 -136
- package/dist/packages/_es/Input.js +160 -264
- package/dist/packages/_es/InputNumber.js +81 -117
- package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
- package/dist/packages/_es/Invoice.js +104 -130
- package/dist/packages/_es/Layout.js +3 -4
- package/dist/packages/_es/List.js +117 -215
- package/dist/packages/_es/Menu.js +96 -152
- package/dist/packages/_es/MenuItem.js +117 -172
- package/dist/packages/_es/Navbar.js +103 -119
- package/dist/packages/_es/Noticebar.js +197 -312
- package/dist/packages/_es/Notify.js +110 -166
- package/dist/packages/_es/NumberKeyboard.js +127 -202
- package/dist/packages/_es/Overlay.js +52 -80
- package/dist/packages/_es/Pagination.js +70 -100
- package/dist/packages/_es/Picker.js +275 -441
- package/dist/packages/_es/Popover.js +122 -225
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +44 -82
- package/dist/packages/_es/Progress.js +63 -79
- package/dist/packages/_es/PullRefresh.js +95 -173
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +204 -347
- package/dist/packages/_es/Rate.js +92 -141
- package/dist/packages/_es/Row.js +21 -27
- package/dist/packages/_es/Searchbar.js +130 -179
- package/dist/packages/_es/ShortPassword.js +69 -93
- package/dist/packages/_es/SideNavbar.js +49 -80
- package/dist/packages/_es/SideNavbarItem.js +22 -32
- package/dist/packages/_es/Signature.js +83 -146
- package/dist/packages/_es/Skeleton.js +110 -130
- package/dist/packages/_es/Sku.js +250 -343
- package/dist/packages/_es/Step.js +59 -86
- package/dist/packages/_es/Steps.js +26 -31
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +52 -74
- package/dist/packages/_es/Swipe.js +83 -155
- package/dist/packages/_es/Swiper.js +174 -311
- package/dist/packages/_es/SwiperItem.js +28 -44
- package/dist/packages/_es/Switch.js +55 -68
- package/dist/packages/_es/TabPane.js +30 -41
- package/dist/packages/_es/Tabbar.js +41 -52
- package/dist/packages/_es/TabbarItem.js +61 -82
- package/dist/packages/_es/Table.js +109 -165
- package/dist/packages/_es/Tabs.js +240 -388
- package/dist/packages/_es/Tag.js +44 -61
- package/dist/packages/_es/Textarea.js +80 -124
- package/dist/packages/_es/TimeDetail.js +49 -76
- package/dist/packages/_es/TimePannel.js +34 -48
- package/dist/packages/_es/TimeSelect.js +47 -68
- package/dist/packages/_es/Toast.js +144 -218
- package/dist/packages/_es/Tour.js +138 -192
- package/dist/packages/_es/TrendArrow.js +57 -77
- package/dist/packages/_es/Uploader.js +234 -359
- package/dist/packages/_es/Video.js +191 -316
- package/dist/packages/_es/Watermark.js +84 -117
- package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
- package/dist/packages/_es/common-d218746f.js +116 -0
- package/dist/packages/_es/component-234624bc.js +89 -0
- package/dist/packages/_es/index-14dfadc4.js +561 -0
- package/dist/packages/_es/index-192a3ef6.js +29 -0
- package/dist/packages/_es/index-360c5092.js +210 -0
- package/dist/packages/_es/index-496e6e05.js +24 -0
- package/dist/packages/_es/index-50eed3d9.js +7 -0
- package/dist/packages/_es/index-53ec2d4d.js +34 -0
- package/dist/packages/_es/index-fadb0974.js +8 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
- package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
- package/dist/packages/_es/pxCheck-38173291.js +4 -0
- package/dist/packages/_es/raf-a74f1a06.js +16 -0
- package/dist/packages/_es/renderIcon-47498b32.js +5 -0
- package/dist/packages/col/index.scss +2 -2
- package/dist/packages/menuitem/index.scss +7 -10
- package/dist/packages/searchbar/index.scss +4 -0
- package/dist/smartips/web-types.json +2 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +158 -55
- package/dist/styles/themes/jdb.scss +158 -55
- package/dist/styles/themes/jddkh.scss +158 -55
- package/dist/styles/themes/jdt.scss +158 -55
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +110 -3
- package/dist/types/__VUE/image/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
- package/dist/types/__VUE/row/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +121 -5
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/table/common.d.ts +55 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/packages/_es/Interceptor-956b24fc.js +0 -29
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
- package/dist/packages/_es/common-b9a5e726.js +0 -145
- package/dist/packages/_es/component-81a4c1d0.js +0 -145
- package/dist/packages/_es/index-29892cda.js +0 -33
- package/dist/packages/_es/index-43c34ac6.js +0 -30
- package/dist/packages/_es/index-54d03fc1.js +0 -8
- package/dist/packages/_es/index-79c5dc33.js +0 -10
- package/dist/packages/_es/index-7a7385e4.js +0 -67
- package/dist/packages/_es/index-87422be8.js +0 -942
- package/dist/packages/_es/index-da0a7662.js +0 -259
- package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
- package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
- package/dist/packages/_es/mountComponent-8b24c346.js +0 -39
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- package/dist/packages/_es/raf-729dad54.js +0 -25
- package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
|
|
2
|
-
import { c as
|
|
3
|
-
import { p as
|
|
4
|
-
import { Minus, Plus } from "@nutui/icons-vue";
|
|
5
|
-
import { _ as
|
|
1
|
+
import { computed as h, resolveComponent as c, openBlock as g, createElementBlock as y, normalizeClass as a, createElementVNode as m, renderSlot as p, createVNode as N, normalizeStyle as S } from "vue";
|
|
2
|
+
import { c as C } from "./component-234624bc.js";
|
|
3
|
+
import { p as w } from "./pxCheck-38173291.js";
|
|
4
|
+
import { Minus as k, Plus as V } from "@nutui/icons-vue";
|
|
5
|
+
import { _ as z } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
6
|
import "../locale/lang";
|
|
7
|
-
const { componentName, create } =
|
|
8
|
-
|
|
9
|
-
components: { Minus, Plus },
|
|
7
|
+
const { componentName: v, create: $ } = C("input-number"), A = $({
|
|
8
|
+
components: { Minus: k, Plus: V },
|
|
10
9
|
props: {
|
|
11
10
|
modelValue: {
|
|
12
11
|
type: [Number, String],
|
|
@@ -38,137 +37,102 @@ const _sfc_main = create({
|
|
|
38
37
|
},
|
|
39
38
|
disabled: {
|
|
40
39
|
type: Boolean,
|
|
41
|
-
default:
|
|
40
|
+
default: !1
|
|
42
41
|
},
|
|
43
42
|
readonly: {
|
|
44
43
|
type: Boolean,
|
|
45
|
-
default:
|
|
44
|
+
default: !1
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
47
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
49
|
-
setup(
|
|
50
|
-
const
|
|
51
|
-
const
|
|
48
|
+
setup(e, { emit: n }) {
|
|
49
|
+
const s = h(() => {
|
|
50
|
+
const u = v;
|
|
52
51
|
return {
|
|
53
|
-
[
|
|
54
|
-
[`${
|
|
52
|
+
[u]: !0,
|
|
53
|
+
[`${u}--disabled`]: e.disabled
|
|
55
54
|
};
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
const emitChange = (value, event) => {
|
|
65
|
-
let output_value = fixedDecimalPlaces(value);
|
|
66
|
-
emit("update:modelValue", output_value, event);
|
|
67
|
-
emit("change", output_value, event);
|
|
68
|
-
};
|
|
69
|
-
const addAllow = (value = Number(props.modelValue)) => {
|
|
70
|
-
return value < Number(props.max) && !props.disabled;
|
|
71
|
-
};
|
|
72
|
-
const reduceAllow = (value = Number(props.modelValue)) => {
|
|
73
|
-
return value > Number(props.min) && !props.disabled;
|
|
74
|
-
};
|
|
75
|
-
const reduce = (event) => {
|
|
76
|
-
emit("reduce", event);
|
|
77
|
-
if (reduceAllow()) {
|
|
78
|
-
let output_value = Number(props.modelValue) - Number(props.step);
|
|
79
|
-
emitChange(output_value, event);
|
|
80
|
-
} else {
|
|
81
|
-
emit("overlimit", event, "reduce");
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const add = (event) => {
|
|
85
|
-
emit("add", event);
|
|
86
|
-
if (addAllow()) {
|
|
87
|
-
let output_value = Number(props.modelValue) + Number(props.step);
|
|
88
|
-
emitChange(output_value, event);
|
|
89
|
-
} else {
|
|
90
|
-
emit("overlimit", event, "add");
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
const focus = (event) => {
|
|
94
|
-
if (props.disabled)
|
|
95
|
-
return;
|
|
96
|
-
if (props.readonly)
|
|
97
|
-
return;
|
|
98
|
-
emit("focus", event);
|
|
99
|
-
};
|
|
100
|
-
const blur = (event) => {
|
|
101
|
-
if (props.disabled)
|
|
102
|
-
return;
|
|
103
|
-
if (props.readonly)
|
|
104
|
-
return;
|
|
105
|
-
const input = event.target;
|
|
106
|
-
let value = input.valueAsNumber;
|
|
107
|
-
if (value < Number(props.min)) {
|
|
108
|
-
value = Number(props.min);
|
|
109
|
-
} else if (value > Number(props.max)) {
|
|
110
|
-
value = Number(props.max);
|
|
111
|
-
}
|
|
112
|
-
emitChange(value, event);
|
|
113
|
-
emit("blur", event);
|
|
114
|
-
};
|
|
55
|
+
}), b = (u) => Number(u).toFixed(Number(e.decimalPlaces)), f = (u) => {
|
|
56
|
+
const t = u.target;
|
|
57
|
+
n("update:modelValue", t.valueAsNumber, u);
|
|
58
|
+
}, i = (u, t) => {
|
|
59
|
+
let r = b(u);
|
|
60
|
+
n("update:modelValue", r, t), n("change", r, t);
|
|
61
|
+
}, d = (u = Number(e.modelValue)) => u < Number(e.max) && !e.disabled, o = (u = Number(e.modelValue)) => u > Number(e.min) && !e.disabled;
|
|
115
62
|
return {
|
|
116
|
-
classes,
|
|
117
|
-
change,
|
|
118
|
-
blur
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
63
|
+
classes: s,
|
|
64
|
+
change: f,
|
|
65
|
+
blur: (u) => {
|
|
66
|
+
if (e.disabled || e.readonly)
|
|
67
|
+
return;
|
|
68
|
+
let r = u.target.valueAsNumber;
|
|
69
|
+
r < Number(e.min) ? r = Number(e.min) : r > Number(e.max) && (r = Number(e.max)), i(r, u), n("blur", u);
|
|
70
|
+
},
|
|
71
|
+
focus: (u) => {
|
|
72
|
+
e.disabled || e.readonly || n("focus", u);
|
|
73
|
+
},
|
|
74
|
+
add: (u) => {
|
|
75
|
+
if (n("add", u), d()) {
|
|
76
|
+
let t = Number(e.modelValue) + Number(e.step);
|
|
77
|
+
i(t, u);
|
|
78
|
+
} else
|
|
79
|
+
n("overlimit", u, "add");
|
|
80
|
+
},
|
|
81
|
+
addAllow: d,
|
|
82
|
+
reduce: (u) => {
|
|
83
|
+
if (n("reduce", u), o()) {
|
|
84
|
+
let t = Number(e.modelValue) - Number(e.step);
|
|
85
|
+
i(t, u);
|
|
86
|
+
} else
|
|
87
|
+
n("overlimit", u, "reduce");
|
|
88
|
+
},
|
|
89
|
+
reduceAllow: o,
|
|
90
|
+
pxCheck: w
|
|
125
91
|
};
|
|
126
92
|
}
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return openBlock(), createElementBlock("view", {
|
|
133
|
-
class: normalizeClass(_ctx.classes)
|
|
93
|
+
}), P = ["min", "max", "disabled", "readonly", "value"];
|
|
94
|
+
function B(e, n, s, b, f, i) {
|
|
95
|
+
const d = c("Minus"), o = c("Plus");
|
|
96
|
+
return g(), y("view", {
|
|
97
|
+
class: a(e.classes)
|
|
134
98
|
}, [
|
|
135
|
-
|
|
136
|
-
class:
|
|
137
|
-
onClick:
|
|
99
|
+
m("view", {
|
|
100
|
+
class: a(["nut-input-number__icon nut-input-number__left", { "nut-input-number__icon--disabled": !e.reduceAllow() }]),
|
|
101
|
+
onClick: n[0] || (n[0] = (...l) => e.reduce && e.reduce(...l))
|
|
138
102
|
}, [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
width:
|
|
142
|
-
height:
|
|
103
|
+
p(e.$slots, "left-icon", {}, () => [
|
|
104
|
+
N(d, {
|
|
105
|
+
width: e.pxCheck(e.buttonSize),
|
|
106
|
+
height: e.pxCheck(e.buttonSize)
|
|
143
107
|
}, null, 8, ["width", "height"])
|
|
144
108
|
])
|
|
145
109
|
], 2),
|
|
146
|
-
|
|
110
|
+
m("input", {
|
|
147
111
|
type: "number",
|
|
148
|
-
min:
|
|
149
|
-
max:
|
|
150
|
-
style:
|
|
151
|
-
disabled:
|
|
152
|
-
readonly:
|
|
153
|
-
value:
|
|
154
|
-
onInput:
|
|
155
|
-
onBlur:
|
|
156
|
-
onFocus:
|
|
157
|
-
}, null, 44,
|
|
158
|
-
|
|
159
|
-
class:
|
|
160
|
-
onClick:
|
|
112
|
+
min: e.min,
|
|
113
|
+
max: e.max,
|
|
114
|
+
style: S({ width: e.pxCheck(e.inputWidth), height: e.pxCheck(e.buttonSize) }),
|
|
115
|
+
disabled: e.disabled,
|
|
116
|
+
readonly: e.readonly,
|
|
117
|
+
value: e.modelValue,
|
|
118
|
+
onInput: n[1] || (n[1] = (...l) => e.change && e.change(...l)),
|
|
119
|
+
onBlur: n[2] || (n[2] = (...l) => e.blur && e.blur(...l)),
|
|
120
|
+
onFocus: n[3] || (n[3] = (...l) => e.focus && e.focus(...l))
|
|
121
|
+
}, null, 44, P),
|
|
122
|
+
m("view", {
|
|
123
|
+
class: a(["nut-input-number__icon nut-input-number__right", { "nut-input-number__icon--disabled": !e.addAllow() }]),
|
|
124
|
+
onClick: n[4] || (n[4] = (...l) => e.add && e.add(...l))
|
|
161
125
|
}, [
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
width:
|
|
165
|
-
height:
|
|
126
|
+
p(e.$slots, "right-icon", {}, () => [
|
|
127
|
+
N(o, {
|
|
128
|
+
width: e.pxCheck(e.buttonSize),
|
|
129
|
+
height: e.pxCheck(e.buttonSize)
|
|
166
130
|
}, null, 8, ["width", "height"])
|
|
167
131
|
])
|
|
168
132
|
], 2)
|
|
169
133
|
], 2);
|
|
170
134
|
}
|
|
171
|
-
const
|
|
135
|
+
const H = /* @__PURE__ */ z(A, [["render", B]]);
|
|
172
136
|
export {
|
|
173
|
-
|
|
137
|
+
H as default
|
|
174
138
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { f as o } from "./component-234624bc.js";
|
|
2
|
+
const e = (t, {
|
|
3
|
+
args: l = [],
|
|
4
|
+
done: s,
|
|
5
|
+
canceled: f
|
|
6
|
+
}) => {
|
|
7
|
+
if (t) {
|
|
8
|
+
const i = t.apply(null, l);
|
|
9
|
+
o(i) ? i.then((r) => {
|
|
10
|
+
r ? s(r) : f && f();
|
|
11
|
+
}).catch(() => {
|
|
12
|
+
}) : i ? s() : f && f();
|
|
13
|
+
} else
|
|
14
|
+
s();
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
e as f
|
|
18
|
+
};
|
|
@@ -1,44 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
22
|
-
import Form from "./Form.js";
|
|
23
|
-
import FormItem from "./FormItem.js";
|
|
24
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-442e4704.js";
|
|
25
|
-
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-22dfc112.js";
|
|
26
|
-
import Button from "./Button.js";
|
|
27
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
1
|
+
var D = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var S = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var V = Object.getOwnPropertySymbols;
|
|
4
|
+
var x = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (e, o, t) => o in e ? D(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, v = (e, o) => {
|
|
6
|
+
for (var t in o || (o = {}))
|
|
7
|
+
x.call(o, t) && y(e, t, o[t]);
|
|
8
|
+
if (V)
|
|
9
|
+
for (var t of V(o))
|
|
10
|
+
E.call(o, t) && y(e, t, o[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, h = (e, o) => R(e, S(o));
|
|
13
|
+
import { ref as k, reactive as L, computed as M, onMounted as T, watch as j, toRefs as z, resolveComponent as l, openBlock as n, createElementBlock as u, normalizeClass as O, createVNode as C, withCtx as m, Fragment as B, renderList as $, createBlock as f, createTextVNode as F, toDisplayString as G, withDirectives as H, vModelText as J, createCommentVNode as K } from "vue";
|
|
14
|
+
import { c as Q } from "./component-234624bc.js";
|
|
15
|
+
import I from "./Form.js";
|
|
16
|
+
import P from "./FormItem.js";
|
|
17
|
+
import { _ as g } from "./index.vue_vue_type_script_lang-43b774dd.js";
|
|
18
|
+
import { _ as w } from "./index.vue_vue_type_script_lang-1139b29a.js";
|
|
19
|
+
import N from "./Button.js";
|
|
20
|
+
import { _ as W } from "./_plugin-vue_export-helper-dad06003.js";
|
|
28
21
|
import "../locale/lang";
|
|
29
22
|
import "./CellGroup.js";
|
|
30
|
-
import "./pxCheck-
|
|
23
|
+
import "./pxCheck-38173291.js";
|
|
31
24
|
import "./Cell.js";
|
|
32
|
-
import "./index-
|
|
25
|
+
import "./index-50eed3d9.js";
|
|
33
26
|
import "@nutui/icons-vue";
|
|
34
|
-
const { componentName, create } =
|
|
35
|
-
const _sfc_main = create({
|
|
27
|
+
const { componentName: X, create: Y } = Q("invoice"), Z = Y({
|
|
36
28
|
components: {
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
29
|
+
[I.name]: I,
|
|
30
|
+
[P.name]: P,
|
|
31
|
+
[g.name]: g,
|
|
32
|
+
[w.name]: w,
|
|
33
|
+
[N.name]: N
|
|
42
34
|
},
|
|
43
35
|
props: {
|
|
44
36
|
data: {
|
|
@@ -51,125 +43,107 @@ const _sfc_main = create({
|
|
|
51
43
|
},
|
|
52
44
|
submit: {
|
|
53
45
|
type: Boolean,
|
|
54
|
-
default:
|
|
46
|
+
default: !0
|
|
55
47
|
}
|
|
56
48
|
},
|
|
57
49
|
emits: ["onSubmit", "scroll-bottom"],
|
|
58
|
-
setup(
|
|
59
|
-
const
|
|
60
|
-
const list = ref([]);
|
|
61
|
-
const state = reactive({
|
|
50
|
+
setup(e, { emit: o }) {
|
|
51
|
+
const t = k(), i = k([]), _ = L({
|
|
62
52
|
// list: []
|
|
53
|
+
}), b = M(() => ({
|
|
54
|
+
[X]: !0
|
|
55
|
+
}));
|
|
56
|
+
T(() => {
|
|
57
|
+
s();
|
|
63
58
|
});
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
});
|
|
70
|
-
onMounted(() => {
|
|
71
|
-
init();
|
|
72
|
-
});
|
|
73
|
-
const init = () => {
|
|
74
|
-
list.value = props.data;
|
|
75
|
-
};
|
|
76
|
-
const submitFun = () => {
|
|
77
|
-
formRef.value.validate().then(({ valid, errors }) => {
|
|
78
|
-
emit("onSubmit", valid, errors);
|
|
59
|
+
const s = () => {
|
|
60
|
+
i.value = e.data;
|
|
61
|
+
}, c = () => {
|
|
62
|
+
t.value.validate().then(({ valid: p, errors: d }) => {
|
|
63
|
+
o("onSubmit", p, d);
|
|
79
64
|
});
|
|
80
65
|
};
|
|
81
|
-
|
|
82
|
-
() =>
|
|
83
|
-
() =>
|
|
84
|
-
{ deep:
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
submitFun
|
|
66
|
+
return j(
|
|
67
|
+
() => e.data,
|
|
68
|
+
() => s(),
|
|
69
|
+
{ deep: !0 }
|
|
70
|
+
), h(v({}, z(_)), {
|
|
71
|
+
classes: b,
|
|
72
|
+
formRef: t,
|
|
73
|
+
list: i,
|
|
74
|
+
submitFun: c
|
|
91
75
|
});
|
|
92
76
|
}
|
|
93
|
-
})
|
|
94
|
-
const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
|
|
95
|
-
const _hoisted_2 = {
|
|
77
|
+
}), ee = ["placeholder", "onUpdate:modelValue"], oe = {
|
|
96
78
|
key: 0,
|
|
97
79
|
class: "nut-invoice__submit"
|
|
98
80
|
};
|
|
99
|
-
function
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const _component_nut_form = resolveComponent("nut-form");
|
|
104
|
-
const _component_nut_button = resolveComponent("nut-button");
|
|
105
|
-
return openBlock(), createElementBlock("view", {
|
|
106
|
-
class: normalizeClass(_ctx.classes)
|
|
81
|
+
function te(e, o, t, i, _, b) {
|
|
82
|
+
const s = l("nut-radio"), c = l("nut-radio-group"), p = l("nut-form-item"), d = l("nut-form"), U = l("nut-button");
|
|
83
|
+
return n(), u("view", {
|
|
84
|
+
class: O(e.classes)
|
|
107
85
|
}, [
|
|
108
|
-
|
|
109
|
-
"model-value":
|
|
86
|
+
C(d, {
|
|
87
|
+
"model-value": e.formValue,
|
|
110
88
|
ref: "formRef"
|
|
111
89
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
]),
|
|
152
|
-
_: 2
|
|
153
|
-
}, 1032, ["label", "required", "rules", "prop"]);
|
|
154
|
-
}), 128))
|
|
90
|
+
default: m(() => [
|
|
91
|
+
(n(!0), u(B, null, $(e.list, (r, q) => (n(), f(p, {
|
|
92
|
+
key: q,
|
|
93
|
+
label: r.label,
|
|
94
|
+
required: r.required,
|
|
95
|
+
rules: r.rules,
|
|
96
|
+
prop: r.formItemProp
|
|
97
|
+
}, {
|
|
98
|
+
default: m(() => [
|
|
99
|
+
r.type === "radio" ? (n(), f(c, {
|
|
100
|
+
key: 0,
|
|
101
|
+
modelValue: e.formValue[r.formItemProp],
|
|
102
|
+
"onUpdate:modelValue": (a) => e.formValue[r.formItemProp] = a
|
|
103
|
+
}, {
|
|
104
|
+
default: m(() => [
|
|
105
|
+
(n(!0), u(B, null, $(r.radioLabel, (a, A) => (n(), f(s, {
|
|
106
|
+
key: A,
|
|
107
|
+
shape: "button",
|
|
108
|
+
label: a.label
|
|
109
|
+
}, {
|
|
110
|
+
default: m(() => [
|
|
111
|
+
F(G(a.label), 1)
|
|
112
|
+
]),
|
|
113
|
+
_: 2
|
|
114
|
+
}, 1032, ["label"]))), 128))
|
|
115
|
+
]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : H((n(), u("input", {
|
|
118
|
+
key: 1,
|
|
119
|
+
class: "nut-input-text",
|
|
120
|
+
placeholder: r.placeholder,
|
|
121
|
+
"onUpdate:modelValue": (a) => e.formValue[r.formItemProp] = a,
|
|
122
|
+
type: "text"
|
|
123
|
+
}, null, 8, ee)), [
|
|
124
|
+
[J, e.formValue[r.formItemProp]]
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1032, ["label", "required", "rules", "prop"]))), 128))
|
|
155
129
|
]),
|
|
156
130
|
_: 1
|
|
157
131
|
}, 8, ["model-value"]),
|
|
158
|
-
|
|
159
|
-
|
|
132
|
+
e.submit ? (n(), u("div", oe, [
|
|
133
|
+
C(U, {
|
|
160
134
|
type: "primary",
|
|
161
135
|
block: "",
|
|
162
|
-
onClick:
|
|
136
|
+
onClick: e.submitFun
|
|
163
137
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
|
|
138
|
+
default: m(() => [
|
|
139
|
+
F("提交审批")
|
|
166
140
|
]),
|
|
167
141
|
_: 1
|
|
168
142
|
}, 8, ["onClick"])
|
|
169
|
-
])) :
|
|
143
|
+
])) : K("", !0)
|
|
170
144
|
], 2);
|
|
171
145
|
}
|
|
172
|
-
const
|
|
146
|
+
const ye = /* @__PURE__ */ W(Z, [["render", te]]);
|
|
173
147
|
export {
|
|
174
|
-
|
|
148
|
+
ye as default
|
|
175
149
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as t } from "./component-234624bc.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "../locale/lang";
|
|
4
|
-
const { create } =
|
|
5
|
-
const _sfc_main = create({});
|
|
4
|
+
const { create: o } = t("layout"), c = o({});
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
c as default
|
|
8
7
|
};
|