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 = () => {