mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 07:01:23 +08:00
fix(commontable): fix commontable
This commit is contained in:
parent
0c67eaa6fa
commit
1ac4690a79
|
@ -142,6 +142,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import { ValidateResultContext } from 'tdesign-vue-next';
|
||||||
import Card from '@/components/card/index.vue';
|
import Card from '@/components/card/index.vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -172,7 +173,7 @@ const amount = computed(() => {
|
||||||
return '--';
|
return '--';
|
||||||
});
|
});
|
||||||
|
|
||||||
const onSubmit = (result, val: number) => {
|
const onSubmit = (result: ValidateResultContext<FormData>, val: number) => {
|
||||||
if (result.validateResult === true) {
|
if (result.validateResult === true) {
|
||||||
activeForm.value = val;
|
activeForm.value = val;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,6 @@ const COLUMNS = [
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
minWidth: '300',
|
minWidth: '300',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true,
|
|
||||||
colKey: 'name',
|
colKey: 'name',
|
||||||
},
|
},
|
||||||
{ title: '合同状态', colKey: 'status', width: 200, cell: { col: 'status' } },
|
{ title: '合同状态', colKey: 'status', width: 200, cell: { col: 'status' } },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user