@opentinyvue/vue-design-saas 2.22.0 → 2.23.0

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/index.d.ts CHANGED
@@ -98,10 +98,10 @@ declare const _default: {
98
98
  constants: any;
99
99
  }, api: any) => {
100
100
  getMileIcon: (node: any) => {
101
- background: string;
102
- color: string;
103
- boxShadow: string;
104
- };
101
+ background: any;
102
+ color: any;
103
+ 'border-color': any;
104
+ } | undefined;
105
105
  getFlagStyle: ({ index, idx }: {
106
106
  index: any;
107
107
  idx: any;
package/index.js CHANGED
@@ -144,15 +144,16 @@ var Milestone = {
144
144
  var constants = _ref4.constants;
145
145
  return {
146
146
  getMileIcon: function getMileIcon(node) {
147
- var status = props.milestonesStatus[node[props.statusField]] || constants.DEFAULT_COLOR;
148
- var isCompleted = node[props.statusField] === props.completedField;
149
- var switchColor = isCompleted && !props.solid;
150
- var _api$hexToRgb = api.hexToRgb(status), r = _api$hexToRgb.r, g = _api$hexToRgb.g, b = _api$hexToRgb.b;
151
- return {
152
- background: (switchColor ? constants.DEFAULT_BACK_COLOR : status) + "!important",
153
- color: (switchColor ? status : constants.DEFAULT_BACK_COLOR) + "!important",
154
- boxShadow: "rgba(" + r + "," + g + "," + b + ",.4) " + constants.BOX_SHADOW_PX
155
- };
147
+ var status = node[props.statusField];
148
+ var statusColor = props.milestonesStatus[status];
149
+ var isCompleted = status === constants.STATUS_COMPLETED;
150
+ if (statusColor) {
151
+ return {
152
+ background: props.solid ? statusColor : "",
153
+ color: props.solid && !isCompleted ? "#ffffff" : statusColor,
154
+ "border-color": statusColor
155
+ };
156
+ }
156
157
  },
157
158
  getFlagStyle: function getFlagStyle(_ref5) {
158
159
  var index2 = _ref5.index, idx = _ref5.idx;
@@ -424,7 +425,7 @@ var Cascader = {
424
425
  // 多选时,控制tag的颜色
425
426
  tagTypeWhenMultiple: "info"
426
427
  };
427
- var version = "2.22.0";
428
+ var version = "2.23.0";
428
429
  var index = {
429
430
  name: "saas",
430
431
  version,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-design-saas",
3
- "version": "2.22.0",
3
+ "version": "2.23.0",
4
4
  "main": "./index.js",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@opentinyvue/vue-icon": "~2.22.0"
8
+ "@opentinyvue/vue-icon": "~2.23.0"
9
9
  },
10
10
  "license": "MIT",
11
11
  "module": "./index.js",
@@ -3,10 +3,10 @@ declare const _default: {
3
3
  constants: any;
4
4
  }, api: any) => {
5
5
  getMileIcon: (node: any) => {
6
- background: string;
7
- color: string;
8
- boxShadow: string;
9
- };
6
+ background: any;
7
+ color: any;
8
+ 'border-color': any;
9
+ } | undefined;
10
10
  getFlagStyle: ({ index, idx }: {
11
11
  index: any;
12
12
  idx: any;