From a680656c49dfd7ead44018d8bccc4c7ace795813 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Tue, 11 Jul 2023 18:37:47 +0800 Subject: [PATCH] * Adjust add/del item btn style. --- module/custom/ui/set.html.php | 28 ++++++++++++++-------------- module/stage/ui/settype.html.php | 8 ++++---- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/module/custom/ui/set.html.php b/module/custom/ui/set.html.php index 3e83a27cba..5683878cb5 100644 --- a/module/custom/ui/set.html.php +++ b/module/custom/ui/set.html.php @@ -367,16 +367,17 @@ else ), span ( - setClass('pl-4 pt-2'), - icon + btn ( - setClass('add-item'), - 'plus', + setClass('add-item btn ghost'), + on::click('addRow'), + icon('plus'), ), - icon + btn ( - setClass('del-item ml-2'), - 'trash', + setClass('del-item btn ghost'), + on::click('removeRow'), + icon('trash'), ), ) ) @@ -409,18 +410,17 @@ else set::readonly(empty($key)) ), $canAdd ? span( - setClass('pl-4 pt-2'), - icon + btn ( - setClass('add-item'), + setClass('add-item btn ghost'), on::click('addRow'), - 'plus', + icon('plus'), ), - icon + btn ( - setClass('del-item ml-2'), + setClass('del-item btn ghost'), on::click('removeRow'), - 'trash', + icon ('trash'), ), ) : null, ); diff --git a/module/stage/ui/settype.html.php b/module/stage/ui/settype.html.php index aeb40d0bdb..10ed773cba 100644 --- a/module/stage/ui/settype.html.php +++ b/module/stage/ui/settype.html.php @@ -42,13 +42,13 @@ div setClass('pl-2 flex self-center'), btn ( - setClass('btn btn-link add-item'), + setClass('btn ghost add-item'), on::click('addRow'), icon('plus') ), btn ( - setClass('btn btn-link del-item'), + setClass('btn ghost del-item'), on::click('removeRow'), icon('trash') ), @@ -81,13 +81,13 @@ foreach($fieldList as $key => $value) setClass('pl-2 flex self-center'), btn ( - setClass('btn btn-link add-item'), + setClass('btn ghost add-item'), on::click('addRow'), icon('plus') ), btn ( - setClass('btn btn-link del-item'), + setClass('btn ghost del-item'), on::click('removeRow'), icon('trash') ),