zydx-plus 1.18.80 → 1.18.81

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": "zydx-plus",
3
- "version": "1.18.80",
3
+ "version": "1.18.81",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -82,6 +82,9 @@ export default defineComponent({
82
82
  mounted() {
83
83
  setTimeout(() => {
84
84
  this.formData.html = this.html
85
+ setTimeout(() => {
86
+ if(this.readOnly) this.opts.editable.config.readOnly = this.readOnly
87
+ },0)
85
88
  },0)
86
89
  },
87
90
  setup(props) {
@@ -99,7 +102,7 @@ export default defineComponent({
99
102
  editable: {
100
103
  config: {
101
104
  placeholder: props.placeholder,
102
- readOnly: props.readOnly,
105
+ readOnly: false,
103
106
  autoFocus: (props.html !== ''),
104
107
  MENU_CONF: {
105
108
  // 上传图片
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :style="heightStyle">
3
3
  <div class="ed-head">
4
- <div class="ed-title" v-if="titleShow">{{ title }}</div>
4
+ <div class="ed-title" v-if="titleShow" :style="titleStyle">{{ title }}</div>
5
5
  <div class="ed-but" v-if="readOnly">
6
6
  <div class="ed-head-but" v-for="(item,index) in toolbar">
7
7
  <button v-if="item.key === 'but'" class="but" @click="item.onClick(item,info)" :style="{color: (item.active)? '#00ff00' :'#000'}">{{ item.title }}</button>
@@ -70,6 +70,14 @@ export default {
70
70
  type: String,
71
71
  default: ''
72
72
  },
73
+ titleStyle: {
74
+ type: Object,
75
+ default: {
76
+ 'font-size': '16px',
77
+ 'font-weight': 'bold',
78
+ 'color': '#000'
79
+ }
80
+ },
73
81
  readOnly: {
74
82
  type: Boolean,
75
83
  default: true
@@ -293,7 +301,6 @@ export default {
293
301
  flex: 1;
294
302
  text-align: left;
295
303
  line-height: 22px;
296
- font-size: 14px;
297
304
  }
298
305
  .enclosure-list{
299
306
  display: flex;
package/src/index.js CHANGED
@@ -55,7 +55,7 @@ function install(app) {
55
55
  }
56
56
 
57
57
  export default {
58
- version: '1.18.80',
58
+ version: '1.18.81',
59
59
  install,
60
60
  Calendar,
61
61
  Message,