antd-solid 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/index.css +69 -0
  2. package/dist/index.esm.js +2369 -0
  3. package/dist/index.umd.js +1 -0
  4. package/package.json +5 -3
  5. package/.eslintignore +0 -2
  6. package/.eslintrc.cjs +0 -36
  7. package/.husky/pre-commit +0 -4
  8. package/.prettierrc +0 -11
  9. package/.vscode/settings.json +0 -13
  10. package/docs/.vitepress/components/Code.vue +0 -175
  11. package/docs/.vitepress/config.ts +0 -87
  12. package/docs/.vitepress/theme/index.css +0 -19
  13. package/docs/.vitepress/theme/index.ts +0 -12
  14. package/docs/components/button/Base.tsx +0 -21
  15. package/docs/components/button/Danger.tsx +0 -21
  16. package/docs/components/button.md +0 -35
  17. package/docs/components/collapse/Base.tsx +0 -25
  18. package/docs/components/collapse.md +0 -26
  19. package/docs/components/color-picker/Base.tsx +0 -14
  20. package/docs/components/color-picker.md +0 -26
  21. package/docs/components/compact/Base.tsx +0 -27
  22. package/docs/components/compact.md +0 -26
  23. package/docs/components/date-picker/Base.tsx +0 -15
  24. package/docs/components/date-picker.md +0 -26
  25. package/docs/components/empty/Base.tsx +0 -8
  26. package/docs/components/empty/PRESENTED_IMAGE_SIMPLE.tsx +0 -8
  27. package/docs/components/empty.md +0 -32
  28. package/docs/components/form/Base.tsx +0 -63
  29. package/docs/components/form.md +0 -27
  30. package/docs/components/image/Base.tsx +0 -13
  31. package/docs/components/image.md +0 -26
  32. package/docs/components/input/AddonBeforeAndAfter.tsx +0 -14
  33. package/docs/components/input/Base.tsx +0 -15
  34. package/docs/components/input/Disabled.tsx +0 -19
  35. package/docs/components/input/PrefixAndSuffix.tsx +0 -14
  36. package/docs/components/input/Status.tsx +0 -25
  37. package/docs/components/input/TextArea.tsx +0 -14
  38. package/docs/components/input-number/Base.tsx +0 -15
  39. package/docs/components/input-number/MinMax.tsx +0 -17
  40. package/docs/components/input-number.md +0 -34
  41. package/docs/components/input.md +0 -57
  42. package/docs/components/modal/Base.tsx +0 -35
  43. package/docs/components/modal.md +0 -26
  44. package/docs/components/popconfirm/Base.tsx +0 -25
  45. package/docs/components/popconfirm.md +0 -26
  46. package/docs/components/popover/Base.tsx +0 -19
  47. package/docs/components/popover.md +0 -26
  48. package/docs/components/progress/Base.tsx +0 -16
  49. package/docs/components/progress.md +0 -26
  50. package/docs/components/radio/Base.tsx +0 -10
  51. package/docs/components/radio.md +0 -26
  52. package/docs/components/segmented/Base.tsx +0 -10
  53. package/docs/components/segmented/Block.tsx +0 -10
  54. package/docs/components/segmented/Disabled.tsx +0 -28
  55. package/docs/components/segmented.md +0 -38
  56. package/docs/components/select/AllowClear.tsx +0 -18
  57. package/docs/components/select/Base.tsx +0 -17
  58. package/docs/components/select.md +0 -35
  59. package/docs/components/switch/Base.tsx +0 -14
  60. package/docs/components/switch.md +0 -26
  61. package/docs/components/table/Base.tsx +0 -34
  62. package/docs/components/table.md +0 -29
  63. package/docs/components/tabs/Base.tsx +0 -25
  64. package/docs/components/tabs/Segment.tsx +0 -25
  65. package/docs/components/tabs.md +0 -33
  66. package/docs/components/tooltip/Base.tsx +0 -12
  67. package/docs/components/tooltip/Placement.tsx +0 -90
  68. package/docs/components/tooltip.md +0 -32
  69. package/docs/components/tree/Base.tsx +0 -45
  70. package/docs/components/tree.md +0 -26
  71. package/docs/index.md +0 -28
  72. package/global.d.ts +0 -9
  73. package/patches/vitepress@1.0.0-rc.4.patch +0 -60
  74. package/rollup.config.js +0 -65
  75. package/scripts/annotationNonProductionCode.js +0 -30
  76. package/scripts/cancelAnnotationNonProductionCode.js +0 -30
  77. package/src/Button.tsx +0 -125
  78. package/src/Collapse/index.tsx +0 -86
  79. package/src/ColorPicker.tsx +0 -11
  80. package/src/Compact.tsx +0 -15
  81. package/src/DatePicker.tsx +0 -12
  82. package/src/Empty/PRESENTED_IMAGE_SIMPLE.tsx +0 -15
  83. package/src/Empty/assets/EmptySvg.tsx +0 -43
  84. package/src/Empty/assets/SimpleEmptySvg.tsx +0 -16
  85. package/src/Empty/index.tsx +0 -20
  86. package/src/Image.tsx +0 -29
  87. package/src/Input.tsx +0 -202
  88. package/src/InputNumber.test.tsx +0 -46
  89. package/src/InputNumber.tsx +0 -125
  90. package/src/Modal.tsx +0 -196
  91. package/src/Popconfirm.tsx +0 -75
  92. package/src/Popover.tsx +0 -30
  93. package/src/Progress.tsx +0 -4
  94. package/src/Radio.tsx +0 -132
  95. package/src/Result.tsx +0 -38
  96. package/src/Segmented/index.tsx +0 -95
  97. package/src/Select.tsx +0 -128
  98. package/src/Skeleton.tsx +0 -14
  99. package/src/Spin.tsx +0 -23
  100. package/src/Switch.tsx +0 -34
  101. package/src/Table.tsx +0 -53
  102. package/src/Tabs.tsx +0 -131
  103. package/src/Timeline.tsx +0 -33
  104. package/src/Tooltip.tsx +0 -355
  105. package/src/Tree.tsx +0 -246
  106. package/src/Upload.tsx +0 -10
  107. package/src/form/Form.tsx +0 -94
  108. package/src/form/FormItem.tsx +0 -139
  109. package/src/form/context.ts +0 -16
  110. package/src/form/index.ts +0 -13
  111. package/src/hooks/createControllableValue.ts +0 -68
  112. package/src/hooks/createUpdateEffect.ts +0 -16
  113. package/src/hooks/index.ts +0 -2
  114. package/src/hooks/useClickAway.ts +0 -18
  115. package/src/hooks/useSize.ts +0 -26
  116. package/src/types/index.ts +0 -5
  117. package/src/utils/EventEmitter.ts +0 -15
  118. package/src/utils/ReactToSolid.tsx +0 -38
  119. package/src/utils/SolidToReact.tsx +0 -27
  120. package/src/utils/array.ts +0 -21
  121. package/src/utils/component.tsx +0 -85
  122. package/src/utils/solid.ts +0 -53
  123. package/src/utils/zh_CN.ts +0 -236
  124. package/tsconfig.json +0 -25
  125. package/unocss.config.ts +0 -176
@@ -1,25 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Button, Popconfirm, message } from 'antd-solid'
3
-
4
- const Index: Component = () => {
5
- const confirm = () => {
6
- message.success('Click on Yes')
7
- }
8
- const cancel = () => {
9
- message.error('Click on No');
10
- };
11
-
12
- return (
13
- <Popconfirm
14
- title="是否同步删除后续继承节点"
15
- okText="是"
16
- cancelText="否"
17
- onConfirm={confirm}
18
- onCancel={cancel}
19
- >
20
- <Button danger>Delete</Button>
21
- </Popconfirm>
22
- )
23
- }
24
-
25
- export default Index
@@ -1,26 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Popconfirm 气泡确认框 {#title}
6
-
7
- 点击元素,弹出气泡式的确认框。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 最简单的用法,支持确认标题和描述。
14
-
15
- <Code path="popconfirm/Base" />
16
-
17
- ## API
18
-
19
- ### Popconfirm
20
-
21
- <div class="vp-table">
22
-
23
- | 参数 | 说明 | 类型 | 默认值
24
- | ----------- | ----------- | ----------- | ----------- |
25
-
26
- </div>
@@ -1,19 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Button, Popover } from 'antd-solid'
3
-
4
- const content = (
5
- <div style={{ width: '150px' }}>
6
- <p>Content</p>
7
- <p>Content</p>
8
- </div>
9
- );
10
-
11
- const Index: Component = () => {
12
- return (
13
- <Popover content={content} title="Title">
14
- <Button type="primary">Hover me</Button>
15
- </Popover>
16
- )
17
- }
18
-
19
- export default Index
@@ -1,26 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Popover 气泡卡片 {#title}
6
-
7
- 点击/鼠标移入元素,弹出气泡式的卡片浮层。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 最简单的用法,浮层的大小由内容区域决定。
14
-
15
- <Code path="popover/Base" />
16
-
17
- ## API
18
-
19
- ### Popover
20
-
21
- <div class="vp-table">
22
-
23
- | 参数 | 说明 | 类型 | 默认值
24
- | ----------- | ----------- | ----------- | ----------- |
25
-
26
- </div>
@@ -1,16 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Progress } from 'antd-solid'
3
-
4
- const Index: Component = () => {
5
- return (
6
- <>
7
- <Progress percent={30} />
8
- <Progress percent={50} status="active" />
9
- <Progress percent={70} status="exception" />
10
- <Progress percent={100} />
11
- <Progress percent={50} showInfo={false} />
12
- </>
13
- )
14
- }
15
-
16
- export default Index
@@ -1,26 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Progress 进度条 {#title}
6
-
7
- 展示操作的当前进度。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 标准的进度条。
14
-
15
- <Code path="progress/Base" />
16
-
17
- ## API
18
-
19
- ### Progress
20
-
21
- <div class="vp-table">
22
-
23
- | 参数 | 说明 | 类型 | 默认值
24
- | ----------- | ----------- | ----------- | ----------- |
25
-
26
- </div>
@@ -1,10 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Radio } from 'antd-solid'
3
-
4
- const Index: Component = () => {
5
- return (
6
- <Radio>Radio</Radio>
7
- )
8
- }
9
-
10
- export default Index
@@ -1,26 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Radio 单选框 {#title}
6
-
7
- 单选框。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 最简单的用法。
14
-
15
- <Code path="radio/Base" />
16
-
17
- ## API
18
-
19
- ### Radio
20
-
21
- <div class="vp-table">
22
-
23
- | 参数 | 说明 | 类型 | 默认值
24
- | ----------- | ----------- | ----------- | ----------- |
25
-
26
- </div>
@@ -1,10 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Segmented } from 'antd-solid'
3
-
4
- const App: Component = () => {
5
- const options = ['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']
6
-
7
- return <Segmented options={options} onChange={console.log} />
8
- }
9
-
10
- export default App
@@ -1,10 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Segmented } from 'antd-solid'
3
-
4
- const App: Component = () => {
5
- const options = ['第一章', '第二章', '第三章']
6
-
7
- return <Segmented block options={options} onChange={console.log} />
8
- }
9
-
10
- export default App
@@ -1,28 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Segmented } from 'antd-solid'
3
-
4
- const App: Component = () => {
5
- const options = [
6
- 'Daily',
7
- { label: () => 'Weekly', value: 'Weekly', disabled: true },
8
- 'Monthly',
9
- { label: () => 'Quarterly', value: 'Quarterly', disabled: true },
10
- 'Yearly',
11
- ]
12
-
13
- return (
14
- <div
15
- style={{
16
- display: 'flex',
17
- 'flex-direction': 'column',
18
- 'align-items': 'flex-start',
19
- gap: '8px',
20
- }}
21
- >
22
- <Segmented disabled options={options} onChange={console.log} />
23
- <Segmented options={options} onChange={console.log} />
24
- </div>
25
- )
26
- }
27
-
28
- export default App
@@ -1,38 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Segmented 分段控制器 {#title}
6
-
7
- 选项卡切换组件。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 默认选中第一项。
14
-
15
- <Code path="segmented/Base" />
16
-
17
- ### Block 分段选择器
18
-
19
- `block` 属性使其适合父元素宽度。
20
-
21
- <Code path="segmented/Block" />
22
-
23
- ### 不可用
24
-
25
- Segmented 不可用。
26
-
27
- <Code path="segmented/Disabled" />
28
-
29
- ## API
30
-
31
- ### Segmented
32
-
33
- <div class="vp-table">
34
-
35
- | 参数 | 说明 | 类型 | 默认值
36
- | ----------- | ----------- | ----------- | ----------- |
37
-
38
- </div>
@@ -1,18 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Select } from 'antd-solid'
3
-
4
- const AllowClear: Component = () => {
5
- return (
6
- <Select
7
- placeholder="请选择"
8
- allowClear
9
- options={[
10
- { value: 'jack', label: 'Jack' },
11
- { value: 'lucy', label: 'Lucy' },
12
- { value: 'yiminghe', label: 'Yiminghe' },
13
- ]}
14
- />
15
- )
16
- }
17
-
18
- export default AllowClear
@@ -1,17 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Select } from 'antd-solid'
3
-
4
- const Base: Component = () => {
5
- return (
6
- <Select
7
- placeholder="请选择"
8
- options={[
9
- { value: 'jack', label: 'Jack' },
10
- { value: 'lucy', label: 'Lucy' },
11
- { value: 'yiminghe', label: 'Yiminghe' },
12
- ]}
13
- />
14
- )
15
- }
16
-
17
- export default Base
@@ -1,35 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Select 选择器 {#title}
6
-
7
- 下拉选择器。
8
-
9
- ## 代码演示
10
-
11
- ### 基本用法
12
-
13
- 选择器的基础用法。
14
-
15
- <Code path="select/Base" />
16
-
17
- ### 可清空
18
-
19
- 注意只有选了值才能清空值。
20
-
21
- <Code path="select/AllowClear" />
22
-
23
- ## API
24
-
25
- ### Table
26
-
27
- <div class="vp-table">
28
-
29
- | 参数 | 说明 | 类型 | 默认值
30
- | ----------- | ----------- | ----------- | ----------- |
31
- | allowClear | 支持清除 | boolean | false |
32
- | options | 数据化配置选项内容,相比 jsx 定义会获得更好的渲染性能 | { label, value }[] | - |
33
- | placeholder | 选择框默认文本 | string | - |
34
-
35
- </div>
@@ -1,14 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Switch } from 'antd-solid'
3
-
4
- const Index: Component = () => {
5
- const onChange = (checked: boolean) => {
6
- console.log(`switch to ${checked}`);
7
- };
8
-
9
- return (
10
- <Switch onChange={onChange} />
11
- )
12
- }
13
-
14
- export default Index
@@ -1,26 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Switch 开关 {#title}
6
-
7
- 开关选择器。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 最简单的用法。
14
-
15
- <Code path="switch/Base" />
16
-
17
- ## API
18
-
19
- ### Switch
20
-
21
- <div class="vp-table">
22
-
23
- | 参数 | 说明 | 类型 | 默认值
24
- | ----------- | ----------- | ----------- | ----------- |
25
-
26
- </div>
@@ -1,34 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { type TableColumn, Table } from 'antd-solid'
3
-
4
- interface Row {
5
- name: string
6
- }
7
-
8
- const Index: Component = () => {
9
- const columns: Array<TableColumn<Row>> = [
10
- {
11
- title: '动画',
12
- render(row) {
13
- return <div>{row.name}</div>
14
- },
15
- },
16
- {
17
- title: '属性',
18
- render(row) {
19
- return <div>{row.name}</div>
20
- },
21
- },
22
- ]
23
- const dataSource = [
24
- {
25
- name: '1',
26
- },
27
- {
28
- name: '2',
29
- },
30
- ]
31
- return <Table columns={columns} dataSource={dataSource} />
32
- }
33
-
34
- export default Index
@@ -1,29 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Table 表格 {#title}
6
-
7
- 展示行列数据。
8
-
9
- ## 代码演示
10
-
11
-
12
- ### 基本用法
13
-
14
- 简单的表格
15
-
16
- <Code path="table/Base" />
17
-
18
- ## API
19
-
20
- ### Table
21
-
22
- <div class="vp-table">
23
-
24
- | 参数 | 说明 | 类型 | 默认值
25
- | ----------- | ----------- | ----------- | ----------- |
26
- | columns | 表格列的配置描述,具体项见下表 | Column[] | - |
27
- | dataSource | 数据数组 | object[] | - |
28
-
29
- </div>
@@ -1,25 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Tabs } from 'antd-solid'
3
-
4
- const App: Component = () => {
5
- const items = [
6
- {
7
- key: '1',
8
- label: () => 'Tab 1',
9
- children: () => 'Content of Tab Pane 1',
10
- },
11
- {
12
- key: '2',
13
- label: () => 'Tab 2',
14
- children: () => 'Content of Tab Pane 2',
15
- },
16
- {
17
- key: '3',
18
- label: () => 'Tab 3',
19
- children: () => 'Content of Tab Pane 3',
20
- },
21
- ]
22
- return <Tabs items={items} />
23
- }
24
-
25
- export default App
@@ -1,25 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Tabs } from 'antd-solid'
3
-
4
- const App: Component = () => {
5
- const items = [
6
- {
7
- key: '1',
8
- label: () => 'Tab 1',
9
- children: () => 'Content of Tab Pane 1',
10
- },
11
- {
12
- key: '2',
13
- label: () => 'Tab 2',
14
- children: () => 'Content of Tab Pane 2',
15
- },
16
- {
17
- key: '3',
18
- label: () => 'Tab 3',
19
- children: () => 'Content of Tab Pane 3',
20
- },
21
- ]
22
- return <Tabs type="segment" items={items} />
23
- }
24
-
25
- export default App
@@ -1,33 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Tabs 标签页 {#title}
6
-
7
- 选项卡切换组件。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 默认选中第一项。
14
-
15
- <Code path="tabs/Base" />
16
-
17
- ### 分段
18
-
19
- 分段类型的标签页。
20
-
21
- <Code path="tabs/Segment" />
22
-
23
- ## API
24
-
25
- ### Tabs
26
-
27
- <div class="vp-table">
28
-
29
- | 参数 | 说明 | 类型 | 默认值
30
- | ----------- | ----------- | ----------- | ----------- |
31
- | type | 页签的基本样式,可选 `line`、`segment` 类型 | string | `line` |
32
-
33
- </div>
@@ -1,12 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Tooltip } from 'antd-solid'
3
-
4
- const Index: Component = () => {
5
- return (
6
- <Tooltip content="prompt text">
7
- <span>Tooltip will show on mouse enter.</span>
8
- </Tooltip>
9
- )
10
- }
11
-
12
- export default Index
@@ -1,90 +0,0 @@
1
- import { type Component } from 'solid-js'
2
- import { Button, Tooltip } from 'antd-solid'
3
-
4
- const buttonWidth = 80
5
-
6
- const text = <span>prompt text</span>
7
-
8
- const App: Component = () => {
9
- return (
10
- <div>
11
- <div
12
- style={{
13
- 'margin-inline-start': `${buttonWidth}px`,
14
- 'white-space': 'nowrap',
15
- display: 'flex',
16
- gap: '8px',
17
- }}
18
- >
19
- <Tooltip placement="topLeft" content={text}>
20
- <Button style={{ width: '80px' }}>TL</Button>
21
- </Tooltip>
22
- <Tooltip placement="top" content={text}>
23
- <Button style={{ width: '80px' }}>Top</Button>
24
- </Tooltip>
25
- <Tooltip placement="topRight" content={text}>
26
- <Button style={{ width: '80px' }}>TR</Button>
27
- </Tooltip>
28
- </div>
29
- <div
30
- style={{
31
- width: `${buttonWidth}px`,
32
- float: 'inline-start',
33
- display: 'flex',
34
- 'flex-direction': 'column',
35
- gap: '8px',
36
- }}
37
- >
38
- <Tooltip placement="leftTop" content={text}>
39
- <Button style={{ width: '80px' }}>LT</Button>
40
- </Tooltip>
41
- <Tooltip placement="left" content={text}>
42
- <Button style={{ width: '80px' }}>Left</Button>
43
- </Tooltip>
44
- <Tooltip placement="leftBottom" content={text}>
45
- <Button style={{ width: '80px' }}>LB</Button>
46
- </Tooltip>
47
- </div>
48
- <div
49
- style={{
50
- width: `${buttonWidth}px`,
51
- 'margin-inline-start': `${buttonWidth * 4 + 24}px`,
52
- display: 'flex',
53
- 'flex-direction': 'column',
54
- gap: '8px',
55
- }}
56
- >
57
- <Tooltip placement="rightTop" content={text}>
58
- <Button style={{ width: '80px' }}>RT</Button>
59
- </Tooltip>
60
- <Tooltip placement="right" content={text}>
61
- <Button style={{ width: '80px' }}>Right</Button>
62
- </Tooltip>
63
- <Tooltip placement="rightBottom" content={text}>
64
- <Button style={{ width: '80px' }}>RB</Button>
65
- </Tooltip>
66
- </div>
67
- <div
68
- style={{
69
- 'margin-inline-start': `${buttonWidth}px`,
70
- clear: 'both',
71
- 'white-space': 'nowrap',
72
- display: 'flex',
73
- gap: '8px',
74
- }}
75
- >
76
- <Tooltip placement="bottomLeft" content={text}>
77
- <Button style={{ width: '80px' }}>BL</Button>
78
- </Tooltip>
79
- <Tooltip placement="bottom" content={text}>
80
- <Button style={{ width: '80px' }}>Bottom</Button>
81
- </Tooltip>
82
- <Tooltip placement="bottomRight" content={text}>
83
- <Button style={{ width: '80px' }}>BR</Button>
84
- </Tooltip>
85
- </div>
86
- </div>
87
- )
88
- }
89
-
90
- export default App
@@ -1,32 +0,0 @@
1
- ---
2
- outline: deep
3
- ---
4
-
5
- # Tooltip 文字提示 {#title}
6
-
7
- 简单的文字提示气泡框。
8
-
9
- ## 代码演示
10
-
11
- ### 基本
12
-
13
- 最简单的用法。
14
-
15
- <Code path="tooltip/Base" />
16
-
17
- ### 位置
18
-
19
- 位置有 12 个方向。
20
-
21
- <Code path="tooltip/Placement" />
22
-
23
- ## API
24
-
25
- ### Tooltip
26
-
27
- <div class="vp-table">
28
-
29
- | 参数 | 说明 | 类型 | 默认值
30
- | ----------- | ----------- | ----------- | ----------- |
31
-
32
- </div>