@opentinyvue/vue-design-saas 3.21.0 → 3.22.1

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
@@ -112,10 +112,10 @@ declare const _default: {
112
112
  constants: any;
113
113
  }, api: any) => {
114
114
  getMileIcon: (node: any) => {
115
- background: string;
116
- color: string;
117
- boxShadow: string;
118
- };
115
+ background: any;
116
+ color: any;
117
+ 'border-color': any;
118
+ } | undefined;
119
119
  getFlagStyle: ({ index, idx }: {
120
120
  index: any;
121
121
  idx: any;
package/index.js CHANGED
@@ -145,15 +145,16 @@ var Milestone = {
145
145
  var constants = _ref4.constants;
146
146
  return {
147
147
  getMileIcon: function getMileIcon(node) {
148
- var status = props.milestonesStatus[node[props.statusField]] || constants.DEFAULT_COLOR;
149
- var isCompleted = node[props.statusField] === props.completedField;
150
- var switchColor = isCompleted && !props.solid;
151
- var _api$hexToRgb = api.hexToRgb(status), r = _api$hexToRgb.r, g = _api$hexToRgb.g, b = _api$hexToRgb.b;
152
- return {
153
- background: (switchColor ? constants.DEFAULT_BACK_COLOR : status) + "!important",
154
- color: (switchColor ? status : constants.DEFAULT_BACK_COLOR) + "!important",
155
- boxShadow: "rgba(" + r + "," + g + "," + b + ",.4) " + constants.BOX_SHADOW_PX
156
- };
148
+ var status = node[props.statusField];
149
+ var statusColor = props.milestonesStatus[status];
150
+ var isCompleted = status === constants.STATUS_COMPLETED;
151
+ if (statusColor) {
152
+ return {
153
+ background: props.solid ? statusColor : "",
154
+ color: props.solid && !isCompleted ? "#ffffff" : statusColor,
155
+ "border-color": statusColor
156
+ };
157
+ }
157
158
  },
158
159
  getFlagStyle: function getFlagStyle(_ref5) {
159
160
  var index2 = _ref5.index, idx = _ref5.idx;
@@ -427,7 +428,7 @@ var Cascader = {
427
428
  // 多选时,控制tag的颜色
428
429
  tagTypeWhenMultiple: "info"
429
430
  };
430
- var version = "3.21.0";
431
+ var version = "3.undefined";
431
432
  var index = {
432
433
  name: "saas",
433
434
  version,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-design-saas",
3
- "version": "3.21.0",
3
+ "version": "3.22.1",
4
4
  "main": "./index.js",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@opentinyvue/vue-icon": "~3.21.0"
8
+ "@opentinyvue/vue-icon": "~3.22.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;