@nutui/nutui 3.2.8-beta.0 → 3.2.8-beta.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/dist/nutui.es.js +67 -149
- package/dist/nutui.umd.js +67 -149
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +3 -2
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +1 -1
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +57 -139
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- 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/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- package/dist/packages/_es/interceptor.js +2 -2
- package/dist/packages/_es/mountComponent.js +2 -2
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/props.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- 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/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +46 -46
- package/dist/styles/themes/jdb.scss +46 -46
- package/dist/styles/themes/jddkh.scss +46 -46
- package/dist/styles/themes/jdt.scss +46 -46
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +4 -4
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/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 +3 -3
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/dialog/index.vue.d.ts +5 -5
- package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +5 -5
- package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- 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 +1 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +7 -4
- package/dist/types/__VUE/uploader/uploader.d.ts +3 -0
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/nutui.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.8-beta.2 Fri Dec 02 2022 18:18:50 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
if (isPromise(returnVal)) {
|
|
230
230
|
returnVal.then((value) => {
|
|
231
231
|
if (value) {
|
|
232
|
-
done();
|
|
232
|
+
done(value);
|
|
233
233
|
} else if (canceled) {
|
|
234
234
|
canceled();
|
|
235
235
|
}
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
const root = document.createElement("view");
|
|
416
|
-
const name = component2.name
|
|
416
|
+
const name = component2.name ? component2.name + "-" : "";
|
|
417
417
|
const id1 = options.id || new Date().getTime();
|
|
418
418
|
root.id = name + id1;
|
|
419
419
|
let Wrapper = {};
|
|
@@ -5739,19 +5739,19 @@
|
|
|
5739
5739
|
key: 0,
|
|
5740
5740
|
class: "calendar-curr-tips calendar-curr-tips-top"
|
|
5741
5741
|
};
|
|
5742
|
-
const _hoisted_11$
|
|
5742
|
+
const _hoisted_11$4 = {
|
|
5743
5743
|
key: 1,
|
|
5744
5744
|
class: "calendar-curr-tips calendar-curr-tips-bottom"
|
|
5745
5745
|
};
|
|
5746
|
-
const _hoisted_12$
|
|
5746
|
+
const _hoisted_12$4 = {
|
|
5747
5747
|
key: 2,
|
|
5748
5748
|
class: "calendar-curr-tip-curr"
|
|
5749
5749
|
};
|
|
5750
|
-
const _hoisted_13$
|
|
5750
|
+
const _hoisted_13$2 = {
|
|
5751
5751
|
key: 4,
|
|
5752
5752
|
class: "calendar-day-tip"
|
|
5753
5753
|
};
|
|
5754
|
-
const _hoisted_14$
|
|
5754
|
+
const _hoisted_14$2 = {
|
|
5755
5755
|
key: 0,
|
|
5756
5756
|
class: "nut-calendar-footer"
|
|
5757
5757
|
};
|
|
@@ -5818,17 +5818,17 @@
|
|
|
5818
5818
|
date: day.type == "curr" ? day : ""
|
|
5819
5819
|
})
|
|
5820
5820
|
])) : vue.createCommentVNode("", true),
|
|
5821
|
-
_ctx.bottomInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$
|
|
5821
|
+
_ctx.bottomInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$4, [
|
|
5822
5822
|
vue.renderSlot(_ctx.$slots, "bottomInfo", {
|
|
5823
5823
|
date: day.type == "curr" ? day : ""
|
|
5824
5824
|
})
|
|
5825
5825
|
])) : vue.createCommentVNode("", true),
|
|
5826
|
-
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_12$
|
|
5826
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_12$4, vue.toDisplayString(_ctx.translate("today")), 1)) : vue.createCommentVNode("", true),
|
|
5827
5827
|
_ctx.isStartTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
5828
5828
|
key: 3,
|
|
5829
5829
|
class: vue.normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
|
|
5830
5830
|
}, vue.toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : vue.createCommentVNode("", true),
|
|
5831
|
-
_ctx.isEndTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13$
|
|
5831
|
+
_ctx.isEndTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13$2, vue.toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : vue.createCommentVNode("", true)
|
|
5832
5832
|
], 10, _hoisted_8$d);
|
|
5833
5833
|
}), 128))
|
|
5834
5834
|
], 2)
|
|
@@ -5838,7 +5838,7 @@
|
|
|
5838
5838
|
], 4)
|
|
5839
5839
|
], 512)
|
|
5840
5840
|
], 544),
|
|
5841
|
-
_ctx.poppable && !_ctx.isAutoBackFill ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$
|
|
5841
|
+
_ctx.poppable && !_ctx.isAutoBackFill ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$2, [
|
|
5842
5842
|
vue.createElementVNode("view", {
|
|
5843
5843
|
class: "calendar-confirm-btn",
|
|
5844
5844
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
@@ -7569,7 +7569,8 @@
|
|
|
7569
7569
|
};
|
|
7570
7570
|
const renderInput = (type) => {
|
|
7571
7571
|
return vue.h(type == "textarea" ? "textarea" : "input", {
|
|
7572
|
-
style: type == "textarea" ? stylesTextarea : styles
|
|
7572
|
+
style: type == "textarea" ? stylesTextarea : styles,
|
|
7573
|
+
type: type != "textarea" && inputType(type)
|
|
7573
7574
|
});
|
|
7574
7575
|
};
|
|
7575
7576
|
const state = vue.reactive({
|
|
@@ -8598,46 +8599,6 @@
|
|
|
8598
8599
|
console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest");
|
|
8599
8600
|
}
|
|
8600
8601
|
}
|
|
8601
|
-
uploadTaro(uploadFile, env) {
|
|
8602
|
-
var _a;
|
|
8603
|
-
const options = this.options;
|
|
8604
|
-
if (env === "WEB") {
|
|
8605
|
-
this.upload();
|
|
8606
|
-
} else {
|
|
8607
|
-
if (options.beforeXhrUpload) {
|
|
8608
|
-
options.beforeXhrUpload(uploadFile, options);
|
|
8609
|
-
} else {
|
|
8610
|
-
const uploadTask = uploadFile({
|
|
8611
|
-
url: options.url,
|
|
8612
|
-
filePath: options.taroFilePath,
|
|
8613
|
-
fileType: options.fileType,
|
|
8614
|
-
header: {
|
|
8615
|
-
"Content-Type": "multipart/form-data",
|
|
8616
|
-
...options.headers
|
|
8617
|
-
},
|
|
8618
|
-
formData: options.formData,
|
|
8619
|
-
name: options.name,
|
|
8620
|
-
success(response) {
|
|
8621
|
-
var _a2, _b;
|
|
8622
|
-
if (options.xhrState == response.statusCode) {
|
|
8623
|
-
(_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
|
|
8624
|
-
} else {
|
|
8625
|
-
(_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
|
|
8626
|
-
}
|
|
8627
|
-
},
|
|
8628
|
-
fail(e) {
|
|
8629
|
-
var _a2;
|
|
8630
|
-
(_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
|
|
8631
|
-
}
|
|
8632
|
-
});
|
|
8633
|
-
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
8634
|
-
uploadTask.progress((res) => {
|
|
8635
|
-
var _a2;
|
|
8636
|
-
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
8637
|
-
});
|
|
8638
|
-
}
|
|
8639
|
-
}
|
|
8640
|
-
}
|
|
8641
8602
|
}
|
|
8642
8603
|
const { translate: translate$j } = createComponent("uploader");
|
|
8643
8604
|
class FileItem {
|
|
@@ -8711,6 +8672,19 @@
|
|
|
8711
8672
|
[prefixCls]: true
|
|
8712
8673
|
};
|
|
8713
8674
|
});
|
|
8675
|
+
const renderInput = () => {
|
|
8676
|
+
let params = {
|
|
8677
|
+
class: `nut-uploader__input`,
|
|
8678
|
+
type: "file",
|
|
8679
|
+
accept: props.accept,
|
|
8680
|
+
multiple: props.multiple,
|
|
8681
|
+
name: props.name,
|
|
8682
|
+
disabled: props.disabled
|
|
8683
|
+
};
|
|
8684
|
+
if (props.capture)
|
|
8685
|
+
params.capture = "camera";
|
|
8686
|
+
return vue.h("input", params);
|
|
8687
|
+
};
|
|
8714
8688
|
const clearInput = (el) => {
|
|
8715
8689
|
el.value = "";
|
|
8716
8690
|
};
|
|
@@ -8843,20 +8817,10 @@
|
|
|
8843
8817
|
};
|
|
8844
8818
|
const onDelete = (file, index) => {
|
|
8845
8819
|
clearUploadQueue(index);
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
deleted(file, index);
|
|
8851
|
-
}
|
|
8852
|
-
}).catch((error) => {
|
|
8853
|
-
console.log(error, "\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
8854
|
-
});
|
|
8855
|
-
} else if (fn) {
|
|
8856
|
-
deleted(file, index);
|
|
8857
|
-
} else {
|
|
8858
|
-
console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
8859
|
-
}
|
|
8820
|
+
funInterceptor(props.beforeDelete, {
|
|
8821
|
+
args: [file, fileList],
|
|
8822
|
+
done: () => deleted(file, index)
|
|
8823
|
+
});
|
|
8860
8824
|
};
|
|
8861
8825
|
const onChange = (event) => {
|
|
8862
8826
|
if (props.disabled) {
|
|
@@ -8865,13 +8829,9 @@
|
|
|
8865
8829
|
const $el = event.target;
|
|
8866
8830
|
let { files } = $el;
|
|
8867
8831
|
if (props.beforeUpload) {
|
|
8868
|
-
props.beforeUpload(files).then((f) =>
|
|
8869
|
-
const _files = filterFiles(new Array().slice.call(f));
|
|
8870
|
-
readFile(_files);
|
|
8871
|
-
});
|
|
8832
|
+
props.beforeUpload(files).then((f) => changeReadFile(f));
|
|
8872
8833
|
} else {
|
|
8873
|
-
|
|
8874
|
-
readFile(_files);
|
|
8834
|
+
changeReadFile(files);
|
|
8875
8835
|
}
|
|
8876
8836
|
emit("change", {
|
|
8877
8837
|
fileList,
|
|
@@ -8881,6 +8841,10 @@
|
|
|
8881
8841
|
clearInput($el);
|
|
8882
8842
|
}
|
|
8883
8843
|
};
|
|
8844
|
+
const changeReadFile = (f) => {
|
|
8845
|
+
const _files = filterFiles(new Array().slice.call(f));
|
|
8846
|
+
readFile(_files);
|
|
8847
|
+
};
|
|
8884
8848
|
return {
|
|
8885
8849
|
onChange,
|
|
8886
8850
|
onDelete,
|
|
@@ -8888,7 +8852,8 @@
|
|
|
8888
8852
|
classes,
|
|
8889
8853
|
fileItemClick,
|
|
8890
8854
|
clearUploadQueue,
|
|
8891
|
-
submit
|
|
8855
|
+
submit,
|
|
8856
|
+
renderInput
|
|
8892
8857
|
};
|
|
8893
8858
|
}
|
|
8894
8859
|
});
|
|
@@ -8896,36 +8861,27 @@
|
|
|
8896
8861
|
key: 0,
|
|
8897
8862
|
class: "nut-uploader__slot"
|
|
8898
8863
|
};
|
|
8899
|
-
const _hoisted_2$G =
|
|
8900
|
-
const _hoisted_3$x = ["accept", "multiple", "name", "disabled"];
|
|
8901
|
-
const _hoisted_4$q = {
|
|
8864
|
+
const _hoisted_2$G = {
|
|
8902
8865
|
key: 0,
|
|
8903
8866
|
class: "nut-uploader__preview-img"
|
|
8904
8867
|
};
|
|
8905
|
-
const
|
|
8868
|
+
const _hoisted_3$x = {
|
|
8906
8869
|
key: 0,
|
|
8907
8870
|
class: "nut-uploader__preview__progress"
|
|
8908
8871
|
};
|
|
8909
|
-
const
|
|
8910
|
-
const
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
};
|
|
8914
|
-
const _hoisted_8$a = { class: "nut-uploader__preview__progress__msg" };
|
|
8915
|
-
const _hoisted_9$6 = ["onClick", "src"];
|
|
8916
|
-
const _hoisted_10$4 = {
|
|
8917
|
-
key: 4,
|
|
8872
|
+
const _hoisted_4$q = { class: "nut-uploader__preview__progress__msg" };
|
|
8873
|
+
const _hoisted_5$i = ["onClick", "src"];
|
|
8874
|
+
const _hoisted_6$h = {
|
|
8875
|
+
key: 3,
|
|
8918
8876
|
class: "nut-uploader__preview-img__file"
|
|
8919
8877
|
};
|
|
8920
|
-
const
|
|
8921
|
-
const
|
|
8922
|
-
const
|
|
8878
|
+
const _hoisted_7$f = ["onClick"];
|
|
8879
|
+
const _hoisted_8$a = { class: "tips" };
|
|
8880
|
+
const _hoisted_9$6 = {
|
|
8923
8881
|
key: 1,
|
|
8924
8882
|
class: "nut-uploader__preview-list"
|
|
8925
8883
|
};
|
|
8926
|
-
const
|
|
8927
|
-
const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
|
|
8928
|
-
const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
|
|
8884
|
+
const _hoisted_10$4 = ["onClick"];
|
|
8929
8885
|
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8930
8886
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
8931
8887
|
const _component_nut_progress = vue.resolveComponent("nut-progress");
|
|
@@ -8934,55 +8890,36 @@
|
|
|
8934
8890
|
}, [
|
|
8935
8891
|
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$P, [
|
|
8936
8892
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
8937
|
-
_ctx.maximum - _ctx.fileList.length ? (vue.openBlock(), vue.
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
type: "file",
|
|
8942
|
-
capture: "camera",
|
|
8943
|
-
accept: _ctx.accept,
|
|
8944
|
-
multiple: _ctx.multiple,
|
|
8945
|
-
name: _ctx.name,
|
|
8946
|
-
disabled: _ctx.disabled,
|
|
8947
|
-
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8948
|
-
}, null, 40, _hoisted_2$G)) : (vue.openBlock(), vue.createElementBlock("input", {
|
|
8949
|
-
key: 1,
|
|
8950
|
-
class: "nut-uploader__input",
|
|
8951
|
-
type: "file",
|
|
8952
|
-
accept: _ctx.accept,
|
|
8953
|
-
multiple: _ctx.multiple,
|
|
8954
|
-
name: _ctx.name,
|
|
8955
|
-
disabled: _ctx.disabled,
|
|
8956
|
-
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8957
|
-
}, null, 40, _hoisted_3$x))
|
|
8958
|
-
], 64)) : vue.createCommentVNode("", true)
|
|
8893
|
+
_ctx.maximum - _ctx.fileList.length ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.renderInput), {
|
|
8894
|
+
key: 0,
|
|
8895
|
+
onChange: _ctx.onChange
|
|
8896
|
+
}, null, 40, ["onChange"])) : vue.createCommentVNode("", true)
|
|
8959
8897
|
])) : vue.createCommentVNode("", true),
|
|
8960
8898
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item, index) => {
|
|
8961
8899
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8962
8900
|
class: vue.normalizeClass(["nut-uploader__preview", [_ctx.listType]]),
|
|
8963
8901
|
key: item.uid
|
|
8964
8902
|
}, [
|
|
8965
|
-
_ctx.listType == "picture" && !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view",
|
|
8966
|
-
item.status
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
vue.createVNode(_component_nut_icon, {
|
|
8903
|
+
_ctx.listType == "picture" && !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$G, [
|
|
8904
|
+
item.status != "success" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$x, [
|
|
8905
|
+
item.status != "ready" ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
8906
|
+
key: 0,
|
|
8970
8907
|
color: "#fff",
|
|
8971
8908
|
name: item.status == "error" ? "failure" : "loading"
|
|
8972
|
-
}, null, 8, ["name"]),
|
|
8973
|
-
vue.createElementVNode("view",
|
|
8909
|
+
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
8910
|
+
vue.createElementVNode("view", _hoisted_4$q, vue.toDisplayString(item.message), 1)
|
|
8974
8911
|
])) : vue.createCommentVNode("", true),
|
|
8975
|
-
_ctx.isDeletable ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key:
|
|
8912
|
+
_ctx.isDeletable ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
8976
8913
|
onClick: ($event) => _ctx.onDelete(item, index),
|
|
8977
8914
|
class: "close",
|
|
8978
8915
|
name: _ctx.deleteIcon
|
|
8979
8916
|
}), null, 16, ["onClick", "name"])) : vue.createCommentVNode("", true),
|
|
8980
8917
|
item.type.includes("image") && item.url ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
8981
|
-
key:
|
|
8918
|
+
key: 2,
|
|
8982
8919
|
class: "nut-uploader__preview-img__c",
|
|
8983
8920
|
onClick: ($event) => _ctx.fileItemClick(item),
|
|
8984
8921
|
src: item.url
|
|
8985
|
-
}, null, 8,
|
|
8922
|
+
}, null, 8, _hoisted_5$i)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$h, [
|
|
8986
8923
|
vue.createElementVNode("view", {
|
|
8987
8924
|
onClick: ($event) => _ctx.fileItemClick(item),
|
|
8988
8925
|
class: "nut-uploader__preview-img__file__name"
|
|
@@ -8992,17 +8929,17 @@
|
|
|
8992
8929
|
name: "link"
|
|
8993
8930
|
}),
|
|
8994
8931
|
vue.createTextVNode("\xA0" + vue.toDisplayString(item.name), 1)
|
|
8995
|
-
], 8,
|
|
8932
|
+
], 8, _hoisted_7$f)
|
|
8996
8933
|
])),
|
|
8997
|
-
vue.createElementVNode("view",
|
|
8998
|
-
])) : _ctx.listType == "list" ? (vue.openBlock(), vue.createElementBlock("view",
|
|
8934
|
+
vue.createElementVNode("view", _hoisted_8$a, vue.toDisplayString(item.name), 1)
|
|
8935
|
+
])) : _ctx.listType == "list" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_9$6, [
|
|
8999
8936
|
vue.createElementVNode("view", {
|
|
9000
8937
|
onClick: ($event) => _ctx.fileItemClick(item),
|
|
9001
8938
|
class: vue.normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
|
|
9002
8939
|
}, [
|
|
9003
8940
|
vue.createVNode(_component_nut_icon, { name: "link" }),
|
|
9004
8941
|
vue.createTextVNode("\xA0" + vue.toDisplayString(item.name), 1)
|
|
9005
|
-
], 10,
|
|
8942
|
+
], 10, _hoisted_10$4),
|
|
9006
8943
|
vue.createVNode(_component_nut_icon, {
|
|
9007
8944
|
class: "nut-uploader__preview-img__file__del",
|
|
9008
8945
|
onClick: ($event) => _ctx.onDelete(item, index),
|
|
@@ -9028,26 +8965,7 @@
|
|
|
9028
8965
|
color: "#808080",
|
|
9029
8966
|
name: _ctx.uploadIcon
|
|
9030
8967
|
}), null, 16, ["size", "name"]),
|
|
9031
|
-
|
|
9032
|
-
key: 0,
|
|
9033
|
-
class: "nut-uploader__input",
|
|
9034
|
-
type: "file",
|
|
9035
|
-
capture: "camera",
|
|
9036
|
-
accept: _ctx.accept,
|
|
9037
|
-
multiple: _ctx.multiple,
|
|
9038
|
-
name: _ctx.name,
|
|
9039
|
-
disabled: _ctx.disabled,
|
|
9040
|
-
onChange: _cache[2] || (_cache[2] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
9041
|
-
}, null, 40, _hoisted_15$1)) : (vue.openBlock(), vue.createElementBlock("input", {
|
|
9042
|
-
key: 1,
|
|
9043
|
-
class: "nut-uploader__input",
|
|
9044
|
-
type: "file",
|
|
9045
|
-
accept: _ctx.accept,
|
|
9046
|
-
multiple: _ctx.multiple,
|
|
9047
|
-
name: _ctx.name,
|
|
9048
|
-
disabled: _ctx.disabled,
|
|
9049
|
-
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
9050
|
-
}, null, 40, _hoisted_16$1))
|
|
8968
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.renderInput), { onChange: _ctx.onChange }, null, 40, ["onChange"]))
|
|
9051
8969
|
], 2)) : vue.createCommentVNode("", true)
|
|
9052
8970
|
], 2);
|
|
9053
8971
|
}
|
|
@@ -19930,7 +19848,7 @@
|
|
|
19930
19848
|
}
|
|
19931
19849
|
});
|
|
19932
19850
|
}
|
|
19933
|
-
const version = "3.2.
|
|
19851
|
+
const version = "3.2.8-beta.2";
|
|
19934
19852
|
var nutui_vue_build = { install, version, Locale };
|
|
19935
19853
|
exports2.ActionSheet = ActionSheet;
|
|
19936
19854
|
exports2.Address = Address;
|
package/dist/packages/_es/Col.js
CHANGED