Skip to content

Commit 562839f

Browse files
author
何嘉悦
committed
fix: 修复 Bubble 宽度样式,修复 md 内置样式覆盖
1 parent 01add0f commit 562839f

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

apps/playground/src/components/BubbleDemo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!-- home 首页-使用 Bubble 组件 -->
22
<script setup lang="ts">
33
import { DocumentCopy, Refresh, Search, Star } from '@element-plus/icons-vue'
4+
import Bubble from 'vue-element-plus-x/src/components/Bubble/index.vue'
45
56
const avatar = ref(
67
'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',

packages/components/.build/plugins/prismjs.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ import prismjsPlugin from 'vite-plugin-prismjs'
33

44
export default prismjsPlugin({
55
languages: 'all', // 语言
6-
plugins: [
7-
'line-numbers',
8-
'show-language',
9-
'copy-to-clipboard',
10-
'inline-color',
11-
],
126
theme: 'default', // 主题
13-
css: true,
7+
// css: true,
148
}) as PluginOption

packages/components/src/components/Bubble/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ defineExpose(instance)
329329
}
330330
331331
.el-bubble-content-loading {
332+
width: fit-content;
332333
.el-bubble-loading-wrap {
333334
display: flex;
334335
justify-content: center;

packages/components/src/components/BubbleList/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ defineExpose({
394394
395395
.back-to-bottom-loading-svg-bg {
396396
position: absolute;
397-
font-size: 50px;
398-
animation: is-loading 1.3s infinite linear;
397+
font-size: 48px;
398+
animation: is-loading 1s infinite linear;
399399
}
400400
401401
@keyframes is-loading {

packages/components/src/components/Typewriter/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import MarkdownIt from 'markdown-it'
66
// 在组件中初始化时
77
import Prism from 'prismjs'
88
import 'github-markdown-css'
9-
import 'prismjs/themes/prism.css'
9+
// import 'prismjs/themes/prism.css' // 样式影响其他组件库 暂时注释处理
1010
1111
const props = withDefaults(defineProps<TypewriterProps>(), {
1212
content: '',

0 commit comments

Comments
 (0)