doway-coms 2.11.25 → 2.11.26

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,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.11.25",
3
+ "version": "2.11.26",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -20,7 +20,7 @@
20
20
  col.controlType === 'text' &&
21
21
  (col.isButtonShow == false || col.isButtonShow == undefined)
22
22
  "
23
- :style="{color:scope.column.params.fontColor && col.edit !== 'edit'?scope.column.params.fontColor:null}"
23
+ :fontColor="col.fontColor"
24
24
  :label="col.title"
25
25
  v-model="row[col.field]"
26
26
  :edit="col.edit"
@@ -34,12 +34,14 @@
34
34
  <template slot="title">
35
35
  {{ currentValue }}
36
36
  </template>
37
- <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
37
+ <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
38
38
  <template v-if="route">
39
39
  <a @click="linkClick">{{ currentValue }}</a>
40
40
  </template>
41
41
  <template v-else>
42
+ <span :style="{color:fontColor?fontColor:null}">
42
43
  {{ currentValue }}
44
+ </span>
43
45
  </template>
44
46
  </span>
45
47
  </Tooltip>
@@ -95,6 +97,12 @@ export default {
95
97
  return null
96
98
  }
97
99
  },
100
+ fontColor: {
101
+ type: String,
102
+ default: function() {
103
+ return ''
104
+ }
105
+ },
98
106
  value: {
99
107
  type: String,
100
108
  default: function() {