refactor: 统一 setup 格式

This commit is contained in:
shizhong
2023-09-22 14:25:05 +08:00
parent 7e5ad60d1d
commit 5cfe65b87a
148 changed files with 149 additions and 149 deletions

View File

@ -101,7 +101,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { handleTree, defaultProps } from '@/utils/tree'
import type { FormExpose } from '@/components/Form'
import { allSchemas, rules } from './dept.data'

View File

@ -121,7 +121,7 @@
</XModal>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { VxeTableEvents } from 'vxe-table'
import type { FormExpose } from '@/components/Form'
import * as DictTypeSchemas from './dict.type'

View File

@ -66,7 +66,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// 业务相关的 import
import { rules, allSchemas } from './errorCode.data'

View File

@ -27,7 +27,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// 业务相关的 import
import { allSchemas } from './loginLog.data'
import { getLoginLogPageApi, exportLoginLogApi, LoginLogVO } from '@/api/system/loginLog'

View File

@ -66,7 +66,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { FormExpose } from '@/components/Form'
// 业务相关的 import
import { rules, allSchemas } from './account.data'

View File

@ -49,7 +49,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// 业务相关的 import
import { DICT_TYPE } from '@/utils/dict'
import { allSchemas } from './log.data'

View File

@ -138,7 +138,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { FormExpose } from '@/components/Form'
// 业务相关的 import
import { rules, allSchemas } from './template.data'

View File

@ -218,7 +218,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { FormInstance } from 'element-plus'
// 业务相关的 import

View File

@ -70,7 +70,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// 业务相关的 import
import * as NoticeApi from '@/api/system/notice'

View File

@ -27,7 +27,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// 业务相关的 import
import { allSchemas } from './message.data'
import * as NotifyMessageApi from '@/api/system/notify/message'

View File

@ -21,7 +21,7 @@
</XTable>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// 业务相关的 import
import { allSchemas } from './my.data'
import * as NotifyMessageApi from '@/api/system/notify/message'

View File

@ -114,7 +114,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { FormExpose } from '@/components/Form'
// 业务相关的 import
import { rules, allSchemas } from './template.data'

View File

@ -134,7 +134,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// 业务相关的 import
import * as ClientApi from '@/api/system/oauth2/client'

View File

@ -24,7 +24,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { allSchemas } from './token.data'
import * as TokenApi from '@/api/system/oauth2/token'

View File

@ -41,7 +41,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// 业务相关的 import
import * as OperateLogApi from '@/api/system/operatelog'
import { allSchemas } from './operatelog.data'

View File

@ -75,7 +75,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// 业务相关的 import
import * as PostApi from '@/api/system/post'

View File

@ -157,7 +157,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { ElTree } from 'element-plus'
import type { FormExpose } from '@/components/Form'
import { handleTree, defaultProps } from '@/utils/tree'

View File

@ -104,7 +104,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
import * as SensitiveWordApi from '@/api/system/sensitiveWord'
import { rules, allSchemas } from './sensitiveWord.data'

View File

@ -67,7 +67,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// 业务相关的 import
import * as SmsChannelApi from '@/api/system/sms/smsChannel'

View File

@ -30,7 +30,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { allSchemas } from './sms.log.data'
import * as SmsLoglApi from '@/api/system/sms/smsLog'

View File

@ -108,7 +108,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// 业务相关的 import
import * as SmsTemplateApi from '@/api/system/sms/smsTemplate'

View File

@ -85,7 +85,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
import * as TenantApi from '@/api/system/tenant'
import { rules, allSchemas, tenantPackageOption } from './tenant.data'

View File

@ -97,7 +97,7 @@
</XModal>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { handleTree, defaultProps } from '@/utils/tree'
import type { FormExpose } from '@/components/Form'
import type { ElTree } from 'element-plus'

View File

@ -267,7 +267,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { ElTree, UploadRawFile, UploadInstance } from 'element-plus'
import { handleTree, defaultProps } from '@/utils/tree'
import download from '@/utils/download'