@nutui/nutui 3.2.7 → 3.2.8-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/dist/nutui.es.js +1931 -3371
- package/dist/nutui.umd.js +1928 -3369
- package/dist/packages/_es/ActionSheet.js +2 -5
- package/dist/packages/_es/Address.js +162 -250
- package/dist/packages/_es/AddressList.js +229 -307
- 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 +2 -5
- 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 +2 -2
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +4 -11
- package/dist/packages/_es/CollapseItem.js +8 -5
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +2 -10
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +8 -17
- package/dist/packages/_es/Dialog.js +38 -63
- 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 +2 -2
- 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 +39 -31
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +2 -2
- 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 +126 -220
- package/dist/packages/_es/Indicator.js +4 -4
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +107 -123
- 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 +14 -1
- package/dist/packages/_es/MenuItem.js +10 -7
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +5 -7
- package/dist/packages/_es/NumberKeyboard.js +4 -4
- package/dist/packages/_es/OverLay.js +60 -63
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +25 -50
- package/dist/packages/_es/Popover.js +111 -930
- package/dist/packages/_es/Popup.js +105 -217
- 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 +4 -4
- 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 +4 -7
- 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 +2 -2
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +2 -2
- 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 +4 -4
- package/dist/packages/_es/Toast.js +5 -6
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +2 -2
- 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 +22 -2
- 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 +32 -0
- package/dist/packages/_es/mountComponent.js +42 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/props.js +80 -0
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +1 -1
- package/dist/packages/address/index.scss +7 -2
- package/dist/packages/addresslist/index.scss +61 -101
- package/dist/packages/imagepreview/index.scss +9 -1
- package/dist/packages/inputnumber/index.scss +5 -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/packages/menuitem/index.scss +0 -15
- package/dist/packages/notify/index.scss +2 -2
- package/dist/packages/overlay/index.scss +2 -1
- package/dist/packages/picker/index.scss +20 -12
- package/dist/packages/popover/index.scss +191 -363
- package/dist/packages/popup/index.scss +3 -14
- package/dist/smartips/attributes.json +59 -55
- package/dist/smartips/tags.json +16 -19
- package/dist/smartips/web-types.json +114 -112
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -52
- package/dist/styles/themes/jdb.scss +51 -52
- package/dist/styles/themes/jddkh.scss +51 -52
- package/dist/styles/themes/jdt.scss +51 -52
- package/dist/styles/variables.scss +9 -0
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +58 -54
- package/dist/types/__VUE/address/index.vue.d.ts +72 -92
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +29 -9
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +4 -13
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -9
- package/dist/types/__VUE/addresslist/index.vue.d.ts +23 -20
- 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/cascader/index.vue.d.ts +47 -52
- 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/countdown/index.vue.d.ts +0 -1
- package/dist/types/__VUE/countdown/util.d.ts +0 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +55 -60
- package/dist/types/__VUE/dialog/index.d.ts +0 -3
- package/dist/types/__VUE/dialog/index.vue.d.ts +48 -57
- package/dist/types/__VUE/form/common.d.ts +4 -2
- package/dist/types/__VUE/form/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +27 -20
- package/dist/types/__VUE/imagepreview/index.d.ts +19 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +56 -42
- package/dist/types/__VUE/imagepreview/types.d.ts +44 -0
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/input/index.vue.d.ts +37 -25
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- 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/notify/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/overlay/index.vue.d.ts +11 -12
- package/dist/types/__VUE/picker/Column.vue.d.ts +0 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +56 -63
- package/dist/types/__VUE/popover/index.vue.d.ts +37 -140
- package/dist/types/__VUE/popup/common.d.ts +103 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +55 -1591
- package/dist/types/__VUE/popup/props.d.ts +82 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +4 -4
- package/dist/types/__VUE/sku/index.vue.d.ts +56 -61
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -3
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/video/index.vue.d.ts +3 -3
- package/dist/types/nutui.d.ts +1 -2
- package/package.json +2 -3
- package/dist/packages/_es/PullRefresh.js +0 -349
- package/dist/packages/pullrefresh/index.scss +0 -71
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +0 -47
- package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -128
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
- package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -36,7 +36,7 @@ const _sfc_main = create({
|
|
|
36
36
|
type: [Boolean],
|
|
37
37
|
default: false
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
teleportDisable: {
|
|
40
40
|
type: Boolean,
|
|
41
41
|
default: false
|
|
42
42
|
}
|
|
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
84
|
position: "bottom",
|
|
85
85
|
closeable: "",
|
|
86
86
|
round: "",
|
|
87
|
-
|
|
87
|
+
teleportDisable: _ctx.teleportDisable,
|
|
88
88
|
visible: _ctx.visible,
|
|
89
89
|
style: normalizeStyle(_ctx.popStyle),
|
|
90
90
|
"lock-scroll": _ctx.lockScroll,
|
|
@@ -111,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
111
111
|
], 2)
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
114
|
-
}, 8, ["
|
|
114
|
+
}, 8, ["teleportDisable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
115
115
|
}
|
|
116
116
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
117
117
|
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,6 +8,7 @@ import { c as createComponent } from "./component.js";
|
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
+
import { C as CreateComponent } from "./mountComponent.js";
|
|
11
12
|
import "./pxCheck.js";
|
|
12
13
|
const { create } = createComponent("toast");
|
|
13
14
|
const _sfc_main = create({
|
|
@@ -272,11 +273,9 @@ const mountToast = (opts) => {
|
|
|
272
273
|
opts.id = _id;
|
|
273
274
|
idsMap.push(opts.id);
|
|
274
275
|
optsMap.push(opts);
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
render(instance, container);
|
|
279
|
-
document.body.appendChild(container);
|
|
276
|
+
CreateComponent(opts, {
|
|
277
|
+
wrapper: Toast
|
|
278
|
+
});
|
|
280
279
|
return ToastFunction;
|
|
281
280
|
};
|
|
282
281
|
const errorMsg = (msg) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock, mergeProps, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent,
|
|
7
|
+
import { c as createComponent, d as isPromise } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
class UploadOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -41,11 +41,16 @@ const TypeOfFun = (value) => {
|
|
|
41
41
|
return "unknow";
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
+
const isArray = Array.isArray;
|
|
45
|
+
const isDate = (val) => val instanceof Date;
|
|
44
46
|
const isFunction = (val) => typeof val === "function";
|
|
47
|
+
const isString = (val) => typeof val === "string";
|
|
45
48
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
46
49
|
const isPromise = (val) => {
|
|
47
50
|
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
48
51
|
};
|
|
52
|
+
const docu = document;
|
|
53
|
+
const body = docu.body;
|
|
49
54
|
const getPropByPath = (obj, keyPath) => {
|
|
50
55
|
try {
|
|
51
56
|
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
@@ -82,6 +87,21 @@ function myFixed(num, digit = 2) {
|
|
|
82
87
|
num = parseFloat(num);
|
|
83
88
|
return (Math.round((num + Number.EPSILON) * Math.pow(10, digit)) / Math.pow(10, digit)).toFixed(digit);
|
|
84
89
|
}
|
|
90
|
+
function preventDefault(event, isStopPropagation) {
|
|
91
|
+
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
}
|
|
94
|
+
if (isStopPropagation) {
|
|
95
|
+
event.stopPropagation();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const padZero = (num, length = 2) => {
|
|
99
|
+
num += "";
|
|
100
|
+
while (num.length < length) {
|
|
101
|
+
num = "0" + num;
|
|
102
|
+
}
|
|
103
|
+
return num.toString();
|
|
104
|
+
};
|
|
85
105
|
function createComponent(name) {
|
|
86
106
|
const componentName = "nut-" + name;
|
|
87
107
|
return {
|
|
@@ -106,4 +126,4 @@ function createComponent(name) {
|
|
|
106
126
|
}
|
|
107
127
|
};
|
|
108
128
|
}
|
|
109
|
-
export { TypeOfFun as T,
|
|
129
|
+
export { TypeOfFun as T, preventDefault as a, body as b, createComponent as c, isPromise as d, isObject as e, isString as f, getPropByPath as g, isFunction as h, isDate as i, isArray as j, floatData as k, myFixed as m, padZero as p };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { d as isPromise } from "./component.js";
|
|
7
|
+
const funInterceptor = (interceptor, {
|
|
8
|
+
args = [],
|
|
9
|
+
done,
|
|
10
|
+
canceled
|
|
11
|
+
}) => {
|
|
12
|
+
if (interceptor) {
|
|
13
|
+
const returnVal = interceptor.apply(null, args);
|
|
14
|
+
if (isPromise(returnVal)) {
|
|
15
|
+
returnVal.then((value) => {
|
|
16
|
+
if (value) {
|
|
17
|
+
done();
|
|
18
|
+
} else if (canceled) {
|
|
19
|
+
canceled();
|
|
20
|
+
}
|
|
21
|
+
}).catch(() => {
|
|
22
|
+
});
|
|
23
|
+
} else if (returnVal) {
|
|
24
|
+
done();
|
|
25
|
+
} else if (canceled) {
|
|
26
|
+
canceled();
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
done();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export { funInterceptor as f };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { createApp } from "vue";
|
|
7
|
+
import { f as isString, h as isFunction } from "./component.js";
|
|
8
|
+
const CreateComponent = (options, component) => {
|
|
9
|
+
let elWarp = document.body;
|
|
10
|
+
const teleport = options.teleport || "body";
|
|
11
|
+
if (teleport != "body") {
|
|
12
|
+
if (isString(teleport)) {
|
|
13
|
+
elWarp = document.querySelector(teleport);
|
|
14
|
+
} else {
|
|
15
|
+
elWarp = options.teleport;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const root = document.createElement("view");
|
|
19
|
+
const name = component.name && component.name + "-";
|
|
20
|
+
const id1 = options.id || new Date().getTime();
|
|
21
|
+
root.id = name + id1;
|
|
22
|
+
let Wrapper = {};
|
|
23
|
+
if (isFunction(component.wrapper)) {
|
|
24
|
+
Wrapper = component.wrapper(elWarp, root);
|
|
25
|
+
} else {
|
|
26
|
+
Wrapper = component.wrapper;
|
|
27
|
+
}
|
|
28
|
+
const instance = createApp(Wrapper, options);
|
|
29
|
+
const componens = component.components;
|
|
30
|
+
componens && componens.forEach((comp) => {
|
|
31
|
+
instance.use(comp);
|
|
32
|
+
});
|
|
33
|
+
elWarp.appendChild(root);
|
|
34
|
+
return {
|
|
35
|
+
instance: instance.mount(root),
|
|
36
|
+
unmount: () => {
|
|
37
|
+
instance.unmount();
|
|
38
|
+
elWarp.removeChild(root);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export { CreateComponent as C };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const popupProps = {
|
|
7
|
+
visible: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: false
|
|
10
|
+
},
|
|
11
|
+
zIndex: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
default: 2e3
|
|
14
|
+
},
|
|
15
|
+
duration: {
|
|
16
|
+
type: [Number, String],
|
|
17
|
+
default: 0.3
|
|
18
|
+
},
|
|
19
|
+
lockScroll: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
closeOnClickOverlay: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
position: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "center"
|
|
30
|
+
},
|
|
31
|
+
transition: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
style: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: {}
|
|
38
|
+
},
|
|
39
|
+
popClass: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
closeable: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
closeIconPosition: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "top-right"
|
|
50
|
+
},
|
|
51
|
+
closeIcon: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "close"
|
|
54
|
+
},
|
|
55
|
+
destroyOnClose: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: true
|
|
58
|
+
},
|
|
59
|
+
teleport: {
|
|
60
|
+
type: [String, Element],
|
|
61
|
+
default: "body"
|
|
62
|
+
},
|
|
63
|
+
overlay: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
66
|
+
},
|
|
67
|
+
round: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
},
|
|
71
|
+
teleportDisable: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false
|
|
74
|
+
},
|
|
75
|
+
safeAreaInsetBottom: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
export { popupProps as p };
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.custom-address {
|
|
12
|
-
.region-tab {
|
|
12
|
+
.nut-address-region-tab {
|
|
13
13
|
color: $dark-color;
|
|
14
14
|
}
|
|
15
15
|
.region-con {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
// 请选择
|
|
64
64
|
.custom-address {
|
|
65
65
|
display: block;
|
|
66
|
-
.region-tab {
|
|
66
|
+
.nut-address-region-tab {
|
|
67
67
|
position: relative;
|
|
68
68
|
margin-top: 32px;
|
|
69
69
|
padding: 0 20px;
|
|
@@ -235,4 +235,9 @@
|
|
|
235
235
|
color: $white;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
+
|
|
239
|
+
&-select-icon {
|
|
240
|
+
margin-right: $address-item-margin-right;
|
|
241
|
+
color: $address-icon-color !important;
|
|
242
|
+
}
|
|
238
243
|
}
|
|
@@ -1,34 +1,19 @@
|
|
|
1
1
|
.nut-theme-dark {
|
|
2
2
|
.nut-addresslist {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
background-color: $dark-background2;
|
|
6
|
-
border-bottom: 1px solid $dark-color-gray;
|
|
7
|
-
color: $dark-color;
|
|
8
|
-
&-mask {
|
|
9
|
-
background-color: $dark-color3;
|
|
10
|
-
&-copy {
|
|
11
|
-
color: $dark-color-gray;
|
|
12
|
-
background-color: $dark-color;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.nut-swipe-shell,
|
|
18
|
-
.nut-general-shell {
|
|
3
|
+
&-swipe,
|
|
4
|
+
&-general {
|
|
19
5
|
background-color: $dark-background2;
|
|
20
6
|
border-bottom: 1px solid $dark-color-gray;
|
|
21
7
|
color: $dark-color;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
background: $addresslist-contnts-contact-default;
|
|
28
|
-
color: $addresslist-contnts-contact-color;
|
|
29
|
-
}
|
|
8
|
+
&__mask {
|
|
9
|
+
background-color: $dark-color3;
|
|
10
|
+
&-copy {
|
|
11
|
+
color: $dark-color-gray;
|
|
12
|
+
background-color: $dark-color;
|
|
30
13
|
}
|
|
31
14
|
}
|
|
15
|
+
}
|
|
16
|
+
&-item {
|
|
32
17
|
&__addr {
|
|
33
18
|
color: $dark-color-gray;
|
|
34
19
|
}
|
|
@@ -40,73 +25,11 @@
|
|
|
40
25
|
}
|
|
41
26
|
.nut-addresslist {
|
|
42
27
|
overflow: hidden;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
width: 100%;
|
|
46
|
-
min-height: 76px;
|
|
47
|
-
padding: 5px 10px;
|
|
48
|
-
background-color: $addresslist-bg;
|
|
49
|
-
border-bottom: 1px solid $addresslist-border;
|
|
50
|
-
color: $addresslist-font-color;
|
|
51
|
-
font-size: $addresslist-font-size;
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
position: relative;
|
|
55
|
-
box-sizing: border-box;
|
|
56
|
-
&-mask {
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 0;
|
|
59
|
-
left: 0;
|
|
60
|
-
bottom: 0;
|
|
61
|
-
right: 0;
|
|
62
|
-
background-color: $addresslist-mask-bg;
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: space-around;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding: 0 40px;
|
|
67
|
-
z-index: 2001;
|
|
68
|
-
&-copy,
|
|
69
|
-
&-set,
|
|
70
|
-
&-del {
|
|
71
|
-
height: 55px;
|
|
72
|
-
width: 55px;
|
|
73
|
-
border-radius: 50%;
|
|
74
|
-
text-align: center;
|
|
75
|
-
background-color: $white;
|
|
76
|
-
font-size: 14px;
|
|
77
|
-
display: flex;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
align-items: center;
|
|
80
|
-
}
|
|
81
|
-
&-set {
|
|
82
|
-
color: $white;
|
|
83
|
-
background-color: $addresslist-set-bg;
|
|
84
|
-
}
|
|
85
|
-
&-del {
|
|
86
|
-
color: $white;
|
|
87
|
-
background-color: $addresslist-del-bg;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
//设置mask
|
|
92
|
-
&__mask-bottom {
|
|
93
|
-
position: fixed;
|
|
94
|
-
top: 0;
|
|
95
|
-
bottom: 0;
|
|
96
|
-
left: 0;
|
|
97
|
-
right: 0;
|
|
98
|
-
z-index: 2000;
|
|
99
|
-
background-color: transparent;
|
|
100
|
-
}
|
|
28
|
+
&:last-child {
|
|
29
|
+
padding-bottom: 84px;
|
|
101
30
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
border-bottom: none;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
.nut-swipe-shell,
|
|
108
|
-
.nut-general-shell {
|
|
109
|
-
// width:100%;
|
|
31
|
+
&-swipe,
|
|
32
|
+
&-general {
|
|
110
33
|
min-height: 76px;
|
|
111
34
|
padding: 5px 10px;
|
|
112
35
|
background-color: $addresslist-bg;
|
|
@@ -116,15 +39,46 @@
|
|
|
116
39
|
display: flex;
|
|
117
40
|
align-items: center;
|
|
118
41
|
position: relative;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
42
|
+
&:last-child {
|
|
43
|
+
border-bottom: none;
|
|
44
|
+
}
|
|
45
|
+
&__mask {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
background-color: $addresslist-mask-bg;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-around;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 0 40px;
|
|
56
|
+
z-index: 2001;
|
|
57
|
+
&-copy,
|
|
58
|
+
&-set,
|
|
59
|
+
&-del {
|
|
60
|
+
height: 55px;
|
|
61
|
+
width: 55px;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
text-align: center;
|
|
64
|
+
background-color: $white;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
&-set {
|
|
71
|
+
color: $white;
|
|
72
|
+
background-color: $addresslist-set-bg;
|
|
73
|
+
}
|
|
74
|
+
&-del {
|
|
75
|
+
color: $white;
|
|
76
|
+
background-color: $addresslist-del-bg;
|
|
77
|
+
}
|
|
127
78
|
}
|
|
79
|
+
}
|
|
80
|
+
&-item {
|
|
81
|
+
width: 100%;
|
|
128
82
|
&__info {
|
|
129
83
|
display: flex;
|
|
130
84
|
justify-content: space-between;
|
|
@@ -178,7 +132,13 @@
|
|
|
178
132
|
background-color: $addresslist-bg;
|
|
179
133
|
box-sizing: border-box;
|
|
180
134
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
135
|
+
.nut-addresslist__mask-bottom {
|
|
136
|
+
position: fixed;
|
|
137
|
+
top: 0;
|
|
138
|
+
bottom: 0;
|
|
139
|
+
left: 0;
|
|
140
|
+
right: 0;
|
|
141
|
+
z-index: 2000;
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
}
|
|
184
144
|
}
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
z-index: 2002;
|
|
41
41
|
top: 50px;
|
|
42
42
|
right: 15px;
|
|
43
|
+
|
|
44
|
+
&-right {
|
|
45
|
+
right: 10px;
|
|
46
|
+
}
|
|
47
|
+
&-left {
|
|
48
|
+
left: 10px;
|
|
49
|
+
}
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
.popup-bg {
|
|
@@ -52,11 +59,12 @@
|
|
|
52
59
|
background-color: transparent;
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
|
-
.custom-pop {
|
|
62
|
+
.nut-imagepreview-custom-pop {
|
|
56
63
|
height: 100%;
|
|
57
64
|
background: transparent !important;
|
|
58
65
|
display: flex;
|
|
59
66
|
align-items: center;
|
|
67
|
+
width: 100%;
|
|
60
68
|
}
|
|
61
69
|
.nut-imagepreview-swiper .nut-swiper-item {
|
|
62
70
|
display: flex;
|
|
@@ -50,10 +50,14 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
input,
|
|
53
|
-
&__text--readonly
|
|
53
|
+
&__text--readonly,
|
|
54
|
+
&__text--input {
|
|
54
55
|
width: $inputnumber-input-width;
|
|
55
56
|
height: 100%;
|
|
56
57
|
text-align: center;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
57
61
|
outline: none;
|
|
58
62
|
border: $inputnumber-input-border;
|
|
59
63
|
font-size: $inputnumber-input-font-size;
|