@nutui/nutui 3.1.22-beta.3 → 3.1.22-beta.5
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 +2074 -1902
- package/dist/nutui.umd.js +1024 -852
- package/dist/packages/_es/ActionSheet.js +2 -21
- package/dist/packages/_es/Address.js +5 -24
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +22 -0
- package/dist/packages/_es/Audio.js +3 -22
- package/dist/packages/_es/AudioOperate.js +2 -21
- package/dist/packages/_es/Avatar.js +3 -19
- 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 +13 -7
- package/dist/packages/_es/CalendarItem.js +2 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +7 -39
- 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 +31 -22
- package/dist/packages/_es/CollapseItem.js +40 -62
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +13 -0
- package/dist/packages/_es/CountDown.js +4 -23
- package/dist/packages/_es/CountUp.js +3 -22
- package/dist/packages/_es/DatePicker.js +5 -24
- package/dist/packages/_es/Dialog.js +2 -21
- package/dist/packages/_es/Divider.js +2 -21
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +16 -35
- package/dist/packages/_es/Ellipsis.js +64 -0
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +2 -2
- 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 +31 -0
- package/dist/packages/_es/ImagePreview.js +66 -74
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +3 -22
- package/dist/packages/_es/Input.js +2 -2
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +3 -22
- package/dist/packages/_es/Menu.js +37 -22
- package/dist/packages/_es/MenuItem.js +27 -24
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +3 -22
- package/dist/packages/_es/Notify.js +4 -23
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +6 -25
- package/dist/packages/_es/OverLay.js +3 -19
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +6 -25
- package/dist/packages/_es/Popover.js +2 -21
- package/dist/packages/_es/Popup.js +5 -24
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +3 -19
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +4 -23
- package/dist/packages/_es/Rate.js +35 -14
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +3 -22
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +2 -21
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +3 -22
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +2 -21
- package/dist/packages/_es/Step.js +3 -22
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +3 -22
- package/dist/packages/_es/Swipe.js +3 -22
- 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 +2 -2
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +3 -22
- package/dist/packages/_es/Tabs.js +2 -18
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +3 -22
- package/dist/packages/_es/TimePannel.js +3 -22
- package/dist/packages/_es/TimeSelect.js +12 -12
- package/dist/packages/_es/Toast.js +4 -23
- package/dist/packages/_es/Uploader.js +5 -21
- package/dist/packages/_es/Video.js +3 -22
- 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 +8 -8
- package/dist/packages/_es/index5.js +123 -86
- 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/animate/index.scss +299 -0
- package/dist/packages/cell/index.scss +7 -1
- package/dist/packages/checkbox/index.scss +10 -0
- package/dist/packages/configprovider/index.scss +2 -0
- package/dist/packages/ellipsis/index.scss +12 -0
- package/dist/packages/formitem/index.scss +12 -0
- package/dist/packages/griditem/index.scss +11 -0
- package/dist/packages/image/index.scss +39 -0
- package/dist/packages/imagepreview/index.scss +21 -2
- package/dist/packages/input/index.scss +13 -0
- package/dist/packages/inputnumber/index.scss +21 -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 +45 -36
- package/dist/packages/menuitem/index.scss +4 -0
- package/dist/packages/navbar/index.scss +9 -0
- package/dist/packages/pagination/index.scss +19 -0
- package/dist/packages/radio/index.scss +18 -0
- package/dist/packages/range/index.scss +19 -0
- package/dist/packages/rate/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +21 -0
- package/dist/packages/switch/index.scss +1 -0
- package/dist/packages/tabbar/index.scss +5 -0
- package/dist/packages/tabbaritem/index.scss +7 -0
- package/dist/packages/tabpane/index.scss +5 -0
- package/dist/packages/tabs/index.scss +22 -0
- package/dist/packages/textarea/index.scss +8 -0
- package/dist/smartips/attributes.json +132 -4
- package/dist/smartips/tags.json +53 -6
- package/dist/smartips/web-types.json +6945 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +3 -1
- package/dist/styles/font/demo_index.html +49 -3
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +15 -15
- package/dist/styles/font/iconfont.json +14 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +53 -49
- package/dist/styles/themes/jdb.scss +53 -49
- package/dist/styles/themes/jdt.scss +53 -49
- package/dist/styles/variables-jdb.scss +9 -0
- package/dist/styles/variables-jdt.scss +9 -0
- package/dist/styles/variables.scss +12 -0
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/animate/index.vue.d.ts +48 -0
- package/dist/types/__VUE/animate/type.d.ts +6 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +2 -2
- package/dist/types/__VUE/checkbox/index.vue.d.ts +2 -2
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapse/index.vue.d.ts +5 -3
- package/dist/types/__VUE/configprovider/common.d.ts +20 -0
- package/dist/types/__VUE/configprovider/index.vue.d.ts +33 -0
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/ecard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +72 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
- package/dist/types/__VUE/image/index.vue.d.ts +105 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +36 -2
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +6 -6
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +29 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +12 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/common.d.ts +149 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +19 -9
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/textarea/index.vue.d.ts +2 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +5 -1
- package/package.json +5 -3
|
@@ -1,24 +1,5 @@
|
|
|
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 = (a2, b2) => {
|
|
9
|
-
for (var prop in b2 || (b2 = {}))
|
|
10
|
-
if (__hasOwnProp.call(b2, prop))
|
|
11
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b2)) {
|
|
14
|
-
if (__propIsEnum.call(b2, prop))
|
|
15
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a2;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -30,7 +11,7 @@ import "../locale/lang";
|
|
|
30
11
|
import "./OverLay.js";
|
|
31
12
|
import "./Icon.js";
|
|
32
13
|
import "./pxCheck.js";
|
|
33
|
-
const { componentName: b, create: T } = e("actionsheet"), k = T({ props:
|
|
14
|
+
const { componentName: b, create: T } = e("actionsheet"), k = T({ props: { ...y, cancelTxt: { type: String, default: "" }, optionTag: { type: String, default: "name" }, optionSubTag: { type: String, default: "subname" }, chooseTagValue: { type: String, default: "" }, title: { type: String, default: "" }, color: { type: String, default: "#ee0a24" }, description: { type: String, default: "" }, menuItems: { type: Array, default: () => [] }, isWrapTeleport: { type: Boolean, default: true } }, emits: ["cancel", "close", "choose", "update:visible"], setup: (e2, { emit: i2 }) => ({ slotDefault: !!t().default, isHighlight: (t2) => e2.chooseTagValue && e2.chooseTagValue === t2[e2.optionTag] ? e2.color : "", cancelActionSheet: () => {
|
|
34
15
|
i2("cancel"), i2("update:visible", false);
|
|
35
16
|
}, chooseItem: (e3, t2) => {
|
|
36
17
|
e3.disable || e3.loading || (i2("choose", e3, t2), i2("update:visible", false));
|
|
@@ -1,24 +1,5 @@
|
|
|
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 = (a2, b2) => {
|
|
9
|
-
for (var prop in b2 || (b2 = {}))
|
|
10
|
-
if (__hasOwnProp.call(b2, prop))
|
|
11
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b2)) {
|
|
14
|
-
if (__propIsEnum.call(b2, prop))
|
|
15
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a2;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -30,7 +11,7 @@ import "../locale/lang";
|
|
|
30
11
|
import "./OverLay.js";
|
|
31
12
|
import "./Icon.js";
|
|
32
13
|
import "./pxCheck.js";
|
|
33
|
-
const { componentName: T, create: S, translate: N } = A("address"), E = S({ inheritAttrs: false, props:
|
|
14
|
+
const { componentName: T, create: S, translate: N } = A("address"), E = S({ inheritAttrs: false, props: { ...I, modelValue: { type: Array, default: () => [] }, type: { type: String, default: "custom" }, customAddressTitle: { type: String, default: "" }, province: { type: Array, default: () => [] }, city: { type: Array, default: () => [] }, country: { type: Array, default: () => [] }, town: { type: Array, default: () => [] }, isShowCustomAddress: { type: Boolean, default: true }, existAddress: { type: Array, default: () => [] }, existAddressTitle: { type: String, default: "" }, customAndExistTitle: { type: String, default: "" }, defaultIcon: { type: String, default: "location2" }, selectedIcon: { type: String, default: "Check" }, closeBtnIcon: { type: String, default: "circle-close" }, backBtnIcon: { type: String, default: "left" }, height: { type: [String, Number], default: "200px" }, columnsPlaceholder: { type: [String, Array], default: "" } }, emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"], setup(n2, { emit: c2 }) {
|
|
34
15
|
const r2 = e(null), u2 = e(null), d2 = e(n2.visible), v2 = e(n2.type), p2 = e(0), m2 = e(["province", "city", "country", "town"]), y2 = e([""]), f2 = t(() => n2.type === "custom2"), g2 = (e2) => {
|
|
35
16
|
if (!Array.isArray(e2))
|
|
36
17
|
throw new TypeError("params muse be array.");
|
|
@@ -122,7 +103,7 @@ const { componentName: T, create: S, translate: N } = A("address"), E = S({ inhe
|
|
|
122
103
|
e2.forEach((e3, t2) => {
|
|
123
104
|
e3.selectedAddress && (x2 = e3);
|
|
124
105
|
});
|
|
125
|
-
}),
|
|
106
|
+
}), { showPopup: d2, privateType: v2, tabIndex: p2, tabName: m2, regionList: h2, selectedRegion: b2, selectedExistAddress: x2, switchModule: () => {
|
|
126
107
|
v2.value == "exist" ? v2.value = "custom" : v2.value = "exist", j2(), c2("switch-module", { type: v2.value });
|
|
127
108
|
}, closeWay: w2, close: R2, getTabName: C2, nextAreaList: E2, regionLine: r2, tabRegion: u2, lineDistance: k2, changeRegionTab: (e2, t2, l2) => {
|
|
128
109
|
C2(e2, l2) && (p2.value = l2, S2());
|
|
@@ -136,10 +117,10 @@ const { componentName: T, create: S, translate: N } = A("address"), E = S({ inhe
|
|
|
136
117
|
w2.value = "mask";
|
|
137
118
|
}, handClose: T2, handleElevatorItem: (e2, t2) => {
|
|
138
119
|
E2(t2);
|
|
139
|
-
}, initCustomSelected: A2
|
|
120
|
+
}, initCustomSelected: A2, ...i(n2), translate: N };
|
|
140
121
|
} }), j = { class: "nut-address" }, R = { class: "nut-address__header" }, L = { class: "nut-address__header__title" }, _ = { key: 0, class: "custom-address" }, B = { class: "region-tab", ref: "tabRegion" }, P = ["onClick"], O = { class: "region-con" }, V = { class: "region-group" }, W = ["onClick"], M = { key: 1, class: "custom-address" }, D = { class: "region-tab", ref: "tabRegion" }, z = ["onClick"], U = { class: "elevator-group" }, q = { key: 2, class: "exist-address" }, F = { class: "exist-address-group" }, G = { class: "exist-ul" }, H = ["onClick"], J = { class: "exist-item-info" }, K = { key: 0, class: "exist-item-info-top" }, Q = { class: "exist-item-info-name" }, X = { class: "exist-item-info-phone" }, Y = { class: "exist-item-info-bottom" }, Z = { class: "btn" };
|
|
141
122
|
var $ = C(E, [["render", function(e2, t2, l2, s2, a2, i2) {
|
|
142
123
|
const o2 = n("nut-icon"), A2 = n("nut-elevator"), I2 = n("nut-popup");
|
|
143
|
-
return c(), r(I2, { position: "bottom", onClose: e2.close, onClickOverlay: e2.clickOverlay, onOpen: t2[3] || (t2[3] = (t3) => e2.closeWay = "self"), visible: e2.showPopup, "onUpdate:visible": t2[4] || (t2[4] = (t3) => e2.showPopup = t3), isWrapTeleport: e2.isWrapTeleport, teleport: e2.teleport }, { default: u(() => [d("view", j, [d("view", R, [d("view", { class: "arrow-back", onClick: t2[0] || (t2[0] = (...t3) => e2.switchModule && e2.switchModule(...t3)) }, [v(p(o2, { name: e2.backBtnIcon, color: "#cccccc" }, null, 8, ["name"]), [[m, e2.type == "exist" && e2.privateType == "custom" && e2.backBtnIcon]])]), d("view", L, y(e2.privateType == "custom" ? e2.customAddressTitle || e2.translate("selectRegion") : e2.existAddressTitle || e2.translate("deliveryTo")), 1), d("view", { class: "arrow-close", onClick: t2[1] || (t2[1] = (t3) => e2.handClose("cross")) }, [e2.closeBtnIcon ? (c(), r(o2, { key: 0, name: e2.closeBtnIcon, color: "#cccccc", size: "18px" }, null, 8, ["name"])) : f("", true)])]), e2.privateType == "custom" ? (c(), g("view", _, [d("view", B, [(c(true), g(h, null, b(e2.selectedRegion, (t3, l3, s3) => (c(), g("view", { class: x(["tab-item", [s3 == e2.tabIndex ? "active" : ""]]), key: s3, onClick: (a3) => e2.changeRegionTab(t3, l3, s3) }, [d("view", null, y(e2.getTabName(t3, s3)), 1)], 10, P))), 128)), d("view", { class: "region-tab-line", ref: "regionLine", style: w({ left: e2.lineDistance + "px" }) }, null, 4)], 512), d("view", O, [d("ul", V, [(c(true), g(h, null, b(e2.regionList[e2.tabName[e2.tabIndex]], (t3, l3) => (c(), g("li", { key: l3, class: x(["region-item", [e2.selectedRegion[e2.tabName[e2.tabIndex]].id == t3.id ? "active" : ""]]), onClick: (l4) => e2.nextAreaList(t3) }, [e2.selectedRegion[e2.tabName[e2.tabIndex]].id == t3.id ? (c(), r(o2, { key: 0, class: "region-item-icon", type: "self", name: e2.selectedIcon, size: "13px" }, null, 8, ["name"])) : f("", true), k(y(t3.name), 1)], 10, W))), 128))])])])) : e2.privateType == "custom2" ? (c(), g("view", M, [d("view", D, [(c(true), g(h, null, b(e2.selectedRegion, (t3, l3, s3) => (c(), g("view", { class: x(["tab-item", [s3 == e2.tabIndex ? "active" : ""]]), key: s3, onClick: (a3) => e2.changeRegionTab(t3, l3, s3) }, [d("view", null, y(e2.getTabName(t3, s3)), 1)], 10, z))), 128)), d("view", { class: "region-tab-line", ref: "regionLine", style: w({ left: e2.lineDistance + "px" }) }, null, 4)], 512), d("view", U, [p(A2, { height: e2.height, "index-list": e2.regionList[e2.tabName[e2.tabIndex]], onClickItem: e2.handleElevatorItem }, null, 8, ["height", "index-list", "onClickItem"])])])) : e2.privateType == "exist" ? (c(), g("view", q, [d("div", F, [d("ul", G, [(c(true), g(h, null, b(e2.existAddress, (t3, l3) => (c(), g("li", { class: x(["exist-item", [t3.selectedAddress ? "active" : ""]]), key: l3, onClick: (l4) => e2.selectedExist(t3) }, [p(o2, { class: "exist-item-icon", type: "self", name: t3.selectedAddress ? e2.selectedIcon : e2.defaultIcon, size: "13px" }, null, 8, ["name"]), d("div", J, [t3.name && t3.phone ? (c(), g("div", K, [d("div", Q, y(t3.name), 1), d("div", X, y(t3.phone), 1)])) : f("", true), d("div", Y, [d("view", null, y(t3.provinceName + t3.cityName + t3.countyName + t3.townName + t3.addressDetail), 1)])])], 10, H))), 128))])]), e2.isShowCustomAddress ? (c(), g("div", { key: 0, class: "choose-other", onClick: t2[2] || (t2[2] = (...t3) => e2.switchModule && e2.switchModule(...t3)) }, [d("div", Z, y(e2.customAndExistTitle || e2.translate("chooseAnotherAddress")), 1)])) : f("", true)])) : f("", true)])]), _: 1 }, 8, ["onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
124
|
+
return c(), r(I2, { position: "bottom", "lock-scroll": e2.lockScroll, onClose: e2.close, onClickOverlay: e2.clickOverlay, onOpen: t2[3] || (t2[3] = (t3) => e2.closeWay = "self"), visible: e2.showPopup, "onUpdate:visible": t2[4] || (t2[4] = (t3) => e2.showPopup = t3), isWrapTeleport: e2.isWrapTeleport, teleport: e2.teleport }, { default: u(() => [d("view", j, [d("view", R, [d("view", { class: "arrow-back", onClick: t2[0] || (t2[0] = (...t3) => e2.switchModule && e2.switchModule(...t3)) }, [v(p(o2, { name: e2.backBtnIcon, color: "#cccccc" }, null, 8, ["name"]), [[m, e2.type == "exist" && e2.privateType == "custom" && e2.backBtnIcon]])]), d("view", L, y(e2.privateType == "custom" ? e2.customAddressTitle || e2.translate("selectRegion") : e2.existAddressTitle || e2.translate("deliveryTo")), 1), d("view", { class: "arrow-close", onClick: t2[1] || (t2[1] = (t3) => e2.handClose("cross")) }, [e2.closeBtnIcon ? (c(), r(o2, { key: 0, name: e2.closeBtnIcon, color: "#cccccc", size: "18px" }, null, 8, ["name"])) : f("", true)])]), e2.privateType == "custom" ? (c(), g("view", _, [d("view", B, [(c(true), g(h, null, b(e2.selectedRegion, (t3, l3, s3) => (c(), g("view", { class: x(["tab-item", [s3 == e2.tabIndex ? "active" : ""]]), key: s3, onClick: (a3) => e2.changeRegionTab(t3, l3, s3) }, [d("view", null, y(e2.getTabName(t3, s3)), 1)], 10, P))), 128)), d("view", { class: "region-tab-line", ref: "regionLine", style: w({ left: e2.lineDistance + "px" }) }, null, 4)], 512), d("view", O, [d("ul", V, [(c(true), g(h, null, b(e2.regionList[e2.tabName[e2.tabIndex]], (t3, l3) => (c(), g("li", { key: l3, class: x(["region-item", [e2.selectedRegion[e2.tabName[e2.tabIndex]].id == t3.id ? "active" : ""]]), onClick: (l4) => e2.nextAreaList(t3) }, [e2.selectedRegion[e2.tabName[e2.tabIndex]].id == t3.id ? (c(), r(o2, { key: 0, class: "region-item-icon", type: "self", name: e2.selectedIcon, size: "13px" }, null, 8, ["name"])) : f("", true), k(y(t3.name), 1)], 10, W))), 128))])])])) : e2.privateType == "custom2" ? (c(), g("view", M, [d("view", D, [(c(true), g(h, null, b(e2.selectedRegion, (t3, l3, s3) => (c(), g("view", { class: x(["tab-item", [s3 == e2.tabIndex ? "active" : ""]]), key: s3, onClick: (a3) => e2.changeRegionTab(t3, l3, s3) }, [d("view", null, y(e2.getTabName(t3, s3)), 1)], 10, z))), 128)), d("view", { class: "region-tab-line", ref: "regionLine", style: w({ left: e2.lineDistance + "px" }) }, null, 4)], 512), d("view", U, [p(A2, { height: e2.height, "index-list": e2.regionList[e2.tabName[e2.tabIndex]], onClickItem: e2.handleElevatorItem }, null, 8, ["height", "index-list", "onClickItem"])])])) : e2.privateType == "exist" ? (c(), g("view", q, [d("div", F, [d("ul", G, [(c(true), g(h, null, b(e2.existAddress, (t3, l3) => (c(), g("li", { class: x(["exist-item", [t3.selectedAddress ? "active" : ""]]), key: l3, onClick: (l4) => e2.selectedExist(t3) }, [p(o2, { class: "exist-item-icon", type: "self", name: t3.selectedAddress ? e2.selectedIcon : e2.defaultIcon, size: "13px" }, null, 8, ["name"]), d("div", J, [t3.name && t3.phone ? (c(), g("div", K, [d("div", Q, y(t3.name), 1), d("div", X, y(t3.phone), 1)])) : f("", true), d("div", Y, [d("view", null, y(t3.provinceName + t3.cityName + t3.countyName + t3.townName + t3.addressDetail), 1)])])], 10, H))), 128))])]), e2.isShowCustomAddress ? (c(), g("div", { key: 0, class: "choose-other", onClick: t2[2] || (t2[2] = (...t3) => e2.switchModule && e2.switchModule(...t3)) }, [d("div", Z, y(e2.customAndExistTitle || e2.translate("chooseAnotherAddress")), 1)])) : f("", true)])) : f("", true)])]), _: 1 }, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
144
125
|
}]]);
|
|
145
126
|
export { $ as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { toRefs as e, reactive as t, computed as l, openBlock as a, createElementBlock as i, createElementVNode as o, normalizeClass as c, renderSlot as n } from "vue";
|
|
7
|
+
import { c as s } from "./component.js";
|
|
8
|
+
import { _ as r } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
10
|
+
const { componentName: p, create: u } = s("animate"), m = u({ props: { type: { type: String, default: "" }, action: { type: String, default: "initial" }, loop: { type: Boolean, default: false } }, emits: ["click"], setup(a2, { emit: i2 }) {
|
|
11
|
+
const { type: o2, loop: c2, action: n2 } = e(a2), s2 = t({ clicked: false });
|
|
12
|
+
let r2 = l(() => ({ "nut-ani-container": true, [`${p}-${o2.value}`]: !(n2.value !== "initial" && !s2.clicked) && o2.value, loop: c2.value }));
|
|
13
|
+
return { ...e(s2), classes: r2, handleClick: (e2) => {
|
|
14
|
+
s2.clicked = true, c2.value || setTimeout(() => {
|
|
15
|
+
s2.clicked = false;
|
|
16
|
+
}, 1e3), i2("click", e2);
|
|
17
|
+
} };
|
|
18
|
+
} }), d = { class: "nut-animate" };
|
|
19
|
+
var k = r(m, [["render", function(e2, t2, l2, s2, r2, p2) {
|
|
20
|
+
return a(), i("view", d, [o("view", { class: c(e2.classes), onClick: t2[0] || (t2[0] = (...t3) => e2.handleClick && e2.handleClick(...t3)) }, [n(e2.$slots, "default")], 2)]);
|
|
21
|
+
}]]);
|
|
22
|
+
export { k as default };
|
|
@@ -1,24 +1,5 @@
|
|
|
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 = (a2, b2) => {
|
|
9
|
-
for (var prop in b2 || (b2 = {}))
|
|
10
|
-
if (__hasOwnProp.call(b2, prop))
|
|
11
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b2)) {
|
|
14
|
-
if (__propIsEnum.call(b2, prop))
|
|
15
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a2;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -62,14 +43,14 @@ const { componentName: T, create: k } = f("audio"), M = k({ props: { url: { type
|
|
|
62
43
|
return n(() => c2.currentTime, (e2) => {
|
|
63
44
|
var a2;
|
|
64
45
|
a2 = e2, c2.currentDuration = y2(a2), c2.percent = a2 / c2.second * 100;
|
|
65
|
-
}), o("audioParent", { children: [], props: u2, audioData: c2, handleMute: m2, forward: p2, fastBack: d2, changeStatus: s2 }),
|
|
46
|
+
}), o("audioParent", { children: [], props: u2, audioData: c2, handleMute: m2, forward: p2, fastBack: d2, changeStatus: s2 }), { ...r(u2), ...r(c2), audioRef: l2, fastBack: d2, forward: p2, changeStatus: s2, progressChange: (e2) => {
|
|
66
47
|
const a2 = l2.value;
|
|
67
48
|
a2.currentTime = c2.second * e2 / 100, i2("changeProgress", a2.currentTime);
|
|
68
49
|
}, audioEnd: () => {
|
|
69
50
|
c2.playing = false, i2("ended");
|
|
70
51
|
}, onTimeupdate: (e2) => {
|
|
71
52
|
c2.currentTime = parseInt(e2.target.currentTime);
|
|
72
|
-
}, handleMute: m2 }
|
|
53
|
+
}, handleMute: m2 };
|
|
73
54
|
} }), S = { class: "nut-audio" }, b = { key: 0, class: "progress-wrapper" }, w = { class: "time" }, B = { class: "progress-bar-wrapper" }, C = c("div", { class: "custom-button" }, null, -1), P = { class: "time" }, E = { key: 1, class: "nut-audio-icon" }, D = ["controls", "src", "preload", "autoplay", "loop", "muted"];
|
|
74
55
|
var V = v(M, [["render", function(e2, a2, t2, n2, o2, r2) {
|
|
75
56
|
const f2 = u("nut-range"), v2 = u("nut-icon");
|
|
@@ -1,24 +1,5 @@
|
|
|
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 = (a2, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a2, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a2, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a2;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -28,7 +9,7 @@ import { _ as f } from "./plugin-vue_export-helper.js";
|
|
|
28
9
|
import "../locale/lang";
|
|
29
10
|
const { componentName: k, create: v, translate: S } = y("audio-operate"), g = v({ props: { type: { type: String, default: () => "play" } }, components: {}, emits: ["click"], setup(s2, { emit: r2 }) {
|
|
30
11
|
const u2 = t("audioParent"), i2 = e(u2), n2 = a(o().default);
|
|
31
|
-
return
|
|
12
|
+
return { ...l(s2), ...l(i2), customSlot: n2, translate: S };
|
|
32
13
|
} }), h = { class: "nut-audio-operate" }, $ = p("\u5FEB\u8FDB");
|
|
33
14
|
var _ = f(g, [["render", function(t2, e2, a2, o2, l2, y2) {
|
|
34
15
|
const f2 = s("nut-button");
|
|
@@ -1,21 +1,5 @@
|
|
|
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 = (a2, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a2, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a2, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a2;
|
|
16
|
-
};
|
|
17
1
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
19
3
|
* (c) 2022 @jdf2e.
|
|
20
4
|
* Released under the MIT License.
|
|
21
5
|
*/
|
|
@@ -46,11 +30,11 @@ const { componentName: h, create: y } = f("avatar"), C = y({ props: { size: { ty
|
|
|
46
30
|
a2[e2] && a2[e2].classList && a2[e2].classList[0] == "nut-avatar" && a2[e2].setAttribute("data-index", e2 + 1);
|
|
47
31
|
y2.index = (_b = (_a = f2 == null ? void 0 : f2.value) == null ? void 0 : _a.dataset) == null ? void 0 : _b.index, y2.index == y2.maxIndex && y2.index != ((_c = d2 == null ? void 0 : d2.props) == null ? void 0 : _c.maxCount) && (y2.showMax = true);
|
|
48
32
|
};
|
|
49
|
-
return
|
|
33
|
+
return { classes: C2, styles: S2, iconStyles: $2, isShowText: G2, maxStyles: w2, activeAvatar: (a2) => {
|
|
50
34
|
l2("active-avatar", a2);
|
|
51
35
|
}, onError: (a2) => {
|
|
52
36
|
l2("onError", a2);
|
|
53
|
-
}, avatarGroup: d2, visible: g2, avatarRef: f2
|
|
37
|
+
}, avatarGroup: d2, visible: g2, avatarRef: f2, ...a(y2) };
|
|
54
38
|
} }), S = ["src", "alt"], w = { key: 2, class: "text" }, $ = { key: 1, class: "text" };
|
|
55
39
|
var G = g(C, [["render", function(a2, e2, t2, r2, o2, n2) {
|
|
56
40
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed as t, ref as e, resolveComponent as o, openBlock as a, createBlock as l, withCtx as n, createSlots as s, renderSlot as d, createCommentVNode as i } from "vue";
|
|
7
7
|
import { c as p } from "./component.js";
|
|
8
8
|
import { C as f, U as r } from "./index5.js";
|
|
9
|
-
import {
|
|
9
|
+
import { u } from "./index3.js";
|
|
10
|
+
import { _ as c } from "./plugin-vue_export-helper.js";
|
|
10
11
|
import "../locale/lang";
|
|
11
12
|
import "./raf.js";
|
|
12
|
-
const { create:
|
|
13
|
-
var
|
|
14
|
-
const n2 = t(() => l2.btn), s2 = t(() => l2.topInfo), d2 = t(() => l2.day), i2 = t(() => l2.bottomInfo), p2 = e(null)
|
|
13
|
+
const { create: y } = p("calendar");
|
|
14
|
+
var b = c(y({ components: { [f.name]: f }, props: { type: { type: String, default: "one" }, isAutoBackFill: { type: Boolean, default: false }, poppable: { type: Boolean, default: true }, showTitle: { type: Boolean, default: true }, showSubTitle: { type: Boolean, default: true }, visible: { type: Boolean, default: false }, showToday: { type: Boolean, default: true }, title: { type: String, default: "" }, confirmText: { type: String, default: "" }, startText: { type: String, default: "" }, endText: { type: String, default: "" }, defaultValue: { type: [String, Array] }, startDate: { type: String, default: r.getDay(0) }, endDate: { type: String, default: r.getDay(365) } }, emits: ["choose", "close", "update:visible", "select"], setup(o2, { emit: a2, slots: l2 }) {
|
|
15
|
+
const n2 = t(() => l2.btn), s2 = t(() => l2.topInfo), d2 = t(() => l2.day), i2 = t(() => l2.bottomInfo), p2 = e(null);
|
|
16
|
+
u({ scrollToDate: (t2) => {
|
|
17
|
+
var _a;
|
|
18
|
+
(_a = p2.value) == null ? void 0 : _a.scrollToDate(t2);
|
|
19
|
+
} });
|
|
20
|
+
const f2 = () => {
|
|
15
21
|
a2("close"), a2("update:visible", false);
|
|
16
22
|
};
|
|
17
23
|
return { closePopup: () => {
|
|
@@ -25,6 +31,6 @@ var y = u(c({ components: { [f.name]: f }, props: { type: { type: String, defaul
|
|
|
25
31
|
}, calendarRef: p2, showTopBtn: n2, topInfo: s2, dayInfo: d2, bottomInfo: i2 };
|
|
26
32
|
} }), [["render", function(t2, e2, p2, f2, r2, u2) {
|
|
27
33
|
const c2 = o("nut-calendar-item"), y2 = o("nut-popup");
|
|
28
|
-
return t2.poppable ? (a(), l(y2, { key: 0, visible: t2.visible, position: "bottom", round: "", closeable: true, onClickOverlay: t2.closePopup, onClickCloseIcon: t2.closePopup, "destroy-on-close": true, style: { height: "85vh" } }, { default: n(() => [t2.visible ? (a(), l(c2, { key: 0, props: "", ref: "calendarRef", type: t2.type, "is-auto-back-fill": t2.isAutoBackFill, poppable: t2.poppable, title: t2.title, "confirm-text": t2.confirmText, "start-text": t2.startText, "end-text": t2.endText, "default-value": t2.defaultValue, "start-date": t2.startDate, "end-date": t2.endDate, onUpdate: t2.update, onClose: t2.close, onChoose: t2.choose, onSelect: t2.select, "show-today": t2.showToday, "show-title": t2.showTitle, "show-sub-title": t2.showSubTitle }, s({ _: 2 }, [t2.showTopBtn ? { name: "btn", fn: n(() => [d(t2.$slots, "btn")]) } : void 0, t2.dayInfo ? { name: "day", fn: n((e3) => [d(t2.$slots, "day", { date: e3.date })]) } : void 0, t2.topInfo ? { name: "topInfo", fn: n((e3) => [d(t2.$slots, "topInfo", { date: e3.date })]) } : void 0, t2.bottomInfo ? { name: "bottomInfo", fn: n((e3) => [d(t2.$slots, "bottomInfo", { date: e3.date })]) } : void 0]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : i("", true)]), _: 3 }, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (a(), l(c2, { key: 1, type: t2.type, "is-auto-back-fill": t2.isAutoBackFill, poppable: t2.poppable, title: t2.title, "confirm-text": t2.confirmText, "start-text": t2.startText, "end-text": t2.endText, "default-value": t2.defaultValue, "start-date": t2.startDate, "end-date": t2.endDate, onUpdate: t2.update, onClose: t2.close, onChoose: t2.choose, onSelect: t2.select, "show-today": t2.showToday, "show-title": t2.showTitle, "show-sub-title": t2.showSubTitle }, s({ _: 2 }, [t2.showTopBtn ? { name: "btn", fn: n(() => [d(t2.$slots, "btn")]) } : void 0, t2.dayInfo ? { name: "day", fn: n((e3) => [d(t2.$slots, "day", { date: e3.date })]) } : void 0, t2.topInfo ? { name: "topInfo", fn: n((e3) => [d(t2.$slots, "topInfo", { date: e3.date })]) } : void 0, t2.bottomInfo ? { name: "bottomInfo", fn: n((e3) => [d(t2.$slots, "bottomInfo", { date: e3.date })]) } : void 0]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
|
|
34
|
+
return t2.poppable ? (a(), l(y2, { key: 0, visible: t2.visible, position: "bottom", round: "", closeable: true, onClickOverlay: t2.closePopup, onClickCloseIcon: t2.closePopup, "destroy-on-close": true, style: { height: "85vh" } }, { default: n(() => [t2.visible ? (a(), l(c2, { key: 0, props: "", ref: "calendarRef", type: t2.type, "is-auto-back-fill": t2.isAutoBackFill, poppable: t2.poppable, title: t2.title, "confirm-text": t2.confirmText, "start-text": t2.startText, "end-text": t2.endText, "default-value": t2.defaultValue, "start-date": t2.startDate, "end-date": t2.endDate, onUpdate: t2.update, onClose: t2.close, onChoose: t2.choose, onSelect: t2.select, "show-today": t2.showToday, "show-title": t2.showTitle, "show-sub-title": t2.showSubTitle }, s({ _: 2 }, [t2.showTopBtn ? { name: "btn", fn: n(() => [d(t2.$slots, "btn")]) } : void 0, t2.dayInfo ? { name: "day", fn: n((e3) => [d(t2.$slots, "day", { date: e3.date })]) } : void 0, t2.topInfo ? { name: "topInfo", fn: n((e3) => [d(t2.$slots, "topInfo", { date: e3.date })]) } : void 0, t2.bottomInfo ? { name: "bottomInfo", fn: n((e3) => [d(t2.$slots, "bottomInfo", { date: e3.date })]) } : void 0]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : i("", true)]), _: 3 }, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (a(), l(c2, { key: 1, type: t2.type, "is-auto-back-fill": t2.isAutoBackFill, poppable: t2.poppable, title: t2.title, "confirm-text": t2.confirmText, "start-text": t2.startText, "end-text": t2.endText, "default-value": t2.defaultValue, "start-date": t2.startDate, "end-date": t2.endDate, onUpdate: t2.update, onClose: t2.close, onChoose: t2.choose, onSelect: t2.select, "show-today": t2.showToday, "show-title": t2.showTitle, "show-sub-title": t2.showSubTitle, ref: "calendarRef" }, s({ _: 2 }, [t2.showTopBtn ? { name: "btn", fn: n(() => [d(t2.$slots, "btn")]) } : void 0, t2.dayInfo ? { name: "day", fn: n((e3) => [d(t2.$slots, "day", { date: e3.date })]) } : void 0, t2.topInfo ? { name: "topInfo", fn: n((e3) => [d(t2.$slots, "topInfo", { date: e3.date })]) } : void 0, t2.bottomInfo ? { name: "bottomInfo", fn: n((e3) => [d(t2.$slots, "bottomInfo", { date: e3.date })]) } : void 0]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
|
|
29
35
|
}]]);
|
|
30
|
-
export {
|
|
36
|
+
export { b as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,5 +7,6 @@ import "vue";
|
|
|
7
7
|
import "./component.js";
|
|
8
8
|
export { C as default } from "./index5.js";
|
|
9
9
|
import "./raf.js";
|
|
10
|
+
import "./index3.js";
|
|
10
11
|
import "./plugin-vue_export-helper.js";
|
|
11
12
|
import "../locale/lang";
|
|
@@ -1,37 +1,5 @@
|
|
|
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 = (a2, b2) => {
|
|
9
|
-
for (var prop in b2 || (b2 = {}))
|
|
10
|
-
if (__hasOwnProp.call(b2, prop))
|
|
11
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b2)) {
|
|
14
|
-
if (__propIsEnum.call(b2, prop))
|
|
15
|
-
__defNormalProp(a2, prop, b2[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a2;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
20
|
-
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
1
|
/*!
|
|
34
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
35
3
|
* (c) 2022 @jdf2e.
|
|
36
4
|
* Released under the MIT License.
|
|
37
5
|
*/
|
|
@@ -44,7 +12,7 @@ import "../locale/lang";
|
|
|
44
12
|
import "./Icon.js";
|
|
45
13
|
import "./pxCheck.js";
|
|
46
14
|
const m = (e2, l2, a2) => e2.map((e3) => {
|
|
47
|
-
const { value: t2 = "value", text: n2 = "text", children: o2 = "children" } = a2,
|
|
15
|
+
const { value: t2 = "value", text: n2 = "text", children: o2 = "children" } = a2, { [t2]: i2, [n2]: s2, [o2]: r2, ...u2 } = e3, d2 = { loading: false, ...u2, level: l2 ? (l2 && l2.level || 0) + 1 : 0, value: i2, text: s2, children: r2, _parent: l2 };
|
|
48
16
|
return d2.children && d2.children.length && (d2.children = m(d2.children, d2, a2)), d2;
|
|
49
17
|
}), b = (e2, l2) => {
|
|
50
18
|
let a2, t2 = 0;
|
|
@@ -53,7 +21,7 @@ const m = (e2, l2, a2) => e2.map((e3) => {
|
|
|
53
21
|
}, C = { topId: null, idKey: "id", pidKey: "pid", sortKey: "" };
|
|
54
22
|
class k {
|
|
55
23
|
constructor(e2, l2) {
|
|
56
|
-
this.config =
|
|
24
|
+
this.config = { value: "value", text: "text", children: "children", ...l2 || {} }, this.nodes = m(e2, null, this.config);
|
|
57
25
|
}
|
|
58
26
|
updateChildren(e2, l2) {
|
|
59
27
|
l2 ? l2.children = m(e2, l2, this.config) : this.nodes = m(e2, null, this.config);
|
|
@@ -96,10 +64,10 @@ const { create: K, translate: V } = g("cascader-item"), x = K({ props: { visible
|
|
|
96
64
|
v2.clear(), d2.value = [], i2.value = 0, s2.value = false, h2 = null;
|
|
97
65
|
let { options: e2 } = t2;
|
|
98
66
|
o2.value.convertConfig && (e2 = ((e3, l2) => {
|
|
99
|
-
const a2 =
|
|
67
|
+
const a2 = { ...C, ...l2 || {} }, { topId: t3, idKey: n3, pidKey: o3, sortKey: i3 } = a2;
|
|
100
68
|
let s3 = [], r3 = {};
|
|
101
69
|
return e3.forEach((e4) => {
|
|
102
|
-
e4 =
|
|
70
|
+
e4 = { ...e4 };
|
|
103
71
|
const { [n3]: l3, [o3]: a3 } = e4, i4 = r3[a3] = r3[a3] || [];
|
|
104
72
|
s3.length || a3 !== t3 || (s3 = i4), i4.push(e4), e4.children = r3[l3] || (r3[l3] = []);
|
|
105
73
|
}), i3 && Object.keys(r3).forEach((e4) => {
|
|
@@ -177,13 +145,13 @@ const { create: K, translate: V } = g("cascader-item"), x = K({ props: { visible
|
|
|
177
145
|
e2 !== r2.value && (r2.value = e2, y2());
|
|
178
146
|
}), a(() => t2.visible, (e2) => {
|
|
179
147
|
e2 && Array.isArray(r2.value) && r2.value.length > 0 && y2();
|
|
180
|
-
}),
|
|
148
|
+
}), { panes: d2, initLoading: s2, tabsCursor: i2, ...f2 };
|
|
181
149
|
} }), N = { role: "menu", class: "nut-cascader-pane" }, z = ["aria-checked", "aria-disabled", "onClick"], L = { class: "nut-cascader-item__title" }, _ = d("view", { class: "nut-cascader-pane" }, null, -1);
|
|
182
150
|
var w = f(x, [["render", function(e2, l2, a2, h2, p2, y2) {
|
|
183
151
|
const g2 = t("nut-icon"), f2 = t("nut-tabpane"), m2 = t("nut-tabs");
|
|
184
152
|
return n(), o(m2, { class: "nut-cascader", modelValue: e2.tabsCursor, "onUpdate:modelValue": l2[0] || (l2[0] = (l3) => e2.tabsCursor = l3), onClick: e2.handleTabClick, "title-scroll": "" }, { default: i(() => [!e2.initLoading && e2.panes.length ? (n(true), s(r, { key: 0 }, u(e2.panes, (l3, a3) => (n(), o(f2, { title: e2.formatTabTitle(l3), key: a3 }, { default: i(() => [d("view", N, [(n(true), s(r, null, u(l3.nodes, (a4) => (n(), s("view", { key: a4.value, class: c(["nut-cascader-item", { active: e2.isSelected(l3, a4), disabled: a4.disabled }]), "aria-checked": e2.isSelected(l3, a4), "aria-disabled": a4.disabled || void 0, role: "menuitemradio", onClick: (l4) => e2.handleNode(a4, false) }, [d("view", L, v(a4.text), 1), a4.loading ? (n(), o(g2, { key: 0, class: "nut-cascader-item__icon-loading", name: "loading" })) : (n(), o(g2, { key: 1, class: "nut-cascader-item__icon-check", name: "checklist" }))], 10, z))), 128))])]), _: 2 }, 1032, ["title"]))), 128)) : (n(), o(f2, { key: 1, title: "Loading..." }, { default: i(() => [_]), _: 1 }))]), _: 1 }, 8, ["modelValue", "onClick"]);
|
|
185
153
|
}]]);
|
|
186
|
-
const { create: A } = g("cascader"), P = A({ components: { [w.name]: w }, props:
|
|
154
|
+
const { create: A } = g("cascader"), P = A({ components: { [w.name]: w }, props: { ...y, modelValue: Array, visible: Boolean, title: String, options: { type: Array, default: () => [] }, lazy: Boolean, lazyLoad: Function, valueKey: { type: String, default: "value" }, textKey: { type: String, default: "text" }, childrenKey: { type: String, default: "children" }, convertConfig: Object }, emits: ["update:modelValue", "change", "pathChange", "update:visible"], setup(t2, { emit: n2 }) {
|
|
187
155
|
const o2 = l(t2.modelValue), i2 = e({ get: () => t2.visible, set(e2) {
|
|
188
156
|
n2("update:visible", e2);
|
|
189
157
|
} });
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,29 +1,38 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.22-beta.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { ref as e, watch as t, provide as n, openBlock as a, createElementBlock as o, renderSlot as r } from "vue";
|
|
7
|
+
import { c as i } from "./component.js";
|
|
8
|
+
import { _ as c } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { create:
|
|
11
|
-
const i2 = (
|
|
12
|
-
|
|
10
|
+
const { create: p } = i("collapse"), l = p({ props: { active: { type: [String, Number, Array] }, accordion: { type: Boolean }, titleIcon: { type: String, default: "" }, titleIconSize: { type: String, default: "16px" }, titleIconColor: { type: String, default: "" }, titleIconPosition: { type: String, default: "left" }, icon: { type: String, default: "" }, iconSize: { type: String, default: "16px" }, iconColor: { type: String, default: "" }, rotate: { type: [String, Number], default: 180 } }, emits: ["update:active", "change"], setup(a2, { emit: o2, slots: r2 }) {
|
|
11
|
+
const i2 = e(null);
|
|
12
|
+
t(() => a2.active, (e2, t2) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
let n2 = (_a = r2 == null ? void 0 : r2.default) == null ? void 0 : _a.call(r2), a3 = (_b = i2.value) == null ? void 0 : _b.children;
|
|
15
|
+
Array.from(a3).forEach((t3, a4) => {
|
|
16
|
+
const o3 = t3.__vueParentComponent.ctx;
|
|
17
|
+
typeof e2 == "number" || typeof e2 == "string" ? e2 == n2[a4].props.name ? o3.changeOpen(!o3.openExpanded) : o3.changeOpen(false) : Object.values(e2) instanceof Array && (e2.indexOf(Number(n2[a4].props.name)) > -1 || e2.indexOf(String(n2[a4].props.name)) > -1 ? o3.changeOpen(true) : o3.changeOpen(false)), o3.animation();
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const c2 = (e2) => {
|
|
21
|
+
o2("update:active", e2), o2("change", e2);
|
|
13
22
|
};
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
String(
|
|
19
|
-
}),
|
|
20
|
-
}, changeVal:
|
|
21
|
-
const { accordion:
|
|
22
|
-
if (
|
|
23
|
-
return (typeof
|
|
24
|
-
} });
|
|
25
|
-
} });
|
|
26
|
-
var
|
|
27
|
-
return
|
|
23
|
+
return n("collapseParent", { children: [], props: a2, changeValAry: (e2) => {
|
|
24
|
+
const t2 = a2.active instanceof Object ? Object.values(a2.active) : a2.active;
|
|
25
|
+
let n2 = -1;
|
|
26
|
+
t2.forEach((t3, a3) => {
|
|
27
|
+
String(t3) == String(e2) && (n2 = a3);
|
|
28
|
+
}), n2 > -1 ? t2.splice(n2, 1) : t2.push(e2), c2(t2);
|
|
29
|
+
}, changeVal: c2, isExpanded: (e2) => {
|
|
30
|
+
const { accordion: t2, active: n2 } = a2;
|
|
31
|
+
if (t2)
|
|
32
|
+
return (typeof n2 == "number" || typeof n2 == "string") && n2 == e2;
|
|
33
|
+
} }), { collapseDom: i2 };
|
|
34
|
+
} }), s = { ref: "collapseDom" };
|
|
35
|
+
var u = c(l, [["render", function(e2, t2, n2, i2, c2, p2) {
|
|
36
|
+
return a(), o("view", s, [r(e2.$slots, "default")], 512);
|
|
28
37
|
}]]);
|
|
29
|
-
export {
|
|
38
|
+
export { u as default };
|