web-component-gallery 0.1.64 → 0.1.65

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.
@@ -71,8 +71,8 @@
71
71
  }
72
72
 
73
73
  /* flex排版方式 */
74
- .flex-mixins(@direction: row, @align: center, @justify: center ) {
75
- .flex-layout(@direction);
74
+ .flex-mixins(@direction: row, @align: center, @justify: center, @gap: 0 ) {
75
+ .flex-layout(@direction, @gap);
76
76
  flex-wrap: wrap;
77
77
  align-items: @align;
78
78
  justify-content: @justify;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "vue-library-ui组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [
@@ -71,8 +71,8 @@
71
71
  }
72
72
 
73
73
  /* flex排版方式 */
74
- .flex-mixins(@direction: row, @align: center, @justify: center ) {
75
- .flex-layout(@direction);
74
+ .flex-mixins(@direction: row, @align: center, @justify: center, @gap: 0 ) {
75
+ .flex-layout(@direction, @gap);
76
76
  flex-wrap: wrap;
77
77
  align-items: @align;
78
78
  justify-content: @justify;
@@ -83,7 +83,7 @@ export default {
83
83
  size,
84
84
  image: IconUrl,
85
85
  imageSize: size,
86
- imageOffset: new AMap.Pixel( 0,0 )
86
+ imageOffset: new AMap.Pixel( 0, image.height / 2 )
87
87
  })
88
88
  // const size = new AMap.Size( image.width, image.height )
89
89
  // return new AMap.Icon({
@@ -151,5 +151,5 @@ export function getAllParents(tree, key, replaceFields = { children: 'children',
151
151
  return parents
152
152
  }
153
153
 
154
- return findParents(tree, inx)
154
+ return findParents(tree, inx)
155
155
  }
package/utils/Tree.js CHANGED
@@ -151,5 +151,5 @@ export function getAllParents(tree, key, replaceFields = { children: 'children',
151
151
  return parents
152
152
  }
153
153
 
154
- return findParents(tree, inx)
154
+ return findParents(tree, inx)
155
155
  }