Skip to content

Commit bd0e804

Browse files
committed
优化
1 parent 333a2a1 commit bd0e804

File tree

10 files changed

+380
-17
lines changed

10 files changed

+380
-17
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module.exports = {
6060
"vue/singleline-html-element-content-newline": "off",
6161
"vue/attribute-hyphenation": "off",
6262
"vue/html-self-closing": "off",
63-
"vue/require-default-prop": "off"
63+
"vue/require-default-prop": "off",
64+
"vue/v-on-event-hyphenation": "off"
6465
}
6566
};

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "front-next",
3-
"version": "5.8.0",
3+
"version": "5.8.1",
44
"scripts": {
55
"dev": "vite --host",
66
"build": "vite build",
@@ -14,6 +14,9 @@
1414
"@cool-vue/crud": "^5.4.0",
1515
"@element-plus/icons-vue": "^2.0.6",
1616
"@vueuse/core": "^9.1.0",
17+
"@wangeditor/editor": "^5.1.14",
18+
"@wangeditor/editor-for-vue": "^5.1.12",
19+
"add": "^2.0.6",
1720
"axios": "^0.27.2",
1821
"codemirror": "^6.0.1",
1922
"core-js": "^3.23.5",
@@ -33,7 +36,8 @@
3336
"vue-echarts": "^6.2.3",
3437
"vue-router": "^4.1.2",
3538
"vuedraggable": "^4.1.0",
36-
"xlsx": "^0.18.5"
39+
"xlsx": "^0.18.5",
40+
"yarn": "^1.22.19"
3741
},
3842
"devDependencies": {
3943
"@types/lodash-es": "^4.17.6",

src/modules/base/pages/login/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import { useBase } from "/$/base";
6464
import Captcha from "./components/captcha.vue";
6565
6666
const { refs, setRefs, router, service } = useCool();
67-
const { user, menu, app } = useBase();
67+
const { user, app } = useBase();
6868
6969
// 状态1
7070
const saving = ref(false);

src/modules/base/views/components/dept/check.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const emit = defineEmits(["update:modelValue"]);
4242
const { service } = useCool();
4343
4444
// el-tree
45-
const Tree = ref<any>();
45+
const Tree = ref();
4646
4747
// 树形列表
4848
const list = ref<any[]>([]);

src/modules/base/views/components/menu/check.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ const list = ref<any[]>([]);
4444
const checked = ref<any[]>([]);
4545
4646
// 搜索关键字
47-
const keyword = ref<string>("");
47+
const keyword = ref("");
4848
4949
// el-tree 组件
50-
const Tree = ref<any>();
50+
const Tree = ref();
5151
5252
// 刷新列表
5353
function refresh() {

src/modules/base/views/param.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const tab = reactive<any>({
5656
{
5757
label: "切换代码编辑器",
5858
to: 0,
59-
component: "cl-editor-quill"
59+
component: "cl-editor-wang"
6060
}
6161
]
6262
});
@@ -97,7 +97,8 @@ const Table = useTable({
9797
},
9898
{
9999
label: "操作",
100-
type: "op"
100+
type: "op",
101+
buttons: ["edit", "delete"]
101102
}
102103
]
103104
});

src/modules/base/views/role.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,14 @@ const Table = useTable({
157157
},
158158
{
159159
label: "操作",
160-
type: "op"
160+
type: "op",
161+
buttons: ["edit", "delete"]
161162
}
162163
]
163164
});
164165
165166
// 是否关联上下级
166-
function onRelevanceChange(val: number) {
167+
function onRelevanceChange(val: number | string | boolean) {
167168
Upsert.value?.setProps("departmentIdList", {
168169
checkStrictly: val == 0
169170
});

src/modules/chat/components/message.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<ul>
6868
<li>
6969
<cl-upload @success="onImageSend" :show-file-list="false">
70-
<el-icon><Picture /></el-icon>
70+
<el-icon><picture /></el-icon>
7171
</cl-upload>
7272
</li>
7373
</ul>
+25-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
<template>
2-
<div class="demo">
3-
<cl-editor-quill v-model="content" :height="400" />
2+
<div class="editor scroller1">
3+
<div class="item">
4+
<p class="title">Wang</p>
5+
<cl-editor-wang v-model="w" height="400px" />
6+
</div>
7+
8+
<div class="item">
9+
<p class="title">Quill</p>
10+
<cl-editor-quill v-model="q" height="400px" />
11+
</div>
412
</div>
513
</template>
614

715
<script lang="ts" setup name="editor-quill">
816
import { ref } from "vue";
9-
const content = ref<string>("");
17+
const q = ref("Quill");
18+
const w = ref("Wang");
1019
</script>
20+
21+
<style lang="scss" scoped>
22+
.editor {
23+
.title {
24+
font-size: 15px;
25+
margin-bottom: 10px;
26+
}
27+
28+
.item {
29+
margin-bottom: 20px;
30+
}
31+
}
32+
</style>

0 commit comments

Comments
 (0)