From c2f95b0b9090a2394b5b068582b932a5e57b86aa Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 05 九月 2023 18:19:37 +0800 Subject: [PATCH] 雷达图 新增综合风险排名 数据接入配置 --- src/sfc/ButtonClick.vue | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/src/sfc/ButtonClick.vue b/src/sfc/ButtonClick.vue new file mode 100644 index 0000000..35a9fc2 --- /dev/null +++ b/src/sfc/ButtonClick.vue @@ -0,0 +1,50 @@ +<!-- + 鎼滅储鎸夐挳 + 鐐瑰嚮鎸夐挳鍚庯紝鍚戠埗缁勪欢鍙戠敓鐐瑰嚮浜嬩欢锛岀敱鐖剁粍浠舵潵瀹屾垚鐐瑰嚮鍚庣殑鍏蜂綋鎵ц + + **鐖剁粍浠� + <ButtonClick content="鎼滅储" type="warning" :loading="loading.queryButton" @do-search="doSearch"></ButtonClick> + --> +<script> +export default { + props:{ + // 鎸夐挳鏂囧瓧 + content:{ + type:String, + default:'鐐瑰嚮' + }, + // 鎸夐挳鏍峰紡 + type:{ + type:String, + default:'success' + }, + // 鍔犺浇鏁堟灉 + loading:{ + type:Boolean, + default:false + }, + size:{ + type:String, + default:'default' + } + }, + emits:['doSearch' ], +} +</script> + +<template> + <div> + <el-button :type="type" :loading="loading" :size="size" @click="$emit('doSearch')"> + <el-icon > + <i-ep-Search/> + </el-icon> + {{ content }} + </el-button> + </div> +</template> +<style scoped> +.el-icon { + margin-right: 6px; + font-size: 1.2em; +} +</style> \ No newline at end of file -- Gitblit v1.9.3