chore(config): 添加项目配置文件和隐私协议
- 添加 .editorconfig 文件统一代码风格 - 添加 .env.development 和 .env.example 环境配置文件 - 添加 .eslintignore 和 .eslintrc.js 代码检查配置 - 添加 .gitignore 版本控制忽略文件配置 - 添加 .prettierignore 格式化忽略配置 - 添加隐私协议HTML文件 - 添加API密钥管理组件基础结构
This commit is contained in:
39
src/components/QrCode/index.vue
Normal file
39
src/components/QrCode/index.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:width="450"
|
||||
:visible="visible"
|
||||
:title="title || '分享二维码'"
|
||||
:maskClosable="false"
|
||||
@cancel="save"
|
||||
@ok="save"
|
||||
>
|
||||
<div class="flex p-3 flex-col justify-center items-center">
|
||||
<ele-qr-code-svg :value="`${data}`" :size="260" />
|
||||
<span class="text-gray-400 py-3" @click="copyText(data)">{{ data }}</span>
|
||||
<span class="text-gray-500 text-lg"> 使用手机扫一扫 </span>
|
||||
</div>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { CmsArticle } from '@/api/cms/cmsArticle/model';
|
||||
import { copyText } from '@/utils/common';
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
// 弹窗是否打开
|
||||
visible: boolean;
|
||||
title: String | undefined;
|
||||
data: CmsArticle;
|
||||
}>(),
|
||||
{}
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'done'): void;
|
||||
}>();
|
||||
|
||||
const save = () => {
|
||||
emit('done');
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user