web-component-gallery 2.2.12 → 2.2.14

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.
@@ -102,7 +102,7 @@ async function parseLessVariables(content) {
102
102
  function parseCSSVariables(cssVariables, resetVar) {
103
103
  const result = {}
104
104
  for (const [key, value] of Object.entries(cssVariables)) {
105
- const match = value.match(/var$\s*([^,)]+)\s*(?:,\s*((?:[^()]|\([^)]*$)+))?\s*\)/)
105
+ const match = value.match(/var\(\s*([^,)]+)\s*(?:,\s*((?:[^()]|\([^)]*\))+))?\s*\)/)
106
106
  if (match) result[match[1]] = (match[2] || resetVar[key])
107
107
  }
108
108
  return result
@@ -170,7 +170,7 @@ export default {
170
170
  },
171
171
 
172
172
  mounted() {
173
- this.initSlider()
173
+ setTimeout(this.initSlider, 0)
174
174
  this.$bus.$onWindow(this, 'resize', this.handleWindowResize)
175
175
  },
176
176
 
@@ -26,8 +26,8 @@ ol {
26
26
  }
27
27
 
28
28
  // 表格——Title
29
- .Table__Name {
30
- color: @white;
29
+ .Table__Name {
30
+ color: @text-color;
31
31
  font-size: @font-size-lg;
32
32
  padding-left: @padding-sm;
33
33
  box-sizing: border-box;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.2.12",
3
+ "version": "2.2.14",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [