@nutui/nutui 4.1.0-beta.6 → 4.1.1

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 (55) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +27 -70
  3. package/dist/nutui.es.js +4 -2
  4. package/dist/nutui.js +5140 -5134
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/_es/Animate.js +37 -39
  7. package/dist/packages/_es/Card.js +26 -27
  8. package/dist/packages/_es/CircleProgress.js +8 -17
  9. package/dist/packages/_es/Empty.js +26 -29
  10. package/dist/packages/_es/Indicator.js +17 -18
  11. package/dist/packages/_es/Navbar.js +41 -88
  12. package/dist/packages/_es/Price.js +2 -2
  13. package/dist/packages/_es/Progress.js +20 -23
  14. package/dist/packages/_es/Sticky.js +4 -0
  15. package/dist/packages/_es/Swipe.js +64 -39
  16. package/dist/packages/_es/SwipeGroup.js +39 -0
  17. package/dist/packages/_es/Tabs.js +8 -3
  18. package/dist/packages/_es/Tag.js +30 -25
  19. package/dist/packages/_es/Uploader.js +52 -53
  20. package/dist/packages/button/index.scss +14 -0
  21. package/dist/packages/navbar/index.scss +1 -0
  22. package/dist/packages/progress/index.scss +6 -0
  23. package/dist/packages/swipe/index.scss +1 -0
  24. package/dist/packages/swipegroup/index.mjs +4 -0
  25. package/dist/packages/swipegroup/index.scss +0 -0
  26. package/dist/packages/swipegroup/style.mjs +2 -0
  27. package/dist/smartips/web-types.json +158 -23
  28. package/dist/style.css +1 -1
  29. package/dist/styles/themes/default.scss +56 -55
  30. package/dist/styles/themes/jdb.scss +56 -55
  31. package/dist/styles/themes/jddkh.scss +56 -55
  32. package/dist/styles/themes/jdt.scss +56 -55
  33. package/dist/types/__VUE/animate/index.vue.d.ts +14 -3
  34. package/dist/types/__VUE/animate/type.d.ts +1 -1
  35. package/dist/types/__VUE/card/index.vue.d.ts +22 -3
  36. package/dist/types/__VUE/circleprogress/index.vue.d.ts +7 -10
  37. package/dist/types/__VUE/circleprogress/types.d.ts +1 -0
  38. package/dist/types/__VUE/empty/index.vue.d.ts +11 -4
  39. package/dist/types/__VUE/empty/types.d.ts +1 -0
  40. package/dist/types/__VUE/indicator/index.vue.d.ts +7 -9
  41. package/dist/types/__VUE/indicator/types.d.ts +1 -0
  42. package/dist/types/__VUE/navbar/index.vue.d.ts +8 -5
  43. package/dist/types/__VUE/price/index.vue.d.ts +8 -6
  44. package/dist/types/__VUE/price/types.d.ts +2 -0
  45. package/dist/types/__VUE/progress/index.vue.d.ts +10 -10
  46. package/dist/types/__VUE/progress/types.d.ts +2 -0
  47. package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
  48. package/dist/types/__VUE/swipegroup/index.vue.d.ts +26 -0
  49. package/dist/types/__VUE/tag/index.vue.d.ts +5 -4
  50. package/dist/types/__VUE/uploader/index.vue.d.ts +40 -7
  51. package/dist/types/index.d.ts +3 -2
  52. package/dist/types/utils/unit.d.ts +1 -0
  53. package/dist/types/utils/useTaroRect/index.d.ts +1 -0
  54. package/package.json +1 -1
  55. /package/dist/types/__VUE/tag/{type.d.ts → types.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
2
- import { c as createComponent } from "./component-0fbad28e.js";
1
+ import { useSlots, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
3
2
  import { Checked } from "@nutui/icons-vue";
3
+ import { c as createComponent } from "./component-0fbad28e.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  const { create } = createComponent("progress");
@@ -18,7 +18,7 @@ const _sfc_main = create({
18
18
  },
19
19
  status: {
20
20
  type: String,
21
- default: ""
21
+ default: "text"
22
22
  },
23
23
  strokeWidth: {
24
24
  type: [Number, String],
@@ -51,11 +51,14 @@ const _sfc_main = create({
51
51
  },
52
52
  setup(props) {
53
53
  const slotDefault = !!useSlots().default;
54
- const height = ref(props.strokeWidth + "px");
55
- const progressOuter = ref();
56
- const insideText = ref();
54
+ const height = computed(() => {
55
+ if (props.strokeWidth) {
56
+ return props.strokeWidth + "px";
57
+ }
58
+ return void 0;
59
+ });
57
60
  const percentage = computed(() => {
58
- return props.percentage >= 100 ? 100 : props.percentage;
61
+ return Number(props.percentage) >= 100 ? 100 : Number(props.percentage);
59
62
  });
60
63
  const bgStyle = computed(() => {
61
64
  return {
@@ -68,40 +71,30 @@ const _sfc_main = create({
68
71
  color: props.textColor || ""
69
72
  };
70
73
  });
71
- onMounted(() => {
72
- });
73
74
  return {
74
75
  height,
75
76
  percentage,
76
77
  bgStyle,
77
78
  textStyle,
78
- progressOuter,
79
- insideText,
80
79
  slotDefault
81
80
  };
82
81
  }
83
82
  });
84
83
  const _hoisted_1 = { class: "nut-progress" };
85
- const _hoisted_2 = {
86
- key: 0,
87
- class: "nut-progress-text"
88
- };
89
84
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
90
85
  const _component_Checked = resolveComponent("Checked");
91
86
  return openBlock(), createElementBlock("div", _hoisted_1, [
92
87
  createElementVNode("div", {
93
88
  class: normalizeClass(["nut-progress-outer", [_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "", _ctx.size ? "nut-progress-" + _ctx.size : ""]]),
94
- ref: "progressOuter",
95
89
  style: normalizeStyle({ height: _ctx.height })
96
90
  }, [
97
91
  createElementVNode("div", {
98
- class: normalizeClass(["nut-progress-inner", _ctx.status == "active" ? "nut-active" : ""]),
92
+ class: normalizeClass(["nut-progress-inner", _ctx.status === "active" ? "nut-active" : ""]),
99
93
  style: normalizeStyle(_ctx.bgStyle)
100
94
  }, null, 6),
101
95
  _ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
102
96
  key: 0,
103
97
  class: "nut-progress-text nut-progress-insidetext",
104
- ref: "insideText",
105
98
  style: normalizeStyle({
106
99
  lineHeight: _ctx.height,
107
100
  left: `${_ctx.percentage}%`,
@@ -115,7 +108,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
108
  ], 4)) : createCommentVNode("", true),
116
109
  _ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
117
110
  key: 1,
118
- ref: "insideText",
111
+ class: "nut-progress-slot",
119
112
  style: normalizeStyle({
120
113
  position: `absolute`,
121
114
  top: `50%`,
@@ -126,18 +119,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
126
119
  renderSlot(_ctx.$slots, "default")
127
120
  ], 4)) : createCommentVNode("", true)
128
121
  ], 6),
129
- _ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", _hoisted_2, [
130
- _ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
122
+ _ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
123
+ key: 0,
124
+ class: "nut-progress-text",
125
+ style: normalizeStyle({ lineHeight: _ctx.height })
126
+ }, [
127
+ _ctx.status === "text" || _ctx.status === "active" ? (openBlock(), createElementBlock("span", {
131
128
  key: 0,
132
129
  style: normalizeStyle(_ctx.textStyle)
133
- }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? renderSlot(_ctx.$slots, "icon-name", { key: 1 }, () => [
130
+ }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status === "icon" ? renderSlot(_ctx.$slots, "icon-name", { key: 1 }, () => [
134
131
  createVNode(_component_Checked, {
135
132
  width: "15px",
136
133
  height: "15px",
137
134
  color: "#439422"
138
135
  })
139
136
  ]) : createCommentVNode("", true)
140
- ])) : createCommentVNode("", true)
137
+ ], 4)) : createCommentVNode("", true)
141
138
  ]);
142
139
  }
143
140
  const Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -34,6 +34,7 @@ const _sfc_main = create({
34
34
  const state = reactive({
35
35
  fixed: false,
36
36
  height: 0,
37
+ width: 0,
37
38
  transform: 0
38
39
  });
39
40
  const threshold = computed(() => {
@@ -49,6 +50,8 @@ const _sfc_main = create({
49
50
  return {};
50
51
  return {
51
52
  [props.position]: `${threshold.value}px`,
53
+ height: `${state.height}px`,
54
+ width: `${state.width}px`,
52
55
  transform: state.transform ? `translate3d(0, ${state.transform}px, 0)` : void 0,
53
56
  position: state.fixed ? "fixed" : void 0,
54
57
  zIndex: Number(props.zIndex)
@@ -63,6 +66,7 @@ const _sfc_main = create({
63
66
  const stickyRect = useRect(stCurrent);
64
67
  const containerRect = useRect(containerEle);
65
68
  state.height = rootRect.height;
69
+ state.width = rootRect.width;
66
70
  const getFixed = () => {
67
71
  let fixed = false;
68
72
  if (props.position === "top") {
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { u as useTouch } from "./index-7a7385e4.js";
21
- import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
21
+ import { ref, computed, inject, watch, reactive, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
22
22
  import { c as createComponent } from "./component-0fbad28e.js";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
25
- const { componentName, create } = createComponent("swipe");
25
+ const { create } = createComponent("swipe");
26
26
  const _sfc_main = create({
27
27
  props: {
28
28
  name: {
@@ -42,25 +42,32 @@ const _sfc_main = create({
42
42
  default: false
43
43
  }
44
44
  },
45
- emits: ["open", "close"],
45
+ emits: ["open", "close", "click"],
46
46
  setup(props, { emit }) {
47
- const classes = computed(() => {
48
- const prefixCls = componentName;
49
- return {
50
- [prefixCls]: true
51
- };
52
- });
53
47
  const getRefWidth = (ref2) => {
54
48
  var _a;
55
- return ((_a = ref2.value) == null ? void 0 : _a.clientWidth) || 0;
49
+ return ((_a = ref2.value) == null ? void 0 : _a.getBoundingClientRect().width) || 0;
56
50
  };
51
+ const lockClick = ref(false);
57
52
  const leftRef = ref(), leftRefWidth = computed(() => {
58
53
  return getRefWidth(leftRef);
59
54
  });
60
55
  const rightRef = ref(), rightRefWidth = computed(() => {
61
56
  return getRefWidth(rightRef);
62
57
  });
63
- let opened = false;
58
+ const parent = inject("swipeGroup", null);
59
+ watch(
60
+ () => {
61
+ var _a;
62
+ return (_a = parent == null ? void 0 : parent.name) == null ? void 0 : _a.value;
63
+ },
64
+ (name) => {
65
+ if (props.name !== name && parent && parent.lock) {
66
+ close();
67
+ }
68
+ }
69
+ );
70
+ const opened = ref(false);
64
71
  let position = "";
65
72
  let oldPosition = "";
66
73
  const state = reactive({
@@ -68,7 +75,8 @@ const _sfc_main = create({
68
75
  moving: false
69
76
  });
70
77
  const open = (p = "") => {
71
- opened = true;
78
+ parent && parent.update(props.name);
79
+ opened.value = true;
72
80
  if (p) {
73
81
  state.offset = p === "left" ? -rightRefWidth.value : leftRefWidth.value;
74
82
  }
@@ -79,11 +87,21 @@ const _sfc_main = create({
79
87
  };
80
88
  const close = () => {
81
89
  state.offset = 0;
82
- opened = false;
83
- emit("close", {
84
- name: props.name,
85
- position
86
- });
90
+ if (opened.value) {
91
+ opened.value = false;
92
+ emit("close", {
93
+ name: props.name,
94
+ position
95
+ });
96
+ }
97
+ };
98
+ const onClick = (e, position2, lock) => {
99
+ if (lock) {
100
+ e.stopPropagation();
101
+ } else {
102
+ close();
103
+ }
104
+ emit("click", position2);
87
105
  };
88
106
  const touchStyle = computed(() => {
89
107
  return {
@@ -95,14 +113,14 @@ const _sfc_main = create({
95
113
  let offset = deltaX;
96
114
  switch (position) {
97
115
  case "left":
98
- if (opened && oldPosition === position) {
116
+ if (opened.value && oldPosition === position) {
99
117
  offset = -rightRefWidth.value;
100
118
  } else {
101
119
  offset = Math.abs(deltaX) > rightRefWidth.value ? -rightRefWidth.value : deltaX;
102
120
  }
103
121
  break;
104
122
  case "right":
105
- if (opened && oldPosition === position) {
123
+ if (opened.value && oldPosition === position) {
106
124
  offset = leftRefWidth.value;
107
125
  } else {
108
126
  offset = Math.abs(deltaX) > leftRefWidth.value ? leftRefWidth.value : deltaX;
@@ -123,6 +141,7 @@ const _sfc_main = create({
123
141
  return;
124
142
  touch.move(event);
125
143
  if (touch.isHorizontal()) {
144
+ lockClick.value = true;
126
145
  state.moving = true;
127
146
  setoffset(touch.deltaX.value);
128
147
  if (props.touchMovePreventDefault) {
@@ -155,48 +174,54 @@ const _sfc_main = create({
155
174
  }
156
175
  break;
157
176
  }
177
+ setTimeout(() => {
178
+ lockClick.value = false;
179
+ }, 0);
158
180
  }
159
181
  }
160
182
  };
161
183
  return __spreadProps(__spreadValues({
162
- classes,
163
184
  touchStyle
164
185
  }, touchMethods), {
165
186
  leftRef,
166
187
  rightRef,
167
188
  open,
168
- close
189
+ close,
190
+ onClick,
191
+ lockClick
169
192
  });
170
193
  }
171
194
  });
172
- const _hoisted_1 = {
173
- class: "nut-swipe__left",
174
- ref: "leftRef"
175
- };
176
- const _hoisted_2 = { class: "nut-swipe__content" };
177
- const _hoisted_3 = {
178
- class: "nut-swipe__right",
179
- ref: "rightRef"
180
- };
181
195
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
182
196
  return openBlock(), createElementBlock("view", {
183
- class: normalizeClass(_ctx.classes),
197
+ class: "nut-swipe",
184
198
  style: normalizeStyle(_ctx.touchStyle),
185
- onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
186
- onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
187
- onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
188
- onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
199
+ onTouchstart: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
200
+ onTouchmove: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
201
+ onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
202
+ onTouchcancel: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
189
203
  }, [
190
- createElementVNode("view", _hoisted_1, [
204
+ createElementVNode("view", {
205
+ class: "nut-swipe__left",
206
+ ref: "leftRef",
207
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onClick($event, "left", true))
208
+ }, [
191
209
  renderSlot(_ctx.$slots, "left")
192
210
  ], 512),
193
- createElementVNode("view", _hoisted_2, [
211
+ createElementVNode("view", {
212
+ class: "nut-swipe__content",
213
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.onClick($event, "content", _ctx.lockClick))
214
+ }, [
194
215
  renderSlot(_ctx.$slots, "default")
195
216
  ]),
196
- createElementVNode("view", _hoisted_3, [
217
+ createElementVNode("view", {
218
+ class: "nut-swipe__right",
219
+ ref: "rightRef",
220
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.onClick($event, "right", true))
221
+ }, [
197
222
  renderSlot(_ctx.$slots, "right")
198
223
  ], 512)
199
- ], 38);
224
+ ], 36);
200
225
  }
201
226
  const Swipe = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
202
227
  export {
@@ -0,0 +1,39 @@
1
+ import { ref, provide, openBlock, createElementBlock, renderSlot } from "vue";
2
+ import { c as createComponent } from "./component-0fbad28e.js";
3
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
+ import "../locale/lang";
5
+ const { create } = createComponent("swipe-group");
6
+ const _sfc_main = create({
7
+ props: {
8
+ lock: {
9
+ type: Boolean,
10
+ default: false
11
+ }
12
+ },
13
+ setup(props) {
14
+ const swipeGroupRef = ref(null);
15
+ const name = ref("");
16
+ const update = (n) => {
17
+ name.value = n;
18
+ };
19
+ provide("swipeGroup", {
20
+ update,
21
+ lock: props.lock,
22
+ name
23
+ });
24
+ return { swipeGroupRef };
25
+ }
26
+ });
27
+ const _hoisted_1 = {
28
+ class: "nut-swipe-group",
29
+ ref: "swipeGroupRef"
30
+ };
31
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
32
+ return openBlock(), createElementBlock("div", _hoisted_1, [
33
+ renderSlot(_ctx.$slots, "default")
34
+ ], 512);
35
+ }
36
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
37
+ export {
38
+ index as default
39
+ };
@@ -55,9 +55,14 @@ const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
55
55
  const initTaroWidth = () => __async(void 0, null, function* () {
56
56
  var _a, _b;
57
57
  if (taro && taro.getEnv() !== taro.ENV_TYPE.WEB) {
58
- let rect = yield useTaroRect(tabsContentRef);
59
- tabsContentRefRect.value.width = rect.width || 0;
60
- tabsContentRefRect.value.height = rect.height || 0;
58
+ useTaroRect(tabsContentRef).then(
59
+ (rect) => {
60
+ tabsContentRefRect.value.width = rect.width || 0;
61
+ tabsContentRefRect.value.height = rect.height || 0;
62
+ },
63
+ () => {
64
+ }
65
+ );
61
66
  } else {
62
67
  tabsContentRefRect.value.width = ((_a = tabsContentRef.value) == null ? void 0 : _a.clientWidth) || 0;
63
68
  tabsContentRefRect.value.height = ((_b = tabsContentRef.value) == null ? void 0 : _b.clientHeight) || 0;
@@ -1,13 +1,19 @@
1
- import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
1
+ import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
2
2
  import { c as createComponent } from "./component-0fbad28e.js";
3
3
  import { Close } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
- const { componentName, create } = createComponent("tag");
6
+ const { create } = createComponent("tag");
7
7
  const _sfc_main = create({
8
8
  props: {
9
- color: { type: String, default: "" },
10
- textColor: { type: String, default: "" },
9
+ color: {
10
+ type: String,
11
+ default: ""
12
+ },
13
+ textColor: {
14
+ type: String,
15
+ default: ""
16
+ },
11
17
  type: {
12
18
  type: String,
13
19
  default: "default"
@@ -34,32 +40,31 @@ const _sfc_main = create({
34
40
  },
35
41
  emits: ["close", "click"],
36
42
  setup(props, { emit }) {
37
- const { type, color, plain, round, mark, textColor } = toRefs(props);
38
43
  const classes = computed(() => {
39
- const prefixCls = componentName;
44
+ const prefixCls = "nut-tag";
40
45
  return {
41
46
  [prefixCls]: true,
42
- [`${prefixCls}--${type.value}`]: type.value,
43
- [`${prefixCls}--plain`]: plain.value,
44
- [`${prefixCls}--round`]: round.value,
45
- [`${prefixCls}--mark`]: mark.value
47
+ [`${prefixCls}--${props.type}`]: props.type,
48
+ [`${prefixCls}--plain`]: props.plain,
49
+ [`${prefixCls}--round`]: props.round,
50
+ [`${prefixCls}--mark`]: props.mark
46
51
  };
47
52
  });
48
- const getStyle = () => {
49
- const style = {};
50
- if (textColor.value) {
51
- style.color = textColor.value;
52
- } else if (color.value && plain.value) {
53
- style.color = color.value;
53
+ const style = computed(() => {
54
+ const style2 = {};
55
+ if (props.textColor) {
56
+ style2.color = props.textColor;
57
+ } else if (props.color && props.plain) {
58
+ style2.color = props.color;
54
59
  }
55
- if (plain.value) {
56
- style.background = "#fff";
57
- style["border-color"] = color.value;
58
- } else if (color.value) {
59
- style.background = color.value;
60
+ if (props.plain) {
61
+ style2.background = "#fff";
62
+ style2["border-color"] = props.color;
63
+ } else if (props.color) {
64
+ style2.background = props.color;
60
65
  }
61
- return style;
62
- };
66
+ return style2;
67
+ });
63
68
  const onClose = (event) => {
64
69
  event.stopPropagation();
65
70
  emit("close", event);
@@ -69,7 +74,7 @@ const _sfc_main = create({
69
74
  };
70
75
  return {
71
76
  classes,
72
- getStyle,
77
+ style,
73
78
  onClose,
74
79
  onClick
75
80
  };
@@ -79,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
79
84
  const _component_Close = resolveComponent("Close");
80
85
  return openBlock(), createElementBlock("view", {
81
86
  class: normalizeClass(_ctx.classes),
82
- style: normalizeStyle(_ctx.getStyle()),
87
+ style: normalizeStyle(_ctx.style),
83
88
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
84
89
  }, [
85
90
  renderSlot(_ctx.$slots, "default"),