Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui-react
提交
939da826
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,体验更适合开发者的 AI 搜索 >>
提交
939da826
编写于
4月 03, 2023
作者:
O
oasis-cloud
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 统一 utils 中文件名的格式
上级
e3934b5a
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
25 addition
and
25 deletion
+25
-25
src/packages/ellipsis/ellipsis.taro.tsx
src/packages/ellipsis/ellipsis.taro.tsx
+1
-1
src/packages/noticebar/noticebar.taro.tsx
src/packages/noticebar/noticebar.taro.tsx
+1
-1
src/packages/noticebar/noticebar.tsx
src/packages/noticebar/noticebar.tsx
+1
-1
src/packages/picker/picker.taro.tsx
src/packages/picker/picker.taro.tsx
+1
-1
src/packages/picker/picker.tsx
src/packages/picker/picker.tsx
+1
-1
src/packages/picker/pickerSlot.taro.tsx
src/packages/picker/pickerSlot.taro.tsx
+2
-2
src/packages/picker/pickerSlot.tsx
src/packages/picker/pickerSlot.tsx
+1
-1
src/packages/popover/popover.taro.tsx
src/packages/popover/popover.taro.tsx
+1
-1
src/packages/popover/popover.tsx
src/packages/popover/popover.tsx
+1
-1
src/packages/range/range.taro.tsx
src/packages/range/range.taro.tsx
+2
-2
src/packages/range/range.tsx
src/packages/range/range.tsx
+2
-2
src/packages/sticky/sticky.taro.tsx
src/packages/sticky/sticky.taro.tsx
+2
-2
src/packages/sticky/sticky.tsx
src/packages/sticky/sticky.tsx
+2
-2
src/packages/swipe/swipe.taro.tsx
src/packages/swipe/swipe.taro.tsx
+2
-2
src/packages/swipe/swipe.tsx
src/packages/swipe/swipe.tsx
+2
-2
src/packages/swiper/swiper.tsx
src/packages/swiper/swiper.tsx
+1
-1
src/packages/uploader/uploader.taro.tsx
src/packages/uploader/uploader.taro.tsx
+1
-1
src/packages/uploader/uploader.tsx
src/packages/uploader/uploader.tsx
+1
-1
src/sites/assets/util/touch-emulator.js
src/sites/assets/util/touch-emulator.js
+0
-0
src/utils/interceptor.ts
src/utils/interceptor.ts
+0
-0
src/utils/use-client-rect.ts
src/utils/use-client-rect.ts
+0
-0
src/utils/use-refs.ts
src/utils/use-refs.ts
+0
-0
src/utils/use-touch.ts
src/utils/use-touch.ts
+0
-0
src/utils/use-watch.tsx
src/utils/use-watch.tsx
+0
-0
未找到文件。
src/packages/ellipsis/ellipsis.taro.tsx
浏览文件 @
939da826
import
React
,
{
FunctionComponent
,
useState
,
useRef
,
useEffect
}
from
'
react
'
import
{
useReady
,
nextTick
,
createSelectorQuery
}
from
'
@tarojs/taro
'
import
{
useConfig
}
from
'
@/packages/configprovider/configprovider.taro
'
import
{
getRectByTaro
}
from
'
@/utils/use
ClientR
ect
'
import
{
getRectByTaro
}
from
'
@/utils/use
-client-r
ect
'
export
type
Direction
=
'
start
'
|
'
end
'
|
'
middle
'
...
...
src/packages/noticebar/noticebar.taro.tsx
浏览文件 @
939da826
...
...
@@ -11,7 +11,7 @@ import React, {
import
classNames
from
'
classnames
'
import
bem
from
'
@/utils/bem
'
import
{
getRectByTaro
}
from
'
../../utils/use
ClientR
ect
'
import
{
getRectByTaro
}
from
'
../../utils/use
-client-r
ect
'
import
{
BasicComponent
,
ComponentDefaults
}
from
'
@/utils/typings
'
import
{
Close
,
Notice
}
from
'
@nutui/icons-react-taro
'
...
...
src/packages/noticebar/noticebar.tsx
浏览文件 @
939da826
...
...
@@ -11,7 +11,7 @@ import React, {
import
{
Close
,
Notice
}
from
'
@nutui/icons-react
'
import
classNames
from
'
classnames
'
import
bem
from
'
@/utils/bem
'
import
{
getRect
}
from
'
../../utils/use
ClientR
ect
'
import
{
getRect
}
from
'
../../utils/use
-client-r
ect
'
import
{
BasicComponent
,
ComponentDefaults
}
from
'
@/utils/typings
'
export
interface
NoticeBarProps
extends
BasicComponent
{
...
...
src/packages/picker/picker.taro.tsx
浏览文件 @
939da826
...
...
@@ -8,7 +8,7 @@ import React, {
import
{
View
}
from
'
@tarojs/components
'
import
Popup
from
'
@/packages/popup/index.taro
'
import
PickerSlot
from
'
./pickerSlot.taro
'
import
useRefs
from
'
@/utils/use
R
efs
'
import
useRefs
from
'
@/utils/use
-r
efs
'
import
{
useConfig
}
from
'
@/packages/configprovider/configprovider.taro
'
import
bem
from
'
@/utils/bem
'
...
...
src/packages/picker/picker.tsx
浏览文件 @
939da826
...
...
@@ -7,7 +7,7 @@ import React, {
}
from
'
react
'
import
Popup
from
'
@/packages/popup
'
import
PickerSlot
from
'
./pickerSlot
'
import
useRefs
from
'
@/utils/use
R
efs
'
import
useRefs
from
'
@/utils/use
-r
efs
'
import
{
useConfig
}
from
'
@/packages/configprovider
'
import
bem
from
'
@/utils/bem
'
...
...
src/packages/picker/pickerSlot.taro.tsx
浏览文件 @
939da826
...
...
@@ -6,8 +6,8 @@ import React, {
useImperativeHandle
,
}
from
'
react
'
import
{
PickerOption
}
from
'
./picker.taro
'
import
{
useTouch
}
from
'
../../utils/use
T
ouch
'
import
{
getRectByTaro
}
from
'
@/utils/use
ClientR
ect
'
import
{
useTouch
}
from
'
../../utils/use
-t
ouch
'
import
{
getRectByTaro
}
from
'
@/utils/use
-client-r
ect
'
import
{
passiveSupported
}
from
'
@/utils/supports-passive
'
interface
PickerSlotProps
{
...
...
src/packages/picker/pickerSlot.tsx
浏览文件 @
939da826
...
...
@@ -6,7 +6,7 @@ import React, {
useImperativeHandle
,
}
from
'
react
'
import
{
PickerOption
}
from
'
./picker
'
import
{
useTouch
}
from
'
../../utils/use
T
ouch
'
import
{
useTouch
}
from
'
../../utils/use
-t
ouch
'
interface
PickerSlotProps
{
keyIndex
?:
number
...
...
src/packages/popover/popover.taro.tsx
浏览文件 @
939da826
...
...
@@ -8,7 +8,7 @@ import React, {
import
{
ITouchEvent
}
from
'
@tarojs/components
'
import
Trigger
from
'
./Trigger
'
import
Overlay
from
'
@/packages/overlay/index.taro
'
import
{
getRectByTaro
}
from
'
@/utils/use
ClientR
ect
'
import
{
getRectByTaro
}
from
'
@/utils/use
-client-r
ect
'
import
{
BasicComponent
,
ComponentDefaults
}
from
'
@/utils/typings
'
...
...
src/packages/popover/popover.tsx
浏览文件 @
939da826
...
...
@@ -7,7 +7,7 @@ import React, {
}
from
'
react
'
import
Trigger
from
'
./Trigger
'
import
Overlay
from
'
@/packages/overlay
'
import
{
getRect
}
from
'
@/utils/use
ClientR
ect
'
import
{
getRect
}
from
'
@/utils/use
-client-r
ect
'
import
{
BasicComponent
,
ComponentDefaults
}
from
'
@/utils/typings
'
export
type
PopoverTheme
=
'
light
'
|
'
dark
'
...
...
src/packages/range/range.taro.tsx
浏览文件 @
939da826
...
...
@@ -6,8 +6,8 @@ import React, {
CSSProperties
,
useCallback
,
}
from
'
react
'
import
{
useTouch
}
from
'
../../utils/use
T
ouch
'
import
{
getRectByTaro
}
from
'
../../utils/use
ClientR
ect
'
import
{
useTouch
}
from
'
../../utils/use
-t
ouch
'
import
{
getRectByTaro
}
from
'
../../utils/use
-client-r
ect
'
import
Toast
from
'
@/packages/toast/index.taro
'
import
{
useConfig
}
from
'
@/packages/configprovider/configprovider.taro
'
...
...
src/packages/range/range.tsx
浏览文件 @
939da826
...
...
@@ -6,8 +6,8 @@ import React, {
CSSProperties
,
useCallback
,
}
from
'
react
'
import
{
useTouch
}
from
'
../../utils/use
T
ouch
'
import
{
getRect
}
from
'
../../utils/use
ClientR
ect
'
import
{
useTouch
}
from
'
../../utils/use
-t
ouch
'
import
{
getRect
}
from
'
../../utils/use
-client-r
ect
'
import
Toast
from
'
@/packages/toast
'
import
{
useConfig
}
from
'
@/packages/configprovider
'
...
...
src/packages/sticky/sticky.taro.tsx
浏览文件 @
939da826
...
...
@@ -15,8 +15,8 @@ import {
getEnv
,
}
from
'
@tarojs/taro
'
import
{
BasicComponent
}
from
'
@/utils/typings
'
import
useWatch
from
'
@/utils/use
W
atch
'
import
{
getRectByTaro
}
from
'
@/utils/use
ClientR
ect
'
import
useWatch
from
'
@/utils/use
-w
atch
'
import
{
getRectByTaro
}
from
'
@/utils/use
-client-r
ect
'
import
{
getScrollParent
}
from
'
@/utils/get-scroll-parent
'
import
bem
from
'
@/utils/bem
'
...
...
src/packages/sticky/sticky.tsx
浏览文件 @
939da826
...
...
@@ -7,8 +7,8 @@ import React, {
}
from
'
react
'
import
classNames
from
'
classnames
'
import
{
getScrollParent
}
from
'
@/utils/get-scroll-parent
'
import
{
getRect
}
from
'
@/utils/use
ClientR
ect
'
import
useWatch
from
'
@/utils/use
W
atch
'
import
{
getRect
}
from
'
@/utils/use
-client-r
ect
'
import
useWatch
from
'
@/utils/use
-w
atch
'
import
{
BasicComponent
}
from
'
@/utils/typings
'
import
bem
from
'
@/utils/bem
'
...
...
src/packages/swipe/swipe.taro.tsx
浏览文件 @
939da826
...
...
@@ -10,8 +10,8 @@ import React, {
import
classNames
from
'
classnames
'
import
{
nextTick
,
useReady
}
from
'
@tarojs/taro
'
import
bem
from
'
@/utils/bem
'
import
{
useTouch
}
from
'
@/utils/use
T
ouch
'
import
{
getRectByTaro
}
from
'
@/utils/use
ClientR
ect
'
import
{
useTouch
}
from
'
@/utils/use
-t
ouch
'
import
{
getRectByTaro
}
from
'
@/utils/use
-client-r
ect
'
export
type
SwipeSide
=
'
left
'
|
'
right
'
export
type
SwipePosition
=
SwipeSide
|
'
cell
'
|
'
outside
'
...
...
src/packages/swipe/swipe.tsx
浏览文件 @
939da826
...
...
@@ -10,8 +10,8 @@ import React, {
}
from
'
react
'
import
classNames
from
'
classnames
'
import
bem
from
'
@/utils/bem
'
import
{
useTouch
}
from
'
@/utils/use
T
ouch
'
import
{
getRect
}
from
'
@/utils/use
ClientR
ect
'
import
{
useTouch
}
from
'
@/utils/use
-t
ouch
'
import
{
getRect
}
from
'
@/utils/use
-client-r
ect
'
export
type
SwipeSide
=
'
left
'
|
'
right
'
export
type
SwipePosition
=
SwipeSide
|
'
cell
'
|
'
outside
'
...
...
src/packages/swiper/swiper.tsx
浏览文件 @
939da826
...
...
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, TouchEvent, useMemo } from 'react'
import
classNames
from
'
classnames
'
import
{
DataContext
}
from
'
./UserContext
'
import
bem
from
'
@/utils/bem
'
import
{
getRect
}
from
'
../../utils/use
ClientR
ect
'
import
{
getRect
}
from
'
../../utils/use
-client-r
ect
'
export
type
SwiperRef
=
{
to
:
(
index
:
number
)
=>
void
...
...
src/packages/uploader/uploader.taro.tsx
浏览文件 @
939da826
...
...
@@ -27,7 +27,7 @@ import Progress from '@/packages/progress/index.taro'
import
{
UploaderTaro
,
UploadOptions
}
from
'
./upload
'
import
bem
from
'
@/utils/bem
'
import
{
useConfig
}
from
'
@/packages/configprovider/configprovider.taro
'
import
{
funcInterceptor
}
from
'
@/utils/
I
nterceptor
'
import
{
funcInterceptor
}
from
'
@/utils/
i
nterceptor
'
import
{
BasicComponent
,
ComponentDefaults
}
from
'
@/utils/typings
'
...
...
src/packages/uploader/uploader.tsx
浏览文件 @
939da826
...
...
@@ -18,7 +18,7 @@ import Progress from '@/packages/progress'
import
{
Upload
,
UploadOptions
}
from
'
./upload
'
import
bem
from
'
@/utils/bem
'
import
{
useConfig
}
from
'
@/packages/configprovider
'
import
{
funcInterceptor
}
from
'
@/utils/
I
nterceptor
'
import
{
funcInterceptor
}
from
'
@/utils/
i
nterceptor
'
import
{
BasicComponent
,
ComponentDefaults
}
from
'
@/utils/typings
'
...
...
src/
utils/touchE
mulator.js
→
src/
sites/assets/util/touch-e
mulator.js
浏览文件 @
939da826
文件已移动
src/utils/
I
nterceptor.ts
→
src/utils/
i
nterceptor.ts
浏览文件 @
939da826
文件已移动
src/utils/use
ClientR
ect.ts
→
src/utils/use
-client-r
ect.ts
浏览文件 @
939da826
文件已移动
src/utils/use
R
efs.ts
→
src/utils/use
-r
efs.ts
浏览文件 @
939da826
文件已移动
src/utils/use
T
ouch.ts
→
src/utils/use
-t
ouch.ts
浏览文件 @
939da826
文件已移动
src/utils/use
W
atch.tsx
→
src/utils/use
-w
atch.tsx
浏览文件 @
939da826
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录