Skip to content

Commit

Permalink
fix: [divider] 修复无法从 @kdcloudjs/kdesign 中直接获取到 Divider 的 props 定义的问题 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
邵祺 authored and 邵祺 committed Nov 24, 2024
1 parent d0b37a1 commit 4364a17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/divider/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ order: 0
import React from 'react'
import ReactDOM from 'react-dom'
import { Divider } from '@kdcloudjs/kdesign'
import type { IDividerProps } from '@kdcloudjs/kdesign'

const Demo: React.FC = () => {
const style: IDividerProps['style'] = { margin: '10px 0', width: '720px' }
// 改下面的代码
return (
<div>
<p>KDesign of React 是金蝶生态设计系统,将设计赋能给产品、设计、开发各个环节,以保障金蝶系产品的统一体验。</p>
<Divider style={{ margin: '10px 0', width: '720px' }} />
<Divider style={style} />
<p>KDesign of React 是金蝶生态设计系统,将设计赋能给产品、设计、开发各个环节,以保障金蝶系产品的统一体验。</p>
<Divider style={{ margin: '10px 0', width: '720px' }} />
<Divider style={style} />
<p>KDesign of React 是金蝶生态设计系统,将设计赋能给产品、设计、开发各个环节,以保障金蝶系产品的统一体验。</p>
<Divider style={{ margin: '10px 0', width: '720px' }} />
<Divider style={style} />
</div>
)
}
Expand Down
2 changes: 2 additions & 0 deletions components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ export { default as ColorPicker } from './color-picker'

export { default as Clipboard } from './clipboard'

export type { IDividerProps } from './divider'

export { default as QRCode } from './qr-code'

export { default as Divider } from './divider'
Expand Down

0 comments on commit 4364a17

Please sign in to comment.