Commit 1628e1f2f701286a7af72c3acb7a387a77db5a11

Authored by loveumiko
1 parent 0e2ab474

fix: 修复打包错误

1   -<template>
2   - <div class="tenant-class">
3   - <CollapseContainer title="队列">
4   - <BasicForm @register="registerForm" />
5   - </CollapseContainer>
6   - </div>
7   -</template>
8   -<script lang="ts">
9   - import { defineComponent, ref } from 'vue';
10   - import { BasicForm, useForm } from '/@/components/Form';
11   - import { formSchema } from './config';
12   - import { CollapseContainer } from '/@/components/Container/index';
13   -
14   - export default defineComponent({
15   - name: 'Index',
16   - components: { BasicForm, CollapseContainer },
17   - emits: ['success', 'register', 'funcResetFields'],
18   - setup() {
19   - const getValueData: any = ref({});
20   - const [registerForm, { getFieldsValue, resetFields, setFieldsValue }] = useForm({
21   - schemas: formSchema,
22   - showActionButtonGroup: false,
23   - });
24   - const setFieldsValueFunc = (v) => {
25   - setFieldsValue(v);
26   - };
27   - function getAllFields(getV) {
28   - const values = getFieldsValue();
29   - getValueData.value = values;
30   - getV = getValueData.value;
31   - return getV;
32   - }
33   - function funcResetFields() {
34   - resetFields();
35   - }
36   - return {
37   - setFieldsValueFunc,
38   - funcResetFields,
39   - getAllFields,
40   - registerForm,
41   - };
42   - },
43   - });
44   -</script>
45   -<style lang="less" scoped>
46   - .tenant-class {
47   - :deep .ant-input-number {
48   - width: 95% !important;
49   - }
50   - }
51   -</style>