@nutui/nutui 4.3.0-beta.6 → 4.3.1
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 +47 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5939 -6035
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +0 -2
- package/dist/packages/address/Address.js +0 -3
- package/dist/packages/addresslist/AddressList.js +0 -4
- package/dist/packages/audio/Audio.js +0 -3
- package/dist/packages/audiooperate/AudioOperate.js +0 -4
- package/dist/packages/avatar/Avatar.js +0 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +1 -2
- package/dist/packages/button/Button.js +17 -18
- package/dist/packages/calendar/Calendar.js +0 -6
- package/dist/packages/calendarcard/CalendarCard.js +6 -26
- package/dist/packages/calendaritem/CalendarItem.js +0 -2
- package/dist/packages/card/Card.js +0 -1
- package/dist/packages/cascader/Cascader.js +0 -9
- package/dist/packages/checkbox/Checkbox.js +4 -2
- package/dist/packages/collapse/Collapse.js +40 -28
- package/dist/packages/collapseitem/CollapseItem.js +112 -125
- package/dist/packages/comment/Comment.js +0 -5
- package/dist/packages/common-LvGbU-A3.js +13 -0
- package/dist/packages/countdown/Countdown.js +3 -4
- package/dist/packages/datepicker/DatePicker.js +0 -4
- package/dist/packages/dialog/Dialog.js +0 -4
- package/dist/packages/ecard/Ecard.js +0 -4
- package/dist/packages/empty/Empty.js +0 -2
- package/dist/packages/fixednav/FixedNav.js +0 -2
- package/dist/packages/form/Form.js +161 -157
- package/dist/packages/formitem/FormItem.js +76 -107
- package/dist/packages/grid/Grid.js +0 -1
- package/dist/packages/imagepreview/ImagePreview.js +1 -5
- package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
- package/dist/packages/{index.vue_vue_type_script_lang-MJYVRFbp.js → index.vue_vue_type_script_lang-w2sgcysj.js} +6 -4
- package/dist/packages/infiniteloading/InfiniteLoading.js +0 -1
- package/dist/packages/input/Input.js +10 -7
- package/dist/packages/inputnumber/InputNumber.js +12 -8
- package/dist/packages/invoice/Invoice.js +10 -21
- package/dist/packages/list/List.js +1 -1
- package/dist/packages/locale/lang/index.js +0 -1
- package/dist/packages/menu/Menu.js +1 -1
- package/dist/packages/menuitem/MenuItem.js +0 -2
- package/dist/packages/noticebar/Noticebar.js +9 -10
- package/dist/packages/notify/Notify.js +0 -3
- package/dist/packages/numberkeyboard/NumberKeyboard.js +0 -4
- package/dist/packages/pagination/Pagination.js +0 -2
- package/dist/packages/picker/Picker.js +10 -5
- package/dist/packages/popover/Popover.js +88 -89
- package/dist/packages/popover/index.css +1 -1
- package/dist/packages/popover/index.scss +3 -12
- package/dist/packages/popup/Popup.js +0 -4
- package/dist/packages/pullrefresh/PullRefresh.js +0 -1
- package/dist/packages/radio/Radio.js +1 -6
- package/dist/packages/radiogroup/RadioGroup.js +0 -3
- package/dist/packages/range/Range.js +11 -8
- package/dist/packages/rate/Rate.js +6 -3
- package/dist/packages/searchbar/Searchbar.js +5 -4
- package/dist/packages/shortpassword/ShortPassword.js +0 -3
- package/dist/packages/signature/Signature.js +0 -4
- package/dist/packages/sku/Sku.js +5 -9
- package/dist/packages/sticky/Sticky.js +1 -1
- package/dist/packages/switch/Switch.js +5 -3
- package/dist/packages/table/Table.js +0 -2
- package/dist/packages/tabs/Tabs.js +1 -2
- package/dist/packages/textarea/Textarea.js +7 -6
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +0 -4
- package/dist/packages/toast/Toast.js +3 -3
- package/dist/packages/tour/Tour.js +1 -5
- package/dist/packages/tour/index.css +1 -1
- package/dist/packages/uploader/Uploader.js +7 -5
- package/dist/packages/video/Video.js +0 -2
- package/dist/smartips/web-types.json +12 -3
- package/dist/style.css +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +43 -3
- package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
- package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
- package/dist/types/__VUE/collapse/collapse.vue.d.ts +60 -0
- package/dist/types/__VUE/collapse/index.d.ts +6 -0
- package/dist/types/__VUE/collapse/types.d.ts +3 -2
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +201 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/index.vue.d.ts +23 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/form/common.d.ts +2 -30
- package/dist/types/__VUE/form/form.vue.d.ts +80 -0
- package/dist/types/__VUE/form/index.d.ts +6 -0
- package/dist/types/__VUE/form/types.d.ts +12 -4
- package/dist/types/__VUE/formitem/form-item.vue.d.ts +97 -0
- package/dist/types/__VUE/formitem/index.d.ts +5 -0
- package/dist/types/__VUE/input/index.vue.d.ts +2 -1
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -0
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/noticebar/types.d.ts +1 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
- package/dist/types/__VUE/picker/types.d.ts +1 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +1 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
- package/dist/types/__VUE/popover/type.d.ts +7 -0
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -0
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -0
- package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
- package/dist/types/__VUE/table/index.vue.d.ts +4 -4
- package/dist/types/__VUE/tabs/index.vue.d.ts +4 -4
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -0
- package/dist/types/__VUE/toast/index.vue.d.ts +21 -1
- package/dist/types/index.d.ts +9 -5
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +0 -39
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +0 -212
- package/dist/types/__VUE/form/index.vue.d.ts +0 -58
- package/dist/types/__VUE/formitem/index.vue.d.ts +0 -134
- package/dist/types/__VUE/formitem/types.d.ts +0 -11
|
@@ -25,7 +25,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25
25
|
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, nextTick, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
|
|
26
26
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
27
27
|
import { e as clamp, d as preventDefault, a as isArray } from "../util-4Jkyw4BJ.js";
|
|
28
|
-
import { u as useRect } from "../index-
|
|
28
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
29
29
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
30
30
|
import NutVideo from "../video/Video.js";
|
|
31
31
|
import NutSwiperItem from "../swiperitem/SwiperItem.js";
|
|
@@ -36,10 +36,6 @@ import NutSwiper from "../swiper/Swiper.js";
|
|
|
36
36
|
import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
|
|
37
37
|
import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
|
|
38
38
|
import NutOverlay from "../overlay/Overlay.js";
|
|
39
|
-
import "../index-s3RgMhc7.js";
|
|
40
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
41
|
-
import "../types-9wCQwtH3.js";
|
|
42
|
-
import "../raf-MQjoO-Ag.js";
|
|
43
39
|
const baseProps = {
|
|
44
40
|
show: { type: Boolean, default: false },
|
|
45
41
|
initNo: { type: Number, default: 0 },
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { toRefs, inject, computed, h } from "vue";
|
|
1
|
+
import { toRef, toRefs, inject, computed, h } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-TCzwHGVq.js";
|
|
3
3
|
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-OnXlN1NC.js";
|
|
5
5
|
import { R as RADIO_KEY } from "./types-odSRziQJ.js";
|
|
6
|
+
import { u as useFormDisabled } from "./common-LvGbU-A3.js";
|
|
6
7
|
const { componentName, create } = createComponent("radio");
|
|
7
8
|
const _sfc_main = create({
|
|
8
9
|
components: {
|
|
@@ -32,13 +33,14 @@ const _sfc_main = create({
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
setup(props, { slots }) {
|
|
36
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
35
37
|
const { size } = toRefs(props);
|
|
36
38
|
let parent = inject(RADIO_KEY, null);
|
|
37
39
|
const isCurValue = computed(() => {
|
|
38
40
|
return parent.label.value === props.label;
|
|
39
41
|
});
|
|
40
42
|
const color = computed(() => {
|
|
41
|
-
return !
|
|
43
|
+
return !disabled.value ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
|
|
42
44
|
});
|
|
43
45
|
const renderIcon = () => {
|
|
44
46
|
const { iconSize } = props;
|
|
@@ -59,7 +61,7 @@ const _sfc_main = create({
|
|
|
59
61
|
return h(
|
|
60
62
|
"view",
|
|
61
63
|
{
|
|
62
|
-
class: `${componentName}__label ${
|
|
64
|
+
class: `${componentName}__label ${disabled.value ? `${componentName}__label--disabled` : ""}`
|
|
63
65
|
},
|
|
64
66
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
65
67
|
);
|
|
@@ -75,7 +77,7 @@ const _sfc_main = create({
|
|
|
75
77
|
);
|
|
76
78
|
};
|
|
77
79
|
const handleClick = () => {
|
|
78
|
-
if (isCurValue.value ||
|
|
80
|
+
if (isCurValue.value || disabled.value)
|
|
79
81
|
return;
|
|
80
82
|
parent.updateValue(props.label);
|
|
81
83
|
};
|
|
@@ -25,7 +25,6 @@ import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
|
|
|
25
25
|
import { Loading } from "@nutui/icons-vue";
|
|
26
26
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
27
27
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
28
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
29
28
|
const { create } = createComponent("infinite-loading");
|
|
30
29
|
const cN = "NutInfiniteLoading";
|
|
31
30
|
const _sfc_main = create({
|
|
@@ -14,9 +14,10 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
|
|
18
|
-
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
17
|
+
import { toRef, ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
|
|
19
18
|
import { MaskClose } from "@nutui/icons-vue";
|
|
19
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
20
|
+
import { u as useFormDisabled } from "../common-LvGbU-A3.js";
|
|
20
21
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
21
22
|
function trimExtraChar(value, char, regExp) {
|
|
22
23
|
const index2 = value.indexOf(char);
|
|
@@ -141,6 +142,7 @@ const _sfc_main = create({
|
|
|
141
142
|
emits: ["update:modelValue", "blur", "focus", "clear", "keypress", "click", "clickInput", "confirm"],
|
|
142
143
|
expose: ["focus", "blur", "select"],
|
|
143
144
|
setup(props, { emit }) {
|
|
145
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
144
146
|
const active = ref(false);
|
|
145
147
|
const inputRef = ref();
|
|
146
148
|
const getModelValue = () => {
|
|
@@ -159,7 +161,7 @@ const _sfc_main = create({
|
|
|
159
161
|
const prefixCls = componentName;
|
|
160
162
|
return {
|
|
161
163
|
[prefixCls]: true,
|
|
162
|
-
[`${prefixCls}--disabled`]:
|
|
164
|
+
[`${prefixCls}--disabled`]: disabled.value,
|
|
163
165
|
[`${prefixCls}--required`]: props.required,
|
|
164
166
|
[`${prefixCls}--error`]: props.error,
|
|
165
167
|
[`${prefixCls}--border`]: props.border,
|
|
@@ -198,14 +200,14 @@ const _sfc_main = create({
|
|
|
198
200
|
}
|
|
199
201
|
};
|
|
200
202
|
const onFocus = (event) => {
|
|
201
|
-
if (
|
|
203
|
+
if (disabled.value || props.readonly) {
|
|
202
204
|
return;
|
|
203
205
|
}
|
|
204
206
|
active.value = true;
|
|
205
207
|
emit("focus", event);
|
|
206
208
|
};
|
|
207
209
|
const onBlur = (event) => {
|
|
208
|
-
if (
|
|
210
|
+
if (disabled.value || props.readonly) {
|
|
209
211
|
return;
|
|
210
212
|
}
|
|
211
213
|
setTimeout(() => {
|
|
@@ -221,7 +223,7 @@ const _sfc_main = create({
|
|
|
221
223
|
};
|
|
222
224
|
const clear = (event) => {
|
|
223
225
|
event.stopPropagation();
|
|
224
|
-
if (
|
|
226
|
+
if (disabled.value)
|
|
225
227
|
return;
|
|
226
228
|
emit("update:modelValue", "", event);
|
|
227
229
|
emit("clear", "", event);
|
|
@@ -233,7 +235,7 @@ const _sfc_main = create({
|
|
|
233
235
|
}
|
|
234
236
|
};
|
|
235
237
|
const onClickInput = (event) => {
|
|
236
|
-
if (
|
|
238
|
+
if (disabled.value) {
|
|
237
239
|
return;
|
|
238
240
|
}
|
|
239
241
|
emit("clickInput", event);
|
|
@@ -283,6 +285,7 @@ const _sfc_main = create({
|
|
|
283
285
|
active,
|
|
284
286
|
classes,
|
|
285
287
|
styles,
|
|
288
|
+
disabled,
|
|
286
289
|
onInput,
|
|
287
290
|
onFocus,
|
|
288
291
|
onBlur,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
|
|
1
|
+
import { toRef, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
4
4
|
import { Minus, Plus } from "@nutui/icons-vue";
|
|
5
|
+
import { u as useFormDisabled } from "../common-LvGbU-A3.js";
|
|
5
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
7
|
const { componentName, create } = createComponent("input-number");
|
|
7
8
|
const _sfc_main = create({
|
|
@@ -46,11 +47,12 @@ const _sfc_main = create({
|
|
|
46
47
|
},
|
|
47
48
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
48
49
|
setup(props, { emit }) {
|
|
50
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
49
51
|
const classes = computed(() => {
|
|
50
52
|
const prefixCls = componentName;
|
|
51
53
|
return {
|
|
52
54
|
[prefixCls]: true,
|
|
53
|
-
[`${prefixCls}--disabled`]:
|
|
55
|
+
[`${prefixCls}--disabled`]: disabled.value
|
|
54
56
|
};
|
|
55
57
|
});
|
|
56
58
|
const fixedDecimalPlaces = (v) => {
|
|
@@ -59,6 +61,7 @@ const _sfc_main = create({
|
|
|
59
61
|
const change = (event) => {
|
|
60
62
|
const input = event.target;
|
|
61
63
|
emit("update:modelValue", input.value, event);
|
|
64
|
+
emit("change", input.value, event);
|
|
62
65
|
};
|
|
63
66
|
const emitChange = (value, event) => {
|
|
64
67
|
let output_value = fixedDecimalPlaces(value);
|
|
@@ -67,13 +70,13 @@ const _sfc_main = create({
|
|
|
67
70
|
emit("change", output_value, event);
|
|
68
71
|
};
|
|
69
72
|
const addAllow = (value = Number(props.modelValue)) => {
|
|
70
|
-
return value < Number(props.max) && !
|
|
73
|
+
return value < Number(props.max) && !disabled.value;
|
|
71
74
|
};
|
|
72
75
|
const reduceAllow = (value = Number(props.modelValue)) => {
|
|
73
|
-
return value > Number(props.min) && !
|
|
76
|
+
return value > Number(props.min) && !disabled.value;
|
|
74
77
|
};
|
|
75
78
|
const reduce = (event) => {
|
|
76
|
-
if (
|
|
79
|
+
if (disabled.value)
|
|
77
80
|
return;
|
|
78
81
|
emit("reduce", event);
|
|
79
82
|
let output_value = Number(props.modelValue) - Number(props.step);
|
|
@@ -85,7 +88,7 @@ const _sfc_main = create({
|
|
|
85
88
|
}
|
|
86
89
|
};
|
|
87
90
|
const add = (event) => {
|
|
88
|
-
if (
|
|
91
|
+
if (disabled.value)
|
|
89
92
|
return;
|
|
90
93
|
emit("add", event);
|
|
91
94
|
let output_value = Number(props.modelValue) + Number(props.step);
|
|
@@ -97,14 +100,14 @@ const _sfc_main = create({
|
|
|
97
100
|
}
|
|
98
101
|
};
|
|
99
102
|
const focus = (event) => {
|
|
100
|
-
if (
|
|
103
|
+
if (disabled.value)
|
|
101
104
|
return;
|
|
102
105
|
if (props.readonly)
|
|
103
106
|
return;
|
|
104
107
|
emit("focus", event);
|
|
105
108
|
};
|
|
106
109
|
const blur = (event) => {
|
|
107
|
-
if (
|
|
110
|
+
if (disabled.value)
|
|
108
111
|
return;
|
|
109
112
|
if (props.readonly)
|
|
110
113
|
return;
|
|
@@ -141,6 +144,7 @@ const _sfc_main = create({
|
|
|
141
144
|
);
|
|
142
145
|
return {
|
|
143
146
|
classes,
|
|
147
|
+
disabled,
|
|
144
148
|
change,
|
|
145
149
|
blur,
|
|
146
150
|
focus,
|
|
@@ -19,31 +19,20 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { _ as _sfc_main$
|
|
25
|
-
import { _ as _sfc_main$
|
|
26
|
-
import { Button as _sfc_main$
|
|
22
|
+
import { Form as _sfc_main$1 } from "../form/Form.js";
|
|
23
|
+
import { FormItem as _sfc_main$2 } from "../formitem/FormItem.js";
|
|
24
|
+
import { _ as _sfc_main$3 } from "../index.vue_vue_type_script_lang-w2sgcysj.js";
|
|
25
|
+
import { _ as _sfc_main$4 } from "../index.vue_vue_type_script_lang-54PRh3YM.js";
|
|
26
|
+
import { Button as _sfc_main$5 } from "../button/Button.js";
|
|
27
27
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
28
|
-
import "../util-4Jkyw4BJ.js";
|
|
29
|
-
import "../types-Ynmct7na.js";
|
|
30
|
-
import "../useChildren-GU_NVfD8.js";
|
|
31
|
-
import "../cellgroup/CellGroup.js";
|
|
32
|
-
import "../pxCheck-OnXlN1NC.js";
|
|
33
|
-
import "../cell/Cell.js";
|
|
34
|
-
import "../index-Ii9XdkPy.js";
|
|
35
|
-
import "@nutui/icons-vue";
|
|
36
|
-
import "../useParent-KIxqkovs.js";
|
|
37
|
-
import "../types-odSRziQJ.js";
|
|
38
|
-
import "../with-install-p59gYYU_.js";
|
|
39
28
|
const { componentName, create } = createComponent("invoice");
|
|
40
29
|
const _sfc_main = create({
|
|
41
30
|
components: {
|
|
42
|
-
NutForm,
|
|
43
|
-
NutFormItem,
|
|
44
|
-
NutRadio: _sfc_main$
|
|
45
|
-
NutRadioGroup: _sfc_main$
|
|
46
|
-
NutButton: _sfc_main$
|
|
31
|
+
NutForm: _sfc_main$1,
|
|
32
|
+
NutFormItem: _sfc_main$2,
|
|
33
|
+
NutRadio: _sfc_main$3,
|
|
34
|
+
NutRadioGroup: _sfc_main$4,
|
|
35
|
+
NutButton: _sfc_main$5
|
|
47
36
|
},
|
|
48
37
|
props: {
|
|
49
38
|
data: {
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import { u as useRect } from "../index-
|
|
22
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
23
23
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
24
|
var CompareResult = /* @__PURE__ */ ((CompareResult2) => {
|
|
25
25
|
CompareResult2[CompareResult2["eq"] = 1] = "eq";
|
|
@@ -7,7 +7,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import { reactive, ref } from "vue";
|
|
8
8
|
import Lang from "./zh-CN.js";
|
|
9
9
|
import Lang$1 from "./en-US.js";
|
|
10
|
-
import "./baseLang-7uiEiO-2.js";
|
|
11
10
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
12
11
|
const deepMerge = (target, newObj) => {
|
|
13
12
|
Object.keys(newObj).forEach((key) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createBlock } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
-
import { u as useRect } from "../index-
|
|
3
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
4
4
|
import { RectUp, RectDown } from "@nutui/icons-vue";
|
|
5
5
|
import { M as MENU_KEY } from "../types-j71K23JP.js";
|
|
6
6
|
import { u as useChildren } from "../useChildren-GU_NVfD8.js";
|
|
@@ -24,8 +24,6 @@ import { Check } from "@nutui/icons-vue";
|
|
|
24
24
|
import { u as useParent } from "../useParent-KIxqkovs.js";
|
|
25
25
|
import { M as MENU_KEY } from "../types-j71K23JP.js";
|
|
26
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
27
|
-
import "../overlay/Overlay.js";
|
|
28
|
-
import "../util-4Jkyw4BJ.js";
|
|
29
27
|
const { create } = createComponent("menu-item");
|
|
30
28
|
const _sfc_main = create({
|
|
31
29
|
props: {
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle,
|
|
20
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, createVNode, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createBlock, vShow, Fragment, renderList } from "vue";
|
|
21
21
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
22
22
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
23
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
@@ -25,7 +25,6 @@ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
|
25
25
|
const { create } = createComponent("noticebar");
|
|
26
26
|
const _sfc_main = create({
|
|
27
27
|
props: {
|
|
28
|
-
// 滚动方向 across 横向 vertical 纵向
|
|
29
28
|
direction: {
|
|
30
29
|
type: String,
|
|
31
30
|
default: "across"
|
|
@@ -318,7 +317,10 @@ const _sfc_main = create({
|
|
|
318
317
|
}
|
|
319
318
|
});
|
|
320
319
|
const _hoisted_1 = { class: "nut-noticebar" };
|
|
321
|
-
const _hoisted_2 = {
|
|
320
|
+
const _hoisted_2 = {
|
|
321
|
+
key: 0,
|
|
322
|
+
class: "nut-noticebar__page-lefticon"
|
|
323
|
+
};
|
|
322
324
|
const _hoisted_3 = {
|
|
323
325
|
ref: "wrap",
|
|
324
326
|
class: "nut-noticebar__page-wrap"
|
|
@@ -341,14 +343,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
343
|
style: normalizeStyle(_ctx.barStyle),
|
|
342
344
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
343
345
|
}, [
|
|
344
|
-
|
|
346
|
+
_ctx.leftIcon ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
345
347
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
346
|
-
|
|
347
|
-
key: 0,
|
|
348
|
-
size: "16px"
|
|
349
|
-
})) : createCommentVNode("", true)
|
|
348
|
+
createVNode(_component_Notice, { size: "16px" })
|
|
350
349
|
])
|
|
351
|
-
]),
|
|
350
|
+
])) : createCommentVNode("", true),
|
|
352
351
|
createElementVNode("view", _hoisted_3, [
|
|
353
352
|
createElementVNode("view", {
|
|
354
353
|
ref: "content",
|
|
@@ -363,7 +362,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
363
362
|
], 38)
|
|
364
363
|
], 512),
|
|
365
364
|
_ctx.closeMode || _ctx.$slots["right-icon"] ? (openBlock(), createElementBlock("view", {
|
|
366
|
-
key:
|
|
365
|
+
key: 1,
|
|
367
366
|
class: "nut-noticebar__page-righticon",
|
|
368
367
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
369
368
|
}, [
|
|
@@ -21,9 +21,6 @@ import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createEl
|
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
23
23
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
|
-
import "@nutui/icons-vue";
|
|
25
|
-
import "../overlay/Overlay.js";
|
|
26
|
-
import "../util-4Jkyw4BJ.js";
|
|
27
24
|
const { create } = createComponent("notify");
|
|
28
25
|
const _sfc_main = create({
|
|
29
26
|
components: {
|
|
@@ -3,10 +3,6 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
|
3
3
|
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
4
4
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
|
-
import "@nutui/icons-vue";
|
|
7
|
-
import "../overlay/Overlay.js";
|
|
8
|
-
import "../util-4Jkyw4BJ.js";
|
|
9
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
6
|
const { create } = createComponent("number-keyboard");
|
|
11
7
|
const cN = "NutNumberKeyboard";
|
|
12
8
|
const _sfc_main = create({
|
|
@@ -2,8 +2,6 @@ import { toRefs, computed, watchEffect, openBlock, createElementBlock, createEle
|
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
4
4
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
6
|
-
import "../util-4Jkyw4BJ.js";
|
|
7
5
|
const { create } = createComponent("pagination");
|
|
8
6
|
const cN = "NutPagination";
|
|
9
7
|
const _sfc_main = create({
|
|
@@ -24,11 +24,11 @@ import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
|
24
24
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
25
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
26
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
27
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
28
27
|
const DEFAULT_FILED_NAMES = {
|
|
29
28
|
text: "text",
|
|
30
29
|
value: "value",
|
|
31
|
-
children: "children"
|
|
30
|
+
children: "children",
|
|
31
|
+
className: "className"
|
|
32
32
|
};
|
|
33
33
|
const usePicker = (props, emit) => {
|
|
34
34
|
const state = reactive({
|
|
@@ -450,14 +450,19 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
450
450
|
}, [
|
|
451
451
|
item && item[_ctx.fieldNames.text] && _ctx.threeDimensional ? (openBlock(), createElementBlock("view", {
|
|
452
452
|
key: 0,
|
|
453
|
-
class: normalizeClass(["nut-picker-roller-item", {
|
|
453
|
+
class: normalizeClass(["nut-picker-roller-item", {
|
|
454
|
+
"nut-picker-roller-item-hidden": _ctx.isHidden(index + 1),
|
|
455
|
+
[item[_ctx.fieldNames.className]]: item[_ctx.fieldNames.className]
|
|
456
|
+
}]),
|
|
454
457
|
style: normalizeStyle(_ctx.setRollerStyle(index + 1))
|
|
455
458
|
}, toDisplayString(item[_ctx.fieldNames.text]), 7)) : createCommentVNode("", true),
|
|
456
459
|
item && item[_ctx.fieldNames.text] && !_ctx.threeDimensional ? (openBlock(), createElementBlock("view", {
|
|
457
460
|
key: 1,
|
|
458
|
-
class: "nut-picker-roller-item-tile",
|
|
461
|
+
class: normalizeClass(["nut-picker-roller-item-tile", {
|
|
462
|
+
[item[_ctx.fieldNames.className]]: item[_ctx.fieldNames.className]
|
|
463
|
+
}]),
|
|
459
464
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.optionHeight), lineHeight: _ctx.pxCheck(_ctx.optionHeight) })
|
|
460
|
-
}, toDisplayString(item[_ctx.fieldNames.text]),
|
|
465
|
+
}, toDisplayString(item[_ctx.fieldNames.text]), 7)) : createCommentVNode("", true)
|
|
461
466
|
], 64);
|
|
462
467
|
}), 128))
|
|
463
468
|
], 36),
|