tianheng-ui 0.0.94 → 0.0.95
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
@@ -96,7 +96,7 @@ export default {
|
|
96
96
|
return [];
|
97
97
|
}
|
98
98
|
},
|
99
|
-
client: String
|
99
|
+
client: String
|
100
100
|
},
|
101
101
|
data() {
|
102
102
|
return {
|
@@ -116,7 +116,7 @@ export default {
|
|
116
116
|
},
|
117
117
|
watch: {
|
118
118
|
data(val) {
|
119
|
-
this.
|
119
|
+
this.setJSON(val);
|
120
120
|
},
|
121
121
|
formJson: {
|
122
122
|
handler(val) {
|
@@ -372,12 +372,15 @@
|
|
372
372
|
</template>
|
373
373
|
|
374
374
|
<template v-if="widget.type == 'image'">
|
375
|
-
<
|
375
|
+
<el-image
|
376
|
+
:style="{
|
377
|
+
width: widget.options.width,
|
378
|
+
height: widget.options.height
|
379
|
+
}"
|
376
380
|
:src="widget.options.defaultValue"
|
377
|
-
:height="widget.options.height"
|
378
|
-
:width="widget.options.width"
|
379
381
|
:fit="widget.options.fit"
|
380
|
-
|
382
|
+
lazy
|
383
|
+
></el-image>
|
381
384
|
</template>
|
382
385
|
|
383
386
|
<template v-if="widget.type == 'upload'">
|
@@ -856,8 +859,7 @@ export default {
|
|
856
859
|
// 获取数据,仅支持获取当前组件节点下的数据
|
857
860
|
getData() {
|
858
861
|
return this.models;
|
859
|
-
}
|
860
|
-
|
862
|
+
}
|
861
863
|
}
|
862
864
|
};
|
863
865
|
</script>
|