@nutui/nutui 3.1.12-beta.1 → 3.1.12
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 +27 -0
- package/dist/nutui.d.ts +1 -1
- package/dist/nutui.es.js +3219 -2562
- package/dist/nutui.umd.js +3292 -2565
- package/dist/packages/_es/ActionSheet.js +12 -13
- package/dist/packages/_es/Address.js +49 -63
- package/dist/packages/_es/Avatar.js +5 -4
- package/dist/packages/_es/BackTop.js +109 -72
- package/dist/packages/_es/Badge.js +5 -4
- package/dist/packages/_es/Barrage.js +57 -63
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +18 -27
- package/dist/packages/_es/Card.js +8 -7
- package/dist/packages/_es/Cell.js +13 -5
- package/dist/packages/_es/CellGroup.js +14 -7
- package/dist/packages/_es/Checkbox.js +3 -3
- package/dist/packages/_es/CheckboxGroup.js +4 -9
- package/dist/packages/_es/CircleProgress.js +46 -142
- package/dist/packages/_es/Col.js +5 -4
- package/dist/packages/_es/Collapse.js +10 -35
- package/dist/packages/_es/CollapseItem.js +35 -80
- package/dist/packages/_es/CountDown.js +5 -7
- package/dist/packages/_es/CountUp.js +31 -34
- package/dist/packages/_es/DatePicker.js +219 -451
- package/dist/packages/_es/Dialog.js +98 -46
- package/dist/packages/_es/Divider.js +6 -5
- package/dist/packages/_es/Drag.js +50 -76
- package/dist/packages/_es/Elevator.js +52 -81
- package/dist/packages/_es/FixedNav.js +9 -8
- package/dist/packages/_es/Form.js +6 -5
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Icon.js +40 -6
- package/dist/packages/_es/ImagePreview.js +158 -44
- package/dist/packages/_es/InfiniteLoading.js +109 -95
- package/dist/packages/_es/Input.js +21 -22
- package/dist/packages/_es/InputNumber.js +18 -24
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/Menu.js +14 -16
- package/dist/packages/_es/MenuItem.js +11 -9
- package/dist/packages/_es/Navbar.js +7 -7
- package/dist/packages/_es/NoticeBar.js +26 -39
- package/dist/packages/_es/Notify.js +166 -30
- package/dist/packages/_es/NumberKeyboard.js +7 -9
- package/dist/packages/_es/OverLay.js +29 -22
- package/dist/packages/_es/Pagination.js +9 -8
- package/dist/packages/_es/Picker.js +447 -61
- package/dist/packages/_es/Popover.js +34 -161
- package/dist/packages/_es/Popup.js +77 -17
- package/dist/packages/_es/Price.js +7 -18
- package/dist/packages/_es/Progress.js +12 -23
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +31 -38
- package/dist/packages/_es/Rate.js +35 -17
- package/dist/packages/_es/Row.js +5 -4
- package/dist/packages/_es/SearchBar.js +5 -7
- package/dist/packages/_es/ShortPassword.js +59 -89
- package/dist/packages/_es/Signature.js +71 -70
- package/dist/packages/_es/Sku.js +43 -53
- package/dist/packages/_es/Step.js +8 -10
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Swipe.js +28 -43
- package/dist/packages/_es/Swiper.js +418 -17
- package/dist/packages/_es/SwiperItem.js +39 -14
- package/dist/packages/_es/Switch.js +32 -11
- package/dist/packages/_es/TabPane.js +5 -4
- package/dist/packages/_es/Tabbar.js +5 -4
- package/dist/packages/_es/TabbarItem.js +9 -8
- package/dist/packages/_es/Tabs.js +16 -22
- package/dist/packages/_es/Tag.js +6 -5
- package/dist/packages/_es/TextArea.js +12 -16
- package/dist/packages/_es/TimeDetail.js +5 -7
- package/dist/packages/_es/TimePannel.js +5 -7
- package/dist/packages/_es/TimeSelect.js +7 -12
- package/dist/packages/_es/Toast.js +178 -46
- package/dist/packages/_es/Uploader.js +149 -109
- package/dist/packages/_es/Video.js +405 -0
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +7 -58
- package/dist/packages/_es/index2.js +58 -43
- package/dist/packages/_es/index3.js +28 -411
- package/dist/packages/_es/plugin-vue_export-helper.js +13 -0
- 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/cellgroup/index.scss +9 -0
- package/dist/packages/dialog/index.scss +17 -0
- package/dist/packages/drag/index.scss +4 -0
- package/dist/packages/fixednav/index.scss +6 -1
- package/dist/packages/formitem/index.scss +3 -0
- package/dist/packages/icon/index.scss +2 -1
- package/dist/packages/numberkeyboard/index.scss +1 -1
- package/dist/packages/popover/index.scss +2 -2
- package/dist/packages/rate/index.scss +1 -0
- package/dist/packages/textarea/index.scss +1 -0
- package/dist/packages/timedetail/index.scss +1 -2
- package/dist/packages/timeselect/index.scss +3 -0
- package/dist/packages/toast/index.scss +6 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -1
- package/dist/styles/font/config.json +2 -1
- package/dist/styles/font/demo_index.html +26 -3
- package/dist/styles/font/iconfont.css +7 -3
- package/dist/styles/font/iconfont.js +31 -32
- package/dist/styles/font/iconfont.json +7 -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 +38 -38
- package/dist/styles/variables.scss +5 -1
- package/package.json +1 -1
- package/dist/packages/_es/commonProps.js +0 -30
- package/dist/packages/_es/index.taro.vue_vue&type=script&lang.js +0 -44
- package/dist/packages/_es/use-lock-scroll.js +0 -23
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
7
|
import { useRouter } from "vue-router";
|
|
8
8
|
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
9
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
const { create } = createComponent("tabbar-item");
|
|
10
|
-
|
|
11
|
+
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
12
13
|
tabTitle: {
|
|
13
14
|
type: String,
|
|
@@ -55,14 +56,14 @@ var _sfc_main = create({
|
|
|
55
56
|
const router = useRouter();
|
|
56
57
|
const relation = (child) => {
|
|
57
58
|
if (child.proxy) {
|
|
58
|
-
let
|
|
59
|
-
state.index =
|
|
59
|
+
let index2 = parent.children.length;
|
|
60
|
+
state.index = index2;
|
|
60
61
|
parent.children.push(child.proxy);
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
relation(getCurrentInstance());
|
|
64
|
-
function change(
|
|
65
|
-
parent.changeIndex(
|
|
65
|
+
function change(index2) {
|
|
66
|
+
parent.changeIndex(index2);
|
|
66
67
|
}
|
|
67
68
|
const choosed = computed(() => {
|
|
68
69
|
if (parent) {
|
|
@@ -133,5 +134,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
133
134
|
])
|
|
134
135
|
], 6);
|
|
135
136
|
}
|
|
136
|
-
_sfc_main
|
|
137
|
-
export {
|
|
137
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
138
|
+
export { index as default };
|
|
@@ -14,21 +14,19 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
18
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
19
|
-
};
|
|
20
17
|
var __publicField = (obj, key, value) => {
|
|
21
18
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
19
|
return value;
|
|
23
20
|
};
|
|
24
21
|
/*!
|
|
25
|
-
* @nutui/nutui v3.1.
|
|
22
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
26
23
|
* (c) 2021 @jdf2e.
|
|
27
24
|
* Released under the MIT License.
|
|
28
25
|
*/
|
|
29
26
|
import { p as pxCheck } from "./pxCheck.js";
|
|
30
27
|
import { provide, computed, ref, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
31
28
|
import { c as createComponent } from "./component.js";
|
|
29
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
32
30
|
const { create } = createComponent("tabs");
|
|
33
31
|
class Title {
|
|
34
32
|
constructor() {
|
|
@@ -38,7 +36,7 @@ class Title {
|
|
|
38
36
|
__publicField(this, "disabled", false);
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
|
-
|
|
39
|
+
const _sfc_main = create({
|
|
42
40
|
props: {
|
|
43
41
|
modelValue: {
|
|
44
42
|
type: [String, Number],
|
|
@@ -56,10 +54,6 @@ var _sfc_main = create({
|
|
|
56
54
|
type: String,
|
|
57
55
|
default: "line"
|
|
58
56
|
},
|
|
59
|
-
lineWidth: {
|
|
60
|
-
type: [String, Number],
|
|
61
|
-
default: ""
|
|
62
|
-
},
|
|
63
57
|
titleScroll: {
|
|
64
58
|
type: Boolean,
|
|
65
59
|
default: false
|
|
@@ -88,7 +82,7 @@ var _sfc_main = create({
|
|
|
88
82
|
const titles = ref([]);
|
|
89
83
|
const currentIndex = ref(props.modelValue || 0);
|
|
90
84
|
const renderTitles = (vnodes) => {
|
|
91
|
-
vnodes.forEach((vnode,
|
|
85
|
+
vnodes.forEach((vnode, index2) => {
|
|
92
86
|
var _a, _b, _c, _d, _e;
|
|
93
87
|
let type = vnode.type;
|
|
94
88
|
type = type.name || type;
|
|
@@ -96,7 +90,7 @@ var _sfc_main = create({
|
|
|
96
90
|
let title = new Title();
|
|
97
91
|
if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"])) {
|
|
98
92
|
title.title = (_c = vnode.props) == null ? void 0 : _c.title;
|
|
99
|
-
title.paneKey = ((_d = vnode.props) == null ? void 0 : _d["pane-key"]) ||
|
|
93
|
+
title.paneKey = ((_d = vnode.props) == null ? void 0 : _d["pane-key"]) || index2;
|
|
100
94
|
title.disabled = (_e = vnode.props) == null ? void 0 : _e.disabled;
|
|
101
95
|
}
|
|
102
96
|
titles.value.push(title);
|
|
@@ -115,11 +109,11 @@ var _sfc_main = create({
|
|
|
115
109
|
init(vnodes);
|
|
116
110
|
});
|
|
117
111
|
watch(() => props.modelValue, (value) => {
|
|
118
|
-
let
|
|
119
|
-
if (
|
|
112
|
+
let index2 = titles.value.findIndex((item) => item.paneKey == value);
|
|
113
|
+
if (index2 == -1) {
|
|
120
114
|
console.error("[NutUI] <Tabs> \u8BF7\u68C0\u67E5 v-model \u503C\u662F\u5426\u4E3A paneKey ,\u5982 paneKey \u672A\u8BBE\u7F6E\uFF0C\u8BF7\u91C7\u7528\u4E0B\u6807\u63A7\u5236 .");
|
|
121
115
|
} else {
|
|
122
|
-
currentIndex.value =
|
|
116
|
+
currentIndex.value = index2;
|
|
123
117
|
}
|
|
124
118
|
});
|
|
125
119
|
onMounted(init);
|
|
@@ -148,12 +142,12 @@ var _sfc_main = create({
|
|
|
148
142
|
};
|
|
149
143
|
});
|
|
150
144
|
const methods = {
|
|
151
|
-
tabChange: (item,
|
|
145
|
+
tabChange: (item, index2) => {
|
|
152
146
|
emit("click", item);
|
|
153
147
|
if (item.disabled) {
|
|
154
148
|
return;
|
|
155
149
|
}
|
|
156
|
-
currentIndex.value =
|
|
150
|
+
currentIndex.value = index2;
|
|
157
151
|
emit("update:modelValue", item.paneKey);
|
|
158
152
|
emit("change", item);
|
|
159
153
|
}
|
|
@@ -162,8 +156,8 @@ var _sfc_main = create({
|
|
|
162
156
|
titles,
|
|
163
157
|
contentStyle,
|
|
164
158
|
tabsNavStyle,
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
tabsActiveStyle,
|
|
160
|
+
titleStyle
|
|
167
161
|
}, methods);
|
|
168
162
|
}
|
|
169
163
|
});
|
|
@@ -177,11 +171,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177
171
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll }]),
|
|
178
172
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
179
173
|
}, [
|
|
180
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
174
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index2) => {
|
|
181
175
|
return openBlock(), createElementBlock("view", {
|
|
182
176
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
183
177
|
style: normalizeStyle(_ctx.titleStyle),
|
|
184
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
178
|
+
onClick: ($event) => _ctx.tabChange(item, index2),
|
|
185
179
|
key: item.paneKey
|
|
186
180
|
}, [
|
|
187
181
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -213,5 +207,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
213
207
|
], 4)
|
|
214
208
|
], 2);
|
|
215
209
|
}
|
|
216
|
-
_sfc_main
|
|
217
|
-
export {
|
|
210
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
211
|
+
export { index as default };
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("tag");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
color: { type: String, default: "" },
|
|
12
13
|
textColor: { type: String, default: "" },
|
|
@@ -85,10 +86,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
85
86
|
key: 0,
|
|
86
87
|
class: "nut-tag--close",
|
|
87
88
|
name: "close",
|
|
88
|
-
size: "
|
|
89
|
+
size: "12",
|
|
89
90
|
onClick: _ctx.onClose
|
|
90
91
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
91
92
|
], 6);
|
|
92
93
|
}
|
|
93
|
-
_sfc_main
|
|
94
|
-
export {
|
|
94
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
95
|
+
export { index as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, openBlock, createElementBlock, normalizeClass,
|
|
6
|
+
import { computed, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("textarea");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
modelValue: {
|
|
12
13
|
type: [String, Number],
|
|
@@ -86,7 +87,7 @@ var _sfc_main = create({
|
|
|
86
87
|
const input = event.target;
|
|
87
88
|
let value = input.value;
|
|
88
89
|
emitChange(value, event);
|
|
89
|
-
emit("blur", event);
|
|
90
|
+
emit("blur", { value, event });
|
|
90
91
|
};
|
|
91
92
|
return {
|
|
92
93
|
classes,
|
|
@@ -97,21 +98,16 @@ var _sfc_main = create({
|
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
|
-
const _hoisted_1 =
|
|
101
|
+
const _hoisted_1 = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
|
|
102
|
+
const _hoisted_2 = {
|
|
101
103
|
key: 0,
|
|
102
|
-
class: "nut-textarea__textarea"
|
|
103
|
-
};
|
|
104
|
-
const _hoisted_2 = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
|
|
105
|
-
const _hoisted_3 = {
|
|
106
|
-
key: 2,
|
|
107
104
|
class: "nut-textarea__limit"
|
|
108
105
|
};
|
|
109
106
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
110
107
|
return openBlock(), createElementBlock("view", {
|
|
111
108
|
class: normalizeClass(_ctx.classes)
|
|
112
109
|
}, [
|
|
113
|
-
|
|
114
|
-
key: 1,
|
|
110
|
+
createElementVNode("textarea", {
|
|
115
111
|
class: "nut-textarea__textarea",
|
|
116
112
|
style: normalizeStyle(_ctx.styles),
|
|
117
113
|
rows: _ctx.rows,
|
|
@@ -123,9 +119,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
119
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
124
120
|
maxlength: _ctx.maxLength,
|
|
125
121
|
placeholder: _ctx.placeholder
|
|
126
|
-
}, null, 44,
|
|
127
|
-
_ctx.limitShow ? (openBlock(), createElementBlock("view",
|
|
122
|
+
}, null, 44, _hoisted_1),
|
|
123
|
+
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
128
124
|
], 2);
|
|
129
125
|
}
|
|
130
|
-
_sfc_main
|
|
131
|
-
export {
|
|
126
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
127
|
+
export { index as default };
|
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
const { componentName, create } = createComponent("timedetail");
|
|
31
|
-
|
|
29
|
+
const _sfc_main = create({
|
|
32
30
|
name: "timedetail",
|
|
33
31
|
props: {
|
|
34
32
|
times: {
|
|
@@ -100,5 +98,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
98
|
])
|
|
101
99
|
], 2);
|
|
102
100
|
}
|
|
103
|
-
_sfc_main
|
|
104
|
-
export {
|
|
101
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
102
|
+
export { index as default };
|
|
@@ -17,18 +17,16 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
21
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
};
|
|
23
20
|
/*!
|
|
24
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
25
22
|
* (c) 2021 @jdf2e.
|
|
26
23
|
* Released under the MIT License.
|
|
27
24
|
*/
|
|
28
25
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
|
|
29
26
|
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
30
28
|
const { componentName, create } = createComponent("timepannel");
|
|
31
|
-
|
|
29
|
+
const _sfc_main = create({
|
|
32
30
|
name: "timepannel",
|
|
33
31
|
props: {
|
|
34
32
|
name: {
|
|
@@ -68,5 +66,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
68
66
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handlePannel(_ctx.pannelKey))
|
|
69
67
|
}, toDisplayString(_ctx.name), 3);
|
|
70
68
|
}
|
|
71
|
-
_sfc_main
|
|
72
|
-
export {
|
|
69
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
70
|
+
export { index as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, toDisplayString, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("timeselect");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
visible: {
|
|
12
13
|
type: Boolean,
|
|
@@ -29,13 +30,9 @@ var _sfc_main = create({
|
|
|
29
30
|
default: () => {
|
|
30
31
|
return [];
|
|
31
32
|
}
|
|
32
|
-
},
|
|
33
|
-
muti: {
|
|
34
|
-
type: [Boolean],
|
|
35
|
-
default: false
|
|
36
33
|
}
|
|
37
34
|
},
|
|
38
|
-
emits: ["update:visible", "
|
|
35
|
+
emits: ["update:visible", "select"],
|
|
39
36
|
setup: (props, context) => {
|
|
40
37
|
const classes = computed(() => {
|
|
41
38
|
const prefixCls = componentName;
|
|
@@ -51,14 +48,12 @@ var _sfc_main = create({
|
|
|
51
48
|
});
|
|
52
49
|
const currentKey = computed(() => props.currentKey);
|
|
53
50
|
const currentTime = computed(() => props.currentTime);
|
|
54
|
-
const muti = computed(() => props.muti);
|
|
55
51
|
const close = () => {
|
|
56
52
|
context.emit("update:visible", false);
|
|
57
|
-
context.emit("
|
|
53
|
+
context.emit("select", currentTime.value);
|
|
58
54
|
};
|
|
59
55
|
provide("currentKey", currentKey);
|
|
60
56
|
provide("currentTime", currentTime);
|
|
61
|
-
provide("muti", muti);
|
|
62
57
|
return {
|
|
63
58
|
classes,
|
|
64
59
|
popStyle,
|
|
@@ -102,5 +97,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
102
97
|
_: 3
|
|
103
98
|
}, 8, ["visible", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
104
99
|
}
|
|
105
|
-
_sfc_main
|
|
106
|
-
export {
|
|
100
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
101
|
+
export { index as default };
|