web-component-gallery 0.1.33 → 0.1.34

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.
@@ -130,7 +130,7 @@ export default {
130
130
  return /(select|picker|radio|upload)/.test(is) ? '请选择' : '请输入'
131
131
  }
132
132
  },
133
- mounted() {
133
+ mounted() {
134
134
  this.handleSearch()
135
135
  this.matchMediaSize = this.layoutSize
136
136
  Object.keys(this.matchMedia).forEach(media =>
@@ -145,7 +145,7 @@ export default {
145
145
  const gap = {
146
146
  middle: '16px',
147
147
  default: '24px'
148
- }
148
+ }
149
149
  return `flex: 0 1 calc((${(100 / this.matchMediaSize) * (e.size ?? 1)}% - ${
150
150
  gap[this.searchStyle]
151
151
  })); margin-right: ${gap[this.searchStyle]};`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "vue-library-ui组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [
@@ -130,7 +130,7 @@ export default {
130
130
  return /(select|picker|radio|upload)/.test(is) ? '请选择' : '请输入'
131
131
  }
132
132
  },
133
- mounted() {
133
+ mounted() {
134
134
  this.handleSearch()
135
135
  this.matchMediaSize = this.layoutSize
136
136
  Object.keys(this.matchMedia).forEach(media =>
@@ -145,7 +145,7 @@ export default {
145
145
  const gap = {
146
146
  middle: '16px',
147
147
  default: '24px'
148
- }
148
+ }
149
149
  return `flex: 0 1 calc((${(100 / this.matchMediaSize) * (e.size ?? 1)}% - ${
150
150
  gap[this.searchStyle]
151
151
  })); margin-right: ${gap[this.searchStyle]};`
@@ -40,6 +40,9 @@ export default {
40
40
  })
41
41
  }
42
42
 
43
+ /** 地图公共bus来抛出和接收数据 */
44
+ Vue.prototype.$amapBus = new Vue()
45
+
43
46
  /** 常用覆盖物 */
44
47
  Vue.prototype.$amapLayers = {
45
48
  setIcon,