@nutui/nutui 3.1.10-beta.1 → 3.1.11-beta.0
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 +26 -0
- package/README.md +2 -2
- package/dist/nutui.d.ts +6 -6
- package/dist/nutui.es.js +1643 -1116
- package/dist/nutui.umd.js +1708 -1181
- package/dist/packages/_es/ActionSheet.js +10 -12
- package/dist/packages/_es/Address.js +31 -33
- package/dist/packages/_es/Avatar.js +5 -4
- package/dist/packages/_es/BackTop.js +5 -4
- package/dist/packages/_es/Badge.js +5 -4
- package/dist/packages/_es/Barrage.js +9 -8
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +14 -16
- package/dist/packages/_es/Cell.js +5 -4
- package/dist/packages/_es/CellGroup.js +8 -7
- package/dist/packages/_es/Checkbox.js +3 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +5 -4
- package/dist/packages/_es/Col.js +5 -4
- package/dist/packages/_es/Collapse.js +8 -7
- package/dist/packages/_es/CollapseItem.js +6 -8
- package/dist/packages/_es/CountDown.js +5 -7
- package/dist/packages/_es/CountUp.js +26 -28
- package/dist/packages/_es/DatePicker.js +11 -13
- package/dist/packages/_es/Dialog.js +14 -25
- package/dist/packages/_es/Divider.js +5 -4
- package/dist/packages/_es/Drag.js +5 -4
- package/dist/packages/_es/Elevator.js +19 -21
- package/dist/packages/_es/FixedNav.js +9 -8
- package/dist/packages/_es/Icon.js +40 -6
- package/dist/packages/_es/ImagePreview.js +12 -13
- package/dist/packages/_es/InfiniteLoading.js +5 -7
- package/dist/packages/_es/Input.js +10 -9
- package/dist/packages/_es/InputNumber.js +8 -15
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/Menu.js +203 -0
- package/dist/packages/_es/MenuItem.js +18 -171
- package/dist/packages/_es/Navbar.js +7 -6
- package/dist/packages/_es/NoticeBar.js +9 -11
- package/dist/packages/_es/Notify.js +10 -12
- package/dist/packages/_es/NumberKeyboard.js +5 -4
- package/dist/packages/_es/OverLay.js +5 -7
- package/dist/packages/_es/Pagination.js +7 -6
- package/dist/packages/_es/Picker.js +12 -14
- package/dist/packages/_es/Popover.js +10 -12
- package/dist/packages/_es/Popup.js +9 -11
- package/dist/packages/_es/Price.js +33 -14
- package/dist/packages/_es/Progress.js +5 -4
- package/dist/packages/_es/Radio.js +20 -7
- package/dist/packages/_es/RadioGroup.js +7 -3
- package/dist/packages/_es/Range.js +13 -15
- package/dist/packages/_es/Rate.js +8 -7
- package/dist/packages/_es/Row.js +5 -4
- package/dist/packages/_es/SearchBar.js +56 -55
- package/dist/packages/_es/ShortPassword.js +8 -7
- package/dist/packages/_es/Signature.js +5 -4
- package/dist/packages/_es/Sku.js +533 -0
- package/dist/packages/_es/Step.js +14 -11
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Swipe.js +5 -7
- package/dist/packages/_es/Swiper.js +12 -11
- package/dist/packages/_es/SwiperItem.js +5 -4
- package/dist/packages/_es/Switch.js +5 -4
- package/dist/packages/_es/TabPane.js +5 -4
- package/dist/packages/_es/Tabbar.js +5 -4
- package/dist/packages/_es/TabbarItem.js +9 -8
- package/dist/packages/_es/Tabs.js +43 -18
- package/dist/packages/_es/Tag.js +16 -18
- package/dist/packages/_es/TextArea.js +6 -5
- package/dist/packages/_es/TimeDetail.js +5 -7
- package/dist/packages/_es/TimePannel.js +5 -7
- package/dist/packages/_es/TimeSelect.js +5 -4
- package/dist/packages/_es/Toast.js +10 -12
- package/dist/packages/_es/Uploader.js +165 -89
- package/dist/packages/_es/Video.js +5 -7
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +12 -0
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +160 -0
- package/dist/packages/button/index.scss +3 -0
- package/dist/packages/checkbox/index.scss +2 -0
- package/dist/packages/dialog/index.scss +2 -1
- package/dist/packages/menu/index.scss +70 -4
- package/dist/packages/price/index.scss +40 -3
- package/dist/packages/progress/index.scss +2 -0
- package/dist/packages/radio/index.scss +34 -4
- package/dist/packages/radiogroup/index.scss +20 -0
- package/dist/packages/searchbar/index.scss +35 -30
- package/dist/packages/sku/index.scss +147 -0
- package/dist/packages/tabs/index.scss +47 -19
- package/dist/packages/tag/index.scss +2 -1
- package/dist/packages/uploader/index.scss +94 -8
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -1
- package/dist/styles/mixins/index.scss +0 -4
- package/dist/styles/themes/default.scss +29 -30
- package/dist/styles/variables.scss +46 -6
- package/package.json +1 -1
- package/dist/packages/_es/Tab.js +0 -178
- package/dist/packages/_es/TabPanel.js +0 -29
- package/dist/packages/_es/index.vue_vue&type=script&lang.js +0 -44
- package/dist/packages/tab/index.scss +0 -182
- package/dist/packages/tabpanel/index.scss +0 -2
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createBlock, createCommentVNode, createElementVNode, renderSlot, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
const { componentName, create } = createComponent("noticebar");
|
|
31
|
-
|
|
29
|
+
const _sfc_main = create({
|
|
32
30
|
props: {
|
|
33
31
|
direction: {
|
|
34
32
|
type: String,
|
|
@@ -352,9 +350,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
352
350
|
class: "horseLamp_list",
|
|
353
351
|
style: normalizeStyle(_ctx.horseLampStyle)
|
|
354
352
|
}, [
|
|
355
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item,
|
|
353
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
356
354
|
return openBlock(), createBlock(_component_ScrollItem, {
|
|
357
|
-
key:
|
|
355
|
+
key: index2,
|
|
358
356
|
style: normalizeStyle({ height: _ctx.height + "px", "line-height": _ctx.height + "px" }),
|
|
359
357
|
item
|
|
360
358
|
}, null, 8, ["style", "item"]);
|
|
@@ -364,10 +362,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
364
362
|
class: "horseLamp_list",
|
|
365
363
|
style: normalizeStyle(_ctx.horseLampStyle)
|
|
366
364
|
}, [
|
|
367
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item,
|
|
365
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
368
366
|
return openBlock(), createElementBlock("li", {
|
|
369
367
|
class: "horseLamp_list_item",
|
|
370
|
-
key:
|
|
368
|
+
key: index2,
|
|
371
369
|
style: normalizeStyle({ height: _ctx.height }),
|
|
372
370
|
onClick: ($event) => _ctx.go(item)
|
|
373
371
|
}, toDisplayString(item), 13, _hoisted_2);
|
|
@@ -387,5 +385,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
387
385
|
], 4)) : createCommentVNode("", true)
|
|
388
386
|
], 2);
|
|
389
387
|
}
|
|
390
|
-
_sfc_main
|
|
391
|
-
export {
|
|
388
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
389
|
+
export { index as default };
|
|
@@ -17,24 +17,22 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { reactive, onMounted, watch, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
30
|
-
import
|
|
27
|
+
import Popup from "./Popup.js";
|
|
28
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
29
|
import "./OverLay.js";
|
|
32
|
-
import "./
|
|
30
|
+
import "./Icon.js";
|
|
33
31
|
import "./pxCheck.js";
|
|
34
32
|
const { componentName, create } = createComponent("notify");
|
|
35
|
-
|
|
33
|
+
const _sfc_main = create({
|
|
36
34
|
components: {
|
|
37
|
-
[
|
|
35
|
+
[Popup.name]: Popup
|
|
38
36
|
},
|
|
39
37
|
props: {
|
|
40
38
|
id: String,
|
|
@@ -123,7 +121,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
121
|
_: 3
|
|
124
122
|
}, 8, ["onAfterLeave"]);
|
|
125
123
|
}
|
|
126
|
-
_sfc_main
|
|
124
|
+
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
127
125
|
const defaultOptions = {
|
|
128
126
|
type: "base",
|
|
129
127
|
showPopup: false,
|
|
@@ -168,7 +166,7 @@ const updateNotify = (opts) => {
|
|
|
168
166
|
} else {
|
|
169
167
|
opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
|
|
170
168
|
}
|
|
171
|
-
const instance = createVNode(
|
|
169
|
+
const instance = createVNode(Notify, opts);
|
|
172
170
|
render(instance, container);
|
|
173
171
|
return instance.component.ctx;
|
|
174
172
|
}
|
|
@@ -190,7 +188,7 @@ const mountNotify = (opts) => {
|
|
|
190
188
|
optsMap.push(opts);
|
|
191
189
|
const container = document.createElement("view");
|
|
192
190
|
container.id = opts.id;
|
|
193
|
-
const instance = createVNode(
|
|
191
|
+
const instance = createVNode(Notify, opts);
|
|
194
192
|
render(instance, container);
|
|
195
193
|
document.body.appendChild(container);
|
|
196
194
|
setTimeout(() => {
|
|
@@ -232,4 +230,4 @@ const NotifyFunction = {
|
|
|
232
230
|
app.config.globalProperties.$notify = NotifyFunction;
|
|
233
231
|
}
|
|
234
232
|
};
|
|
235
|
-
export {
|
|
233
|
+
export { Notify, NotifyFunction, NotifyFunction as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { create } = createComponent("numberkeyboard");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
title: {
|
|
12
13
|
type: String,
|
|
@@ -243,5 +244,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
243
244
|
_: 1
|
|
244
245
|
}, 8, ["visible"]);
|
|
245
246
|
}
|
|
246
|
-
_sfc_main
|
|
247
|
-
export {
|
|
247
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
248
|
+
export { index as default };
|
|
@@ -14,16 +14,14 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
18
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
19
|
-
};
|
|
20
17
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
18
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
22
19
|
* (c) 2021 @jdf2e.
|
|
23
20
|
* Released under the MIT License.
|
|
24
21
|
*/
|
|
25
22
|
import { computed, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, normalizeStyle, renderSlot, vShow } from "vue";
|
|
26
23
|
import { c as createComponent } from "./component.js";
|
|
24
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
27
25
|
const { componentName, create } = createComponent("overlay");
|
|
28
26
|
const overlayProps = {
|
|
29
27
|
visible: {
|
|
@@ -54,7 +52,7 @@ const overlayProps = {
|
|
|
54
52
|
default: true
|
|
55
53
|
}
|
|
56
54
|
};
|
|
57
|
-
|
|
55
|
+
const _sfc_main = create({
|
|
58
56
|
props: overlayProps,
|
|
59
57
|
emits: ["click", "update:visible"],
|
|
60
58
|
setup(props, { emit }) {
|
|
@@ -116,5 +114,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
116
114
|
_: 3
|
|
117
115
|
});
|
|
118
116
|
}
|
|
119
|
-
_sfc_main
|
|
120
|
-
export {
|
|
117
|
+
var overlay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
118
|
+
export { overlay as default, overlayProps };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, watchEffect, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("pagination");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
modelValue: {
|
|
12
13
|
type: Number,
|
|
@@ -133,9 +134,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
133
134
|
])
|
|
134
135
|
], 2),
|
|
135
136
|
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
136
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item,
|
|
137
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index2) => {
|
|
137
138
|
return openBlock(), createElementBlock("view", {
|
|
138
|
-
key:
|
|
139
|
+
key: index2 + "pagination",
|
|
139
140
|
class: normalizeClass(["nut-pagination-item", item.active ? "active" : ""]),
|
|
140
141
|
onClick: ($event) => _ctx.select(item.number, true)
|
|
141
142
|
}, [
|
|
@@ -158,5 +159,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
158
159
|
], 2)
|
|
159
160
|
]);
|
|
160
161
|
}
|
|
161
|
-
_sfc_main
|
|
162
|
-
export {
|
|
162
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
163
|
+
export { index as default };
|
|
@@ -17,20 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { ref, reactive, computed, onMounted, watch, toRefs, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, toDisplayString, toRaw, resolveComponent, normalizeClass, createVNode, withCtx } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
30
27
|
import { u as useTouch } from "./index.js";
|
|
31
|
-
import
|
|
28
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
|
+
import Popup, { popupProps } from "./Popup.js";
|
|
32
30
|
import "./OverLay.js";
|
|
33
|
-
import "./
|
|
31
|
+
import "./Icon.js";
|
|
34
32
|
import "./pxCheck.js";
|
|
35
33
|
const commonProps = {
|
|
36
34
|
listData: {
|
|
@@ -86,7 +84,7 @@ function isObject(val) {
|
|
|
86
84
|
function isOptionDisabled(option) {
|
|
87
85
|
return isObject(option) && option.disabled;
|
|
88
86
|
}
|
|
89
|
-
|
|
87
|
+
const _sfc_main$1 = create$1({
|
|
90
88
|
props: __spreadValues({
|
|
91
89
|
dataType: String
|
|
92
90
|
}, commonProps),
|
|
@@ -257,12 +255,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
257
255
|
], 4)
|
|
258
256
|
], 36);
|
|
259
257
|
}
|
|
260
|
-
_sfc_main$1
|
|
258
|
+
var column = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
261
259
|
const { create, componentName } = createComponent("picker");
|
|
262
|
-
|
|
260
|
+
const _sfc_main = create({
|
|
263
261
|
components: {
|
|
264
|
-
[
|
|
265
|
-
[
|
|
262
|
+
[column.name]: column,
|
|
263
|
+
[Popup.name]: Popup
|
|
266
264
|
},
|
|
267
265
|
props: __spreadValues(__spreadProps(__spreadValues({}, popupProps), {
|
|
268
266
|
title: {
|
|
@@ -409,7 +407,7 @@ var _sfc_main = create({
|
|
|
409
407
|
return __spreadProps(__spreadValues({
|
|
410
408
|
classes
|
|
411
409
|
}, toRefs(state)), {
|
|
412
|
-
column
|
|
410
|
+
column,
|
|
413
411
|
dataType,
|
|
414
412
|
columnList,
|
|
415
413
|
top,
|
|
@@ -483,5 +481,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
483
481
|
}, 8, ["style", "visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
|
|
484
482
|
], 2);
|
|
485
483
|
}
|
|
486
|
-
_sfc_main
|
|
487
|
-
export {
|
|
484
|
+
var picker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
485
|
+
export { picker as default };
|
|
@@ -17,27 +17,25 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { ref, reactive, toRefs, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, normalizeStyle, renderList, createVNode, createCommentVNode, toDisplayString } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
27
|
+
import Popup, { popupProps } from "./Popup.js";
|
|
28
|
+
import Button from "./Button.js";
|
|
29
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
32
30
|
import "./OverLay.js";
|
|
33
|
-
import "./
|
|
31
|
+
import "./Icon.js";
|
|
34
32
|
import "./pxCheck.js";
|
|
35
33
|
const { componentName, create } = createComponent("popover");
|
|
36
|
-
|
|
34
|
+
const _sfc_main = create({
|
|
37
35
|
inheritAttrs: false,
|
|
38
36
|
components: {
|
|
39
|
-
[
|
|
40
|
-
[
|
|
37
|
+
[Popup.name]: Popup,
|
|
38
|
+
[Button.name]: Button
|
|
41
39
|
},
|
|
42
40
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
43
41
|
list: {
|
|
@@ -208,5 +206,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
208
206
|
], 64)) : createCommentVNode("", true)
|
|
209
207
|
], 2);
|
|
210
208
|
}
|
|
211
|
-
_sfc_main
|
|
212
|
-
export {
|
|
209
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
210
|
+
export { index as default };
|
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, vShow } from "vue";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
26
|
+
import overlay, { overlayProps } from "./OverLay.js";
|
|
27
|
+
import _sfc_main$1 from "./Icon.js";
|
|
31
28
|
import { c as createComponent } from "./component.js";
|
|
29
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
32
30
|
import "./pxCheck.js";
|
|
33
31
|
let count = 0;
|
|
34
32
|
const CLSNAME = "nut-overflow-hidden";
|
|
@@ -91,10 +89,10 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
|
91
89
|
default: false
|
|
92
90
|
}
|
|
93
91
|
});
|
|
94
|
-
|
|
92
|
+
const _sfc_main = create({
|
|
95
93
|
components: {
|
|
96
|
-
[
|
|
97
|
-
[_sfc_main$
|
|
94
|
+
[overlay.name]: overlay,
|
|
95
|
+
[_sfc_main$1.name]: _sfc_main$1
|
|
98
96
|
},
|
|
99
97
|
props: __spreadValues({}, popupProps),
|
|
100
98
|
emits: [
|
|
@@ -266,5 +264,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
266
264
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
267
265
|
], 8, ["to"]);
|
|
268
266
|
}
|
|
269
|
-
_sfc_main
|
|
270
|
-
export {
|
|
267
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
268
|
+
export { Popup as default, popupProps };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("price");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
price: {
|
|
12
13
|
type: [Number, String],
|
|
@@ -27,6 +28,14 @@ var _sfc_main = create({
|
|
|
27
28
|
thousands: {
|
|
28
29
|
type: Boolean,
|
|
29
30
|
default: false
|
|
31
|
+
},
|
|
32
|
+
position: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "before"
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "large"
|
|
30
39
|
}
|
|
31
40
|
},
|
|
32
41
|
setup(props) {
|
|
@@ -64,7 +73,7 @@ var _sfc_main = create({
|
|
|
64
73
|
}
|
|
65
74
|
if (checkPoint(decimalNum)) {
|
|
66
75
|
decimalNum = Number(decimalNum).toFixed(props.decimalDigits);
|
|
67
|
-
decimalNum = typeof decimalNum.split(".") === "string" ? 0 : decimalNum.split(".")[1];
|
|
76
|
+
decimalNum = typeof decimalNum.split(".") === "string" ? 0 : decimalNum.split(".")[1] ? decimalNum.split(".")[1] : 0;
|
|
68
77
|
} else {
|
|
69
78
|
decimalNum = 0;
|
|
70
79
|
}
|
|
@@ -82,22 +91,32 @@ var _sfc_main = create({
|
|
|
82
91
|
}
|
|
83
92
|
});
|
|
84
93
|
const _hoisted_1 = ["innerHTML"];
|
|
85
|
-
const _hoisted_2 =
|
|
86
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode("view", { class: "nut-price--point" }, ".", -1);
|
|
87
|
-
const _hoisted_4 = { class: "nut-price--small" };
|
|
94
|
+
const _hoisted_2 = ["innerHTML"];
|
|
88
95
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
89
96
|
return openBlock(), createElementBlock("view", {
|
|
90
97
|
class: normalizeClass(_ctx.classes)
|
|
91
98
|
}, [
|
|
92
|
-
_ctx.needSymbol ? (openBlock(), createElementBlock("view", {
|
|
99
|
+
_ctx.needSymbol && _ctx.position == "before" ? (openBlock(), createElementBlock("view", {
|
|
93
100
|
key: 0,
|
|
94
|
-
class: "nut-price--symbol",
|
|
101
|
+
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
102
|
+
innerHTML: _ctx.showSymbol
|
|
103
|
+
}, null, 10, _hoisted_1)) : createCommentVNode("", true),
|
|
104
|
+
createElementVNode("view", {
|
|
105
|
+
class: normalizeClass(`nut-price--${_ctx.size}`)
|
|
106
|
+
}, toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
|
|
107
|
+
_ctx.decimalDigits != 0 ? (openBlock(), createElementBlock("view", {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: normalizeClass(`nut-price--decimal-${_ctx.size}`)
|
|
110
|
+
}, ".", 2)) : createCommentVNode("", true),
|
|
111
|
+
createElementVNode("view", {
|
|
112
|
+
class: normalizeClass(`nut-price--decimal-${_ctx.size}`)
|
|
113
|
+
}, toDisplayString(_ctx.formatDecimal(_ctx.price)), 3),
|
|
114
|
+
_ctx.needSymbol && _ctx.position == "after" ? (openBlock(), createElementBlock("view", {
|
|
115
|
+
key: 2,
|
|
116
|
+
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
95
117
|
innerHTML: _ctx.showSymbol
|
|
96
|
-
}, null,
|
|
97
|
-
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.formatThousands(_ctx.price)), 1),
|
|
98
|
-
_hoisted_3,
|
|
99
|
-
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.formatDecimal(_ctx.price)), 1)
|
|
118
|
+
}, null, 10, _hoisted_2)) : createCommentVNode("", true)
|
|
100
119
|
], 2);
|
|
101
120
|
}
|
|
102
|
-
_sfc_main
|
|
103
|
-
export {
|
|
121
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
122
|
+
export { index as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { create } = createComponent("progress");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
percentage: {
|
|
12
13
|
type: [Number, String],
|
|
@@ -126,5 +127,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
127
|
], 4)) : createCommentVNode("", true)
|
|
127
128
|
]);
|
|
128
129
|
}
|
|
129
|
-
_sfc_main
|
|
130
|
-
export {
|
|
130
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
131
|
+
export { index as default };
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, computed, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
8
|
+
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import "./pxCheck.js";
|
|
10
10
|
const { componentName, create } = createComponent("radio");
|
|
11
|
-
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
disabled: {
|
|
14
14
|
type: Boolean,
|
|
15
15
|
default: false
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
shape: {
|
|
18
18
|
type: String,
|
|
19
|
+
default: "round"
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
type: [String, Number],
|
|
19
23
|
default: ""
|
|
20
24
|
},
|
|
21
25
|
iconName: {
|
|
@@ -34,7 +38,7 @@ var _sfc_main = create({
|
|
|
34
38
|
setup(props, { emit, slots }) {
|
|
35
39
|
let parent = inject("parent");
|
|
36
40
|
const isCurValue = computed(() => {
|
|
37
|
-
return parent.label.value
|
|
41
|
+
return parent.label.value == props.label;
|
|
38
42
|
});
|
|
39
43
|
const color = computed(() => {
|
|
40
44
|
return !props.disabled ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
|
|
@@ -56,16 +60,25 @@ var _sfc_main = create({
|
|
|
56
60
|
class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
|
|
57
61
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
58
62
|
};
|
|
63
|
+
const renderButton = () => {
|
|
64
|
+
var _a;
|
|
65
|
+
return h("view", {
|
|
66
|
+
class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
|
|
67
|
+
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
68
|
+
};
|
|
59
69
|
const handleClick = () => {
|
|
60
70
|
if (isCurValue.value || props.disabled)
|
|
61
71
|
return;
|
|
62
72
|
parent.updateValue(props.label);
|
|
63
73
|
};
|
|
74
|
+
let reverseState = position.value === "left";
|
|
64
75
|
return () => {
|
|
65
76
|
return h("view", {
|
|
66
|
-
class: `${componentName} ${
|
|
77
|
+
class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
|
|
67
78
|
onClick: handleClick
|
|
68
|
-
}, [
|
|
79
|
+
}, [
|
|
80
|
+
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
81
|
+
]);
|
|
69
82
|
};
|
|
70
83
|
}
|
|
71
84
|
});
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { provide, readonly, computed, watch, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
const { componentName, create } = createComponent("radiogroup");
|
|
9
|
-
|
|
9
|
+
const _sfc_main = create({
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: {
|
|
12
12
|
type: [Number, String, Boolean],
|
|
13
13
|
default: ""
|
|
14
14
|
},
|
|
15
|
+
direction: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "vertical"
|
|
18
|
+
},
|
|
15
19
|
textPosition: {
|
|
16
20
|
type: String,
|
|
17
21
|
default: "right"
|
|
@@ -29,7 +33,7 @@ var _sfc_main = create({
|
|
|
29
33
|
return () => {
|
|
30
34
|
var _a;
|
|
31
35
|
return h("view", {
|
|
32
|
-
class: `${componentName}`
|
|
36
|
+
class: `${componentName} ${componentName}--${props.direction}`
|
|
33
37
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
34
38
|
};
|
|
35
39
|
}
|
|
@@ -17,17 +17,15 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { unref, ref, computed, toRefs, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, normalizeClass, withModifiers, Fragment, renderList, renderSlot } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
30
27
|
import { u as useTouch } from "./index.js";
|
|
28
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
29
|
function isWindow(val) {
|
|
32
30
|
return val === window;
|
|
33
31
|
}
|
|
@@ -58,7 +56,7 @@ const useRect = (elementRef) => {
|
|
|
58
56
|
};
|
|
59
57
|
};
|
|
60
58
|
const { componentName, create } = createComponent("range");
|
|
61
|
-
|
|
59
|
+
const _sfc_main = create({
|
|
62
60
|
props: {
|
|
63
61
|
range: {
|
|
64
62
|
type: Boolean,
|
|
@@ -286,22 +284,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
286
284
|
class: "nut-range-bar",
|
|
287
285
|
style: normalizeStyle(_ctx.barStyle)
|
|
288
286
|
}, [
|
|
289
|
-
_ctx.range ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList([0, 1], (
|
|
287
|
+
_ctx.range ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList([0, 1], (index2) => {
|
|
290
288
|
return createElementVNode("view", {
|
|
291
|
-
key:
|
|
289
|
+
key: index2,
|
|
292
290
|
role: "slider",
|
|
293
291
|
class: normalizeClass({
|
|
294
|
-
"nut-range-button-wrapper-left":
|
|
295
|
-
"nut-range-button-wrapper-right":
|
|
292
|
+
"nut-range-button-wrapper-left": index2 == 0,
|
|
293
|
+
"nut-range-button-wrapper-right": index2 == 1
|
|
296
294
|
}),
|
|
297
295
|
tabindex: _ctx.disabled ? -1 : 0,
|
|
298
296
|
"aria-valuemin": +_ctx.min,
|
|
299
|
-
"aria-valuenow": _ctx.curValue(
|
|
297
|
+
"aria-valuenow": _ctx.curValue(index2),
|
|
300
298
|
"aria-valuemax": +_ctx.max,
|
|
301
299
|
"aria-orientation": "horizontal",
|
|
302
300
|
onTouchstart: withModifiers((e) => {
|
|
303
|
-
if (typeof
|
|
304
|
-
_ctx.buttonIndex =
|
|
301
|
+
if (typeof index2 === "number") {
|
|
302
|
+
_ctx.buttonIndex = index2;
|
|
305
303
|
}
|
|
306
304
|
_ctx.onTouchStart(e);
|
|
307
305
|
}, ["stop", "prevent"]),
|
|
@@ -315,7 +313,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
315
313
|
class: "nut-range-button",
|
|
316
314
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
317
315
|
}, [
|
|
318
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.curValue(
|
|
316
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.curValue(index2)), 1)) : createCommentVNode("", true)
|
|
319
317
|
], 4))
|
|
320
318
|
], 42, _hoisted_3);
|
|
321
319
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
@@ -348,5 +346,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
348
346
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
349
347
|
]);
|
|
350
348
|
}
|
|
351
|
-
_sfc_main
|
|
352
|
-
export {
|
|
349
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
350
|
+
export { index as default };
|