diff --git a/CHANGELOG.md b/CHANGELOG.md index 933f48f3576092add8bbfa27d5924ea7205e1634..4d654382ddb9f8e70625a8ed7b001fd6826fc5ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,13 @@ ### Fixed - 修复分割容器重复执行hiddenPanel方法导致showPanel方法执行后不能恢复上一次的分割比例 +- 修复【直接内容面板项】绘制模板模式出现内容闪烁 ### Added - 重复器表单拖拽支持表单自动保存配置 - 支持codeEditorTheme代码编辑器主题配置参数 +- 列表部件支持分组样式2绘制,该样式下时间值的分组标题默认以天为单位进行格式化并替换原值 ## [0.7.41-alpha.10] - 2025-07-08 diff --git a/src/common/rawitem/rawitem.tsx b/src/common/rawitem/rawitem.tsx index e868bcc6497dfbc4745ed3c1b4bd5a9770b35ca6..705adc130fbc0d74da0c114eb0c9582efdab86dc 100644 --- a/src/common/rawitem/rawitem.tsx +++ b/src/common/rawitem/rawitem.tsx @@ -198,7 +198,10 @@ export const IBizRawItem = defineComponent({ } }; - convertValue(); + // 模板模式下默认不绘制模板代码 + if (!props.rawItem?.rawItem?.templateMode) { + convertValue(); + } watch( () => props.content, diff --git a/src/control/list/list.scss b/src/control/list/list.scss index 0f6269f2c6529ab18743f78164ce44a5f7236269..3c2940a3532dd4b811062f8dc740aa132548ffb5 100644 --- a/src/control/list/list.scss +++ b/src/control/list/list.scss @@ -8,6 +8,10 @@ $control-list: ( item-bg-color: unset, ); +$control-list-group-style2: ( + color: getCssVar(color, disabled, text), +); + @include b(control-list-item) { flex-grow: 1; min-height: getCssVar(control-list, item-height); @@ -130,4 +134,31 @@ $control-list: ( @include when(active) { background-color: getCssVar(control-list, active-bg-color); } +} + +@include b('control-list-group-style2') { + @include set-component-css-var(control-list-group-style2, $control-list-group-style2); + + @include e('header') { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + @include m('title') { + padding: 0 getCssVar('spacing', 'tight'); + font-size: getCssVar('font-size', 'regular'); + color: getCssVar(control-list-group-style2, color); + } + + &::before, + &::after { + display: block; + flex: 1; + height: 1px; + margin-top: 1px; + content: ''; + border-top: 1px getCssVar(color, border) solid; + transform: translateY(-50%); + } + } } \ No newline at end of file diff --git a/src/control/list/list.tsx b/src/control/list/list.tsx index a9f399279a6a2b6c1d01a7705542acc46a4e4d1d..0407baa758ee1d93fc900235a7fc4281e8da6bc9 100644 --- a/src/control/list/list.tsx +++ b/src/control/list/list.tsx @@ -367,9 +367,44 @@ export const ListControl = defineComponent({ ); }; + /** + * 绘制分组样式2项 + * @return {*} {VNode[]} + */ + const renderGroupStyle2 = (): VNode[] => { + return c.state.groups?.map(group => { + return ( +