@peng_kai/kit 0.2.0-beta.18 → 0.2.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useVModel } from '@vueuse/core';
|
|
3
|
-
import
|
|
3
|
+
import CKEditor from '@ckeditor/ckeditor5-vue';
|
|
4
4
|
import { ClassicEditor } from '@ckeditor/ckeditor5-editor-classic';
|
|
5
5
|
import { Alignment } from '@ckeditor/ckeditor5-alignment';
|
|
6
6
|
import { Autoformat } from '@ckeditor/ckeditor5-autoformat';
|
|
@@ -219,12 +219,11 @@ const emits = defineEmits<{
|
|
|
219
219
|
const editorData = useVModel(props, 'modelValue', emits);
|
|
220
220
|
const localeEditorConfig = { ...editorConfig };
|
|
221
221
|
localeEditorConfig.extraPlugins = [...props.plugins];
|
|
222
|
-
const CKEditorComponent = CKEditor.default.component;
|
|
223
222
|
</script>
|
|
224
223
|
|
|
225
224
|
<template>
|
|
226
225
|
<div class="editor-wrapper">
|
|
227
|
-
<
|
|
226
|
+
<CKEditor.component v-model="editorData" :editor="ClassicEditor" :config="localeEditorConfig" />
|
|
228
227
|
</div>
|
|
229
228
|
</template>
|
|
230
229
|
|
package/admin/styles/index.scss
CHANGED
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
@import './globalCover.scss';
|
|
3
3
|
|
|
4
4
|
@media (pointer: fine) {
|
|
5
|
-
* {
|
|
6
|
-
scrollbar-color: rgb(0 0 0 / 50%) transparent;
|
|
7
|
-
// scrollbar-width: thin;
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
6
|
+
*::-webkit-scrollbar-thumb {
|
|
7
|
+
border-radius: 10px;
|
|
8
|
+
background-color: rgb(133 133 133 / 20%);
|
|
9
|
+
}
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
12
|
+
background-color: rgb(133 133 133 / 60%);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
*::-webkit-scrollbar {
|
|
16
|
+
width: 6px;
|
|
17
|
+
height: 6px;
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
/* 不支持`::-webkit-scrollbar-*`的浏览器 */
|
|
22
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
23
|
+
* {
|
|
24
|
+
scrollbar-color: rgb(0 0 0 / 50%) transparent;
|
|
25
|
+
scrollbar-width: thin;
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
}
|