From 41d140af1136ff0e1114ec2953cdfeecd7819dde Mon Sep 17 00:00:00 2001 From: yhan219 <yhan219@sina.com> Date: 星期五, 16 六月 2023 23:58:13 +0800 Subject: [PATCH] !12 [需求认领] 对接 powerjob 实现分布式任务调度 集成方式参考框架内 xxl-job * [需求认领] 对接 powerjob 实现分布式任务调度 集成方式参考框架内 xxl-job --- src/components/SvgIcon/index.vue | 34 ++++++++++++++-------------------- 1 files changed, 14 insertions(+), 20 deletions(-) diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index 8c101f6..f3562d7 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -4,33 +4,27 @@ </svg> </template> -<script> -export default defineComponent({ - props: { +<script setup lang="ts"> +const props = defineProps({ iconClass: { - type: String, - required: true + type: String, + required: true }, className: { - type: String, - default: '' + type: String, + default: '' }, color: { - type: String, - default: '' + type: String, + default: '' }, - }, - setup(props) { - return { - iconName: computed(() => `#icon-${props.iconClass}`), - svgClass: computed(() => { - if (props.className) { - return `svg-icon ${props.className}` - } - return 'svg-icon' - }) +}) +const iconName = computed(() => `#icon-${props.iconClass}`); +const svgClass = computed(() => { + if (props.className) { + return `svg-icon ${props.className}` } - } + return 'svg-icon' }) </script> -- Gitblit v1.9.3