Skip to content

Commit

Permalink
docs: 文档优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Jul 4, 2024
1 parent 9601bc2 commit 86551ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 48 deletions.
15 changes: 3 additions & 12 deletions examples/search-table-react/001-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,9 @@ import { pinyin } from 'pinyin-pro'
const REG_CHINESE = /[\u4e00-\u9fa5]/

const items = [
{
key: '1',
label: '已提交',
},
{
key: '2',
label: '待提交',
},
{
key: '3',
label: '待审核',
},
{ key: '1', label: '已提交' },
{ key: '2', label: '待提交' },
{ key: '3', label: '待审核' },
]

// 模拟删除接口
Expand Down
45 changes: 9 additions & 36 deletions examples/search-table-react/050-tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,9 @@ import SearchTable from '@schema-render/search-table-react'
import { useState } from 'react'

const items = [
{
key: '1',
label: '已提交',
},
{
key: '2',
label: '待提交',
},
{
key: '3',
label: '待审核',
},
{ key: '1', label: '已提交' },
{ key: '2', label: '待提交' },
{ key: '3', label: '待审核' },
]

const Demo = () => {
Expand Down Expand Up @@ -75,18 +66,9 @@ import SearchTable from '@schema-render/search-table-react'
import { useState } from 'react'

const items = [
{
key: '1',
label: '已提交',
},
{
key: '2',
label: '待提交',
},
{
key: '3',
label: '待审核',
},
{ key: '1', label: '已提交' },
{ key: '2', label: '待提交' },
{ key: '3', label: '待审核' },
]

const Demo = () => {
Expand Down Expand Up @@ -166,18 +148,9 @@ import { useState } from 'react'
import { Button } from 'antd'

const items = [
{
key: '1',
label: '已提交',
},
{
key: '2',
label: '待提交',
},
{
key: '3',
label: '待审核',
},
{ key: '1', label: '已提交' },
{ key: '2', label: '待提交' },
{ key: '3', label: '待审核' },
]

const Demo = () => {
Expand Down

0 comments on commit 86551ff

Please sign in to comment.