@nutui/nutui 3.2.0 → 3.2.2
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 +62 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1563 -1402
- package/dist/nutui.umd.js +1567 -1405
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +39 -20
- package/dist/packages/_es/AddressList.js +2 -4
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +22 -5
- package/dist/packages/_es/AudioOperate.js +22 -5
- package/dist/packages/_es/Avatar.js +23 -9
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +46 -19
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +5 -11
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +36 -17
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +23 -5
- package/dist/packages/_es/CountUp.js +22 -5
- package/dist/packages/_es/DatePicker.js +31 -9
- package/dist/packages/_es/Dialog.js +23 -5
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +24 -5
- package/dist/packages/_es/Ellipsis.js +21 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +2 -2
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +21 -2
- package/dist/packages/_es/ImagePreview.js +28 -13
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +27 -14
- package/dist/packages/_es/Input.js +70 -68
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +22 -4
- package/dist/packages/_es/Menu.js +6 -5
- package/dist/packages/_es/MenuItem.js +25 -8
- package/dist/packages/_es/Navbar.js +11 -9
- package/dist/packages/_es/NoticeBar.js +26 -9
- package/dist/packages/_es/Notify.js +34 -13
- package/dist/packages/_es/NumberKeyboard.js +10 -12
- package/dist/packages/_es/OldPicker.js +28 -12
- package/dist/packages/_es/OverLay.js +20 -5
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +63 -17
- package/dist/packages/_es/Popover.js +25 -10
- package/dist/packages/_es/Popup.js +31 -17
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +24 -5
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +44 -11
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +22 -4
- package/dist/packages/_es/Step.js +27 -8
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +6 -5
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +22 -4
- package/dist/packages/_es/Tabs.js +32 -10
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +46 -25
- package/dist/packages/_es/Uploader.js +49 -30
- package/dist/packages/_es/Video.js +24 -6
- package/dist/packages/_es/WaterMark.js +21 -5
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +28 -11
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +1 -111
- package/dist/packages/address/index.scss +17 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/invoice/index.scss +33 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +11 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +70 -14
- package/dist/smartips/tags.json +34 -15
- package/dist/smartips/web-types.json +150 -16
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +55 -54
- package/dist/styles/themes/jdb.scss +55 -54
- package/dist/styles/themes/jdt.scss +55 -54
- package/dist/styles/variables-jdb.scss +26 -8
- package/dist/styles/variables-jdt.scss +26 -8
- package/dist/styles/variables.scss +25 -8
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +14 -71
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +15 -8
- package/dist/types/__VUE/col/index.vue.d.ts +2 -5
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +18 -10
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/input/index.vue.d.ts +8 -14
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +5 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +20 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +2 -1
|
@@ -1,9 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
6
|
-
import { reactive, onMounted, watch, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, createCommentVNode, toDisplayString, vShow, render } from "vue";
|
|
25
|
+
import { reactive, onMounted, watch, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, mergeProps, createCommentVNode, toDisplayString, vShow, render } from "vue";
|
|
7
26
|
import { c as createComponent } from "./component.js";
|
|
8
27
|
import _sfc_main$1 from "./Icon.js";
|
|
9
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -129,6 +148,9 @@ const _sfc_main = create({
|
|
|
129
148
|
"nut-toast-" + props.size
|
|
130
149
|
];
|
|
131
150
|
});
|
|
151
|
+
const toastIconWrapperClass = computed(() => {
|
|
152
|
+
return ["nut-toast-icon-wrapper", { "nut-toast-icon-no-animation": !props.loadingRotate }];
|
|
153
|
+
});
|
|
132
154
|
const onAfterLeave = () => {
|
|
133
155
|
clearTimer();
|
|
134
156
|
props.unmount(props.id);
|
|
@@ -140,19 +162,16 @@ const _sfc_main = create({
|
|
|
140
162
|
clickCover,
|
|
141
163
|
hasIcon,
|
|
142
164
|
toastBodyClass,
|
|
165
|
+
toastIconWrapperClass,
|
|
143
166
|
onAfterLeave
|
|
144
167
|
};
|
|
145
168
|
}
|
|
146
169
|
});
|
|
147
170
|
const _hoisted_1 = {
|
|
148
|
-
key: 0,
|
|
149
|
-
class: "nut-toast-icon-wrapper"
|
|
150
|
-
};
|
|
151
|
-
const _hoisted_2 = {
|
|
152
171
|
key: 1,
|
|
153
172
|
class: "nut-toast-title"
|
|
154
173
|
};
|
|
155
|
-
const
|
|
174
|
+
const _hoisted_2 = ["innerHTML"];
|
|
156
175
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
157
176
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
158
177
|
return openBlock(), createBlock(Transition, {
|
|
@@ -175,18 +194,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
175
194
|
"background-color": _ctx.bgColor
|
|
176
195
|
})
|
|
177
196
|
}, [
|
|
178
|
-
_ctx.hasIcon ? (openBlock(), createElementBlock("view",
|
|
179
|
-
|
|
180
|
-
|
|
197
|
+
_ctx.hasIcon ? (openBlock(), createElementBlock("view", {
|
|
198
|
+
key: 0,
|
|
199
|
+
class: normalizeClass(_ctx.toastIconWrapperClass)
|
|
200
|
+
}, [
|
|
201
|
+
createVNode(_component_nut_icon, mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
|
|
181
202
|
color: "#ffffff",
|
|
182
203
|
name: _ctx.icon
|
|
183
|
-
}, null,
|
|
184
|
-
])) : createCommentVNode("", true),
|
|
185
|
-
_ctx.title ? (openBlock(), createElementBlock("div",
|
|
204
|
+
}), null, 16, ["size", "name"])
|
|
205
|
+
], 2)) : createCommentVNode("", true),
|
|
206
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
186
207
|
createElementVNode("view", {
|
|
187
208
|
class: "nut-toast-text",
|
|
188
209
|
innerHTML: _ctx.msg
|
|
189
|
-
}, null, 8,
|
|
210
|
+
}, null, 8, _hoisted_2)
|
|
190
211
|
], 4)
|
|
191
212
|
], 6), [
|
|
192
213
|
[vShow, _ctx.state.mounted]
|
|
@@ -243,9 +264,9 @@ const updateToast = (opts) => {
|
|
|
243
264
|
if (container) {
|
|
244
265
|
const currentOpt = optsMap.find((item) => item.id === opts.id);
|
|
245
266
|
if (currentOpt) {
|
|
246
|
-
opts = {
|
|
267
|
+
opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
|
|
247
268
|
} else {
|
|
248
|
-
opts = {
|
|
269
|
+
opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
|
|
249
270
|
}
|
|
250
271
|
const instance = createVNode(Toast, opts);
|
|
251
272
|
render(instance, container);
|
|
@@ -263,7 +284,7 @@ const mountToast = (opts) => {
|
|
|
263
284
|
} else {
|
|
264
285
|
_id = new Date().getTime() + "";
|
|
265
286
|
}
|
|
266
|
-
opts = {
|
|
287
|
+
opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
|
|
267
288
|
opts.id = _id;
|
|
268
289
|
idsMap.push(opts.id);
|
|
269
290
|
optsMap.push(opts);
|
|
@@ -283,27 +304,27 @@ const errorMsg = (msg) => {
|
|
|
283
304
|
const ToastFunction = {
|
|
284
305
|
text(msg, opts = {}) {
|
|
285
306
|
errorMsg(msg);
|
|
286
|
-
return mountToast({
|
|
307
|
+
return mountToast(__spreadProps(__spreadValues({}, opts), { type: "text", msg }));
|
|
287
308
|
},
|
|
288
309
|
success(msg, opts = {}) {
|
|
289
310
|
errorMsg(msg);
|
|
290
|
-
return mountToast({ icon: "success",
|
|
311
|
+
return mountToast(__spreadProps(__spreadValues({ icon: "success" }, opts), { msg, type: "success" }));
|
|
291
312
|
},
|
|
292
313
|
fail(msg, opts = {}) {
|
|
293
314
|
errorMsg(msg);
|
|
294
|
-
return mountToast({ icon: "failure",
|
|
315
|
+
return mountToast(__spreadProps(__spreadValues({ icon: "failure" }, opts), { msg, type: "fail" }));
|
|
295
316
|
},
|
|
296
317
|
warn(msg, opts = {}) {
|
|
297
318
|
errorMsg(msg);
|
|
298
|
-
return mountToast({ icon: "tips",
|
|
319
|
+
return mountToast(__spreadProps(__spreadValues({ icon: "tips" }, opts), { msg, type: "warn" }));
|
|
299
320
|
},
|
|
300
321
|
loading(msg, opts = {}) {
|
|
301
|
-
return mountToast({
|
|
302
|
-
icon: "loading"
|
|
303
|
-
|
|
322
|
+
return mountToast(__spreadProps(__spreadValues({
|
|
323
|
+
icon: "loading"
|
|
324
|
+
}, opts), {
|
|
304
325
|
msg,
|
|
305
326
|
type: "loading"
|
|
306
|
-
});
|
|
327
|
+
}));
|
|
307
328
|
},
|
|
308
329
|
hide(id) {
|
|
309
330
|
clearToast(id);
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
18
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
19
|
* (c) 2022 @jdf2e.
|
|
4
20
|
* Released under the MIT License.
|
|
5
21
|
*/
|
|
6
|
-
import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock, createTextVNode } from "vue";
|
|
22
|
+
import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock, createTextVNode, mergeProps } from "vue";
|
|
7
23
|
import { c as createComponent } from "./component.js";
|
|
8
24
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
25
|
import "../locale/lang";
|
|
@@ -64,34 +80,37 @@ class Uploader {
|
|
|
64
80
|
if (env === "WEB") {
|
|
65
81
|
this.upload();
|
|
66
82
|
} else {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
if (options.beforeXhrUpload) {
|
|
84
|
+
options.beforeXhrUpload(uploadFile, options);
|
|
85
|
+
} else {
|
|
86
|
+
const uploadTask = uploadFile({
|
|
87
|
+
url: options.url,
|
|
88
|
+
filePath: options.taroFilePath,
|
|
89
|
+
fileType: options.fileType,
|
|
90
|
+
header: __spreadValues({
|
|
91
|
+
"Content-Type": "multipart/form-data"
|
|
92
|
+
}, options.headers),
|
|
93
|
+
formData: options.formData,
|
|
94
|
+
name: options.name,
|
|
95
|
+
success(response) {
|
|
96
|
+
var _a2, _b;
|
|
97
|
+
if (options.xhrState == response.statusCode) {
|
|
98
|
+
(_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
|
|
99
|
+
} else {
|
|
100
|
+
(_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
fail(e) {
|
|
104
|
+
var _a2;
|
|
105
|
+
(_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
|
|
83
106
|
}
|
|
84
|
-
}
|
|
85
|
-
|
|
107
|
+
});
|
|
108
|
+
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
109
|
+
uploadTask.progress((res) => {
|
|
86
110
|
var _a2;
|
|
87
|
-
(_a2 = options.
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
91
|
-
uploadTask.progress((res) => {
|
|
92
|
-
var _a2;
|
|
93
|
-
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
94
|
-
});
|
|
111
|
+
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
95
114
|
}
|
|
96
115
|
}
|
|
97
116
|
}
|
|
@@ -462,11 +481,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
462
481
|
key: 1,
|
|
463
482
|
class: normalizeClass(["nut-uploader__upload", [_ctx.listType]])
|
|
464
483
|
}, [
|
|
465
|
-
createVNode(_component_nut_icon, {
|
|
484
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
466
485
|
size: _ctx.uploadIconSize,
|
|
467
486
|
color: "#808080",
|
|
468
487
|
name: _ctx.uploadIcon
|
|
469
|
-
}, null,
|
|
488
|
+
}), null, 16, ["size", "name"]),
|
|
470
489
|
_ctx.capture ? (openBlock(), createElementBlock("input", {
|
|
471
490
|
key: 0,
|
|
472
491
|
class: "nut-uploader__input",
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -214,10 +233,9 @@ const _sfc_main = create({
|
|
|
214
233
|
onMounted(() => {
|
|
215
234
|
init();
|
|
216
235
|
});
|
|
217
|
-
return {
|
|
218
|
-
root
|
|
219
|
-
|
|
220
|
-
...toRefs(state),
|
|
236
|
+
return __spreadProps(__spreadValues(__spreadValues({
|
|
237
|
+
root
|
|
238
|
+
}, toRefs(props)), toRefs(state)), {
|
|
221
239
|
handleError,
|
|
222
240
|
isDisabled,
|
|
223
241
|
play,
|
|
@@ -228,7 +246,7 @@ const _sfc_main = create({
|
|
|
228
246
|
retry,
|
|
229
247
|
fullScreen,
|
|
230
248
|
translate
|
|
231
|
-
};
|
|
249
|
+
});
|
|
232
250
|
}
|
|
233
251
|
});
|
|
234
252
|
const _hoisted_1 = {
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -104,7 +123,6 @@ const _sfc_main = create({
|
|
|
104
123
|
const init = () => {
|
|
105
124
|
const canvas = document.createElement("canvas");
|
|
106
125
|
const ratio = window.devicePixelRatio;
|
|
107
|
-
console.log(ratio);
|
|
108
126
|
const ctx = canvas.getContext("2d");
|
|
109
127
|
const canvasWidth = `${(gapX + width) * ratio}px`;
|
|
110
128
|
const canvasHeight = `${(gapY + height) * ratio}px`;
|
|
@@ -124,7 +142,6 @@ const _sfc_main = create({
|
|
|
124
142
|
ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
|
|
125
143
|
ctx.restore();
|
|
126
144
|
state.base64Url = canvas.toDataURL();
|
|
127
|
-
console.log(state.base64Url);
|
|
128
145
|
};
|
|
129
146
|
} else if (content) {
|
|
130
147
|
ctx.textBaseline = "middle";
|
|
@@ -137,7 +154,6 @@ const _sfc_main = create({
|
|
|
137
154
|
ctx.fillText(content, 0, 0);
|
|
138
155
|
ctx.restore();
|
|
139
156
|
state.base64Url = canvas.toDataURL();
|
|
140
|
-
console.log(state.base64Url);
|
|
141
157
|
}
|
|
142
158
|
} else {
|
|
143
159
|
throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");
|
|
@@ -170,7 +186,7 @@ const _sfc_main = create({
|
|
|
170
186
|
[`${prefixCls}-full-page`]: props.fullPage
|
|
171
187
|
};
|
|
172
188
|
});
|
|
173
|
-
return {
|
|
189
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), { classes });
|
|
174
190
|
}
|
|
175
191
|
});
|
|
176
192
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { shallowReactive, getCurrentInstance,
|
|
6
|
+
import { provide, shallowReactive, getCurrentInstance, markRaw, isVNode, computed, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { p as pxCheck } from "./pxCheck.js";
|
|
9
9
|
function flattenVNodes(children, childName) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { defineComponent } from "vue";
|
|
7
7
|
import locale from "../locale/lang";
|
|
8
8
|
const TypeOfFun = (value) => {
|
|
9
|
-
if (
|
|
9
|
+
if (value === null) {
|
|
10
10
|
return "null";
|
|
11
11
|
}
|
|
12
12
|
const type = typeof value;
|
|
13
|
-
if ("undefined"
|
|
13
|
+
if (type === "undefined" || type === "string") {
|
|
14
14
|
return type;
|
|
15
15
|
}
|
|
16
16
|
const typeString = toString.call(value);
|
|
@@ -28,8 +28,8 @@ const TypeOfFun = (value) => {
|
|
|
28
28
|
case "[object RegExp]":
|
|
29
29
|
return "regexp";
|
|
30
30
|
case "[object Object]":
|
|
31
|
-
if (void 0
|
|
32
|
-
if (
|
|
31
|
+
if (value.nodeType !== void 0) {
|
|
32
|
+
if (value.nodeType == 3) {
|
|
33
33
|
return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
|
|
34
34
|
} else {
|
|
35
35
|
return "element";
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -302,7 +321,6 @@ const _sfc_main = create({
|
|
|
302
321
|
state.chooseData = [...days];
|
|
303
322
|
}
|
|
304
323
|
if (!isFirst) {
|
|
305
|
-
console.log(state.chooseData);
|
|
306
324
|
emit("select", state.chooseData);
|
|
307
325
|
if (props.isAutoBackFill || !props.poppable) {
|
|
308
326
|
confirm();
|
|
@@ -440,9 +458,9 @@ const _sfc_main = create({
|
|
|
440
458
|
if (state.currDate.length > 0) {
|
|
441
459
|
let defaultArr = [];
|
|
442
460
|
let obj = {};
|
|
443
|
-
state.currDate.forEach((item
|
|
461
|
+
state.currDate.forEach((item) => {
|
|
444
462
|
if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
|
|
445
|
-
if (!
|
|
463
|
+
if (!Object.hasOwnProperty.call(obj, item)) {
|
|
446
464
|
defaultArr.push(item);
|
|
447
465
|
obj[item] = item;
|
|
448
466
|
}
|
|
@@ -571,7 +589,7 @@ const _sfc_main = create({
|
|
|
571
589
|
}
|
|
572
590
|
return false;
|
|
573
591
|
};
|
|
574
|
-
const rangeTip = (
|
|
592
|
+
const rangeTip = () => {
|
|
575
593
|
if (state.currDate.length >= 2) {
|
|
576
594
|
return Utils.isEqual(state.currDate[0], state.currDate[1]);
|
|
577
595
|
}
|
|
@@ -628,7 +646,7 @@ const _sfc_main = create({
|
|
|
628
646
|
}
|
|
629
647
|
}
|
|
630
648
|
});
|
|
631
|
-
return {
|
|
649
|
+
return __spreadProps(__spreadValues(__spreadValues({
|
|
632
650
|
weeks,
|
|
633
651
|
compConthsData,
|
|
634
652
|
showTopBtn,
|
|
@@ -645,11 +663,10 @@ const _sfc_main = create({
|
|
|
645
663
|
monthsPanel,
|
|
646
664
|
months,
|
|
647
665
|
weeksPanel,
|
|
648
|
-
viewArea
|
|
649
|
-
|
|
650
|
-
...toRefs(props),
|
|
666
|
+
viewArea
|
|
667
|
+
}, toRefs(state)), toRefs(props)), {
|
|
651
668
|
translate
|
|
652
|
-
};
|
|
669
|
+
});
|
|
653
670
|
}
|
|
654
671
|
});
|
|
655
672
|
const _hoisted_1 = {
|
|
@@ -767,7 +784,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
767
784
|
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
768
785
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
769
786
|
key: 3,
|
|
770
|
-
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(
|
|
787
|
+
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
|
|
771
788
|
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
772
789
|
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
773
790
|
], 10, _hoisted_8);
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -1,111 +1 @@
|
|
|
1
|
-
.
|
|
2
|
-
display: flex;
|
|
3
|
-
background: rgb(255, 255, 255);
|
|
4
|
-
}
|
|
5
|
-
.nut-categorypane__cateListLeft {
|
|
6
|
-
background: rgb(246, 247, 249);
|
|
7
|
-
}
|
|
8
|
-
.nut-categorypane__cateListItemChecked, .nut-categorypane__cateListItem {
|
|
9
|
-
width: 100px;
|
|
10
|
-
height: 50px;
|
|
11
|
-
font-size: 13px;
|
|
12
|
-
font-family: PingFangSC;
|
|
13
|
-
font-weight: normal;
|
|
14
|
-
color: rgb(51, 51, 51);
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
align-items: center;
|
|
18
|
-
transition: all 0.3s;
|
|
19
|
-
}
|
|
20
|
-
.nut-categorypane__cateListItemChecked {
|
|
21
|
-
background: rgb(255, 255, 255);
|
|
22
|
-
font-weight: 500;
|
|
23
|
-
transition: all 0.3s;
|
|
24
|
-
}
|
|
25
|
-
.nut-categorypane__cateListRight {
|
|
26
|
-
padding-left: 15px;
|
|
27
|
-
background: rgb(255, 255, 255);
|
|
28
|
-
}
|
|
29
|
-
.nut-categorypane__childTitle {
|
|
30
|
-
margin-top: 15px;
|
|
31
|
-
margin-bottom: 15px;
|
|
32
|
-
font-size: 13px;
|
|
33
|
-
font-family: PingFangSC;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
color: rgb(51, 51, 51);
|
|
36
|
-
}
|
|
37
|
-
.nut-categorypane__childItemList {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-wrap: wrap;
|
|
40
|
-
}
|
|
41
|
-
.nut-categorypane__childItem {
|
|
42
|
-
margin-right: 10px;
|
|
43
|
-
}
|
|
44
|
-
.nut-categorypane__childImg {
|
|
45
|
-
width: 75px;
|
|
46
|
-
height: 75px;
|
|
47
|
-
border-radius: 5px;
|
|
48
|
-
}
|
|
49
|
-
.nut-categorypane__skuName {
|
|
50
|
-
margin-right: 10px;
|
|
51
|
-
width: 75px;
|
|
52
|
-
height: 40px;
|
|
53
|
-
border: 1px solid rgb(153, 153, 153);
|
|
54
|
-
border-radius: 5px;
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
font-family: PingFangSC;
|
|
57
|
-
font-weight: normal;
|
|
58
|
-
color: rgb(102, 102, 102);
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
.nut-categorypane__skuName:nth-child(3n) {
|
|
64
|
-
margin-right: 0;
|
|
65
|
-
}
|
|
66
|
-
.nut-categorypane__skuName:nth-child(n+4) {
|
|
67
|
-
margin-top: 15px;
|
|
68
|
-
}
|
|
69
|
-
.nut-categorypane__skuImg {
|
|
70
|
-
font-size: 12px;
|
|
71
|
-
font-family: PingFangSC;
|
|
72
|
-
font-weight: normal;
|
|
73
|
-
color: rgb(102, 102, 102);
|
|
74
|
-
margin-top: 10px;
|
|
75
|
-
margin-bottom: 10px;
|
|
76
|
-
text-align: center;
|
|
77
|
-
}
|
|
78
|
-
.nut-categorypane__selfItemList {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-wrap: wrap;
|
|
81
|
-
}
|
|
82
|
-
.nut-categorypane__selfskuName {
|
|
83
|
-
margin-left: 15px;
|
|
84
|
-
margin-top: 15px;
|
|
85
|
-
display: flex;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
align-items: center;
|
|
88
|
-
width: 75px;
|
|
89
|
-
height: 40px;
|
|
90
|
-
border: 1px solid rgb(153, 153, 153);
|
|
91
|
-
border-radius: 5px;
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
font-family: PingFangSC;
|
|
94
|
-
font-weight: normal;
|
|
95
|
-
color: rgb(102, 102, 102);
|
|
96
|
-
}
|
|
97
|
-
.nut-categorypane__skuName {
|
|
98
|
-
margin-left: 15px;
|
|
99
|
-
margin-top: 15px;
|
|
100
|
-
display: flex;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
align-items: center;
|
|
103
|
-
width: 75px;
|
|
104
|
-
height: 40px;
|
|
105
|
-
border: 1px solid rgb(153, 153, 153);
|
|
106
|
-
border-radius: 5px;
|
|
107
|
-
font-size: 12px;
|
|
108
|
-
font-family: PingFangSC;
|
|
109
|
-
font-weight: normal;
|
|
110
|
-
color: rgb(102, 102, 102);
|
|
111
|
-
}/* @import './index.scss'; */
|
|
1
|
+
/* @import './index.scss'; */
|