@lemon-fe/components 1.6.2 → 1.6.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.
@@ -44,8 +44,7 @@ export interface ColType<TData> extends Omit<ColDef<TData>, 'editable'> {
44
44
  ellipsis?: boolean;
45
45
  /**
46
46
  * @description
47
- * @en cell renderer. it should be a pure function, do not use the state from the closure but from cellContext
48
- * @zh 单元格渲染函数. 需要是一个纯函数,不使用外部组件的状态变量,而是通过context引入
47
+ * 单元格自定义渲染函数。需要是一个纯函数,不使用外部组件的状态变量,而是通过context引入。第一个参数受单元格的valueFormatter属性影响。
49
48
  */
50
49
  render?: (formattedValue: any, record: TData, index: number, params: ICellRendererParams) => ReactElement | string | number | null;
51
50
  /**
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface Props {
3
3
  shape?: 'default' | 'order' | 'text';
4
- type?: 'default' | 'success' | 'warning' | 'error' | 'disabled' | 'processing' | 'processed';
4
+ type?: 'default' | 'success' | 'warning' | 'error' | 'disabled' | 'processing' | 'processed' | 'approaching';
5
5
  children?: string;
6
6
  }
7
7
  export default function State(props: Props): JSX.Element;
@@ -3,6 +3,7 @@
3
3
  @color-error: #d54a42;
4
4
  @color-processing: #16c0ff;
5
5
  @color-processed: #385aff;
6
+ @color-approaching: #ffb700;
6
7
  @color-disabled: rgba(51, 51, 51, 0.5);
7
8
 
8
9
  .@{prefixCls}-state {
@@ -84,6 +85,10 @@
84
85
  .defaultShapeColor(@color-processed);
85
86
  }
86
87
 
88
+ &-type-approaching&-shape-default {
89
+ .defaultShapeColor(@color-approaching);
90
+ }
91
+
87
92
  &-type-warning&-shape-default {
88
93
  .defaultShapeColor(@color-warning);
89
94
  }
@@ -114,6 +119,10 @@
114
119
  .orderShapeColor(@color-processed);
115
120
  }
116
121
 
122
+ &-type-approaching&-shape-order {
123
+ .orderShapeColor(@color-approaching);
124
+ }
125
+
117
126
  &-type-warning&-shape-order {
118
127
  .orderShapeColor(@color-warning);
119
128
  }
@@ -138,6 +147,10 @@
138
147
  color: @color-processed;
139
148
  }
140
149
 
150
+ &-type-approaching&-shape-text {
151
+ color: @color-approaching;
152
+ }
153
+
141
154
  &-type-warning&-shape-text {
142
155
  color: @color-warning;
143
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "56e77a6391f36880a76038965431cd8f1d8b8e81"
61
+ "gitHead": "9242c3ded70d88daf87fbaf9fd911c931f24b101"
62
62
  }