vue3-components-plus 3.0.21 → 3.0.22
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.
|
@@ -592,12 +592,12 @@ function changeHandler(v: boolean) {
|
|
|
592
592
|
ElMessage.info(v ? '启用' : '禁用')
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
function
|
|
595
|
+
function syncDetAreaField(mode: any) {
|
|
596
596
|
if (state.rows3?.length && state.rows3[state.rows3.length - 1]?.[0]?.key === 'det_area_json') {
|
|
597
597
|
state.rows3.pop()
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
-
if (
|
|
600
|
+
if (mode === 'abnormal') {
|
|
601
601
|
state.rows3.push([
|
|
602
602
|
{
|
|
603
603
|
key: 'det_area_json',
|
|
@@ -612,6 +612,10 @@ function detAreaModeChange(value: any) {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
+
function detAreaModeChange(value: any) {
|
|
616
|
+
syncDetAreaField(value)
|
|
617
|
+
}
|
|
618
|
+
|
|
615
619
|
function CustomUIs() {
|
|
616
620
|
return h('div', { style: 'color: red', class: 'xx' }, 'xxx')
|
|
617
621
|
}
|
|
@@ -649,6 +653,7 @@ async function resetFormData() {
|
|
|
649
653
|
row3Ref.value?.resetForm?.()
|
|
650
654
|
row4Ref.value?.resetForm?.()
|
|
651
655
|
rowUploadRef.value?.resetForm?.()
|
|
656
|
+
syncDetAreaField('normal')
|
|
652
657
|
state.uploadFileList.splice(0, state.uploadFileList.length)
|
|
653
658
|
setTimeout(() => {
|
|
654
659
|
// 重置表单验证状态
|
|
@@ -682,8 +687,10 @@ async function getDetail() {
|
|
|
682
687
|
row3Ref.value?.resetForm()
|
|
683
688
|
row4Ref.value?.resetForm()
|
|
684
689
|
rowUploadRef.value?.resetForm()
|
|
690
|
+
syncDetAreaField('normal')
|
|
685
691
|
state.uploadFileList.splice(0, state.uploadFileList.length)
|
|
686
692
|
setTimeout(() => {
|
|
693
|
+
syncDetAreaField(res.det_area_mode)
|
|
687
694
|
row1Ref.value?.setFormData?.(res)
|
|
688
695
|
row2Ref.value?.setFormData?.(res)
|
|
689
696
|
row3Ref.value?.setFormData?.(res)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-components-plus",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"docx-preview": "^0.3.7",
|
|
45
45
|
"konva": "^10.0.2",
|
|
46
46
|
"vue-konva": "^3.2.6",
|
|
47
|
-
"vue3-components-plus": "^3.0.12",
|
|
48
47
|
"vue3-markdown": "^1.2.17",
|
|
49
48
|
"vue3-pdf-app": "^1.0.3",
|
|
50
49
|
"x-data-spreadsheet": "^1.1.9",
|