@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.
Files changed (114) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/nutui.d.ts +1 -1
  3. package/dist/nutui.es.js +3219 -2562
  4. package/dist/nutui.umd.js +3292 -2565
  5. package/dist/packages/_es/ActionSheet.js +12 -13
  6. package/dist/packages/_es/Address.js +49 -63
  7. package/dist/packages/_es/Avatar.js +5 -4
  8. package/dist/packages/_es/BackTop.js +109 -72
  9. package/dist/packages/_es/Badge.js +5 -4
  10. package/dist/packages/_es/Barrage.js +57 -63
  11. package/dist/packages/_es/Button.js +6 -5
  12. package/dist/packages/_es/Calendar.js +18 -27
  13. package/dist/packages/_es/Card.js +8 -7
  14. package/dist/packages/_es/Cell.js +13 -5
  15. package/dist/packages/_es/CellGroup.js +14 -7
  16. package/dist/packages/_es/Checkbox.js +3 -3
  17. package/dist/packages/_es/CheckboxGroup.js +4 -9
  18. package/dist/packages/_es/CircleProgress.js +46 -142
  19. package/dist/packages/_es/Col.js +5 -4
  20. package/dist/packages/_es/Collapse.js +10 -35
  21. package/dist/packages/_es/CollapseItem.js +35 -80
  22. package/dist/packages/_es/CountDown.js +5 -7
  23. package/dist/packages/_es/CountUp.js +31 -34
  24. package/dist/packages/_es/DatePicker.js +219 -451
  25. package/dist/packages/_es/Dialog.js +98 -46
  26. package/dist/packages/_es/Divider.js +6 -5
  27. package/dist/packages/_es/Drag.js +50 -76
  28. package/dist/packages/_es/Elevator.js +52 -81
  29. package/dist/packages/_es/FixedNav.js +9 -8
  30. package/dist/packages/_es/Form.js +6 -5
  31. package/dist/packages/_es/FormItem.js +5 -4
  32. package/dist/packages/_es/Icon.js +40 -6
  33. package/dist/packages/_es/ImagePreview.js +158 -44
  34. package/dist/packages/_es/InfiniteLoading.js +109 -95
  35. package/dist/packages/_es/Input.js +21 -22
  36. package/dist/packages/_es/InputNumber.js +18 -24
  37. package/dist/packages/_es/Layout.js +2 -2
  38. package/dist/packages/_es/Menu.js +14 -16
  39. package/dist/packages/_es/MenuItem.js +11 -9
  40. package/dist/packages/_es/Navbar.js +7 -7
  41. package/dist/packages/_es/NoticeBar.js +26 -39
  42. package/dist/packages/_es/Notify.js +166 -30
  43. package/dist/packages/_es/NumberKeyboard.js +7 -9
  44. package/dist/packages/_es/OverLay.js +29 -22
  45. package/dist/packages/_es/Pagination.js +9 -8
  46. package/dist/packages/_es/Picker.js +447 -61
  47. package/dist/packages/_es/Popover.js +34 -161
  48. package/dist/packages/_es/Popup.js +77 -17
  49. package/dist/packages/_es/Price.js +7 -18
  50. package/dist/packages/_es/Progress.js +12 -23
  51. package/dist/packages/_es/Radio.js +3 -3
  52. package/dist/packages/_es/RadioGroup.js +2 -2
  53. package/dist/packages/_es/Range.js +31 -38
  54. package/dist/packages/_es/Rate.js +35 -17
  55. package/dist/packages/_es/Row.js +5 -4
  56. package/dist/packages/_es/SearchBar.js +5 -7
  57. package/dist/packages/_es/ShortPassword.js +59 -89
  58. package/dist/packages/_es/Signature.js +71 -70
  59. package/dist/packages/_es/Sku.js +43 -53
  60. package/dist/packages/_es/Step.js +8 -10
  61. package/dist/packages/_es/Steps.js +2 -2
  62. package/dist/packages/_es/Swipe.js +28 -43
  63. package/dist/packages/_es/Swiper.js +418 -17
  64. package/dist/packages/_es/SwiperItem.js +39 -14
  65. package/dist/packages/_es/Switch.js +32 -11
  66. package/dist/packages/_es/TabPane.js +5 -4
  67. package/dist/packages/_es/Tabbar.js +5 -4
  68. package/dist/packages/_es/TabbarItem.js +9 -8
  69. package/dist/packages/_es/Tabs.js +16 -22
  70. package/dist/packages/_es/Tag.js +6 -5
  71. package/dist/packages/_es/TextArea.js +12 -16
  72. package/dist/packages/_es/TimeDetail.js +5 -7
  73. package/dist/packages/_es/TimePannel.js +5 -7
  74. package/dist/packages/_es/TimeSelect.js +7 -12
  75. package/dist/packages/_es/Toast.js +178 -46
  76. package/dist/packages/_es/Uploader.js +149 -109
  77. package/dist/packages/_es/Video.js +405 -0
  78. package/dist/packages/_es/component.js +1 -1
  79. package/dist/packages/_es/index.js +7 -58
  80. package/dist/packages/_es/index2.js +58 -43
  81. package/dist/packages/_es/index3.js +28 -411
  82. package/dist/packages/_es/plugin-vue_export-helper.js +13 -0
  83. package/dist/packages/_es/pxCheck.js +1 -1
  84. package/dist/packages/_es/raf.js +1 -1
  85. package/dist/packages/_es/util.js +1 -1
  86. package/dist/packages/cellgroup/index.scss +9 -0
  87. package/dist/packages/dialog/index.scss +17 -0
  88. package/dist/packages/drag/index.scss +4 -0
  89. package/dist/packages/fixednav/index.scss +6 -1
  90. package/dist/packages/formitem/index.scss +3 -0
  91. package/dist/packages/icon/index.scss +2 -1
  92. package/dist/packages/numberkeyboard/index.scss +1 -1
  93. package/dist/packages/popover/index.scss +2 -2
  94. package/dist/packages/rate/index.scss +1 -0
  95. package/dist/packages/textarea/index.scss +1 -0
  96. package/dist/packages/timedetail/index.scss +1 -2
  97. package/dist/packages/timeselect/index.scss +3 -0
  98. package/dist/packages/toast/index.scss +6 -0
  99. package/dist/style.css +1 -1
  100. package/dist/style.es.js +2 -1
  101. package/dist/styles/font/config.json +2 -1
  102. package/dist/styles/font/demo_index.html +26 -3
  103. package/dist/styles/font/iconfont.css +7 -3
  104. package/dist/styles/font/iconfont.js +31 -32
  105. package/dist/styles/font/iconfont.json +7 -0
  106. package/dist/styles/font/iconfont.ttf +0 -0
  107. package/dist/styles/font/iconfont.woff +0 -0
  108. package/dist/styles/font/iconfont.woff2 +0 -0
  109. package/dist/styles/themes/default.scss +38 -38
  110. package/dist/styles/variables.scss +5 -1
  111. package/package.json +1 -1
  112. package/dist/packages/_es/commonProps.js +0 -30
  113. package/dist/packages/_es/index.taro.vue_vue&type=script&lang.js +0 -44
  114. package/dist/packages/_es/use-lock-scroll.js +0 -23
@@ -1,13 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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
- var _sfc_main = create({
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 index = parent.children.length;
59
- state.index = 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(index) {
65
- parent.changeIndex(index);
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.render = _sfc_render;
137
- export { _sfc_main as default };
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.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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
- var _sfc_main = create({
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, index) => {
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"]) || index;
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 index = titles.value.findIndex((item) => item.paneKey == value);
119
- if (index == -1) {
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 = index;
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, index) => {
145
+ tabChange: (item, index2) => {
152
146
  emit("click", item);
153
147
  if (item.disabled) {
154
148
  return;
155
149
  }
156
- currentIndex.value = index;
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
- titleStyle,
166
- tabsActiveStyle
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, index) => {
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, index),
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.render = _sfc_render;
217
- export { _sfc_main as default };
210
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
211
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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
- var _sfc_main = create({
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: "11",
89
+ size: "12",
89
90
  onClick: _ctx.onClose
90
91
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
91
92
  ], 6);
92
93
  }
93
- _sfc_main.render = _sfc_render;
94
- export { _sfc_main as default };
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.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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, toDisplayString, normalizeStyle, createCommentVNode } from "vue";
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
- var _sfc_main = create({
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
- _ctx.readonly ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.modelValue), 1)) : (openBlock(), createElementBlock("textarea", {
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, _hoisted_2)),
127
- _ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
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.render = _sfc_render;
131
- export { _sfc_main as default };
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.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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
- var _sfc_main = create({
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.render = _sfc_render;
104
- export { _sfc_main as default };
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.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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
- var _sfc_main = create({
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.render = _sfc_render;
72
- export { _sfc_main as default };
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.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
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
- var _sfc_main = create({
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", "selected"],
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("selected", currentTime.value);
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.render = _sfc_render;
106
- export { _sfc_main as default };
100
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
101
+ export { index as default };