From b58023b8d6613cc4bb6c4ebb2a3891f1a346826d Mon Sep 17 00:00:00 2001 From: dengfuping Date: Fri, 19 Jan 2024 20:14:46 +0800 Subject: [PATCH] chore(design): Update Table with-card demo --- packages/design/src/table/demo/with-card.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/design/src/table/demo/with-card.tsx b/packages/design/src/table/demo/with-card.tsx index 230298a8c..5b8fa7727 100644 --- a/packages/design/src/table/demo/with-card.tsx +++ b/packages/design/src/table/demo/with-card.tsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import { Card, Form, Radio, Table } from '@oceanbase/design'; const App: React.FC = () => { + const [hasTitle, setHasTitle] = useState(true); const [hasPadding, setHasPadding] = useState(true); const [selectedRowKeys, setSelectedRowKeys] = useState([]); @@ -35,8 +36,19 @@ const App: React.FC = () => { return (
-
- + + + { + setHasTitle(e.target.value); + }} + > + Has title + No title + + + { @@ -49,7 +61,7 @@ const App: React.FC = () => {