@nutui/nutui 3.1.19-beta.7 → 3.1.20-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 +49 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +3329 -1681
- package/dist/nutui.umd.js +3336 -1682
- package/dist/packages/_es/ActionSheet.js +19 -23
- package/dist/packages/_es/Address.js +17 -13
- package/dist/packages/_es/AddressList.js +616 -0
- package/dist/packages/_es/Audio.js +2 -1
- package/dist/packages/_es/AudioOperate.js +2 -1
- package/dist/packages/_es/Avatar.js +120 -24
- package/dist/packages/_es/AvatarGroup.js +78 -0
- package/dist/packages/_es/BackTop.js +2 -1
- package/dist/packages/_es/Badge.js +2 -1
- package/dist/packages/_es/Barrage.js +2 -1
- package/dist/packages/_es/Button.js +2 -1
- package/dist/packages/_es/Calendar.js +2 -1
- package/dist/packages/_es/CalendarItem.js +2 -1
- package/dist/packages/_es/Card.js +13 -5
- package/dist/packages/_es/Cascader.js +30 -31
- package/dist/packages/_es/Category.js +63 -0
- package/dist/packages/_es/CategoryPane.js +116 -0
- package/dist/packages/_es/Cell.js +2 -1
- package/dist/packages/_es/CellGroup.js +2 -1
- package/dist/packages/_es/Checkbox.js +2 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -1
- package/dist/packages/_es/CircleProgress.js +114 -67
- package/dist/packages/_es/Col.js +12 -4
- package/dist/packages/_es/Collapse.js +2 -1
- package/dist/packages/_es/CollapseItem.js +13 -2
- package/dist/packages/_es/Comment.js +440 -0
- package/dist/packages/_es/CountDown.js +175 -137
- package/dist/packages/_es/CountUp.js +2 -1
- package/dist/packages/_es/DatePicker.js +40 -12
- package/dist/packages/_es/Dialog.js +36 -44
- package/dist/packages/_es/Divider.js +2 -1
- package/dist/packages/_es/Drag.js +2 -1
- package/dist/packages/_es/Ecard.js +22 -11
- package/dist/packages/_es/Elevator.js +2 -1
- package/dist/packages/_es/Empty.js +2 -1
- package/dist/packages/_es/FixedNav.js +2 -1
- package/dist/packages/_es/Form.js +2 -1
- package/dist/packages/_es/FormItem.js +6 -4
- package/dist/packages/_es/Grid.js +2 -1
- package/dist/packages/_es/GridItem.js +2 -1
- package/dist/packages/_es/Icon.js +2 -1
- package/dist/packages/_es/ImagePreview.js +11 -14
- package/dist/packages/_es/Indicator.js +2 -1
- package/dist/packages/_es/InfiniteLoading.js +11 -8
- package/dist/packages/_es/Input.js +5 -3
- package/dist/packages/_es/InputNumber.js +2 -1
- package/dist/packages/_es/Layout.js +2 -1
- package/dist/packages/_es/List.js +7 -3
- package/dist/packages/_es/Menu.js +2 -1
- package/dist/packages/_es/MenuItem.js +2 -1
- package/dist/packages/_es/Navbar.js +2 -1
- package/dist/packages/_es/NoticeBar.js +2 -1
- package/dist/packages/_es/Notify.js +41 -23
- package/dist/packages/_es/NumberKeyboard.js +2 -1
- package/dist/packages/_es/OldPicker.js +2 -1
- package/dist/packages/_es/OverLay.js +2 -1
- package/dist/packages/_es/Pagination.js +2 -1
- package/dist/packages/_es/Picker.js +9 -6
- package/dist/packages/_es/Popover.js +2 -1
- package/dist/packages/_es/Popup.js +7 -1
- package/dist/packages/_es/Price.js +2 -1
- package/dist/packages/_es/Progress.js +19 -4
- package/dist/packages/_es/PullRefresh.js +2 -1
- package/dist/packages/_es/Radio.js +2 -1
- package/dist/packages/_es/RadioGroup.js +2 -1
- package/dist/packages/_es/Range.js +2 -1
- package/dist/packages/_es/Rate.js +2 -1
- package/dist/packages/_es/Row.js +12 -4
- package/dist/packages/_es/SearchBar.js +2 -1
- package/dist/packages/_es/ShortPassword.js +2 -1
- package/dist/packages/_es/SideNavBar.js +2 -1
- package/dist/packages/_es/SideNavBarItem.js +2 -1
- package/dist/packages/_es/Signature.js +9 -10
- package/dist/packages/_es/Skeleton.js +2 -1
- package/dist/packages/_es/Sku.js +17 -14
- package/dist/packages/_es/Step.js +2 -1
- package/dist/packages/_es/Steps.js +2 -1
- package/dist/packages/_es/Sticky.js +2 -1
- package/dist/packages/_es/SubSideNavBar.js +2 -1
- package/dist/packages/_es/Swipe.js +2 -1
- package/dist/packages/_es/Swiper.js +2 -1
- package/dist/packages/_es/SwiperItem.js +2 -1
- package/dist/packages/_es/Switch.js +2 -1
- package/dist/packages/_es/TabPane.js +2 -1
- package/dist/packages/_es/Tabbar.js +2 -1
- package/dist/packages/_es/TabbarItem.js +2 -1
- package/dist/packages/_es/Table.js +21 -18
- package/dist/packages/_es/Tabs.js +27 -24
- package/dist/packages/_es/Tag.js +2 -1
- package/dist/packages/_es/TextArea.js +4 -3
- package/dist/packages/_es/TimeDetail.js +2 -1
- package/dist/packages/_es/TimePannel.js +2 -1
- package/dist/packages/_es/TimeSelect.js +7 -5
- package/dist/packages/_es/Toast.js +2 -1
- package/dist/packages/_es/Uploader.js +43 -52
- package/dist/packages/_es/Video.js +2 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +27 -113
- 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/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 +111 -0
- package/dist/packages/actionsheet/index.scss +0 -4
- package/dist/packages/addresslist/index.scss +144 -0
- package/dist/packages/avatar/index.scss +10 -5
- package/dist/packages/avatargroup/index.scss +14 -0
- package/dist/packages/category/index.scss +38 -0
- package/dist/packages/categorypane/index.scss +124 -0
- package/dist/packages/circleprogress/index.scss +12 -53
- package/dist/packages/col/index.scss +2 -2
- package/dist/packages/collapseitem/index.scss +12 -2
- package/dist/packages/comment/index.scss +353 -0
- package/dist/packages/ecard/index.scss +2 -2
- package/dist/packages/input/index.scss +18 -2
- package/dist/packages/locale/index.d.ts +3 -0
- package/dist/packages/locale/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +8 -0
- package/dist/packages/locale/lang/en-US.js +91 -0
- package/dist/packages/locale/lang/index.js +48 -0
- package/dist/packages/locale/lang/index.scss +1 -0
- package/dist/packages/locale/lang/zh-CN.js +91 -0
- package/dist/packages/locale/lang/zh-TW.js +91 -0
- package/dist/packages/locale/locale/index.d.ts +8 -0
- package/dist/packages/locale/locale/lang/baseLang.d.ts +82 -0
- package/dist/packages/locale/locale/lang/en-US.d.ts +83 -0
- package/dist/packages/locale/locale/lang/zh-CN.d.ts +83 -0
- package/dist/packages/locale/locale/lang/zh-TW.d.ts +83 -0
- package/dist/packages/notify/index.scss +2 -0
- package/dist/packages/popup/index.scss +4 -0
- package/dist/smartips/attributes.json +2542 -0
- package/dist/smartips/tags.json +955 -0
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +5 -0
- package/dist/styles/themes/default.scss +51 -46
- package/dist/styles/themes/jdt.scss +51 -46
- package/dist/styles/variables-jdt.scss +22 -3
- package/dist/styles/variables.scss +21 -2
- package/dist/types/__VUE/actionsheet/index.d.ts +14 -14
- package/dist/types/__VUE/address/index.d.ts +15 -5
- package/dist/types/__VUE/addresslist/components/GeneralShell.d.ts +35 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.d.ts +42 -0
- package/dist/types/__VUE/addresslist/components/LongPressShell.d.ts +47 -0
- package/dist/types/__VUE/addresslist/components/SwipeShell.d.ts +37 -0
- package/dist/types/__VUE/addresslist/index.d.ts +81 -0
- package/dist/types/__VUE/audio/index.d.ts +3 -3
- package/dist/types/__VUE/audiooperate/index.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.d.ts +48 -4
- package/dist/types/__VUE/avatargroup/index.d.ts +93 -0
- package/dist/types/__VUE/backtop/index.d.ts +3 -3
- package/dist/types/__VUE/badge/index.d.ts +3 -3
- package/dist/types/__VUE/barrage/index.d.ts +3 -3
- package/dist/types/__VUE/button/index.d.ts +3 -3
- package/dist/types/__VUE/calendar/index.d.ts +4 -4
- package/dist/types/__VUE/calendaritem/index.d.ts +3 -3
- package/dist/types/__VUE/card/index.d.ts +12 -3
- package/dist/types/__VUE/cascader/cascader-item.d.ts +3 -3
- package/dist/types/__VUE/cascader/index.d.ts +167 -3
- package/dist/types/__VUE/cascader/tree.d.ts +0 -1
- package/dist/types/__VUE/category/index.d.ts +38 -0
- package/dist/types/__VUE/categorypane/index.d.ts +45 -0
- package/dist/types/__VUE/cell/index.d.ts +3 -3
- package/dist/types/__VUE/cellgroup/index.d.ts +3 -3
- package/dist/types/__VUE/checkbox/index.d.ts +3 -3
- package/dist/types/__VUE/checkboxgroup/index.d.ts +3 -3
- package/dist/types/__VUE/circleprogress/index.d.ts +58 -30
- package/dist/types/__VUE/col/index.d.ts +8 -5
- package/dist/types/__VUE/collapse/index.d.ts +4 -4
- package/dist/types/__VUE/collapseitem/index.d.ts +3 -3
- package/dist/types/__VUE/comment/components/CmtBottom.d.ts +52 -0
- package/dist/types/__VUE/comment/components/CmtHeader.d.ts +47 -0
- package/dist/types/__VUE/comment/components/CmtImages.d.ts +51 -0
- package/dist/types/__VUE/comment/index.d.ts +110 -0
- package/dist/types/__VUE/countdown/index.d.ts +81 -67
- package/dist/types/__VUE/countdown/util.d.ts +6 -0
- package/dist/types/__VUE/countup/index.d.ts +3 -3
- package/dist/types/__VUE/datepicker/index.d.ts +13 -4
- package/dist/types/__VUE/dialog/index.d.ts +15 -15
- package/dist/types/__VUE/divider/index.d.ts +3 -3
- package/dist/types/__VUE/drag/index.d.ts +3 -3
- package/dist/types/__VUE/ecard/index.d.ts +4 -3
- package/dist/types/__VUE/elevator/index.d.ts +4 -4
- package/dist/types/__VUE/empty/index.d.ts +3 -3
- package/dist/types/__VUE/fixednav/index.d.ts +4 -4
- package/dist/types/__VUE/form/index.d.ts +3 -3
- package/dist/types/__VUE/formitem/index.d.ts +3 -3
- package/dist/types/__VUE/grid/index.d.ts +3 -3
- package/dist/types/__VUE/griditem/index.d.ts +3 -3
- package/dist/types/__VUE/icon/index.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/index.d.ts +3 -3
- package/dist/types/__VUE/indicator/index.d.ts +3 -3
- package/dist/types/__VUE/infiniteloading/index.d.ts +7 -7
- package/dist/types/__VUE/input/index.d.ts +3 -3
- package/dist/types/__VUE/inputnumber/index.d.ts +3 -3
- package/dist/types/__VUE/layout/index.d.ts +3 -3
- package/dist/types/__VUE/list/index.d.ts +12 -4
- package/dist/types/__VUE/menu/index.d.ts +4 -4
- package/dist/types/__VUE/menuitem/index.d.ts +3 -3
- package/dist/types/__VUE/navbar/index.d.ts +3 -3
- package/dist/types/__VUE/noticebar/index.d.ts +5 -5
- package/dist/types/__VUE/notify/index.d.ts +13 -3
- package/dist/types/__VUE/numberkeyboard/index.d.ts +5 -5
- package/dist/types/__VUE/oldpicker/Column.d.ts +3 -3
- package/dist/types/__VUE/oldpicker/index.d.ts +14 -5
- package/dist/types/__VUE/overlay/index.d.ts +3 -3
- package/dist/types/__VUE/pagination/index.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.d.ts +3 -3
- package/dist/types/__VUE/picker/index.d.ts +14 -5
- package/dist/types/__VUE/popover/index.d.ts +14 -5
- package/dist/types/__VUE/popup/index.d.ts +15 -6
- package/dist/types/__VUE/price/index.d.ts +3 -3
- package/dist/types/__VUE/progress/index.d.ts +4 -3
- package/dist/types/__VUE/pullrefresh/index.d.ts +3 -3
- package/dist/types/__VUE/radio/index.d.ts +3 -3
- package/dist/types/__VUE/radiogroup/index.d.ts +3 -3
- package/dist/types/__VUE/range/index.d.ts +3 -3
- package/dist/types/__VUE/rate/index.d.ts +3 -3
- package/dist/types/__VUE/row/index.d.ts +8 -5
- package/dist/types/__VUE/searchbar/index.d.ts +3 -3
- package/dist/types/__VUE/shortpassword/index.d.ts +4 -4
- package/dist/types/__VUE/sidenavbar/index.d.ts +3 -3
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +3 -3
- package/dist/types/__VUE/signature/index.d.ts +4 -3
- package/dist/types/__VUE/skeleton/index.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +4 -3
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +3 -3
- package/dist/types/__VUE/sku/index.d.ts +15 -5
- package/dist/types/__VUE/step/index.d.ts +3 -3
- package/dist/types/__VUE/steps/index.d.ts +3 -3
- package/dist/types/__VUE/sticky/index.d.ts +3 -3
- package/dist/types/__VUE/subsidenavbar/index.d.ts +3 -3
- package/dist/types/__VUE/swipe/index.d.ts +5 -5
- package/dist/types/__VUE/swiper/index.d.ts +4 -4
- package/dist/types/__VUE/swiperitem/index.d.ts +3 -3
- package/dist/types/__VUE/switch/index.d.ts +3 -3
- package/dist/types/__VUE/tabbar/index.d.ts +4 -4
- package/dist/types/__VUE/tabbaritem/index.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +2 -1
- package/dist/types/__VUE/table/index.d.ts +3 -3
- package/dist/types/__VUE/table/renderColumn.d.ts +5 -10
- package/dist/types/__VUE/table/types.d.ts +2 -2
- package/dist/types/__VUE/tabpane/index.d.ts +3 -3
- package/dist/types/__VUE/tabs/common.d.ts +78 -0
- package/dist/types/__VUE/tabs/index.d.ts +15 -17
- package/dist/types/__VUE/tag/index.d.ts +4 -4
- package/dist/types/__VUE/textarea/index.d.ts +6 -6
- package/dist/types/__VUE/timedetail/index.d.ts +3 -3
- package/dist/types/__VUE/timepannel/index.d.ts +3 -3
- package/dist/types/__VUE/timeselect/index.d.ts +4 -3
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/__VUE/uploader/index.d.ts +5 -5
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -1
- package/dist/types/__VUE/video/index.d.ts +3 -3
- package/dist/types/nutui.d.ts +8 -2
- package/package.json +11 -12
- package/dist/index.d.ts +0 -3
- package/dist/nutui.d.ts +0 -103
|
@@ -14,38 +14,28 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
var __publicField = (obj, key, value) => {
|
|
18
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
19
|
-
return value;
|
|
20
|
-
};
|
|
21
17
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.
|
|
18
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
23
19
|
* (c) 2022 @jdf2e.
|
|
24
20
|
* Released under the MIT License.
|
|
25
21
|
*/
|
|
26
22
|
import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock, createTextVNode } from "vue";
|
|
27
23
|
import { c as createComponent } from "./component.js";
|
|
28
24
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
25
|
+
import "../locale/lang";
|
|
29
26
|
class UploadOptions {
|
|
30
27
|
constructor() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
__publicField(this, "withCredentials", false);
|
|
39
|
-
__publicField(this, "onStart");
|
|
40
|
-
__publicField(this, "taroFilePath");
|
|
41
|
-
__publicField(this, "onProgress");
|
|
42
|
-
__publicField(this, "onSuccess");
|
|
43
|
-
__publicField(this, "onFailure");
|
|
28
|
+
this.url = "";
|
|
29
|
+
this.name = "file";
|
|
30
|
+
this.method = "post";
|
|
31
|
+
this.xhrState = 200;
|
|
32
|
+
this.timeout = 30 * 1e3;
|
|
33
|
+
this.headers = {};
|
|
34
|
+
this.withCredentials = false;
|
|
44
35
|
}
|
|
45
36
|
}
|
|
46
37
|
class Uploader {
|
|
47
38
|
constructor(options) {
|
|
48
|
-
__publicField(this, "options");
|
|
49
39
|
this.options = options;
|
|
50
40
|
}
|
|
51
41
|
upload() {
|
|
@@ -79,48 +69,49 @@ class Uploader {
|
|
|
79
69
|
console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest");
|
|
80
70
|
}
|
|
81
71
|
}
|
|
82
|
-
uploadTaro(uploadFile) {
|
|
72
|
+
uploadTaro(uploadFile, env) {
|
|
83
73
|
var _a;
|
|
84
74
|
const options = this.options;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
(
|
|
75
|
+
if (env === "WEB") {
|
|
76
|
+
this.upload();
|
|
77
|
+
} else {
|
|
78
|
+
const uploadTask = uploadFile({
|
|
79
|
+
url: options.url,
|
|
80
|
+
filePath: options.taroFilePath,
|
|
81
|
+
header: __spreadValues({
|
|
82
|
+
"Content-Type": "multipart/form-data"
|
|
83
|
+
}, options.headers),
|
|
84
|
+
formData: options.formData,
|
|
85
|
+
name: options.name,
|
|
86
|
+
success(response) {
|
|
87
|
+
var _a2, _b;
|
|
88
|
+
if (options.xhrState == response.statusCode) {
|
|
89
|
+
(_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
|
|
90
|
+
} else {
|
|
91
|
+
(_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
fail(e) {
|
|
95
|
+
var _a2;
|
|
96
|
+
(_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
|
|
99
97
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
98
|
+
});
|
|
99
|
+
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
100
|
+
uploadTask.progress((res) => {
|
|
102
101
|
var _a2;
|
|
103
|
-
(_a2 = options.
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
107
|
-
uploadTask.progress((res) => {
|
|
108
|
-
var _a2;
|
|
109
|
-
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
110
|
-
});
|
|
102
|
+
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
111
105
|
}
|
|
112
106
|
}
|
|
113
107
|
const { componentName, create, translate } = createComponent("uploader");
|
|
114
108
|
class FileItem {
|
|
115
109
|
constructor() {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
__publicField(this, "type");
|
|
122
|
-
__publicField(this, "percentage", 0);
|
|
123
|
-
__publicField(this, "formData", new FormData());
|
|
110
|
+
this.status = "ready";
|
|
111
|
+
this.message = translate("ready");
|
|
112
|
+
this.uid = new Date().getTime().toString();
|
|
113
|
+
this.percentage = 0;
|
|
114
|
+
this.formData = new FormData();
|
|
124
115
|
}
|
|
125
116
|
}
|
|
126
117
|
const _sfc_main = create({
|
|
@@ -18,13 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
+
import "../locale/lang";
|
|
28
29
|
const { create, translate } = createComponent("video");
|
|
29
30
|
const _sfc_main = create({
|
|
30
31
|
props: {
|
|
@@ -1,118 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
save: "\u4FDD\u5B58",
|
|
9
|
-
confirm: "\u786E\u8BA4",
|
|
10
|
-
cancel: "\u53D6\u6D88",
|
|
11
|
-
done: "\u5B8C\u6210",
|
|
12
|
-
noData: "\u6682\u65E0\u6570\u636E",
|
|
13
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
14
|
-
select: "\u8BF7\u9009\u62E9",
|
|
15
|
-
video: {
|
|
16
|
-
errorTip: "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25",
|
|
17
|
-
clickRetry: "\u70B9\u51FB\u91CD\u8BD5"
|
|
18
|
-
},
|
|
19
|
-
fixednav: {
|
|
20
|
-
activeText: "\u6536\u8D77\u5BFC\u822A",
|
|
21
|
-
unActiveText: "\u5FEB\u901F\u5BFC\u822A"
|
|
22
|
-
},
|
|
23
|
-
pagination: {
|
|
24
|
-
prev: "\u4E0A\u4E00\u9875",
|
|
25
|
-
next: "\u4E0B\u4E00\u9875"
|
|
26
|
-
},
|
|
27
|
-
calendaritem: {
|
|
28
|
-
weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
|
|
29
|
-
end: "\u7ED3\u675F",
|
|
30
|
-
start: "\u5F00\u59CB",
|
|
31
|
-
title: "\u65E5\u5386\u9009\u62E9",
|
|
32
|
-
monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
|
|
33
|
-
today: "\u4ECA\u5929"
|
|
34
|
-
},
|
|
35
|
-
shortpassword: {
|
|
36
|
-
title: "\u8BF7\u8F93\u5165\u5BC6\u7801",
|
|
37
|
-
desc: "\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1",
|
|
38
|
-
tips: "\u5FD8\u8BB0\u5BC6\u7801"
|
|
39
|
-
},
|
|
40
|
-
uploader: {
|
|
41
|
-
ready: "\u51C6\u5907\u5B8C\u6210",
|
|
42
|
-
readyUpload: "\u51C6\u5907\u4E0A\u4F20",
|
|
43
|
-
waitingUpload: "\u7B49\u5F85\u4E0A\u4F20",
|
|
44
|
-
uploading: "\u4E0A\u4F20\u4E2D",
|
|
45
|
-
success: "\u4E0A\u4F20\u6210\u529F",
|
|
46
|
-
error: "\u4E0A\u4F20\u5931\u8D25"
|
|
47
|
-
},
|
|
48
|
-
countdown: {
|
|
49
|
-
day: "\u5929",
|
|
50
|
-
hour: "\u65F6",
|
|
51
|
-
minute: "\u5206",
|
|
52
|
-
second: "\u79D2"
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const lang = {
|
|
56
|
-
save: "Save",
|
|
57
|
-
confirm: "Confirm",
|
|
58
|
-
cancel: "Cancel",
|
|
59
|
-
done: "Done",
|
|
60
|
-
noData: "No Data",
|
|
61
|
-
placeholder: "Placeholder",
|
|
62
|
-
select: "Select",
|
|
63
|
-
video: {
|
|
64
|
-
errorTip: "Error Tip",
|
|
65
|
-
clickRetry: "Click Retry"
|
|
66
|
-
},
|
|
67
|
-
fixednav: {
|
|
68
|
-
activeText: "Close Nav",
|
|
69
|
-
unActiveText: "Open Nav"
|
|
70
|
-
},
|
|
71
|
-
pagination: {
|
|
72
|
-
prev: "Previous",
|
|
73
|
-
next: "Next"
|
|
74
|
-
},
|
|
75
|
-
calendaritem: {
|
|
76
|
-
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
77
|
-
end: "End",
|
|
78
|
-
start: "Start",
|
|
79
|
-
title: "Calendar",
|
|
80
|
-
monthTitle: (year, month) => `${year}/${month}`,
|
|
81
|
-
today: "Today"
|
|
82
|
-
},
|
|
83
|
-
shortpassword: {
|
|
84
|
-
title: "Please input a password",
|
|
85
|
-
desc: "Verify",
|
|
86
|
-
tips: "Forget password"
|
|
87
|
-
},
|
|
88
|
-
uploader: {
|
|
89
|
-
ready: "Ready",
|
|
90
|
-
readyUpload: "Ready to upload",
|
|
91
|
-
waitingUpload: "Waiting for upload",
|
|
92
|
-
uploading: "Uploading",
|
|
93
|
-
success: "Upload successful",
|
|
94
|
-
error: "Upload failed"
|
|
95
|
-
},
|
|
96
|
-
countdown: {
|
|
97
|
-
day: " Day ",
|
|
98
|
-
hour: " Hour ",
|
|
99
|
-
minute: " Minute ",
|
|
100
|
-
second: " Second "
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
const currentLang = ref("zh-CN");
|
|
104
|
-
const langs = reactive({
|
|
105
|
-
"zh-CN": lang$1,
|
|
106
|
-
"en-US": lang
|
|
107
|
-
});
|
|
108
|
-
class Locale {
|
|
109
|
-
static languages() {
|
|
110
|
-
return langs[currentLang.value];
|
|
111
|
-
}
|
|
112
|
-
static use(lang2) {
|
|
113
|
-
currentLang.value = lang2;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
6
|
+
import { defineComponent } from "vue";
|
|
7
|
+
import locale from "../locale/lang";
|
|
116
8
|
const TypeOfFun = (value) => {
|
|
117
9
|
if (value === null) {
|
|
118
10
|
return "null";
|
|
@@ -161,12 +53,34 @@ const getPropByPath = (obj, keyPath) => {
|
|
|
161
53
|
return "";
|
|
162
54
|
}
|
|
163
55
|
};
|
|
56
|
+
const floatData = (format, dataOp, mapOps) => {
|
|
57
|
+
let mergeFormat = Object.assign({}, format);
|
|
58
|
+
let mergeMapOps = Object.assign({}, mapOps);
|
|
59
|
+
if (Object.keys(dataOp).length > 0) {
|
|
60
|
+
Object.keys(mergeFormat).forEach((keys) => {
|
|
61
|
+
if (mergeMapOps.hasOwnProperty(keys)) {
|
|
62
|
+
const tof = TypeOfFun(mergeMapOps[keys]);
|
|
63
|
+
if (tof == "function") {
|
|
64
|
+
mergeFormat[keys] = mergeMapOps[keys](dataOp);
|
|
65
|
+
}
|
|
66
|
+
if (tof == "string") {
|
|
67
|
+
mergeFormat[keys] = dataOp[mergeMapOps[keys]];
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
if (dataOp[keys])
|
|
71
|
+
mergeFormat[keys] = dataOp[keys];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return mergeFormat;
|
|
75
|
+
}
|
|
76
|
+
return format;
|
|
77
|
+
};
|
|
164
78
|
function createComponent(name) {
|
|
165
|
-
const languages = Locale.languages();
|
|
166
79
|
const componentName = "nut-" + name;
|
|
167
80
|
return {
|
|
168
81
|
componentName,
|
|
169
82
|
translate(keyPath, ...args) {
|
|
83
|
+
const languages = locale.languages();
|
|
170
84
|
const text = getPropByPath(languages, `${name.replace("-", "")}.${keyPath}`) || getPropByPath(languages, keyPath);
|
|
171
85
|
return isFunction(text) ? text(...args) : text;
|
|
172
86
|
},
|
|
@@ -185,4 +99,4 @@ function createComponent(name) {
|
|
|
185
99
|
}
|
|
186
100
|
};
|
|
187
101
|
}
|
|
188
|
-
export { TypeOfFun as T, createComponent as c, getPropByPath as g, isPromise as i };
|
|
102
|
+
export { TypeOfFun as T, isObject as a, createComponent as c, floatData as f, getPropByPath as g, isPromise as i };
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.nut-categorypane__cateList {
|
|
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';/* */
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.nut-addresslist {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
.nut-long-press-shell {
|
|
4
|
+
&__contain {
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: 76px;
|
|
7
|
+
padding: 5px 10px;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border-bottom: 1px solid #f0f0f0;
|
|
10
|
+
color: #333333;
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
position: relative;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
&-mask {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
align-items: center;
|
|
26
|
+
padding: 0 40px;
|
|
27
|
+
z-index: 2001;
|
|
28
|
+
&-copy,
|
|
29
|
+
&-set,
|
|
30
|
+
&-del {
|
|
31
|
+
height: 55px;
|
|
32
|
+
width: 55px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
text-align: center;
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
}
|
|
41
|
+
&-set {
|
|
42
|
+
color: #fff;
|
|
43
|
+
background-color: #f5a623;
|
|
44
|
+
}
|
|
45
|
+
&-del {
|
|
46
|
+
color: #fff;
|
|
47
|
+
background-color: #e1251b;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//设置mask
|
|
52
|
+
&__mask-bottom {
|
|
53
|
+
position: fixed;
|
|
54
|
+
top: 0;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
left: 0;
|
|
57
|
+
right: 0;
|
|
58
|
+
z-index: 2000;
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.nut-long-press-shell:last-child {
|
|
63
|
+
&__contain {
|
|
64
|
+
border-bottom: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.nut-swipe-shell,
|
|
68
|
+
.nut-general-shell {
|
|
69
|
+
// width:100%;
|
|
70
|
+
min-height: 76px;
|
|
71
|
+
padding: 5px 10px;
|
|
72
|
+
background-color: #fff;
|
|
73
|
+
border-bottom: 1px solid #f0f0f0;
|
|
74
|
+
color: #333333;
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
position: relative;
|
|
79
|
+
}
|
|
80
|
+
.nut-swipe-shell:last-child,
|
|
81
|
+
.nut-general-shell:last-child {
|
|
82
|
+
border-bottom: none;
|
|
83
|
+
}
|
|
84
|
+
.nut-item-contents {
|
|
85
|
+
&__contain {
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
&__info {
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: space-between;
|
|
91
|
+
&-contact {
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: flex-start;
|
|
94
|
+
font-weight: bold;
|
|
95
|
+
align-items: center;
|
|
96
|
+
&-name {
|
|
97
|
+
max-width: 145px;
|
|
98
|
+
word-wrap: break-word;
|
|
99
|
+
}
|
|
100
|
+
&-tel {
|
|
101
|
+
margin-left: 8px;
|
|
102
|
+
max-width: 110px;
|
|
103
|
+
word-wrap: break-word;
|
|
104
|
+
}
|
|
105
|
+
&-default {
|
|
106
|
+
margin-left: 5px;
|
|
107
|
+
padding: 0 6px;
|
|
108
|
+
height: 16px;
|
|
109
|
+
line-height: 16px;
|
|
110
|
+
background: #f2270c;
|
|
111
|
+
border-radius: 2px;
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
color: #fff;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
&-handle {
|
|
117
|
+
&-edit {
|
|
118
|
+
margin-left: 15px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
&__addr {
|
|
123
|
+
color: #666666;
|
|
124
|
+
font-size: 12px;
|
|
125
|
+
margin-top: 5px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
&__bottom {
|
|
129
|
+
position: fixed;
|
|
130
|
+
left: 0;
|
|
131
|
+
right: 0;
|
|
132
|
+
bottom: 0;
|
|
133
|
+
bottom: constant(safe-area-inset-bottom);
|
|
134
|
+
bottom: env(safe-area-inset-bottom);
|
|
135
|
+
width: 100%;
|
|
136
|
+
padding: 12px 18px 24px;
|
|
137
|
+
z-index: 100000;
|
|
138
|
+
background-color: #fff;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.nut-addresslist:last-child {
|
|
143
|
+
padding-bottom: 84px;
|
|
144
|
+
}
|