xrk-components 2.0.0-beta.34 → 2.0.0-beta.36
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/lib/index.esm.js
CHANGED
|
@@ -75237,9 +75237,8 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
75237
75237
|
}
|
|
75238
75238
|
if (column.type === 'input') {
|
|
75239
75239
|
var inputConfig = column.config;
|
|
75240
|
-
if (
|
|
75241
|
-
['text', 'textarea', 'password'].includes(inputConfig.type))
|
|
75242
|
-
inputConfig.inputTextReplace) {
|
|
75240
|
+
if (!(inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type) ||
|
|
75241
|
+
['text', 'textarea', 'password'].includes(inputConfig.type)) {
|
|
75243
75242
|
// 判断是否为
|
|
75244
75243
|
var _a = arr2Reg((inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.inputTexts) || defaultInputTexts), errMsg_1 = _a.errMsg, testReg_1 = _a.testReg;
|
|
75245
75244
|
defaultRules.push({
|
|
@@ -75668,7 +75667,10 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
75668
75667
|
children: { type: Array, required: false },
|
|
75669
75668
|
renderHeader: { type: Function, required: false },
|
|
75670
75669
|
renderHeaderSelectionLabel: { type: Function, required: false },
|
|
75671
|
-
formatter: { type: Function, required: false
|
|
75670
|
+
formatter: { type: Function, required: false, default: function (_a) {
|
|
75671
|
+
var cellValue = _a.cellValue;
|
|
75672
|
+
return cellValue !== null && cellValue !== void 0 ? cellValue : '-';
|
|
75673
|
+
} },
|
|
75672
75674
|
render: { type: Function, required: false },
|
|
75673
75675
|
selectionDisabled: { type: [Function, Boolean], required: false },
|
|
75674
75676
|
treeProps: { type: Object, required: false },
|
package/lib/index.umd.js
CHANGED
|
@@ -75240,9 +75240,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75240
75240
|
}
|
|
75241
75241
|
if (column.type === 'input') {
|
|
75242
75242
|
var inputConfig = column.config;
|
|
75243
|
-
if (
|
|
75244
|
-
['text', 'textarea', 'password'].includes(inputConfig.type))
|
|
75245
|
-
inputConfig.inputTextReplace) {
|
|
75243
|
+
if (!(inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type) ||
|
|
75244
|
+
['text', 'textarea', 'password'].includes(inputConfig.type)) {
|
|
75246
75245
|
// 判断是否为
|
|
75247
75246
|
var _a = arr2Reg((inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.inputTexts) || defaultInputTexts), errMsg_1 = _a.errMsg, testReg_1 = _a.testReg;
|
|
75248
75247
|
defaultRules.push({
|
|
@@ -75671,7 +75670,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75671
75670
|
children: { type: Array, required: false },
|
|
75672
75671
|
renderHeader: { type: Function, required: false },
|
|
75673
75672
|
renderHeaderSelectionLabel: { type: Function, required: false },
|
|
75674
|
-
formatter: { type: Function, required: false
|
|
75673
|
+
formatter: { type: Function, required: false, default: function (_a) {
|
|
75674
|
+
var cellValue = _a.cellValue;
|
|
75675
|
+
return cellValue !== null && cellValue !== void 0 ? cellValue : '-';
|
|
75676
|
+
} },
|
|
75675
75677
|
render: { type: Function, required: false },
|
|
75676
75678
|
selectionDisabled: { type: [Function, Boolean], required: false },
|
|
75677
75679
|
treeProps: { type: Object, required: false },
|
|
@@ -88,6 +88,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
formatter: {
|
|
89
89
|
type: FunctionConstructor;
|
|
90
90
|
required: false;
|
|
91
|
+
default: ({ cellValue }: {
|
|
92
|
+
cellValue: any;
|
|
93
|
+
}) => any;
|
|
91
94
|
};
|
|
92
95
|
render: {
|
|
93
96
|
type: FunctionConstructor;
|
|
@@ -241,6 +244,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
241
244
|
formatter: {
|
|
242
245
|
type: FunctionConstructor;
|
|
243
246
|
required: false;
|
|
247
|
+
default: ({ cellValue }: {
|
|
248
|
+
cellValue: any;
|
|
249
|
+
}) => any;
|
|
244
250
|
};
|
|
245
251
|
render: {
|
|
246
252
|
type: FunctionConstructor;
|
|
@@ -308,5 +314,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
308
314
|
}, {
|
|
309
315
|
showOverflowTooltip: boolean;
|
|
310
316
|
align: string;
|
|
317
|
+
formatter: Function;
|
|
311
318
|
}>;
|
|
312
319
|
export default _default;
|