@kmkf-fe-packages/services-components 0.7.11-alpha.2 → 0.7.11-alpha.3
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.
|
@@ -113,6 +113,9 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
});
|
|
116
|
+
_defineProperty(this, "formDataTransform", function (v) {
|
|
117
|
+
return v === null || v === void 0 ? void 0 : v.value;
|
|
118
|
+
});
|
|
116
119
|
this.name = options.name;
|
|
117
120
|
this.id = options.id;
|
|
118
121
|
this.sortField = "".concat(options.id, "_checkbox");
|
|
@@ -96,6 +96,9 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
96
96
|
} // 第一个为选中值,第二个参数为表格行记录值
|
|
97
97
|
};
|
|
98
98
|
});
|
|
99
|
+
_defineProperty(this, "formDataTransform", function (v) {
|
|
100
|
+
return v === null || v === void 0 ? void 0 : v.value;
|
|
101
|
+
});
|
|
99
102
|
this.name = options.name;
|
|
100
103
|
this.id = options.id;
|
|
101
104
|
this.type = options.type;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -185,6 +185,7 @@ export interface ComponentInterface {
|
|
|
185
185
|
}) => JSX.Element | null;
|
|
186
186
|
filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
|
|
187
187
|
getComponentValue: (r: Record) => any;
|
|
188
|
+
formDataTransform?: (r: any) => any;
|
|
188
189
|
}
|
|
189
190
|
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader">;
|
|
190
191
|
export declare type ColumnConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.11-alpha.
|
|
3
|
+
"version": "0.7.11-alpha.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5fd78458b4a8f4bec1764c78fcb2d6fb9b8cf60f"
|
|
44
44
|
}
|