three-trees-ui 1.0.88 → 1.0.90
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/lib/three-trees-ui.common.js +277 -265
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +277 -265
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +4 -2
- package/packages/CustomDialog/src/main.vue +4 -1
- package/packages/Date/src/main.vue +3 -1
- package/packages/Dictionary/src/main.vue +3 -1
- package/packages/Preview/src/FrameViewer.vue +3 -2
- package/packages/TimePicker/src/main.vue +3 -1
- package/packages/TimeSelect/src/main.vue +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "three-trees-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
4
4
|
"publicPath": "/ui",
|
|
5
5
|
"author": "hotent",
|
|
6
6
|
"private": false,
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"element-resize-detector": "^1.2.3",
|
|
36
|
-
"
|
|
36
|
+
"v-viewer": "^1.7.4",
|
|
37
|
+
"vee-validate": "2.1.7",
|
|
38
|
+
"viewerjs": "^1.11.7"
|
|
37
39
|
},
|
|
38
40
|
"peerDependencies": {
|
|
39
41
|
"axios": "^0.21.1",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
<div class="el-input el-input--suffix">
|
|
45
45
|
<input
|
|
46
|
+
ref="inputEl"
|
|
46
47
|
v-model="inputVal"
|
|
47
48
|
v-validate="inputValidate"
|
|
48
49
|
type="text"
|
|
@@ -449,7 +450,9 @@
|
|
|
449
450
|
this.inputSuffixHeight = 30
|
|
450
451
|
}
|
|
451
452
|
// 触发验证
|
|
452
|
-
this.$
|
|
453
|
+
if (this.$refs.inputEl) {
|
|
454
|
+
this.$validator.validate(this.inputName)
|
|
455
|
+
}
|
|
453
456
|
}, 0)
|
|
454
457
|
this.calacInputSuffixWidth()
|
|
455
458
|
},
|
|
@@ -140,7 +140,9 @@
|
|
|
140
140
|
// element会触发blur事件,且参数为vue实例对象,在veeValidate中会将该对象识别为日期的值导致必填校验失效。
|
|
141
141
|
// 这里再次触发校验,让其对该控件的值再做一次校验。
|
|
142
142
|
setTimeout(() => {
|
|
143
|
-
this
|
|
143
|
+
if (!this.value) {
|
|
144
|
+
this.$validator.validate(this.inputName)
|
|
145
|
+
}
|
|
144
146
|
}, 10)
|
|
145
147
|
},
|
|
146
148
|
// 初始化日期
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<loading v-if="loading" />
|
|
5
5
|
<div
|
|
6
6
|
v-else-if="contentType.indexOf('image') > -1"
|
|
7
|
+
v-viewer
|
|
7
8
|
class="frame-viewer__img"
|
|
8
9
|
>
|
|
9
10
|
<img
|
|
@@ -124,12 +125,12 @@
|
|
|
124
125
|
return
|
|
125
126
|
}
|
|
126
127
|
if (iframe.attachEvent) {
|
|
127
|
-
iframe.attachEvent('onload', function() {
|
|
128
|
+
iframe.attachEvent('onload', function () {
|
|
128
129
|
that.setFrameBody(this.contentWindow.document)
|
|
129
130
|
that.watermarkRender()
|
|
130
131
|
})
|
|
131
132
|
} else {
|
|
132
|
-
iframe.onload = function() {
|
|
133
|
+
iframe.onload = function () {
|
|
133
134
|
that.setFrameBody(this.contentWindow.document)
|
|
134
135
|
that.watermarkRender()
|
|
135
136
|
}
|
|
@@ -132,7 +132,9 @@
|
|
|
132
132
|
// element会触发blur事件,且参数为vue实例对象,在veeValidate中会将该对象识别为日期的值导致必填校验失效。
|
|
133
133
|
// 这里再次触发校验,让其对该控件的值再做一次校验。
|
|
134
134
|
setTimeout(() => {
|
|
135
|
-
this
|
|
135
|
+
if (!this.value) {
|
|
136
|
+
this.$validator.validate(this.inputName)
|
|
137
|
+
}
|
|
136
138
|
}, 10)
|
|
137
139
|
},
|
|
138
140
|
},
|