cloud-web-corejs 1.0.195 → 1.0.196
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/package.json +1 -1
- package/src/components/table/util/index.js +10 -3
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +1 -1
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/smart-vue-i18n/index.js +1 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
import CellSlot from "
|
|
2
|
+
import CellSlot from "@base/components/table/CellSlot.vue";
|
|
3
3
|
|
|
4
4
|
let instance = null;
|
|
5
5
|
|
|
@@ -28,9 +28,16 @@ export function getCellValue(obj) {
|
|
|
28
28
|
let cellValue;
|
|
29
29
|
if (column.slots && column.slots.filterVal) {
|
|
30
30
|
cellValue = column.slots.filterVal(params);
|
|
31
|
-
} else {
|
|
31
|
+
} else if(column.renderCell){
|
|
32
32
|
let result = column.renderCell(h, params);
|
|
33
33
|
cellValue = vNodeRender(result);
|
|
34
|
+
}else{
|
|
35
|
+
if(column.slots?.default){
|
|
36
|
+
let result = column.slots.default(obj, h);
|
|
37
|
+
cellValue = vNodeRender(result);
|
|
38
|
+
}else{
|
|
39
|
+
cellValue = obj.row[column.field];
|
|
40
|
+
}
|
|
34
41
|
}
|
|
35
42
|
return cellValue;
|
|
36
43
|
}
|
|
@@ -314,7 +321,7 @@ function domRender(dom) {
|
|
|
314
321
|
});
|
|
315
322
|
return arr.join("");
|
|
316
323
|
} else {
|
|
317
|
-
if (item.nodeName == "INPUT") {
|
|
324
|
+
if (item.nodeName == "INPUT" || item.nodeName == "TEXTAREA") {
|
|
318
325
|
return item.value;
|
|
319
326
|
} else if (item.innerText != null && item.innerText != "") {
|
|
320
327
|
return item.innerText;
|
|
@@ -13,7 +13,7 @@ function broadcast(componentName, eventName, params) {
|
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
15
|
methods: {
|
|
16
|
-
dispatch(componentName, eventName, params,
|
|
16
|
+
dispatch(componentName, eventName, params, option) {
|
|
17
17
|
|
|
18
18
|
var parent = this.$parent || this.$root;
|
|
19
19
|
var name = parent.$options.componentName;
|
|
@@ -25,15 +25,15 @@ export default {
|
|
|
25
25
|
name = parent.$options.componentName;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
if (isFormSetting) {
|
|
28
|
+
/*if (isFormSetting) {
|
|
29
29
|
if (window.formSettingPanelRef) {
|
|
30
30
|
parent = window.formSettingPanelRef;
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}*/
|
|
33
33
|
|
|
34
34
|
if (parent) {
|
|
35
35
|
let data = [eventName].concat(params);
|
|
36
|
-
data.push(
|
|
36
|
+
data.push(option)
|
|
37
37
|
parent.$emit.apply(parent, data);
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -271,10 +271,6 @@ export function baseReplaceFieldsAndFunctionsOfFormula(VFR, formulaFieldRef, for
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
-
/* if(functionCalls.length){
|
|
275
|
-
debugger
|
|
276
|
-
} */
|
|
277
|
-
|
|
278
274
|
if (isSameSubForm && !isInAggregationParam) {
|
|
279
275
|
// 同一子表单且不在聚合函数参数中,使用当前行数据
|
|
280
276
|
if(row){
|