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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.195",
4
+ "version": "1.0.196",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,5 +1,5 @@
1
1
  import Vue from "vue";
2
- import CellSlot from "@/components/table/CellSlot.vue";
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, isFormSetting) {
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(isFormSetting)
36
+ data.push(option)
37
37
  parent.$emit.apply(parent, data);
38
38
  }
39
39
  },
@@ -1,4 +1,4 @@
1
- import dayjs from 'dayjs'
1
+ // import dayjs from 'dayjs'
2
2
  import moment from 'moment'
3
3
 
4
4
  function validateDate(dateStr) {
@@ -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){
@@ -1,6 +1,5 @@
1
1
  import {deepAssign, get} from './utils'
2
- import xeUtils from "xe-utils";
3
- import {extendDeeply} from "@/utils/index.js";
2
+ import {extendDeeply} from "../../../../utils/index.js";
4
3
 
5
4
 
6
5
  const install = (Vue, options) => {