refactor: ♻️ eslint 代码规范检测修改
Former-commit-id: 0a1da312a15a849433d40c2727e4fa3a70e8b625
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
@click="toggleClick"
|
||||
class="px-[15px] hover:bg-gray-50 cursor-pointer h-[50px] leading-[50px] dark:hover:bg-[var(--el-fill-color-light)]"
|
||||
@click="toggleClick"
|
||||
>
|
||||
<svg
|
||||
:class="{ 'is-active': isActive }"
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div :class="'pagination ' + { hidden: hidden }">
|
||||
<el-pagination
|
||||
:background="background"
|
||||
v-model:current-page="currentPage"
|
||||
v-model:page-size="pageSize"
|
||||
:background="background"
|
||||
:layout="layout"
|
||||
:page-sizes="pageSizes"
|
||||
:total="total"
|
||||
|
||||
@@ -53,7 +53,7 @@ onBeforeUnmount(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="{ show: show }" ref="rightPanel">
|
||||
<div ref="rightPanel" :class="{ show: show }">
|
||||
<div class="right-panel-overlay" />
|
||||
<div class="right-panel-container">
|
||||
<div
|
||||
|
||||
@@ -17,9 +17,11 @@ const props = defineProps({
|
||||
iconClass: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: "",
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<!-- 上传组件 -->
|
||||
<el-upload
|
||||
class="single-uploader"
|
||||
v-model="imgUrl"
|
||||
class="single-uploader"
|
||||
:show-file-list="false"
|
||||
list-type="picture-card"
|
||||
:before-upload="handleBeforeUpload"
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
<!-- 工具栏 -->
|
||||
<Toolbar
|
||||
:editor="editorRef"
|
||||
:defaultConfig="toolbarConfig"
|
||||
:default-config="toolbarConfig"
|
||||
style="border-bottom: 1px solid #ccc"
|
||||
:mode="mode"
|
||||
/>
|
||||
<!-- 编辑器 -->
|
||||
<Editor
|
||||
:defaultConfig="editorConfig"
|
||||
v-model="defaultHtml"
|
||||
@onChange="handleChange"
|
||||
:default-config="editorConfig"
|
||||
style="height: 500px; overflow-y: hidden"
|
||||
:mode="mode"
|
||||
@onCreated="handleCreated"
|
||||
@on-change="handleChange"
|
||||
@on-created="handleCreated"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user