@truenewx/tnxvue3 3.0.0-alpha.38 → 3.0.0-alpha.39
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": "@truenewx/tnxvue3",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.39",
|
|
4
4
|
"description": "互联网技术解决方案:Vue3扩展支持",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"vue-router": "~4.4.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@truenewx/tnxcore": "3.0.0-alpha.
|
|
27
|
+
"@truenewx/tnxcore": "3.0.0-alpha.25",
|
|
28
28
|
"@element-plus/icons-vue": "2.3.1",
|
|
29
29
|
"async-validator": "4.2.5",
|
|
30
30
|
"mitt": "3.0.1"
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"no-undef": "warn",
|
|
66
66
|
"no-useless-escape": "warn",
|
|
67
67
|
"no-empty": "off",
|
|
68
|
+
"vue/no-side-effects-in-computed-properties": "warn",
|
|
68
69
|
"vue/no-mutating-props": "warn",
|
|
69
70
|
"vue/no-v-model-argument": "off",
|
|
70
71
|
"vue/multi-word-component-names": "off"
|
|
@@ -148,13 +148,15 @@ export default {
|
|
|
148
148
|
initElements() {
|
|
149
149
|
this.focusRowFirstInput(this.tableDataList[0], 0);
|
|
150
150
|
// 为富文本输入框添加默认title
|
|
151
|
-
let table = this.$refs.table
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
textarea.
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
let table = this.$refs.table?.$el;
|
|
152
|
+
if (table) {
|
|
153
|
+
let textareas = table.getElementsByTagName('textarea');
|
|
154
|
+
for (let textarea of textareas) {
|
|
155
|
+
if (!textarea.title) {
|
|
156
|
+
textarea.addEventListener('input', event => {
|
|
157
|
+
event.target.title = event.target.value;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
},
|
|
@@ -292,7 +292,7 @@ export default build('tnxel', () => {
|
|
|
292
292
|
});
|
|
293
293
|
if (options.type === 'question') {
|
|
294
294
|
options.type = 'info';
|
|
295
|
-
options.icon = Icon.components.QuestionFilled;
|
|
295
|
+
options.icon = tnxvue.libs.Vue.markRaw(Icon.components.QuestionFilled);
|
|
296
296
|
}
|
|
297
297
|
if (options.reverse) {
|
|
298
298
|
options.customClass = 'reverse';
|