@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 * as CKEditor from '@ckeditor/ckeditor5-vue';
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
- <CKEditorComponent v-model="editorData" :editor="ClassicEditor" :config="localeEditorConfig" />
226
+ <CKEditor.component v-model="editorData" :editor="ClassicEditor" :config="localeEditorConfig" />
228
227
  </div>
229
228
  </template>
230
229
 
@@ -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
- *::-webkit-scrollbar {
10
- width: 6px;
11
- height: 6px;
12
- background-color: transparent;
13
- }
6
+ *::-webkit-scrollbar-thumb {
7
+ border-radius: 10px;
8
+ background-color: rgb(133 133 133 / 20%);
9
+ }
14
10
 
15
- *::-webkit-scrollbar-thumb {
16
- border-radius: 10px;
17
- background-color: rgb(133 133 133 / 20%);
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
- *::-webkit-scrollbar-thumb:hover {
21
- background-color: rgb(133 133 133 / 60%);
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.18",
4
+ "version": "0.2.0-beta.19",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",