diff --git a/CHANGELOG.md b/CHANGELOG.md index b177b1ba76bcdaa57e5e9bea84c7510ec1b2a66d..d387b9f71e9922cde02062af562225d996952175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ ## [Unreleased] +### Change + +- 多数据部件最后分割线不显示 +- 新增用户消息面板组件 +- 富文本样式调整 + ## [0.0.25] - 2024-10-10 ### Added diff --git a/src/control/list/md-ctrl/md-ctrl.scss b/src/control/list/md-ctrl/md-ctrl.scss index 63504379f9c4c71088a5d9217e706179438a831b..9b0cc9d2e3e75a4f3bd185313591db527bf17397 100644 --- a/src/control/list/md-ctrl/md-ctrl.scss +++ b/src/control/list/md-ctrl/md-ctrl.scss @@ -66,16 +66,17 @@ $control-mobmdctrl: ( } padding: 0.875rem 0; - &::after { - content: ''; - position: relative; - display: block; - bottom: -0.875rem; - left: 1rem; - height: rem(1px); - width: calc(100% - 2rem); - background-color: getCssVar(color, border); - } +} + +.#{bem(control-mobmdctrl-item)} + .#{bem(control-mobmdctrl-item)}::before { + content: ''; + position: relative; + display: block; + top: -0.875rem; + left: 1rem; + height: rem(1px); + width: calc(100% - 2rem); + background-color: getCssVar(color, border); } @include b(control-mobmdctrl-image) { diff --git a/src/editor/html/quill-editor/quill-editor.scss b/src/editor/html/quill-editor/quill-editor.scss index 98312656c0003d7498ba785299e5887c3018cc8a..b67aac76e52f0f6ec8c31dae28efaede73c10301 100644 --- a/src/editor/html/quill-editor/quill-editor.scss +++ b/src/editor/html/quill-editor/quill-editor.scss @@ -4,37 +4,38 @@ height: 100%; border-radius: 0; } - .van-action-sheet__content { - position: relative; - .content { - display: flex; - height: 100%; - flex-direction: column; - } - .ql-toolbar { - padding: rem(8px) rem(50px); + display: flex; + flex-direction: column; + } + @include e(header) { + flex: none; + } + @include e(content) { + flex: auto; + display: flex; + height: 100%; + flex-direction: column; + } + @include e(footer) { + flex: none; + padding: 10px; + display: flex; + .van-button { + width: 100%; } - .#{bem(quill, cancel)} { - position: absolute; - left: 0px; - top: 0; - padding: rem(8px) rem(12px); - line-height: rem(26px); - cursor: pointer; + .van-button + .van-button { + margin-left: getCssVar(spacing, tight); } - .#{bem(quill, confirm)} { - position: absolute; - right: 0px; - top: 0; - padding: rem(8px) rem(12px); - line-height: rem(26px); - cursor: pointer; + } + .ql-toolbar.ql-snow { + .ql-header.ql-picker { + width: rem(60px); } } // quill多语言特殊处理,后续补充多语言 @include m(zh-cn) { - .ql-picker.ql-size { + .ql-snow .ql-picker.ql-size { .ql-picker-label::before, .ql-picker-item::before { content: '默认' diff --git a/src/editor/html/quill-editor/quill-editor.tsx b/src/editor/html/quill-editor/quill-editor.tsx index 9dbd6108fa9b0bda0da75327cc4c9af1f826775f..1b0a43acfe0f310061f165741f3f3dcc0e33b1a8 100644 --- a/src/editor/html/quill-editor/quill-editor.tsx +++ b/src/editor/html/quill-editor/quill-editor.tsx @@ -210,18 +210,24 @@ const IBizQuill: any = defineComponent({ v-model:show={this.editing} onOpened={this.handleEdit} > -