@nutui/nutui 3.1.16 → 3.1.18-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 +37 -0
- package/README.md +1 -1
- package/dist/nutui.d.ts +3 -1
- package/dist/nutui.es.js +1860 -773
- package/dist/nutui.umd.js +1871 -778
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +60 -7
- package/dist/packages/_es/Audio.js +289 -0
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +3 -3
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +13 -4
- package/dist/packages/_es/Calendar.js +428 -209
- package/dist/packages/_es/Card.js +1 -2
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Cell.js +2 -2
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +2 -2
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +4 -2
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -2
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +10 -5
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -5
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +7 -2
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +18 -59
- package/dist/packages/_es/NoticeBar.js +38 -23
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +1 -2
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +2 -1
- package/dist/packages/_es/Popover.js +4 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +24 -11
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +2 -2
- 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 +12 -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 +8 -6
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +143 -0
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +7 -3
- package/dist/packages/_es/Table.js +2 -2
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +7 -2
- package/dist/packages/_es/Toast.js +15 -8
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +1 -55
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +5 -7
- package/dist/packages/_es/index2.js +7 -58
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +64 -0
- 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/util.js +1 -1
- package/dist/packages/actionsheet/index.scss +7 -6
- package/dist/packages/address/index.scss +8 -0
- package/dist/packages/audio/index.scss +66 -0
- package/dist/packages/audiooperate/index.scss +13 -0
- package/dist/packages/button/index.scss +5 -5
- package/dist/packages/calendar/index.scss +47 -41
- package/dist/packages/calendaritem/index.scss +57 -42
- package/dist/packages/cell/index.scss +3 -3
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/elevator/index.scss +3 -0
- package/dist/packages/infiniteloading/index.scss +1 -1
- package/dist/packages/input/index.scss +4 -2
- package/dist/packages/navbar/index.scss +2 -0
- package/dist/packages/noticebar/index.scss +11 -5
- package/dist/packages/notify/index.scss +1 -0
- package/dist/packages/progress/index.scss +21 -17
- package/dist/packages/range/index.scss +8 -8
- package/dist/packages/row/index.scss +3 -0
- package/dist/packages/sticky/index.scss +5 -0
- package/dist/packages/swiper/index.scss +4 -4
- package/dist/packages/switch/index.scss +8 -8
- package/dist/packages/tabbar/index.scss +7 -4
- package/dist/packages/tabbaritem/index.scss +4 -3
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/toast/index.scss +8 -7
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +6 -1
- package/dist/styles/font/demo_index.html +118 -3
- package/dist/styles/font/iconfont.css +23 -3
- package/dist/styles/font/iconfont.js +25 -24
- package/dist/styles/font/iconfont.json +35 -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 +46 -43
- package/dist/styles/variables.scss +123 -42
- package/package.json +12 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -39,7 +39,6 @@ const _sfc_main = create({
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
setup(props, { emit, slots }) {
|
|
42
|
-
console.log(slots["origin"]);
|
|
43
42
|
const isHaveSlot = (slot) => {
|
|
44
43
|
return slots[slot];
|
|
45
44
|
};
|
|
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.
|
|
38
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
39
39
|
* (c) 2021 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
|
@@ -205,7 +205,7 @@ const _sfc_main$1 = create$1({
|
|
|
205
205
|
const tree = ref(new Tree([], {}));
|
|
206
206
|
const panes = ref([]);
|
|
207
207
|
const isLazy = computed(() => configs.value.lazy && Boolean(configs.value.lazyLoad));
|
|
208
|
-
const lazyLoadMap = new Map();
|
|
208
|
+
const lazyLoadMap = /* @__PURE__ */ new Map();
|
|
209
209
|
let currentProcessNode;
|
|
210
210
|
const init = async () => {
|
|
211
211
|
lazyLoadMap.clear();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { useRouter } from "
|
|
8
|
+
import { u as useRouter } from "./index.js";
|
|
9
9
|
import { p as pxCheck } from "./pxCheck.js";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
11
|
const { componentName, create } = createComponent("cell");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -44,7 +44,7 @@ const _sfc_main = create({
|
|
|
44
44
|
},
|
|
45
45
|
emits: ["change", "update:modelValue"],
|
|
46
46
|
setup(props, { emit, slots }) {
|
|
47
|
-
const parent = inject("parent");
|
|
47
|
+
const parent = inject("parent", null);
|
|
48
48
|
const hasParent = computed(() => !!parent);
|
|
49
49
|
const pValue = computed(() => {
|
|
50
50
|
if (hasParent.value) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, provide, computed, watch, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { u as useExpose } from "./
|
|
8
|
+
import { u as useExpose } from "./index2.js";
|
|
9
9
|
const { create, componentName } = createComponent("checkboxgroup");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -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.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -85,7 +85,9 @@ const _sfc_main = create({
|
|
|
85
85
|
const contentRef = ref(null);
|
|
86
86
|
const onTransitionEnd = () => {
|
|
87
87
|
const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
|
|
88
|
-
wrapperRefEle
|
|
88
|
+
if (wrapperRefEle) {
|
|
89
|
+
wrapperRefEle.style.willChange = "auto";
|
|
90
|
+
}
|
|
89
91
|
};
|
|
90
92
|
const animation = () => {
|
|
91
93
|
const wrapperRefEle = wrapperRef.value;
|
|
@@ -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.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -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.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -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.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -235,7 +235,6 @@ const _sfc_main = create({
|
|
|
235
235
|
return 0;
|
|
236
236
|
};
|
|
237
237
|
const columns = computed(() => {
|
|
238
|
-
console.log(ranges.value);
|
|
239
238
|
const val = ranges.value.map((res) => {
|
|
240
239
|
return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
|
|
241
240
|
});
|
|
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
/*!
|
|
25
|
-
* @nutui/nutui v3.1.
|
|
25
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
26
26
|
* (c) 2021 @jdf2e.
|
|
27
27
|
* Released under the MIT License.
|
|
28
28
|
*/
|
|
@@ -18,12 +18,13 @@ 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.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { ref, reactive, computed, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { u as useExpose } from "./index2.js";
|
|
27
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
29
|
const { componentName, create } = createComponent("elevator");
|
|
29
30
|
const _sfc_main = create({
|
|
@@ -56,7 +57,8 @@ const _sfc_main = create({
|
|
|
56
57
|
y2: 0
|
|
57
58
|
},
|
|
58
59
|
scrollStart: false,
|
|
59
|
-
currentIndex: 0
|
|
60
|
+
currentIndex: 0,
|
|
61
|
+
currentData: {}
|
|
60
62
|
});
|
|
61
63
|
const classes = computed(() => {
|
|
62
64
|
const prefixCls = componentName;
|
|
@@ -116,7 +118,6 @@ const _sfc_main = create({
|
|
|
116
118
|
state.touchState.y1 = firstTouch.pageY;
|
|
117
119
|
state.anchorIndex = +index2;
|
|
118
120
|
state.currentIndex = +index2;
|
|
119
|
-
console.log(state.currentIndex);
|
|
120
121
|
scrollTo(+index2);
|
|
121
122
|
};
|
|
122
123
|
const touchMove = (e) => {
|
|
@@ -131,10 +132,14 @@ const _sfc_main = create({
|
|
|
131
132
|
};
|
|
132
133
|
const handleClickItem = (key, item) => {
|
|
133
134
|
context.emit("click-item", key, item);
|
|
135
|
+
state.currentData = item;
|
|
134
136
|
};
|
|
135
137
|
const handleClickIndex = (key) => {
|
|
136
138
|
context.emit("click-index", key);
|
|
137
139
|
};
|
|
140
|
+
useExpose({
|
|
141
|
+
scrollTo
|
|
142
|
+
});
|
|
138
143
|
return __spreadProps(__spreadValues({
|
|
139
144
|
classes
|
|
140
145
|
}, toRefs(state)), {
|
|
@@ -171,11 +176,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171
176
|
createElementVNode("view", _hoisted_1, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
172
177
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
|
|
173
178
|
return openBlock(), createElementBlock("view", {
|
|
174
|
-
class: "nut-elevator__list__item__name",
|
|
179
|
+
class: normalizeClass(["nut-elevator__list__item__name", { "nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id }]),
|
|
175
180
|
key: subitem["id"],
|
|
176
181
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
|
|
177
182
|
innerHTML: subitem.name
|
|
178
|
-
}, null,
|
|
183
|
+
}, null, 10, _hoisted_2);
|
|
179
184
|
}), 128))
|
|
180
185
|
]);
|
|
181
186
|
}), 128))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, toDisplayString } from "vue";
|
|
7
|
-
import { useRouter } from "
|
|
7
|
+
import { u as useRouter } from "./index.js";
|
|
8
8
|
import { c as createComponent } from "./component.js";
|
|
9
9
|
import { p as pxCheck } from "./pxCheck.js";
|
|
10
10
|
import { G as GRID_KEY } from "./common.js";
|
|
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
/*!
|
|
25
|
-
* @nutui/nutui v3.1.
|
|
25
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
26
26
|
* (c) 2021 @jdf2e.
|
|
27
27
|
* Released under the MIT License.
|
|
28
28
|
*/
|
|
@@ -36,7 +36,7 @@ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
|
36
36
|
import "./OverLay.js";
|
|
37
37
|
import "./Icon.js";
|
|
38
38
|
import "./pxCheck.js";
|
|
39
|
-
import "./
|
|
39
|
+
import "./index2.js";
|
|
40
40
|
const { componentName, create } = createComponent("imagepreview");
|
|
41
41
|
const _sfc_main = create({
|
|
42
42
|
props: {
|
|
@@ -71,6 +71,10 @@ const _sfc_main = create({
|
|
|
71
71
|
autoplay: {
|
|
72
72
|
type: [Number, String],
|
|
73
73
|
default: 3e3
|
|
74
|
+
},
|
|
75
|
+
isWrapTeleport: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
74
78
|
}
|
|
75
79
|
},
|
|
76
80
|
emits: ["close"],
|
|
@@ -123,7 +127,6 @@ const _sfc_main = create({
|
|
|
123
127
|
state.eleImg.style.transform = "scale(" + state.store.scale + ")";
|
|
124
128
|
};
|
|
125
129
|
const onTouchStart = (event) => {
|
|
126
|
-
console.log("start");
|
|
127
130
|
const curTouchTime = new Date().getTime();
|
|
128
131
|
if (curTouchTime - state.lastTouchEndTime < 300) {
|
|
129
132
|
const store2 = state.store;
|
|
@@ -175,7 +178,6 @@ const _sfc_main = create({
|
|
|
175
178
|
}
|
|
176
179
|
};
|
|
177
180
|
const onTouchEnd = () => {
|
|
178
|
-
console.log("end");
|
|
179
181
|
state.lastTouchEndTime = new Date().getTime();
|
|
180
182
|
const store = state.store;
|
|
181
183
|
store.moveable = false;
|
|
@@ -222,6 +224,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
224
|
"pop-class": "custom-pop",
|
|
223
225
|
visible: _ctx.showPop,
|
|
224
226
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
|
|
227
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
225
228
|
onClick: _ctx.onClose,
|
|
226
229
|
style: { "width": "100%" }
|
|
227
230
|
}, {
|
|
@@ -273,7 +276,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
273
276
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
|
|
274
277
|
]),
|
|
275
278
|
_: 1
|
|
276
|
-
}, 8, ["visible", "onClick"]);
|
|
279
|
+
}, 8, ["visible", "isWrapTeleport", "onClick"]);
|
|
277
280
|
}
|
|
278
281
|
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
279
282
|
class ImagePreviewOptions {
|
|
@@ -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.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -90,6 +90,9 @@ const _sfc_main = create({
|
|
|
90
90
|
[`${prefixCls}-border`]: props.hasBorder
|
|
91
91
|
};
|
|
92
92
|
});
|
|
93
|
+
const inputmode = computed(() => {
|
|
94
|
+
return props.type === "digit" ? "decimal" : props.type === "number" ? "numeric" : "text";
|
|
95
|
+
});
|
|
93
96
|
const styles = computed(() => {
|
|
94
97
|
return {
|
|
95
98
|
textAlign: props.textAlign
|
|
@@ -136,6 +139,7 @@ const _sfc_main = create({
|
|
|
136
139
|
active,
|
|
137
140
|
classes,
|
|
138
141
|
styles,
|
|
142
|
+
inputmode,
|
|
139
143
|
valueChange,
|
|
140
144
|
valueFocus,
|
|
141
145
|
valueBlur,
|
|
@@ -148,7 +152,7 @@ const _hoisted_1 = {
|
|
|
148
152
|
class: "nut-input-label"
|
|
149
153
|
};
|
|
150
154
|
const _hoisted_2 = { class: "label-string" };
|
|
151
|
-
const _hoisted_3 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
|
|
155
|
+
const _hoisted_3 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "inputmode"];
|
|
152
156
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
153
157
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
154
158
|
return openBlock(), createElementBlock("view", {
|
|
@@ -166,6 +170,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
170
|
disabled: _ctx.disabled,
|
|
167
171
|
readonly: _ctx.readonly,
|
|
168
172
|
value: _ctx.modelValue,
|
|
173
|
+
inputmode: _ctx.inputmode,
|
|
169
174
|
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
|
|
170
175
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
171
176
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode,
|
|
6
|
+
import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
const { componentName, create } = createComponent("navbar");
|
|
@@ -12,27 +12,13 @@ const _sfc_main = create({
|
|
|
12
12
|
leftShow: { type: Boolean, default: true },
|
|
13
13
|
title: { type: String, default: "" },
|
|
14
14
|
titIcon: { type: String, default: "" },
|
|
15
|
-
icon: { type: String, default: "" },
|
|
16
15
|
desc: { type: String, default: "" },
|
|
17
16
|
defaultIndex: {
|
|
18
17
|
type: Number,
|
|
19
18
|
default: 0
|
|
20
19
|
}
|
|
21
20
|
},
|
|
22
|
-
emits: [
|
|
23
|
-
"click",
|
|
24
|
-
"on-click-back",
|
|
25
|
-
"on-click-title",
|
|
26
|
-
"on-click-right",
|
|
27
|
-
"on-click-desc",
|
|
28
|
-
"on-click-icon",
|
|
29
|
-
"on-click-more",
|
|
30
|
-
"on-click-clear",
|
|
31
|
-
"on-click-send",
|
|
32
|
-
"on-click-slot",
|
|
33
|
-
"on-click-slot-send",
|
|
34
|
-
"switch-tab"
|
|
35
|
-
],
|
|
21
|
+
emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
|
|
36
22
|
setup(props, { emit }) {
|
|
37
23
|
const activeIndex = ref(props.defaultIndex);
|
|
38
24
|
const classes = computed(() => {
|
|
@@ -50,32 +36,22 @@ const _sfc_main = create({
|
|
|
50
36
|
function handleCenterIcon() {
|
|
51
37
|
emit("on-click-icon");
|
|
52
38
|
}
|
|
53
|
-
function
|
|
54
|
-
emit("on-click-
|
|
55
|
-
}
|
|
56
|
-
function handleSend() {
|
|
57
|
-
emit("on-click-send");
|
|
58
|
-
}
|
|
59
|
-
function handleSlot() {
|
|
60
|
-
emit("on-click-slot");
|
|
61
|
-
}
|
|
62
|
-
function handleSends() {
|
|
63
|
-
emit("on-click-slot-send");
|
|
39
|
+
function handleRight() {
|
|
40
|
+
emit("on-click-right");
|
|
64
41
|
}
|
|
65
42
|
return {
|
|
66
43
|
classes,
|
|
67
44
|
handleLeft,
|
|
68
45
|
handleCenter,
|
|
69
46
|
handleCenterIcon,
|
|
70
|
-
|
|
71
|
-
handleSend,
|
|
72
|
-
handleSlot,
|
|
73
|
-
handleSends,
|
|
47
|
+
handleRight,
|
|
74
48
|
activeIndex
|
|
75
49
|
};
|
|
76
50
|
}
|
|
77
51
|
});
|
|
78
52
|
const _hoisted_1 = { class: "nut-navbar__left" };
|
|
53
|
+
const _hoisted_2 = { class: "nut-navbar__title" };
|
|
54
|
+
const _hoisted_3 = { class: "nut-navbar__right" };
|
|
79
55
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80
56
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
81
57
|
return openBlock(), createElementBlock("view", {
|
|
@@ -87,11 +63,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87
63
|
color: "#979797",
|
|
88
64
|
name: "left",
|
|
89
65
|
onClick: _ctx.handleLeft
|
|
90
|
-
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
66
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
67
|
+
renderSlot(_ctx.$slots, "left")
|
|
91
68
|
]),
|
|
92
|
-
createElementVNode("view",
|
|
93
|
-
class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
94
|
-
}, [
|
|
69
|
+
createElementVNode("view", _hoisted_2, [
|
|
95
70
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
96
71
|
key: 0,
|
|
97
72
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
@@ -103,31 +78,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
78
|
onClick: _ctx.handleCenterIcon
|
|
104
79
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
105
80
|
renderSlot(_ctx.$slots, "content")
|
|
106
|
-
]
|
|
107
|
-
|
|
108
|
-
key: 0,
|
|
109
|
-
class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
110
|
-
}, [
|
|
81
|
+
]),
|
|
82
|
+
createElementVNode("view", _hoisted_3, [
|
|
111
83
|
_ctx.desc ? (openBlock(), createElementBlock("view", {
|
|
112
84
|
key: 0,
|
|
113
|
-
|
|
114
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
115
|
-
}, toDisplayString(_ctx.desc),
|
|
116
|
-
_ctx
|
|
117
|
-
|
|
118
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleSends && _ctx.handleSends(...args))
|
|
119
|
-
}, [
|
|
120
|
-
renderSlot(_ctx.$slots, "icons")
|
|
121
|
-
])) : createCommentVNode("", true),
|
|
122
|
-
createElementVNode("view", null, [
|
|
123
|
-
_ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
124
|
-
key: 0,
|
|
125
|
-
class: "rightIcon",
|
|
126
|
-
name: _ctx.icon,
|
|
127
|
-
onClick: _ctx.handleSend
|
|
128
|
-
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true)
|
|
129
|
-
])
|
|
130
|
-
], 2)) : createCommentVNode("", true)
|
|
85
|
+
class: "right_text",
|
|
86
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
87
|
+
}, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
88
|
+
renderSlot(_ctx.$slots, "right")
|
|
89
|
+
])
|
|
131
90
|
], 2);
|
|
132
91
|
}
|
|
133
92
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|