* zin: add .menu-dtable-actions style.

This commit is contained in:
dingyongliang
2023-04-10 14:06:09 +08:00
parent 7ead94f3eb
commit 7230fcffdd
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ foreach($setting as $value)
'delete' => array('icon'=> 'icon-trash', 'hint'=> '删除', 'text' => '删除'),
'other' => array('type'=> 'dropdown', 'hint'=> '其他操作', 'caret' => true),
'link' => array('icon'=> 'icon-link', 'text'=> '关联产品', 'name' => 'link'),
'more' => array('icon'=> 'icon-ellipsis-v', 'hint'=> '更多', 'type' => 'dropdown', 'caret' => false, 'className' => 'menu-dtable-actions'),
'more' => array('icon'=> 'icon-ellipsis-v', 'hint'=> '更多', 'type' => 'dropdown', 'caret' => false),
'whitelist' => array('icon'=> 'icon-shield-check', 'text'=> '项目白名单', 'name' => 'whitelist'),
);
break;
+5
View File
@@ -0,0 +1,5 @@
.menu.menu-dtable-actions {display: flex; min-width: auto;}
.menu.menu-dtable-actions .icon {position: static!important; opacity: 1!important;}
.menu.menu-dtable-actions span.text {display: none;}
.menu.menu-dtable-actions > .menu-item > a {padding: 0;}
.menu.menu-dtable-actions > .menu-item > a:hover {background: none; color: var(--menu-hover-bg);}
+5
View File
@@ -5,6 +5,11 @@ class dtable extends wg
{
static $defineProps = 'className?:string="shadow rounded"';
public static function getPageCSS()
{
return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
}
protected function build()
{
return zui::dtable(inherit($this));