xt-element-ui 1.2.3 → 1.2.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xt-element-ui",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "基于 Vue2.7 + ElementUI 的组件库",
5
5
  "main": "lib/index.common.js",
6
6
  "module": "lib/index.esm.js",
@@ -103,10 +103,7 @@ export default {
103
103
  legend: this.showLegend ? {
104
104
  top: "top",
105
105
  right: "20",
106
- type: "scroll",
107
- textStyle: {
108
- color: "#808080"
109
- }
106
+ type: "scroll"
110
107
  } : null,
111
108
  grid: {
112
109
  left: 30,
@@ -1,3 +1,5 @@
1
+
2
+ import variables from '../../../styles/variables-export.scss'
1
3
  export default {
2
4
  color: ["#0de7ff", "#a782ff", "#fcdd60", "#0de7ff", "#ffc5a1", "#6291ae", "#13ce66"],
3
5
  backgroundColor: "#000",
@@ -6,10 +8,10 @@ export default {
6
8
  },
7
9
  title: {
8
10
  textStyle: {
9
- color: "#333"
11
+ color: "#ffffff"
10
12
  },
11
13
  subtextStyle: {
12
- color: "#666666"
14
+ color: "#ffffff"
13
15
  }
14
16
  },
15
17
  line: {
@@ -27,20 +29,20 @@ export default {
27
29
  pie: {
28
30
  roseType: "radius",
29
31
  label: {
30
- color: "#333"
32
+ color: "#ffffff"
31
33
  }
32
34
  },
33
35
  radar: {
34
36
  indicator: {
35
- color: "#666666"
37
+ color: "#ffffff"
36
38
  }
37
39
  },
38
40
  map: {
39
41
  label: {
40
- color: "#333"
42
+ color: "#ffffff"
41
43
  },
42
44
  itemStyle: {
43
- borderColor: "#fff"
45
+ borderColor: variables.xtColorBorder
44
46
  }
45
47
  },
46
48
  gauge: {
@@ -52,7 +54,7 @@ export default {
52
54
  },
53
55
  toolbox: {
54
56
  iconStyle: {
55
- borderColor: "#666666"
57
+ borderColor: "#ffffff"
56
58
  }
57
59
  },
58
60
  axisLine: {
@@ -72,20 +74,20 @@ export default {
72
74
  },
73
75
  splitArea: {
74
76
  areaStyle: {
75
- color: ["#f7f8fa", "#ffffff"]
77
+ color: ["#666666", "#666666"]
76
78
  }
77
79
  },
78
80
  legend: {
79
81
  textStyle: {
80
- color: "#666"
82
+ color: "#ffffff"
81
83
  }
82
84
  },
83
85
  tooltip: {
84
- backgroundColor: "rgba(255, 255, 255, 0.95)",
85
- borderColor: "#DCDFE6",
86
+ backgroundColor: variables.xtColorBgOverlay,
87
+ borderColor: variables.xtColorBorder,
86
88
  borderWidth: 1,
87
89
  textStyle: {
88
- color: "#333"
90
+ color: "#fff"
89
91
  }
90
92
  }
91
93
  };
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <button
3
- class="el-button xt-button"
3
+ class="xt-button"
4
4
  :class="[
5
5
  type ?'xt-button--' + type: '',
6
6
  size ? 'xt-button--' + size : '',
@@ -28,7 +28,7 @@ export default {
28
28
  size: {
29
29
  type: String,
30
30
  default: '',
31
- validator: (val) => ['', 'large', 'medium', 'small', 'mini'].includes(val)
31
+ validator: (val) => ['', 'large', 'medium', 'small'].includes(val)
32
32
  },
33
33
  plain: {
34
34
  type: Boolean,