@opentinyvue/vue-design-saas 3.23.0 → 3.25.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
@@ -112,10 +112,10 @@ declare const _default: {
112
112
  constants: any;
113
113
  }, api: any) => {
114
114
  getMileIcon: (node: any) => {
115
- background: any;
116
- color: any;
117
- 'border-color': any;
118
- } | undefined;
115
+ background: string;
116
+ color: string;
117
+ boxShadow: string;
118
+ };
119
119
  getFlagStyle: ({ index, idx }: {
120
120
  index: any;
121
121
  idx: any;
package/index.js CHANGED
@@ -145,16 +145,15 @@ var Milestone = {
145
145
  var constants = _ref4.constants;
146
146
  return {
147
147
  getMileIcon: function getMileIcon(node) {
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
- }
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
+ };
158
157
  },
159
158
  getFlagStyle: function getFlagStyle(_ref5) {
160
159
  var index2 = _ref5.index, idx = _ref5.idx;
@@ -428,7 +427,7 @@ var Cascader = {
428
427
  // 多选时,控制tag的颜色
429
428
  tagTypeWhenMultiple: "info"
430
429
  };
431
- var version = "3.23.0";
430
+ var version = "3.undefined";
432
431
  var index = {
433
432
  name: "saas",
434
433
  version,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-design-saas",
3
- "version": "3.23.0",
3
+ "version": "3.25.0",
4
4
  "main": "./index.js",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@opentinyvue/vue-icon": "~3.23.0"
8
+ "@opentinyvue/vue-icon": "~3.25.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: any;
7
- color: any;
8
- 'border-color': any;
9
- } | undefined;
6
+ background: string;
7
+ color: string;
8
+ boxShadow: string;
9
+ };
10
10
  getFlagStyle: ({ index, idx }: {
11
11
  index: any;
12
12
  idx: any;