11<template >
2- <div v-if =" blockStyle === BlockStyles.Mini" class =" header" >
3- <div class =" col-checkbox" v-if = " showCheckbox " >
2+ <div v-if =" blockStyle === BlockStyles.Mini && showCheckbox " class =" header" >
3+ <div class =" col-checkbox" >
44 <select-all :allItems =" data" :selected =" checked" :hidden-label =" true" @select-all =" handleSelectAll" ></select-all >
55 </div >
66 <div class =" col-name" >区块名称</div >
1818 @mouseleave =" state.hover = false"
1919 >
2020 <li v-if =" showAddButton" class =" block-item block-plus" @click =" $emit('add')" >
21- <span class =" block-plus-icon" ><icon-plus ></icon-plus ></span >
21+ <span class =" block-plus-icon" ><svg-icon name = " add " ></svg-icon ></span >
2222 <div class =" item-text" >添加区块</div >
2323 </li >
2424 <li
4747 <div v-if =" blockStyle === BlockStyles.List" class =" item-description" >{{ item.description }}</div >
4848 </div >
4949
50- <div v-if =" blockStyle === BlockStyles.Mini" class =" cell cell-time" >
51- <span >{{ format(item.created_at, 'yyyy/MM/dd hh:mm:ss') }}</span >
52- </div >
53- <div v-if =" blockStyle === BlockStyles.Mini" class =" cell cell-created-by" >
54- <span >{{ users.find((user) => user.id === item.createdBy)?.name || item.id }}</span >
55- </div >
56-
5750 <div v-if =" item.isShowProgress" class =" progress-bar" >
5851 <tiny-progress
5952 :text-inside =" true"
6861 <div v-if =" isBlockManage" class =" block-detail" >
6962 <div class =" setting-menu" @mouseover.stop =" handleSettingMouseOver" @mouseleave =" handleBlockItemLeave" >
7063 <ul class =" list" >
71- <tiny-tooltip content =" 编辑" placement =" top" >
72- <li class =" list-item" @mousedown.stop.left =" editBlock({ event: $event, item, index })" >
73- <svg-button class =" list-item-svg" name =" to-edit" > </svg-button >
74- </li >
75- </tiny-tooltip >
76- <tiny-tooltip content =" 设置" placement =" top" >
77- <li
78- class =" list-item"
79- @mouseover.stop =" iconSettingMove"
80- @mousedown.stop.prevent =" iconClick({ event: $event, item, index })"
81- >
82- <svg-button class =" list-item-svg" name =" text-source-setting" > </svg-button >
83- </li >
84- </tiny-tooltip >
64+ <li class =" list-item" @mousedown.stop.left =" editBlock({ event: $event, item, index })" >
65+ <svg-button class =" list-item-svg" name =" to-edit" > </svg-button >
66+ </li >
67+ <li
68+ class =" list-item"
69+ @mouseover.stop =" iconSettingMove"
70+ @mousedown.stop.prevent =" iconClick({ event: $event, item, index })"
71+ >
72+ <svg-button class =" list-item-svg" name =" text-source-setting" > </svg-button >
73+ </li >
8574 </ul >
8675 </div >
8776 </div >
140129<script >
141130import { computed , watch , inject , reactive } from ' vue'
142131import { format } from ' @opentiny/vue-renderless/common/date'
143- import { iconPlus } from ' @opentiny/vue-icon'
144132import { Progress , Tooltip } from ' @opentiny/vue'
145133import PluginBlockItemImg from ' ./PluginBlockItemImg.vue'
146134import SearchEmpty from ' ./SearchEmpty.vue'
@@ -159,7 +147,6 @@ const defaultImg =
159147export default {
160148 components: {
161149 TinyProgress: Progress,
162- IconPlus: iconPlus (),
163150 TinyTooltip: Tooltip,
164151 PluginBlockItemImg,
165152 SvgButton,
@@ -503,16 +490,17 @@ export default {
503490
504491 .publish - flag {
505492 position: absolute;
506- left: 2px ;
507- top: 2px ;
493+ left: 4px ;
494+ top: 4px ;
508495 text- align: center;
509496 display: block;
510- color: var (-- ti - lowcode - common- secondary - text- color );
497+ color: var (-- te - common- text- primary );
511498 font- size: 12px ;
512- background- color: var (-- ti - lowcode - component - block - list - item - tag - bg );
513- padding: 2px ;
514- border- radius: 4px 0 4px 0 ;
499+ background- color: var (-- te - common - bg - prompt );
500+ padding: 2px 4px ;
501+ border- radius: 2px ;
515502 transform: scale (0.9 );
503+ min- width: 45px ;
516504 }
517505
518506 & .block - item- small- list {
@@ -525,7 +513,7 @@ export default {
525513 margin- left: 8px ;
526514 }
527515 .item - text {
528- width: calc ( 35 % - 62px ) ;
516+ width: 50 % ;
529517 }
530518 .publish - flag {
531519 position: static ;
@@ -545,6 +533,9 @@ export default {
545533 }
546534 }
547535 }
536+ & : hover {
537+ background- color: var (-- te- common- bg- container);
538+ }
548539 }
549540 & : nth- child (even ) {
550541 border- right: 0 ;
@@ -602,7 +593,7 @@ export default {
602593 .item - text {
603594 font- size: 12px ;
604595 }
605- .tiny - svg {
596+ .svg - icon {
606597 font- size: 24px ;
607598 color: var (-- ti- lowcode- component- svg- button- color);
608599 }
0 commit comments