@truenewx/tnxvue3 3.0.12 → 3.0.13
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.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "互联网技术解决方案:Vue3扩展支持",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"vue-router": "~4.4.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@truenewx/tnxcore": "3.0.
|
|
27
|
+
"@truenewx/tnxcore": "3.0.11",
|
|
28
28
|
"@element-plus/icons-vue": "2.3.1",
|
|
29
29
|
"async-validator": "4.2.5",
|
|
30
30
|
"mitt": "3.0.1"
|
|
@@ -218,7 +218,11 @@ export default {
|
|
|
218
218
|
// 设置输入框为无效状态
|
|
219
219
|
let fieldElement = this.queryFieldElement(fieldGroupElement);
|
|
220
220
|
if (fieldElement) {
|
|
221
|
-
|
|
221
|
+
// 如果字段元素或其上级元素中不包含.ignore-feedback样式,则加入.is-invalid样式
|
|
222
|
+
if (!fieldElement.classList.contains('ignore-feedback')
|
|
223
|
+
&& !fieldElement.closest('.ignore-feedback')) {
|
|
224
|
+
fieldElement.classList.add('is-invalid');
|
|
225
|
+
}
|
|
222
226
|
}
|
|
223
227
|
}
|
|
224
228
|
},
|
|
@@ -346,26 +346,30 @@ export default {
|
|
|
346
346
|
</script>
|
|
347
347
|
|
|
348
348
|
<style>
|
|
349
|
-
.tnxbsv-select[variant="danger"] {
|
|
349
|
+
.tnxbsv-select[variant="outline-danger"] {
|
|
350
350
|
border-color: var(--bs-danger-border-subtle);
|
|
351
351
|
color: var(--bs-danger);
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
.tnxbsv-select[variant="danger"]:focus {
|
|
354
|
+
.tnxbsv-select[variant="outline-danger"]:focus {
|
|
355
355
|
box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
.tnxbsv-radio-group.btn-group > .btn {
|
|
359
|
+
flex: none;
|
|
360
|
+
--bs-btn-padding-x: 1rem;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
select.tnxbsv-select option:disabled {
|
|
364
|
+
color: var(--bs-tertiary-color);
|
|
365
|
+
}
|
|
366
|
+
|
|
358
367
|
select.tnxbsv-select.is-empty,
|
|
359
368
|
.tnxbsv-select .empty-item {
|
|
360
369
|
color: var(--bs-tertiary-color);
|
|
361
370
|
}
|
|
362
371
|
|
|
363
|
-
select.tnxbsv-select.is-empty option:not(.empty-item) {
|
|
372
|
+
select.tnxbsv-select.is-empty option:not(.empty-item):not(:disabled) {
|
|
364
373
|
color: var(--bs-body-color);
|
|
365
374
|
}
|
|
366
|
-
|
|
367
|
-
.tnxbsv-radio-group.btn-group > .btn {
|
|
368
|
-
flex: none;
|
|
369
|
-
--bs-btn-padding-x: 1rem;
|
|
370
|
-
}
|
|
371
375
|
</style>
|