Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui-react
提交
07813831
N
nutui-react
项目概览
京东前端
/
nutui-react
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nutui-react
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
07813831
编写于
12月 01, 2021
作者:
_
__Oasis__
提交者:
GitHub
12月 01, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #33 from irisSong/main
fix: 修改price、drag、cell、elevator、animatingNumber、signature组件doc文档
上级
8c81450a
d4d1513a
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
40 addition
and
22 deletion
+40
-22
src/packages/animatingnumbers/doc.md
src/packages/animatingnumbers/doc.md
+1
-1
src/packages/cell/doc.md
src/packages/cell/doc.md
+10
-5
src/packages/drag/doc.md
src/packages/drag/doc.md
+11
-7
src/packages/elevator/doc.md
src/packages/elevator/doc.md
+5
-5
src/packages/price/demo.tsx
src/packages/price/demo.tsx
+1
-1
src/packages/price/doc.md
src/packages/price/doc.md
+8
-3
src/packages/signature/doc.md
src/packages/signature/doc.md
+4
-0
未找到文件。
src/packages/animatingnumbers/doc.md
浏览文件 @
07813831
...
...
@@ -8,7 +8,7 @@
```
javascript
import
{
AnimatingNumbers
}
from
'
@nutui/nutui
'
import
{
AnimatingNumbers
}
from
'
@nutui/nutui
-react
'
```
## 代码演示
...
...
src/packages/cell/doc.md
浏览文件 @
07813831
# Cell
组件
# Cell
单元格
### 介绍
...
...
@@ -6,7 +6,10 @@
### 安装
import { Cell,CellGroup } from '@nutui/nutui';
```
javascript
import
{
Cell
,
CellGroup
}
from
'
@nutui/nutui-react
'
```
## 代码演示
...
...
@@ -19,9 +22,11 @@ const testClick = (event: React.MouseEvent<HTMLDivElement, globalThis.MouseEvent
<
Cell
title
=
"我是标题"
desc
=
"描述文字"
></
Cell
>
<
Cell
title
=
"我是标题"
subTitle
=
"副标题描述"
desc
=
"描述文字"
></
Cell
>
<
Cell
title
=
"点击测试"
click
=
"{(event:"
React
.
MouseEvent
<
HTMLDivElement
,
globalThis
.
MouseEvent
>
) => testClick(event) } >
</
Cell
>
<
Cell
title
=
"点击测试"
click
=
{
(
event
:
React
.
MouseEvent
<
HTMLDivElement
,
globalThis
.
MouseEvent
>
)
=>
testClick
(
event
)
}
></
Cell
>
```
### 直接使用插槽
...
...
src/packages/drag/doc.md
浏览文件 @
07813831
# Drag
组件
# Drag
拖拽
### 介绍
...
...
@@ -6,6 +6,10 @@
### 安装
```
javascript
import
{
Drag
}
from
'
@nutui/nutui-react
'
```
## 代码演示
### 基础用法
...
...
@@ -40,12 +44,12 @@
## 限制拖拽边界
```
tsx
//
const right = () => {
//
return document.documentElement.clientWidth - 300 - 9
//
}
//
const bottom = () => {
//
return document.documentElement.clientHeight - 559
//
}
const
right
=
()
=>
{
return
document
.
documentElement
.
clientWidth
-
300
-
9
}
const
bottom
=
()
=>
{
return
document
.
documentElement
.
clientHeight
-
559
}
<
Drag
boundary
=
{
{
top
:
361
,
left
:
9
,
bottom
:
bottom
(),
right
:
right
()
}
}
>
<
div
class
=
"touch-dom"
>
拖动我
</
div
>
</
Drag
>
...
...
src/packages/elevator/doc.md
浏览文件 @
07813831
# Elevator
组件
# Elevator
电梯楼层
### 介绍
...
...
@@ -6,6 +6,10 @@
### 安装
```
javascript
import
{
Elevator
}
from
'
@nutui/nutui-react
'
```
## 代码演示
### 基础用法
...
...
@@ -69,9 +73,7 @@ const clickItem = (key: string, item: any) => {
const
clickIndex
=
(
key
:
string
)
=>
{
console
.
log
(
key
)
}
```
```
tsx
<
Elevator
indexList
=
{
dataList
}
height
=
"260"
...
...
@@ -193,9 +195,7 @@ const clickItem = (key: string, item: any) => {
const
clickIndex
=
(
key
:
string
)
=>
{
console
.
log
(
key
)
}
```
```
tsx
<
Elevator
indexList
=
{
dataList2
}
height
=
"220"
...
...
src/packages/price/demo.tsx
浏览文件 @
07813831
...
...
@@ -17,7 +17,7 @@ const PriceDemo = () => {
<
div
className
=
"demo"
>
<
h2
>
基本用法
</
h2
>
<
Cell
>
<
Price
price
=
{
0
}
needSymbol
=
{
false
}
thousands
=
{
true
}
/>
<
Price
price
=
{
101
0
}
needSymbol
=
{
false
}
thousands
=
{
true
}
/>
</
Cell
>
<
h2
>
有人民币符号,无千位分隔
</
h2
>
<
Cell
>
...
...
src/packages/price/doc.md
浏览文件 @
07813831
# Price
组件
# Price
商品价格
### 介绍
基于 xxxxxxx
用来对商品价格数值的小数点前后部分应用不同样式,还支持人民币符号、千位分隔符、设置小数点位数等功能。
### 安装
```
javascript
import
{
Price
}
from
'
@nutui/nutui-react
'
```
## 代码演示
### 基本用法
```
tsx
<
Price
price
=
{
0
}
needSymbol
=
{
false
}
thousands
=
{
true
}
/>
<
Price
price
=
{
101
0
}
needSymbol
=
{
false
}
thousands
=
{
true
}
/>
```
### 有人民币符号,无千位分隔
...
...
src/packages/signature/doc.md
浏览文件 @
07813831
...
...
@@ -6,6 +6,10 @@
### 安装
```
javascript
import
{
Signature
}
from
'
@nutui/nutui-react
'
```
## 代码演示
### 基础用法
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录