refactor: ♻️ eslint 代码规范检测修改

Former-commit-id: 0a1da312a15a849433d40c2727e4fa3a70e8b625
This commit is contained in:
haoxr
2023-05-16 01:05:37 +08:00
parent 61ad332877
commit 63c4a2a86d
18 changed files with 62 additions and 63 deletions

View File

@@ -3,6 +3,7 @@ const props = defineProps({
modelValue: {
type: String,
require: false,
default: "",
},
});
@@ -64,12 +65,12 @@ onMounted(() => {
</script>
<template>
<div class="iconselect-container" ref="iconSelectorRef">
<div ref="iconSelectorRef" class="iconselect-container">
<el-input
v-model="inputValue"
readonly
@click="visible = !visible"
placeholder="点击选择图标"
@click="visible = !visible"
>
<template #prepend>
<svg-icon :icon-class="inputValue" />
@@ -85,8 +86,8 @@ onMounted(() => {
>
<template #reference>
<div
@click="visible = !visible"
class="cursor-pointer text-[#999] absolute right-[10px] top-0 height-[32px] leading-[32px]"
@click="visible = !visible"
>
<i-ep-caret-top v-show="visible"></i-ep-caret-top>
<i-ep-caret-bottom v-show="!visible"></i-ep-caret-bottom>
@@ -96,8 +97,8 @@ onMounted(() => {
<!-- 下拉选择弹窗 -->
<div ref="iconSelectorDialogRef">
<el-input
class="p-2"
v-model="filterValue"
class="p-2"
placeholder="搜索图标"
clearable
@input="handleFilter"
@@ -107,9 +108,9 @@ onMounted(() => {
<el-scrollbar height="300px">
<ul class="icon-list">
<li
class="icon-item"
v-for="(iconName, index) in filterIconNames"
:key="index"
class="icon-item"
@click="handleSelect(iconName)"
>
<el-tooltip :content="iconName" placement="bottom" effect="light">