@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
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { ref, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers,
|
|
1
|
+
import { ref, computed, onMounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers, resolveDynamicComponent, toDisplayString } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as useRect } from "../index-rf29bejW.js";
|
|
4
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
6
5
|
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
7
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
8
|
-
import "@nutui/icons-vue";
|
|
9
|
-
import "../overlay/Overlay.js";
|
|
10
7
|
const { create } = createComponent("popover");
|
|
11
8
|
const _sfc_main = create({
|
|
12
9
|
components: {
|
|
@@ -36,8 +33,11 @@ const _sfc_main = create({
|
|
|
36
33
|
const popoverRef = ref();
|
|
37
34
|
const popoverContentRef = ref();
|
|
38
35
|
const showPopup = ref(props.visible);
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
const rootPosition = ref();
|
|
37
|
+
const elRect = ref({
|
|
38
|
+
width: 0,
|
|
39
|
+
height: 0
|
|
40
|
+
});
|
|
41
41
|
const popoverArrow = computed(() => {
|
|
42
42
|
const prefixCls = "nut-popover-arrow";
|
|
43
43
|
const loca = props.location;
|
|
@@ -85,76 +85,72 @@ const _sfc_main = create({
|
|
|
85
85
|
return str;
|
|
86
86
|
};
|
|
87
87
|
const getRootPosition = computed(() => {
|
|
88
|
-
|
|
89
|
-
if (!
|
|
88
|
+
const styles = {};
|
|
89
|
+
if (!rootPosition.value)
|
|
90
90
|
return {};
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const { width, height, left, top } =
|
|
91
|
+
const contentWidth = elRect.value.width;
|
|
92
|
+
const contentHeight = elRect.value.height;
|
|
93
|
+
const { width, height, left, top, right } = rootPosition.value;
|
|
94
94
|
const { location, offset } = props;
|
|
95
|
-
const direction = location.split("-")[0];
|
|
96
|
-
const skew = location.split("-")[1];
|
|
95
|
+
const direction = location == null ? void 0 : location.split("-")[0];
|
|
96
|
+
const skew = location == null ? void 0 : location.split("-")[1];
|
|
97
97
|
let cross = 0;
|
|
98
98
|
let parallel = 0;
|
|
99
|
-
if (isArray(offset) && offset.length
|
|
99
|
+
if (Array.isArray(offset) && (offset == null ? void 0 : offset.length) === 2) {
|
|
100
100
|
cross += Number(offset[1]);
|
|
101
101
|
parallel += Number(offset[0]);
|
|
102
102
|
}
|
|
103
103
|
if (width) {
|
|
104
104
|
if (["bottom", "top"].includes(direction)) {
|
|
105
|
-
const h = direction
|
|
105
|
+
const h = direction === "bottom" ? height + cross : -(contentHeight + cross);
|
|
106
106
|
styles.top = `${top + h}px`;
|
|
107
107
|
if (!skew) {
|
|
108
|
-
styles.left = `${-(
|
|
108
|
+
styles.left = `${-(contentWidth - width) / 2 + left + parallel}px`;
|
|
109
109
|
}
|
|
110
|
-
if (skew
|
|
110
|
+
if (skew === "start") {
|
|
111
111
|
styles.left = `${left + parallel}px`;
|
|
112
112
|
}
|
|
113
|
-
if (skew
|
|
114
|
-
styles.left = `${
|
|
113
|
+
if (skew === "end") {
|
|
114
|
+
styles.left = `${right + parallel}px`;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
if (["left", "right"].includes(direction)) {
|
|
118
|
-
const contentW = direction
|
|
118
|
+
const contentW = direction === "left" ? -(contentWidth + cross) : width + cross;
|
|
119
119
|
styles.left = `${left + contentW}px`;
|
|
120
120
|
if (!skew) {
|
|
121
|
-
styles.top = `${top -
|
|
121
|
+
styles.top = `${top - contentHeight / 2 + height / 2 - 4 + parallel}px`;
|
|
122
122
|
}
|
|
123
|
-
if (skew
|
|
123
|
+
if (skew === "start") {
|
|
124
124
|
styles.top = `${top + parallel}px`;
|
|
125
125
|
}
|
|
126
|
-
if (skew
|
|
126
|
+
if (skew === "end") {
|
|
127
127
|
styles.top = `${top + height + parallel}px`;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
return styles;
|
|
132
132
|
});
|
|
133
|
-
const customStyle = computed(() => {
|
|
134
|
-
const styles = {};
|
|
135
|
-
if (props.bgColor) {
|
|
136
|
-
styles.background = props.bgColor;
|
|
137
|
-
}
|
|
138
|
-
return styles;
|
|
139
|
-
});
|
|
140
133
|
const getContentWidth = () => {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
134
|
+
var _a, _b, _c, _d;
|
|
135
|
+
const rect = useRect(
|
|
136
|
+
props.targetId ? document.querySelector(`#${props.targetId}`) : popoverRef.value
|
|
137
|
+
);
|
|
138
|
+
rootPosition.value = {
|
|
139
|
+
width: rect.width,
|
|
140
|
+
height: rect.height,
|
|
141
|
+
left: rect.left,
|
|
142
|
+
top: rect.top + Math.max(((_a = document.documentElement) == null ? void 0 : _a.scrollTop) || 0, ((_b = document.body) == null ? void 0 : _b.scrollTop) || 0),
|
|
143
|
+
right: rect.right
|
|
144
|
+
};
|
|
145
|
+
elRect.value = {
|
|
146
|
+
height: (_c = popoverContentRef.value) == null ? void 0 : _c.clientHeight,
|
|
147
|
+
width: (_d = popoverContentRef.value) == null ? void 0 : _d.clientWidth
|
|
148
|
+
};
|
|
153
149
|
};
|
|
154
150
|
onMounted(() => {
|
|
155
151
|
setTimeout(() => {
|
|
156
152
|
getContentWidth();
|
|
157
|
-
},
|
|
153
|
+
}, 300);
|
|
158
154
|
});
|
|
159
155
|
watch(
|
|
160
156
|
() => props.visible,
|
|
@@ -162,7 +158,9 @@ const _sfc_main = create({
|
|
|
162
158
|
showPopup.value = value;
|
|
163
159
|
if (value) {
|
|
164
160
|
window.addEventListener("touchstart", clickAway, true);
|
|
165
|
-
|
|
161
|
+
nextTick(() => {
|
|
162
|
+
getContentWidth();
|
|
163
|
+
});
|
|
166
164
|
} else {
|
|
167
165
|
window.removeEventListener("touchstart", clickAway, true);
|
|
168
166
|
}
|
|
@@ -207,7 +205,6 @@ const _sfc_main = create({
|
|
|
207
205
|
popoverRef,
|
|
208
206
|
popoverContentRef,
|
|
209
207
|
getRootPosition,
|
|
210
|
-
customStyle,
|
|
211
208
|
popoverArrowStyle,
|
|
212
209
|
renderIcon
|
|
213
210
|
};
|
|
@@ -230,49 +227,51 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
230
227
|
}, [
|
|
231
228
|
renderSlot(_ctx.$slots, "reference")
|
|
232
229
|
], 512)) : createCommentVNode("", true),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
230
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
231
|
+
createElementVNode("div", {
|
|
232
|
+
class: normalizeClass(["nut-popover", `nut-popover--${_ctx.theme}`, `${_ctx.customClass}`]),
|
|
233
|
+
style: normalizeStyle(_ctx.getRootPosition)
|
|
234
|
+
}, [
|
|
235
|
+
createVNode(_component_nut_popup, {
|
|
236
|
+
visible: _ctx.showPopup,
|
|
237
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
|
|
238
|
+
"pop-class": `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
239
|
+
style: normalizeStyle({ background: _ctx.bgColor }),
|
|
240
|
+
position: "",
|
|
241
|
+
transition: "nut-popover",
|
|
242
|
+
overlay: _ctx.overlay,
|
|
243
|
+
duration: _ctx.duration,
|
|
244
|
+
"overlay-style": _ctx.overlayStyle,
|
|
245
|
+
"overlay-class": _ctx.overlayClass,
|
|
246
|
+
"close-on-click-overlay": _ctx.closeOnClickOverlay
|
|
247
|
+
}, {
|
|
248
|
+
default: withCtx(() => [
|
|
249
|
+
createElementVNode("div", _hoisted_1, [
|
|
250
|
+
_ctx.showArrow ? (openBlock(), createElementBlock("div", {
|
|
251
|
+
key: 0,
|
|
252
|
+
class: normalizeClass(_ctx.popoverArrow),
|
|
253
|
+
style: normalizeStyle(_ctx.popoverArrowStyle)
|
|
254
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
255
|
+
renderSlot(_ctx.$slots, "content"),
|
|
256
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
|
|
257
|
+
return openBlock(), createElementBlock("div", {
|
|
258
|
+
key: index,
|
|
259
|
+
class: normalizeClass([item.className, item.disabled && "nut-popover-menu-disabled", "nut-popover-menu-item"]),
|
|
260
|
+
onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
|
|
261
|
+
}, [
|
|
262
|
+
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(item.icon)), {
|
|
263
|
+
key: 0,
|
|
264
|
+
class: "nut-popover-item-img"
|
|
265
|
+
})) : createCommentVNode("", true),
|
|
266
|
+
createElementVNode("div", _hoisted_3, toDisplayString(item.name), 1)
|
|
267
|
+
], 10, _hoisted_2);
|
|
268
|
+
}), 128))
|
|
269
|
+
], 512)
|
|
270
|
+
]),
|
|
271
|
+
_: 3
|
|
272
|
+
}, 8, ["visible", "pop-class", "style", "overlay", "duration", "overlay-style", "overlay-class", "close-on-click-overlay"])
|
|
273
|
+
], 6)
|
|
274
|
+
]))
|
|
276
275
|
], 64);
|
|
277
276
|
}
|
|
278
277
|
const NutPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover .nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid rgba(0,0,0,0)}.nut-popover .nut-popover-arrow-top{bottom:0;border-top-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-bottom-width:0;margin-bottom:-8px}.nut-popover .nut-popover-arrow-bottom{top:0px;border-bottom-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-top-width:0;margin-top:-8px}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom{left:50%;transform:translateX(-50%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-start{left:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-end{right:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-left{right:0px;border-left-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-right-width:0;margin-right:-8px}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right{left:0px;border-right-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-left-width:0;margin-left:-8px}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-content{position:absolute;z-index:9999;background:#fff;border-radius:5px;font-size:14px;font-weight:normal;color:#333;box-shadow:0 2px 12px rgba(50,50,51,.1215686275);opacity:1;transition:opacity .15s,transform .15s;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{display:
|
|
1
|
+
.overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover .nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid rgba(0,0,0,0)}.nut-popover .nut-popover-arrow-top{bottom:0;border-top-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-bottom-width:0;margin-bottom:-8px}.nut-popover .nut-popover-arrow-bottom{top:0px;border-bottom-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-top-width:0;margin-top:-8px}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom{left:50%;transform:translateX(-50%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-start{left:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-end{right:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-left{right:0px;border-left-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-right-width:0;margin-right:-8px}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right{left:0px;border-right-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-left-width:0;margin-left:-8px}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-content{position:absolute;z-index:9999;background:#fff;border-radius:5px;font-size:14px;font-weight:normal;color:#333;box-shadow:0 2px 12px rgba(50,50,51,.1215686275);opacity:1;transition:opacity .15s,transform .15s;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{display:flex;align-items:center;padding:8px;border-bottom:1px solid var(--nut-popover-border-bottom-color, rgb(229, 229, 229))}.nut-popover .nut-popover-content .nut-popover-menu-item:first-child{margin-top:15px}.nut-popover .nut-popover-content .nut-popover-menu-item:last-child{margin-bottom:2px;border-bottom:none}.nut-popover .nut-popover-content .nut-popover-menu-item .nut-popover-item-img{vertical-align:top;margin-right:3px}.nut-popover .nut-popover-content .nut-popover-menu-item .nut-popover-menu-item-name{width:100%;text-align:center;word-break:keep-all}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-disabled{color:var(--nut-popover-disable-color, rgb(154, 155, 157));cursor:not-allowed}.nut-popover .nut-popover-content--top .nut-popover-arrow--top{left:50%;transform:translateX(-50%)}.nut-popover .nut-popover-content--top-end{right:0}.nut-popover .nut-popover-content--top-end .nut-popover-arrow--top-end{right:16px;transform:translateX(0%)}.nut-popover .nut-popover-content--top-start{left:0}.nut-popover .nut-popover-content--top-start .nut-popover-arrow--top-start{left:16px;transform:translateX(0%)}.nut-popover .nut-popover-content--bottom-end{right:0}.nut-popover .nut-popover-content--left-end{bottom:0}.nut-popover .nut-popover-content--left-start{top:0}.nut-popover .nut-popover-content--right-end{bottom:0}.nut-popover .nut-popover-content--right-start{top:0}.nut-popover--dark .nut-popover-content{background:var(--nut-popover-dark-background-color, rgb(75, 76, 77));color:var(--nut-popover-white-background-color, rgb(255, 255, 255))}.nut-popover--dark .nut-popover-content--bottom .nut-popover-arrow,.nut-popover--dark .nut-popover-content--bottom-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--bottom-end .nut-popover-arrow{border-bottom-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover--dark .nut-popover-content--top .nut-popover-arrow,.nut-popover--dark .nut-popover-content--top-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--top-end .nut-popover-arrow{border-top-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover--dark .nut-popover-content--left .nut-popover-arrow,.nut-popover--dark .nut-popover-content--left-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--left-end .nut-popover-arrow{border-left-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover--dark .nut-popover-content--right .nut-popover-arrow,.nut-popover--dark .nut-popover-content--right-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--right-end .nut-popover-arrow{border-right-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover-enter-from,.nut-popover-leave-active{transform:scale(0.8);opacity:0}.nut-popover-enter-active{transition-timing-function:ease-out}.nut-popover-leave-active{transition-timing-function:ease-in}.nut-popover-content-bg{position:fixed;height:100%;width:100%;top:0;left:0;background:rgba(0,0,0,0);z-index:1999}.nut-popover-wrapper{display:inline-block}
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.nut-popover-menu-item {
|
|
112
|
-
display:
|
|
113
|
-
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
114
|
padding: 8px;
|
|
115
115
|
border-bottom: 1px solid $popover-border-bottom-color;
|
|
116
116
|
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
|
|
131
131
|
.nut-popover-menu-item-name {
|
|
132
132
|
width: 100%;
|
|
133
|
+
text-align: center;
|
|
133
134
|
word-break: keep-all;
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -137,10 +138,6 @@
|
|
|
137
138
|
color: $popover-disable-color;
|
|
138
139
|
cursor: not-allowed;
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
&.nut-popover-menu-taroitem {
|
|
142
|
-
display: flex;
|
|
143
|
-
}
|
|
144
141
|
}
|
|
145
142
|
|
|
146
143
|
&--top {
|
|
@@ -256,9 +253,3 @@
|
|
|
256
253
|
.nut-popover-wrapper {
|
|
257
254
|
display: inline-block;
|
|
258
255
|
}
|
|
259
|
-
|
|
260
|
-
// Taro
|
|
261
|
-
.nut-popover-content-copy {
|
|
262
|
-
position: absolute;
|
|
263
|
-
top: -99999px;
|
|
264
|
-
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { N } from "../index-wY4t0zYt.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
|
-
import "@nutui/icons-vue";
|
|
5
|
-
import "../overlay/Overlay.js";
|
|
6
|
-
import "../component-TCzwHGVq.js";
|
|
7
|
-
import "../util-4Jkyw4BJ.js";
|
|
8
4
|
export {
|
|
9
5
|
N as default
|
|
10
6
|
};
|
|
@@ -26,7 +26,6 @@ import { u as useScrollParent } from "../index-xDfQLRen.js";
|
|
|
26
26
|
import { Loading } from "@nutui/icons-vue";
|
|
27
27
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
28
28
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
29
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
30
29
|
const { create } = createComponent("pull-refresh");
|
|
31
30
|
const cN = "NutPullRefresh";
|
|
32
31
|
const _sfc_main = create({
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-
|
|
2
|
-
import "vue";
|
|
3
|
-
import "../component-TCzwHGVq.js";
|
|
4
|
-
import "@nutui/icons-vue";
|
|
5
|
-
import "../pxCheck-OnXlN1NC.js";
|
|
6
|
-
import "../types-odSRziQJ.js";
|
|
1
|
+
import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-w2sgcysj.js";
|
|
7
2
|
export {
|
|
8
3
|
_sfc_main as default
|
|
9
4
|
};
|
|
@@ -17,11 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
|
|
20
|
+
import { toRef, ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { a as isArray } from "../util-4Jkyw4BJ.js";
|
|
23
23
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
24
|
-
import { u as useRect } from "../index-
|
|
24
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
25
|
+
import { u as useFormDisabled } from "../common-LvGbU-A3.js";
|
|
25
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
27
|
const { componentName, create } = createComponent("range");
|
|
27
28
|
const _sfc_main = create({
|
|
@@ -69,6 +70,7 @@ const _sfc_main = create({
|
|
|
69
70
|
},
|
|
70
71
|
emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
|
|
71
72
|
setup(props, { emit }) {
|
|
73
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
72
74
|
const buttonIndex = ref(0);
|
|
73
75
|
let startValue;
|
|
74
76
|
let currentValue;
|
|
@@ -86,7 +88,7 @@ const _sfc_main = create({
|
|
|
86
88
|
const prefixCls = componentName;
|
|
87
89
|
return {
|
|
88
90
|
[prefixCls]: true,
|
|
89
|
-
[`${prefixCls}-disabled`]:
|
|
91
|
+
[`${prefixCls}-disabled`]: disabled.value,
|
|
90
92
|
[`${prefixCls}-vertical`]: props.vertical,
|
|
91
93
|
[`${prefixCls}-show-number`]: !props.hiddenRange
|
|
92
94
|
};
|
|
@@ -211,7 +213,7 @@ const _sfc_main = create({
|
|
|
211
213
|
}
|
|
212
214
|
};
|
|
213
215
|
const onClick = (event) => {
|
|
214
|
-
if (
|
|
216
|
+
if (disabled.value) {
|
|
215
217
|
return;
|
|
216
218
|
}
|
|
217
219
|
const { min, modelValue } = props;
|
|
@@ -236,7 +238,7 @@ const _sfc_main = create({
|
|
|
236
238
|
}
|
|
237
239
|
};
|
|
238
240
|
const onTouchStart = (event) => {
|
|
239
|
-
if (
|
|
241
|
+
if (disabled.value) {
|
|
240
242
|
return;
|
|
241
243
|
}
|
|
242
244
|
touch.start(event);
|
|
@@ -249,7 +251,7 @@ const _sfc_main = create({
|
|
|
249
251
|
dragStatus.value = "start";
|
|
250
252
|
};
|
|
251
253
|
const onTouchMove = (event) => {
|
|
252
|
-
if (
|
|
254
|
+
if (disabled.value) {
|
|
253
255
|
return;
|
|
254
256
|
}
|
|
255
257
|
if (dragStatus.value === "start") {
|
|
@@ -274,7 +276,7 @@ const _sfc_main = create({
|
|
|
274
276
|
updateValue(currentValue);
|
|
275
277
|
};
|
|
276
278
|
const onTouchEnd = () => {
|
|
277
|
-
if (
|
|
279
|
+
if (disabled.value) {
|
|
278
280
|
return;
|
|
279
281
|
}
|
|
280
282
|
if (dragStatus.value === "draging") {
|
|
@@ -304,7 +306,8 @@ const _sfc_main = create({
|
|
|
304
306
|
markClassName,
|
|
305
307
|
marksStyle,
|
|
306
308
|
marksList,
|
|
307
|
-
tickStyle
|
|
309
|
+
tickStyle,
|
|
310
|
+
disabled
|
|
308
311
|
});
|
|
309
312
|
}
|
|
310
313
|
});
|
|
@@ -17,12 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { ref, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
|
|
20
|
+
import { toRef, ref, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
|
|
21
21
|
import { StarFillN } from "@nutui/icons-vue";
|
|
22
22
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
23
|
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
24
24
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
25
25
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
26
|
+
import { u as useFormDisabled } from "../common-LvGbU-A3.js";
|
|
26
27
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
27
28
|
const { create } = createComponent("rate");
|
|
28
29
|
const _sfc_main = create({
|
|
@@ -77,13 +78,14 @@ const _sfc_main = create({
|
|
|
77
78
|
components: { StarFillN },
|
|
78
79
|
emits: ["update:modelValue", "change"],
|
|
79
80
|
setup(props, { emit, slots }) {
|
|
81
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
80
82
|
const rateRefs = ref([]);
|
|
81
83
|
const updateVal = (value) => {
|
|
82
84
|
emit("update:modelValue", value);
|
|
83
85
|
emit("change", value);
|
|
84
86
|
};
|
|
85
87
|
const onClick = (e, index) => {
|
|
86
|
-
if (
|
|
88
|
+
if (disabled.value || props.readonly)
|
|
87
89
|
return;
|
|
88
90
|
let value = 0;
|
|
89
91
|
if (index === 1 && props.modelValue === index) {
|
|
@@ -137,7 +139,8 @@ const _sfc_main = create({
|
|
|
137
139
|
rateRefs,
|
|
138
140
|
refRandomId,
|
|
139
141
|
renderIcon,
|
|
140
|
-
slots
|
|
142
|
+
slots,
|
|
143
|
+
disabled
|
|
141
144
|
});
|
|
142
145
|
}
|
|
143
146
|
});
|
|
@@ -17,14 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
20
|
+
import { toRef, reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
23
23
|
import { CircleClose } from "@nutui/icons-vue";
|
|
24
24
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
25
|
+
import { u as useFormDisabled } from "../common-LvGbU-A3.js";
|
|
25
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
|
-
import "../util-4Jkyw4BJ.js";
|
|
28
27
|
const { create } = createComponent("searchbar");
|
|
29
28
|
const cN = "NutSearchbar";
|
|
30
29
|
const _sfc_main = create({
|
|
@@ -106,6 +105,7 @@ const _sfc_main = create({
|
|
|
106
105
|
"clickRightIcon"
|
|
107
106
|
],
|
|
108
107
|
setup(props, { emit }) {
|
|
108
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
109
109
|
const translate = useLocale(cN);
|
|
110
110
|
const state = reactive({
|
|
111
111
|
active: false
|
|
@@ -194,7 +194,8 @@ const _sfc_main = create({
|
|
|
194
194
|
clickInput,
|
|
195
195
|
leftIconClick,
|
|
196
196
|
rightIconClick,
|
|
197
|
-
styleSearchbar
|
|
197
|
+
styleSearchbar,
|
|
198
|
+
disabled
|
|
198
199
|
});
|
|
199
200
|
}
|
|
200
201
|
});
|
|
@@ -4,9 +4,6 @@ import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
|
4
4
|
import { Tips } from "@nutui/icons-vue";
|
|
5
5
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
6
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
|
-
import "../overlay/Overlay.js";
|
|
8
|
-
import "../util-4Jkyw4BJ.js";
|
|
9
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
7
|
const { create } = createComponent("short-password");
|
|
11
8
|
const cN = "NutShortPassword";
|
|
12
9
|
const _sfc_main = create({
|
|
@@ -22,10 +22,6 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
|
22
22
|
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
23
23
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
|
-
import "@nutui/icons-vue";
|
|
26
|
-
import "../with-install-p59gYYU_.js";
|
|
27
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
28
|
-
import "../util-4Jkyw4BJ.js";
|
|
29
25
|
const { create } = createComponent("signature");
|
|
30
26
|
const cN = "NutSignature";
|
|
31
27
|
const _sfc_main = create({
|
package/dist/packages/sku/Sku.js
CHANGED
|
@@ -3,13 +3,8 @@ import NutPrice from "../price/Price.js";
|
|
|
3
3
|
import { c as createComponent } from "../component-TCzwHGVq.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 { T as TypeOfFun } from "../util-4Jkyw4BJ.js";
|
|
7
6
|
import NutInputNumber from "../inputnumber/InputNumber.js";
|
|
8
7
|
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
9
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
-
import "../pxCheck-OnXlN1NC.js";
|
|
11
|
-
import "@nutui/icons-vue";
|
|
12
|
-
import "../overlay/Overlay.js";
|
|
13
8
|
const { create: create$4 } = createComponent("sku-header");
|
|
14
9
|
const cN$1 = "NutSkuHeader";
|
|
15
10
|
const _sfc_main$4 = create$4({
|
|
@@ -158,10 +153,11 @@ const _sfc_main$2 = create$2({
|
|
|
158
153
|
});
|
|
159
154
|
const getExtraText = () => {
|
|
160
155
|
const { stepperExtraText } = props;
|
|
161
|
-
if (stepperExtraText
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
156
|
+
if (stepperExtraText) {
|
|
157
|
+
if (stepperExtraText === true) {
|
|
158
|
+
return "";
|
|
159
|
+
}
|
|
160
|
+
return stepperExtraText == null ? void 0 : stepperExtraText();
|
|
165
161
|
}
|
|
166
162
|
};
|
|
167
163
|
const add = (value) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, reactive, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { g as getScrollParent } from "../index-xDfQLRen.js";
|
|
4
|
-
import { u as useRect } from "../index-
|
|
4
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
const { create } = createComponent("sticky");
|
|
7
7
|
const _sfc_main = create({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
1
|
+
import { toRef, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { Loading1 } from "@nutui/icons-vue";
|
|
4
|
+
import { u as useFormDisabled } from "../common-LvGbU-A3.js";
|
|
4
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
6
|
const { componentName, create } = createComponent("switch");
|
|
6
7
|
const _sfc_main = create({
|
|
@@ -45,13 +46,14 @@ const _sfc_main = create({
|
|
|
45
46
|
},
|
|
46
47
|
emits: ["change", "update:modelValue", "update:loading"],
|
|
47
48
|
setup(props, { emit }) {
|
|
49
|
+
const disabled = useFormDisabled(toRef(props, "disable"));
|
|
48
50
|
const isActive = computed(() => props.modelValue === props.activeValue);
|
|
49
51
|
const classes = computed(() => {
|
|
50
52
|
const prefixCls = componentName;
|
|
51
53
|
return {
|
|
52
54
|
[prefixCls]: true,
|
|
53
55
|
[isActive.value ? "nut-switch-open" : "nut-switch-close"]: true,
|
|
54
|
-
[`${prefixCls}-disable`]:
|
|
56
|
+
[`${prefixCls}-disable`]: disabled.value,
|
|
55
57
|
[`${prefixCls}-base`]: true
|
|
56
58
|
};
|
|
57
59
|
});
|
|
@@ -62,7 +64,7 @@ const _sfc_main = create({
|
|
|
62
64
|
});
|
|
63
65
|
let updateType = "";
|
|
64
66
|
const onClick = (event) => {
|
|
65
|
-
if (props.
|
|
67
|
+
if (props.loading || disabled.value)
|
|
66
68
|
return;
|
|
67
69
|
const value = isActive.value ? props.inactiveValue : props.activeValue;
|
|
68
70
|
updateType = "click";
|
|
@@ -22,8 +22,6 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
|
22
22
|
import { DownArrow } from "@nutui/icons-vue";
|
|
23
23
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
26
|
-
import "../util-4Jkyw4BJ.js";
|
|
27
25
|
const RenderColumn = defineComponent({
|
|
28
26
|
props: {
|
|
29
27
|
slots: {
|