unika-components 1.0.149 → 1.0.151

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.
@@ -1,37 +1,13 @@
1
+ export declare const defaultStyles: string[];
1
2
  declare const _default: import("vue").DefineComponent<{
2
- mapHtml: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- mapUrl: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- isEditing: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
3
+ [x: string]: any;
14
4
  }, {
15
5
  styleProps: import("vue").ComputedRef<Pick<any, string>>;
16
6
  handleClick: () => void;
17
- openMap: () => void;
18
- iframeHtml: import("vue").ComputedRef<string>;
7
+ iframeHtml: import("vue").ComputedRef<any>;
19
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
- mapHtml: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- mapUrl: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- isEditing: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
9
+ [x: string]: any;
32
10
  }>>, {
33
- mapHtml: string;
34
- mapUrl: string;
35
- isEditing: boolean;
11
+ [x: string]: any;
36
12
  }, {}>;
37
13
  export default _default;
@@ -279,9 +279,11 @@ export declare const mapDefaultProps: {
279
279
  top: string;
280
280
  width: string;
281
281
  height: string;
282
+ position: string;
282
283
  transform: string;
283
284
  mapHtml: string;
284
- mapUrl: string;
285
+ url: string;
286
+ actionType: string;
285
287
  };
286
288
  export declare const callDefaultProps: {
287
289
  left: string;
@@ -303,6 +305,7 @@ export declare const callDefaultProps: {
303
305
  fontSize: string;
304
306
  opacity: number;
305
307
  actionType: string;
308
+ transform: string;
306
309
  };
307
310
  export declare const buttonDefaultProps: {
308
311
  position: string;
@@ -597,9 +600,11 @@ export declare const componentsDefaultProps: {
597
600
  top: string;
598
601
  width: string;
599
602
  height: string;
603
+ position: string;
600
604
  transform: string;
601
605
  mapHtml: string;
602
- mapUrl: string;
606
+ url: string;
607
+ actionType: string;
603
608
  };
604
609
  };
605
610
  'uni-call': {
@@ -623,6 +628,7 @@ export declare const componentsDefaultProps: {
623
628
  fontSize: string;
624
629
  opacity: number;
625
630
  actionType: string;
631
+ transform: string;
626
632
  };
627
633
  };
628
634
  'uni-like': {
@@ -1,19 +1,3 @@
1
-
2
- .uni-image-component {
3
- max-width: 100%;
4
- }
5
-
6
- h2.uni-text-component, p.uni-text-component {
7
- margin-bottom: 0;
8
- }
9
- button.uni-text-component {
10
- padding: 5px 10px;
11
- cursor: pointer;
12
- }
13
- .uni-text-component {
14
- box-sizing: border-box;
15
- white-space: pre-wrap;
16
- }
17
1
 
18
2
  .uni-video-component {
19
3
  position: relative;
@@ -48,6 +32,18 @@ button.uni-text-component {
48
32
  color: #666
49
33
  }
50
34
 
35
+ h2.uni-text-component, p.uni-text-component {
36
+ margin-bottom: 0;
37
+ }
38
+ button.uni-text-component {
39
+ padding: 5px 10px;
40
+ cursor: pointer;
41
+ }
42
+ .uni-text-component {
43
+ box-sizing: border-box;
44
+ white-space: pre-wrap;
45
+ }
46
+
51
47
  .slide-guide {
52
48
  position: absolute;
53
49
  bottom: 90px;
@@ -120,11 +116,10 @@ body, html {
120
116
  transform: translate3d(-50%, -50%, 0);
121
117
  }
122
118
  }
123
-
124
- .effect {
125
- width: 100%;
126
- height: 100%;
127
- }
119
+
120
+ .uni-image-component {
121
+ max-width: 100%;
122
+ }
128
123
 
129
124
  .like-button {
130
125
  display: flex;
@@ -148,20 +143,6 @@ body, html {
148
143
  color: #333;
149
144
  }
150
145
 
151
- .swiper-warp {
152
- width: 100%;
153
- height: 100%;
154
- }
155
-
156
- .swiper-slide-component {
157
- text-align: center;
158
- }
159
-
160
- .swiper-slide img {
161
- max-width: 100%;
162
- max-height: 100%;
163
- }
164
-
165
146
  .ant-input-number {
166
147
  box-sizing: border-box;
167
148
  margin: 0;
@@ -196,6 +177,25 @@ body, html {
196
177
  margin-bottom: 0px;
197
178
  vertical-align: top;
198
179
  }
180
+
181
+ .effect {
182
+ width: 100%;
183
+ height: 100%;
184
+ }
185
+
186
+ .swiper-warp {
187
+ width: 100%;
188
+ height: 100%;
189
+ }
190
+
191
+ .swiper-slide-component {
192
+ text-align: center;
193
+ }
194
+
195
+ .swiper-slide img {
196
+ max-width: 100%;
197
+ max-height: 100%;
198
+ }
199
199
  /**
200
200
  * Swiper 6.8.4
201
201
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -5106,9 +5106,11 @@ const mapDefaultProps = {
5106
5106
  top: '147px',
5107
5107
  width: '320px',
5108
5108
  height: '340px',
5109
+ position: 'absolute',
5109
5110
  transform: 'rotate(0deg)',
5110
5111
  mapHtml: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>',
5111
- mapUrl: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
5112
+ url: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8',
5113
+ actionType: 'to'
5112
5114
  };
5113
5115
  const callDefaultProps = {
5114
5116
  left: '127px',
@@ -5129,7 +5131,8 @@ const callDefaultProps = {
5129
5131
  callText: '一键拨号',
5130
5132
  fontSize: '16px',
5131
5133
  opacity: 1,
5132
- actionType: 'tel'
5134
+ actionType: 'tel',
5135
+ transform: 'rotate(0deg)'
5133
5136
  };
5134
5137
  const buttonDefaultProps = {
5135
5138
  position: 'absolute',
@@ -5299,9 +5302,9 @@ const transformToComponentProps = (props, extraProps) => {
5299
5302
  }
5300
5303
  };
5301
5304
 
5302
- const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5305
+ const defaultStyles$8 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5303
5306
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5304
- const useStylePick = (props, pickStyles = defaultStyles$7) => {
5307
+ const useStylePick = (props, pickStyles = defaultStyles$8) => {
5305
5308
  return computed(() => pick$1(props, pickStyles));
5306
5309
  };
5307
5310
 
@@ -13143,7 +13146,7 @@ script$f.install = (app) => {
13143
13146
  };
13144
13147
 
13145
13148
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13146
- const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13149
+ const defaultStyles$7 = Object.keys(backgroundDefaultProps);
13147
13150
  // array that contains style props
13148
13151
  var script$e = defineComponent({
13149
13152
  name: 'uni-background',
@@ -13151,7 +13154,7 @@ var script$e = defineComponent({
13151
13154
  ...defaultProps$b
13152
13155
  },
13153
13156
  setup(props) {
13154
- const styleProps = useStylePick(props, defaultStyles$6);
13157
+ const styleProps = useStylePick(props, defaultStyles$7);
13155
13158
  const handleClick = useComponentClick(props);
13156
13159
  return {
13157
13160
  styleProps,
@@ -16030,7 +16033,7 @@ script$c.__scopeId = "data-v-ef842ea2";
16030
16033
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16031
16034
 
16032
16035
  const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-calendar'].props, isEditingProp);
16033
- const defaultStyles$5 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16036
+ const defaultStyles$6 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16034
16037
  // 获取当前日期和时间
16035
16038
  const now$2 = new Date();
16036
16039
  // 添加一天
@@ -16051,7 +16054,7 @@ var script$b = defineComponent({
16051
16054
  setup(props) {
16052
16055
  // 重用并且简化
16053
16056
  // 抽离并且获得 styleProps
16054
- const styleProps = useStylePick(props, defaultStyles$5);
16057
+ const styleProps = useStylePick(props, defaultStyles$6);
16055
16058
  const handleClick = useComponentClick(props);
16056
16059
  const dataList = ref([
16057
16060
  { date: '2028-01-31', value: '' }
@@ -22241,7 +22244,7 @@ script$a.__scopeId = "data-v-47d33153";
22241
22244
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22242
22245
 
22243
22246
  const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
22244
- const defaultStyles$4 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22247
+ const defaultStyles$5 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22245
22248
  // 获取当前日期和时间
22246
22249
  const now = new Date();
22247
22250
  // 添加一天
@@ -22265,7 +22268,7 @@ var script$9 = defineComponent({
22265
22268
  setup(props) {
22266
22269
  // 重用并且简化
22267
22270
  // 抽离并且获得 styleProps
22268
- const styleProps = useStylePick(props, defaultStyles$4);
22271
+ const styleProps = useStylePick(props, defaultStyles$5);
22269
22272
  const handleClick = useComponentClick(props);
22270
22273
  const labelSize = computed(() => {
22271
22274
  if (props.size == 'middle') {
@@ -22350,44 +22353,43 @@ script$9.install = (app) => {
22350
22353
  };
22351
22354
 
22352
22355
  const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-map'].props, isEditingProp);
22356
+ const defaultStyles$4 = without$1(Object.keys(mapDefaultProps), 'actionType', 'url', 'mapHtml');
22353
22357
  // array that contains style props
22354
22358
  var script$8 = defineComponent({
22355
22359
  name: 'uni-map',
22356
22360
  props: {
22357
22361
  ...defaultProps$7,
22358
- mapHtml: {
22359
- type: String,
22360
- default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22361
- },
22362
- mapUrl: {
22363
- type: String,
22364
- default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22365
- },
22366
- isEditing: {
22367
- type: Boolean,
22368
- default: false
22369
- }
22362
+ // mapHtml: {
22363
+ // type: String,
22364
+ // default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22365
+ // },
22366
+ // mapUrl: {
22367
+ // type: String,
22368
+ // default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22369
+ // },
22370
+ // isEditing: {
22371
+ // type: Boolean,
22372
+ // default: false
22373
+ // }
22370
22374
  },
22371
22375
  components: {},
22372
22376
  setup(props) {
22373
22377
  // 重用并且简化
22374
22378
  // 抽离并且获得 styleProps
22375
- const styleProps = useStylePick(props);
22379
+ const styleProps = useStylePick(props, defaultStyles$4);
22376
22380
  const handleClick = useComponentClick(props);
22377
- const openMap = () => {
22378
- // 替换为要拨打的电话号码
22379
- // 使用电话链接打电话
22380
- if (!props.isEditing) {
22381
- window.location.href = props.mapUrl;
22382
- }
22383
- };
22381
+ // const openMap = () => {
22382
+ // // 替换为要拨打的电话号码
22383
+ // // 使用电话链接打电话
22384
+ // window.location.href = props.mapUrl
22385
+ // }
22384
22386
  const iframeHtml = computed(() => {
22385
22387
  return props.mapHtml.replace('width="600"', 'width="100%"').replace('height="450"', 'height="100%"');
22386
22388
  });
22387
22389
  return {
22388
22390
  styleProps,
22389
22391
  handleClick,
22390
- openMap,
22392
+ // openMap,
22391
22393
  iframeHtml
22392
22394
  };
22393
22395
  }
@@ -22397,13 +22399,11 @@ const _hoisted_1$4 = ["innerHTML"];
22397
22399
 
22398
22400
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
22399
22401
  return (openBlock(), createElementBlock("div", {
22400
- style: normalizeStyle$1({ ..._ctx.styleProps, position: 'absolute'})
22402
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22403
+ style: normalizeStyle$1(_ctx.styleProps),
22404
+ class: "uni-map-component"
22401
22405
  }, [
22402
- createElementVNode("div", {
22403
- innerHTML: _ctx.iframeHtml,
22404
- class: "uni-map-component",
22405
- onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openMap && _ctx.openMap(...args)))
22406
- }, null, 8 /* PROPS */, _hoisted_1$4)
22406
+ createElementVNode("div", { innerHTML: _ctx.iframeHtml }, null, 8 /* PROPS */, _hoisted_1$4)
22407
22407
  ], 4 /* STYLE */))
22408
22408
  }
22409
22409
 
@@ -5113,9 +5113,11 @@
5113
5113
  top: '147px',
5114
5114
  width: '320px',
5115
5115
  height: '340px',
5116
+ position: 'absolute',
5116
5117
  transform: 'rotate(0deg)',
5117
5118
  mapHtml: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>',
5118
- mapUrl: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
5119
+ url: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8',
5120
+ actionType: 'to'
5119
5121
  };
5120
5122
  const callDefaultProps = {
5121
5123
  left: '127px',
@@ -5136,7 +5138,8 @@
5136
5138
  callText: '一键拨号',
5137
5139
  fontSize: '16px',
5138
5140
  opacity: 1,
5139
- actionType: 'tel'
5141
+ actionType: 'tel',
5142
+ transform: 'rotate(0deg)'
5140
5143
  };
5141
5144
  const buttonDefaultProps = {
5142
5145
  position: 'absolute',
@@ -5306,9 +5309,9 @@
5306
5309
  }
5307
5310
  };
5308
5311
 
5309
- const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5312
+ const defaultStyles$8 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5310
5313
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5311
- const useStylePick = (props, pickStyles = defaultStyles$7) => {
5314
+ const useStylePick = (props, pickStyles = defaultStyles$8) => {
5312
5315
  return vue.computed(() => pick$1(props, pickStyles));
5313
5316
  };
5314
5317
 
@@ -13150,7 +13153,7 @@
13150
13153
  };
13151
13154
 
13152
13155
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13153
- const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13156
+ const defaultStyles$7 = Object.keys(backgroundDefaultProps);
13154
13157
  // array that contains style props
13155
13158
  var script$e = vue.defineComponent({
13156
13159
  name: 'uni-background',
@@ -13158,7 +13161,7 @@
13158
13161
  ...defaultProps$b
13159
13162
  },
13160
13163
  setup(props) {
13161
- const styleProps = useStylePick(props, defaultStyles$6);
13164
+ const styleProps = useStylePick(props, defaultStyles$7);
13162
13165
  const handleClick = useComponentClick(props);
13163
13166
  return {
13164
13167
  styleProps,
@@ -16037,7 +16040,7 @@
16037
16040
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16038
16041
 
16039
16042
  const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-calendar'].props, isEditingProp);
16040
- const defaultStyles$5 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16043
+ const defaultStyles$6 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16041
16044
  // 获取当前日期和时间
16042
16045
  const now$2 = new Date();
16043
16046
  // 添加一天
@@ -16058,7 +16061,7 @@
16058
16061
  setup(props) {
16059
16062
  // 重用并且简化
16060
16063
  // 抽离并且获得 styleProps
16061
- const styleProps = useStylePick(props, defaultStyles$5);
16064
+ const styleProps = useStylePick(props, defaultStyles$6);
16062
16065
  const handleClick = useComponentClick(props);
16063
16066
  const dataList = vue.ref([
16064
16067
  { date: '2028-01-31', value: '' }
@@ -22248,7 +22251,7 @@
22248
22251
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22249
22252
 
22250
22253
  const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
22251
- const defaultStyles$4 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22254
+ const defaultStyles$5 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22252
22255
  // 获取当前日期和时间
22253
22256
  const now = new Date();
22254
22257
  // 添加一天
@@ -22272,7 +22275,7 @@
22272
22275
  setup(props) {
22273
22276
  // 重用并且简化
22274
22277
  // 抽离并且获得 styleProps
22275
- const styleProps = useStylePick(props, defaultStyles$4);
22278
+ const styleProps = useStylePick(props, defaultStyles$5);
22276
22279
  const handleClick = useComponentClick(props);
22277
22280
  const labelSize = vue.computed(() => {
22278
22281
  if (props.size == 'middle') {
@@ -22357,44 +22360,43 @@
22357
22360
  };
22358
22361
 
22359
22362
  const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-map'].props, isEditingProp);
22363
+ const defaultStyles$4 = without$1(Object.keys(mapDefaultProps), 'actionType', 'url', 'mapHtml');
22360
22364
  // array that contains style props
22361
22365
  var script$8 = vue.defineComponent({
22362
22366
  name: 'uni-map',
22363
22367
  props: {
22364
22368
  ...defaultProps$7,
22365
- mapHtml: {
22366
- type: String,
22367
- default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22368
- },
22369
- mapUrl: {
22370
- type: String,
22371
- default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22372
- },
22373
- isEditing: {
22374
- type: Boolean,
22375
- default: false
22376
- }
22369
+ // mapHtml: {
22370
+ // type: String,
22371
+ // default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22372
+ // },
22373
+ // mapUrl: {
22374
+ // type: String,
22375
+ // default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22376
+ // },
22377
+ // isEditing: {
22378
+ // type: Boolean,
22379
+ // default: false
22380
+ // }
22377
22381
  },
22378
22382
  components: {},
22379
22383
  setup(props) {
22380
22384
  // 重用并且简化
22381
22385
  // 抽离并且获得 styleProps
22382
- const styleProps = useStylePick(props);
22386
+ const styleProps = useStylePick(props, defaultStyles$4);
22383
22387
  const handleClick = useComponentClick(props);
22384
- const openMap = () => {
22385
- // 替换为要拨打的电话号码
22386
- // 使用电话链接打电话
22387
- if (!props.isEditing) {
22388
- window.location.href = props.mapUrl;
22389
- }
22390
- };
22388
+ // const openMap = () => {
22389
+ // // 替换为要拨打的电话号码
22390
+ // // 使用电话链接打电话
22391
+ // window.location.href = props.mapUrl
22392
+ // }
22391
22393
  const iframeHtml = vue.computed(() => {
22392
22394
  return props.mapHtml.replace('width="600"', 'width="100%"').replace('height="450"', 'height="100%"');
22393
22395
  });
22394
22396
  return {
22395
22397
  styleProps,
22396
22398
  handleClick,
22397
- openMap,
22399
+ // openMap,
22398
22400
  iframeHtml
22399
22401
  };
22400
22402
  }
@@ -22404,13 +22406,11 @@
22404
22406
 
22405
22407
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
22406
22408
  return (vue.openBlock(), vue.createElementBlock("div", {
22407
- style: vue.normalizeStyle({ ..._ctx.styleProps, position: 'absolute'})
22409
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22410
+ style: vue.normalizeStyle(_ctx.styleProps),
22411
+ class: "uni-map-component"
22408
22412
  }, [
22409
- vue.createElementVNode("div", {
22410
- innerHTML: _ctx.iframeHtml,
22411
- class: "uni-map-component",
22412
- onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openMap && _ctx.openMap(...args)))
22413
- }, null, 8 /* PROPS */, _hoisted_1$4)
22413
+ vue.createElementVNode("div", { innerHTML: _ctx.iframeHtml }, null, 8 /* PROPS */, _hoisted_1$4)
22414
22414
  ], 4 /* STYLE */))
22415
22415
  }
22416
22416
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",