fix(demo): form pages support keepAlive

修复表单演示页面不支持keepAlive的问题
This commit is contained in:
无木 2021-07-07 21:33:08 +08:00
parent 45a94e41c1
commit 9228282ae2
3 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@
import { PageWrapper } from '/@/components/Page'; import { PageWrapper } from '/@/components/Page';
export default defineComponent({ export default defineComponent({
name: 'FormBasicPage',
components: { BasicForm, PageWrapper }, components: { BasicForm, PageWrapper },
setup() { setup() {
const { createMessage } = useMessage(); const { createMessage } = useMessage();

View File

@ -28,6 +28,7 @@
import { Card } from 'ant-design-vue'; import { Card } from 'ant-design-vue';
export default defineComponent({ export default defineComponent({
name: 'FormHightPage',
components: { BasicForm, PersonTable, PageWrapper, [Card.name]: Card }, components: { BasicForm, PersonTable, PageWrapper, [Card.name]: Card },
setup() { setup() {
const tableRef = ref<{ getDataSource: () => any } | null>(null); const tableRef = ref<{ getDataSource: () => any } | null>(null);

View File

@ -33,6 +33,7 @@
import { Steps } from 'ant-design-vue'; import { Steps } from 'ant-design-vue';
export default defineComponent({ export default defineComponent({
name: 'FormStepPage',
components: { components: {
Step1, Step1,
Step2, Step2,