Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wzj-java
uni-app
提交
5a15f947
U
uni-app
项目概览
wzj-java
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5a15f947
编写于
2月 11, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: rename props
上级
5779ffae
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
163 addition
and
160 deletion
+163
-160
packages/uni-components/dist/components.js
packages/uni-components/dist/components.js
+76
-76
packages/uni-components/src/components/label.ts
packages/uni-components/src/components/label.ts
+1
-1
packages/uni-components/src/components/movable-view/index.ts
packages/uni-components/src/components/movable-view/index.ts
+2
-2
packages/uni-components/src/components/movableArea.ts
packages/uni-components/src/components/movableArea.ts
+2
-2
packages/uni-components/src/components/pickerView.ts
packages/uni-components/src/components/pickerView.ts
+2
-2
packages/uni-components/src/nvue/label/index.tsx
packages/uni-components/src/nvue/label/index.tsx
+2
-2
packages/uni-components/src/nvue/movable-area/index.tsx
packages/uni-components/src/nvue/movable-area/index.tsx
+2
-2
packages/uni-components/src/nvue/movable-view/index.tsx
packages/uni-components/src/nvue/movable-view/index.tsx
+2
-2
packages/uni-components/src/nvue/picker-view/index.tsx
packages/uni-components/src/nvue/picker-view/index.tsx
+7
-4
packages/uni-components/src/vue/label/index.tsx
packages/uni-components/src/vue/label/index.tsx
+2
-2
packages/uni-components/src/vue/movable-area/index.tsx
packages/uni-components/src/vue/movable-area/index.tsx
+2
-2
packages/uni-components/src/vue/movable-view/index.tsx
packages/uni-components/src/vue/movable-view/index.tsx
+2
-2
packages/uni-components/src/vue/picker-view/index.tsx
packages/uni-components/src/vue/picker-view/index.tsx
+3
-3
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+29
-29
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+29
-29
未找到文件。
packages/uni-components/dist/components.js
浏览文件 @
5a15f947
...
...
@@ -45,53 +45,53 @@ const navigatorProps = {
default
:
false
}
};
function
createNavigatorOnClick
(
props
2
)
{
function
createNavigatorOnClick
(
props
)
{
return
()
=>
{
if
(
props
2
.
openType
!==
"
navigateBack
"
&&
!
props2
.
url
)
{
if
(
props
.
openType
!==
"
navigateBack
"
&&
!
props
.
url
)
{
console
.
error
(
"
<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab
"
);
return
;
}
switch
(
props
2
.
openType
)
{
switch
(
props
.
openType
)
{
case
"
navigate
"
:
uni
.
navigateTo
({
url
:
props
2
.
url
url
:
props
.
url
});
break
;
case
"
redirect
"
:
uni
.
redirectTo
({
url
:
props
2
.
url
,
exists
:
props
2
.
exists
url
:
props
.
url
,
exists
:
props
.
exists
});
break
;
case
"
switchTab
"
:
uni
.
switchTab
({
url
:
props
2
.
url
url
:
props
.
url
});
break
;
case
"
reLaunch
"
:
uni
.
reLaunch
({
url
:
props
2
.
url
url
:
props
.
url
});
break
;
case
"
navigateBack
"
:
uni
.
navigateBack
({
delta
:
props
2
.
delta
delta
:
props
.
delta
});
break
;
}
};
}
function
useHoverClass
(
props
2
)
{
if
(
props
2
.
hoverClass
&&
props2
.
hoverClass
!==
"
none
"
)
{
const
hoverAttrs
=
{
hoverClass
:
props
2
.
hoverClass
};
if
(
hasOwn
(
props
2
,
"
hoverStartTime
"
))
{
hoverAttrs
.
hoverStartTime
=
props
2
.
hoverStartTime
;
function
useHoverClass
(
props
)
{
if
(
props
.
hoverClass
&&
props
.
hoverClass
!==
"
none
"
)
{
const
hoverAttrs
=
{
hoverClass
:
props
.
hoverClass
};
if
(
hasOwn
(
props
,
"
hoverStartTime
"
))
{
hoverAttrs
.
hoverStartTime
=
props
.
hoverStartTime
;
}
if
(
hasOwn
(
props
2
,
"
hoverStayTime
"
))
{
hoverAttrs
.
hoverStayTime
=
props
2
.
hoverStayTime
;
if
(
hasOwn
(
props
,
"
hoverStayTime
"
))
{
hoverAttrs
.
hoverStayTime
=
props
.
hoverStayTime
;
}
if
(
hasOwn
(
props
2
,
"
hoverStopPropagation
"
))
{
hoverAttrs
.
hoverStopPropagation
=
props
2
.
hoverStopPropagation
;
if
(
hasOwn
(
props
,
"
hoverStopPropagation
"
))
{
hoverAttrs
.
hoverStopPropagation
=
props
.
hoverStopPropagation
;
}
return
hoverAttrs
;
}
...
...
@@ -110,12 +110,12 @@ var Navigator = defineComponent({
name
:
"
Navigator
"
,
props
:
navigatorProps
,
styles
:
navigatorStyles
,
setup
(
props
2
,
{
setup
(
props
,
{
slots
})
{
const
onClick
=
createNavigatorOnClick
(
props
2
);
const
onClick
=
createNavigatorOnClick
(
props
);
return
()
=>
{
return
createVNode
(
"
view
"
,
mergeProps
(
useHoverClass
(
props
2
),
{
return
createVNode
(
"
view
"
,
mergeProps
(
useHoverClass
(
props
),
{
"
onClick
"
:
onClick
}),
[
slots
.
default
&&
slots
.
default
()]);
};
...
...
@@ -127,7 +127,7 @@ function PolySymbol(name) {
function
useCurrentPageId
()
{
return
getCurrentInstance
().
root
.
proxy
.
$page
.
id
;
}
const
props$2
=
{
const
labelProps
=
{
for
:
{
type
:
String
,
default
:
""
...
...
@@ -148,9 +148,9 @@ function useProvideLabel() {
}
var
Label
=
/* @__PURE__ */
defineComponent
({
name
:
"
Label
"
,
props
:
props$2
,
props
:
labelProps
,
styles
:
[],
setup
(
props
2
,
{
setup
(
props
,
{
slots
})
{
const
pageId
=
useCurrentPageId
();
...
...
@@ -165,8 +165,8 @@ var Label = /* @__PURE__ */ defineComponent({
if
(
stopPropagation
)
{
return
;
}
if
(
props
2
.
for
)
{
UniViewJSBridge
.
emit
(
`uni-label-click-
${
pageId
}
-
${
props
2
.
for
}
`
,
$event
,
true
);
if
(
props
.
for
)
{
UniViewJSBridge
.
emit
(
`uni-label-click-
${
pageId
}
-
${
props
.
for
}
`
,
$event
,
true
);
}
else
{
handlers
.
length
&&
handlers
[
0
](
$event
,
true
);
}
...
...
@@ -176,14 +176,14 @@ var Label = /* @__PURE__ */ defineComponent({
},
[
slots
.
default
&&
slots
.
default
()]);
}
});
function
useListeners
(
props
2
,
listeners
)
{
_addListeners
(
props
2
.
id
,
listeners
);
watch
(()
=>
props
2
.
id
,
(
newId
,
oldId
)
=>
{
function
useListeners
(
props
,
listeners
)
{
_addListeners
(
props
.
id
,
listeners
);
watch
(()
=>
props
.
id
,
(
newId
,
oldId
)
=>
{
_removeListeners
(
oldId
,
listeners
,
true
);
_addListeners
(
newId
,
listeners
,
true
);
});
onUnmounted
(()
=>
{
_removeListeners
(
props
2
.
id
,
listeners
);
_removeListeners
(
props
.
id
,
listeners
);
});
}
function
_addListeners
(
id
,
listeners
,
watch2
)
{
...
...
@@ -467,14 +467,14 @@ var Button = defineComponent({
}
}),
styles
:
buttonStyle
,
setup
(
props
2
,
{
setup
(
props
,
{
slots
,
attrs
})
{
const
type
=
props
2
.
type
;
const
type
=
props
.
type
;
const
rootRef
=
ref
(
null
);
const
onClick
=
(
e2
,
isLabelClick
)
=>
{
if
(
props
2
.
disabled
)
{
if
(
props
.
disabled
)
{
return
;
}
if
(
isLabelClick
)
{
...
...
@@ -483,17 +483,17 @@ var Button = defineComponent({
};
const
_getClass
=
(
t2
)
=>
{
let
cl
=
"
ub-
"
+
TYPES
[
type
]
+
t2
;
props
2
.
disabled
&&
(
cl
+=
"
-d
"
);
props
2
.
plain
&&
(
cl
+=
"
-plain
"
);
props
2
.
size
===
"
mini
"
&&
t2
===
"
-t
"
&&
(
cl
+=
"
ub-mini
"
);
props
.
disabled
&&
(
cl
+=
"
-d
"
);
props
.
plain
&&
(
cl
+=
"
-plain
"
);
props
.
size
===
"
mini
"
&&
t2
===
"
-t
"
&&
(
cl
+=
"
ub-mini
"
);
return
cl
;
};
const
_getHoverClass
=
(
t2
)
=>
{
if
(
props
2
.
disabled
)
{
if
(
props
.
disabled
)
{
return
""
;
}
let
cl
=
"
ub-
"
+
TYPES
[
type
]
+
t2
+
"
-hover
"
;
props
2
.
plain
&&
(
cl
+=
"
-plain
"
);
props
.
plain
&&
(
cl
+=
"
-plain
"
);
return
cl
;
};
const
uniLabel
=
inject
(
uniLabelKey
,
false
);
...
...
@@ -503,7 +503,7 @@ var Button = defineComponent({
uniLabel
.
removeHandler
(
onClick
);
});
}
useListeners
(
props
2
,
{
useListeners
(
props
,
{
"
label-click
"
:
onClick
});
const
wrapSlots
=
()
=>
{
...
...
@@ -521,11 +521,11 @@ var Button = defineComponent({
return
createVNode
(
"
div
"
,
mergeProps
({
"
ref
"
:
rootRef
,
"
class
"
:
[
"
ub
"
,
_getClass
(
""
)]
},
extend
({},
useHoverClass
(
props
2
),
{
},
extend
({},
useHoverClass
(
props
),
{
hoverClass
:
_getHoverClass
(
""
)
}),
{
"
onClick
"
:
onClick
}),
[
props
2
.
loading
?
createVNode
(
"
loading-indicator
"
,
mergeProps
({
}),
[
props
.
loading
?
createVNode
(
"
loading-indicator
"
,
mergeProps
({
"
class
"
:
[
"
ub-loading
"
,
`ub-
${
TYPES
[
type
]}
-loading`
]
},
{
arrow
:
"
false
"
,
...
...
@@ -534,7 +534,7 @@ var Button = defineComponent({
};
}
});
const
props$1
=
{
const
movableAreaProps
=
{
scaleArea
:
{
type
:
Boolean
,
default
:
false
...
...
@@ -567,14 +567,14 @@ const getComponentSize = (el) => {
};
var
MovableArea
=
defineComponent
({
name
:
"
MovableArea
"
,
props
:
props$1
,
props
:
movableAreaProps
,
styles
:
[{
"
uni-movable-area
"
:
{
width
:
"
10px
"
,
height
:
"
10px
"
}
}],
setup
(
props
2
,
{
setup
(
props
,
{
slots
})
{
const
width
=
ref
(
0
);
...
...
@@ -1060,7 +1060,7 @@ STD.prototype.reconfigure = function(e2, t2, n) {
this
.
_springY
.
reconfigure
(
e2
,
t2
,
n
);
this
.
_springScale
.
reconfigure
(
e2
,
t2
,
n
);
};
const
p
rops
=
{
const
movableViewP
rops
=
{
direction
:
{
type
:
String
,
default
:
"
none
"
...
...
@@ -1169,7 +1169,7 @@ function cancelAnimationFrame(id) {
const
animation
=
weex
.
requireModule
(
"
animation
"
);
var
MovableView
=
defineComponent
({
name
:
"
MovableView
"
,
props
,
props
:
movableViewProps
,
emits
:
[
"
change
"
,
"
scale
"
],
styles
:
[{
"
uni-movable-view
"
:
{
...
...
@@ -1180,7 +1180,7 @@ var MovableView = defineComponent({
height
:
"
10px
"
}
}],
setup
(
props
2
,
{
setup
(
props
,
{
emit
,
slots
})
{
...
...
@@ -1188,7 +1188,7 @@ var MovableView = defineComponent({
const
trigger
=
useCustomEvent
(
rootRef
,
emit
);
const
setTouchMovableViewContext
=
inject
(
"
setTouchMovableViewContext
"
,
()
=>
{
});
useMovableViewState
(
props
2
,
trigger
,
rootRef
);
useMovableViewState
(
props
,
trigger
,
rootRef
);
const
touchStart
=
()
=>
{
setTouchMovableViewContext
({
touchstart
,
...
...
@@ -1209,7 +1209,7 @@ var MovableView = defineComponent({
};
}
});
function
useMovableViewState
(
props
2
,
trigger
,
rootRef
)
{
function
useMovableViewState
(
props
,
trigger
,
rootRef
)
{
const
_isMounted
=
inject
(
"
_isMounted
"
,
ref
(
false
));
const
parentSize
=
inject
(
"
parentSize
"
,
{
width
:
ref
(
0
),
...
...
@@ -1228,9 +1228,9 @@ function useMovableViewState(props2, trigger, rootRef) {
val
=
Number
(
val
);
return
isNaN
(
val
)
?
1
:
val
;
}
const
xSync
=
ref
(
_getPx
(
props
2
.
x
));
const
ySync
=
ref
(
_getPx
(
props
2
.
y
));
const
scaleValueSync
=
ref
(
_getScaleNumber
(
Number
(
props
2
.
scaleValue
)));
const
xSync
=
ref
(
_getPx
(
props
.
x
));
const
ySync
=
ref
(
_getPx
(
props
.
y
));
const
scaleValueSync
=
ref
(
_getScaleNumber
(
Number
(
props
.
scaleValue
)));
const
width
=
ref
(
0
);
const
height
=
ref
(
0
);
const
minX
=
ref
(
0
);
...
...
@@ -1269,32 +1269,32 @@ function useMovableViewState(props2, trigger, rootRef) {
historyT
:
[
0
,
0
]
};
const
dampingNumber
=
computed
(()
=>
{
let
val
=
Number
(
props
2
.
damping
);
let
val
=
Number
(
props
.
damping
);
return
isNaN
(
val
)
?
20
:
val
;
});
const
frictionNumber
=
computed
(()
=>
{
let
val
=
Number
(
props
2
.
friction
);
let
val
=
Number
(
props
.
friction
);
return
isNaN
(
val
)
||
val
<=
0
?
2
:
val
;
});
const
scaleMinNumber
=
computed
(()
=>
{
let
val
=
Number
(
props
2
.
scaleMin
);
let
val
=
Number
(
props
.
scaleMin
);
return
isNaN
(
val
)
?
0.5
:
val
;
});
const
scaleMaxNumber
=
computed
(()
=>
{
let
val
=
Number
(
props
2
.
scaleMax
);
let
val
=
Number
(
props
.
scaleMax
);
return
isNaN
(
val
)
?
10
:
val
;
});
const
xMove
=
computed
(()
=>
props
2
.
direction
===
"
all
"
||
props2
.
direction
===
"
horizontal
"
);
const
yMove
=
computed
(()
=>
props
2
.
direction
===
"
all
"
||
props2
.
direction
===
"
vertical
"
);
const
xMove
=
computed
(()
=>
props
.
direction
===
"
all
"
||
props
.
direction
===
"
horizontal
"
);
const
yMove
=
computed
(()
=>
props
.
direction
===
"
all
"
||
props
.
direction
===
"
vertical
"
);
const
_STD
=
new
STD
(
1
,
9
*
Math
.
pow
(
dampingNumber
.
value
,
2
)
/
40
,
dampingNumber
.
value
);
const
_friction
=
new
Friction
(
1
,
frictionNumber
.
value
);
watch
(()
=>
props
2
.
x
,
(
val
)
=>
{
watch
(()
=>
props
.
x
,
(
val
)
=>
{
xSync
.
value
=
_getPx
(
val
);
});
watch
(()
=>
props
2
.
y
,
(
val
)
=>
{
watch
(()
=>
props
.
y
,
(
val
)
=>
{
ySync
.
value
=
_getPx
(
val
);
});
watch
(()
=>
props
2
.
scaleValue
,
(
val
)
=>
{
watch
(()
=>
props
.
scaleValue
,
(
val
)
=>
{
scaleValueSync
.
value
=
_getScaleNumber
(
Number
(
val
));
});
watch
(
xSync
,
_setX
);
...
...
@@ -1337,13 +1337,13 @@ function useMovableViewState(props2, trigger, rootRef) {
return
val
;
}
function
_setScaleMinOrMax
()
{
if
(
!
props
2
.
scale
)
{
if
(
!
props
.
scale
)
{
return
false
;
}
_updateScale
(
_scale
,
true
);
}
function
_setScaleValue
(
scale
)
{
if
(
!
props
2
.
scale
)
{
if
(
!
props
.
scale
)
{
return
false
;
}
scale
=
_adjustScale
(
scale
);
...
...
@@ -1352,7 +1352,7 @@ function useMovableViewState(props2, trigger, rootRef) {
}
function
__handleTouchStart
()
{
{
if
(
!
props
2
.
disabled
)
{
if
(
!
props
.
disabled
)
{
FAandSFACancel
();
__touchInfo
.
historyX
=
[
0
,
0
];
__touchInfo
.
historyY
=
[
0
,
0
];
...
...
@@ -1370,7 +1370,7 @@ function useMovableViewState(props2, trigger, rootRef) {
}
}
function
__handleTouchMove
(
event
)
{
if
(
!
props
2
.
disabled
&&
_isTouching
)
{
if
(
!
props
.
disabled
&&
_isTouching
)
{
let
x
=
_translateX
;
let
y
=
_translateY
;
if
(
_firstMoveDirection
===
null
)
{
...
...
@@ -1397,14 +1397,14 @@ function useMovableViewState(props2, trigger, rootRef) {
if
(
!
_checkCanMove
)
{
let
source
=
"
touch
"
;
if
(
x
<
minX
.
value
)
{
if
(
props
2
.
outOfBounds
)
{
if
(
props
.
outOfBounds
)
{
source
=
"
touch-out-of-bounds
"
;
x
=
minX
.
value
-
_declineX
.
x
(
minX
.
value
-
x
);
}
else
{
x
=
minX
.
value
;
}
}
else
if
(
x
>
maxX
.
value
)
{
if
(
props
2
.
outOfBounds
)
{
if
(
props
.
outOfBounds
)
{
source
=
"
touch-out-of-bounds
"
;
x
=
maxX
.
value
+
_declineX
.
x
(
x
-
maxX
.
value
);
}
else
{
...
...
@@ -1412,7 +1412,7 @@ function useMovableViewState(props2, trigger, rootRef) {
}
}
if
(
y
<
minY
.
value
)
{
if
(
props
2
.
outOfBounds
)
{
if
(
props
.
outOfBounds
)
{
source
=
"
touch-out-of-bounds
"
;
y
=
minY
.
value
-
_declineY
.
x
(
minY
.
value
-
y
);
}
else
{
...
...
@@ -1420,7 +1420,7 @@ function useMovableViewState(props2, trigger, rootRef) {
}
}
else
{
if
(
y
>
maxY
.
value
)
{
if
(
props
2
.
outOfBounds
)
{
if
(
props
.
outOfBounds
)
{
source
=
"
touch-out-of-bounds
"
;
y
=
maxY
.
value
+
_declineY
.
x
(
y
-
maxY
.
value
);
}
else
{
...
...
@@ -1435,9 +1435,9 @@ function useMovableViewState(props2, trigger, rootRef) {
}
}
function
__handleTouchEnd
()
{
if
(
!
props
2
.
disabled
&&
_isTouching
)
{
if
(
!
props
.
disabled
&&
_isTouching
)
{
_isTouching
=
false
;
if
(
!
_checkCanMove
&&
!
_revise
(
"
out-of-bounds
"
)
&&
props
2
.
inertia
)
{
if
(
!
_checkCanMove
&&
!
_revise
(
"
out-of-bounds
"
)
&&
props
.
inertia
)
{
const
xv
=
1
e3
*
(
__touchInfo
.
historyX
[
1
]
-
__touchInfo
.
historyX
[
0
])
/
(
__touchInfo
.
historyT
[
1
]
-
__touchInfo
.
historyT
[
0
]);
const
yv
=
1
e3
*
(
__touchInfo
.
historyY
[
1
]
-
__touchInfo
.
historyY
[
0
])
/
(
__touchInfo
.
historyT
[
1
]
-
__touchInfo
.
historyT
[
0
]);
_friction
.
setV
(
xv
,
yv
);
...
...
@@ -1527,7 +1527,7 @@ function useMovableViewState(props2, trigger, rootRef) {
maxY
.
value
=
Math
.
max
(
y
,
_height
);
}
function
_updateScale
(
scale
,
animat
)
{
if
(
props
2
.
scale
)
{
if
(
props
.
scale
)
{
scale
=
_adjustScale
(
scale
);
_updateWH
(
scale
);
_updateBoundary
();
...
...
@@ -1556,13 +1556,13 @@ function useMovableViewState(props2, trigger, rootRef) {
if
(
!
yMove
.
value
)
{
y
=
_translateY
;
}
if
(
!
props
2
.
scale
)
{
if
(
!
props
.
scale
)
{
scale
=
_scale
;
}
let
limitXY
=
_getLimitXY
(
x
,
y
);
x
=
limitXY
.
x
;
y
=
limitXY
.
y
;
if
(
!
props
2
.
animation
)
{
if
(
!
props
.
animation
)
{
_setTransform
(
x
,
y
,
scale
,
source
,
r
,
o
);
return
;
}
...
...
@@ -1612,7 +1612,7 @@ function useMovableViewState(props2, trigger, rootRef) {
});
}
}
if
(
!
props
2
.
scale
)
{
if
(
!
props
.
scale
)
{
scale
=
_scale
;
}
scale
=
_adjustScale
(
scale
);
...
...
@@ -1646,7 +1646,7 @@ function useMovableViewState(props2, trigger, rootRef) {
return
;
}
FAandSFACancel
();
let
scale
=
props
2
.
scale
?
scaleValueSync
.
value
:
1
;
let
scale
=
props
.
scale
?
scaleValueSync
.
value
:
1
;
_updateOffset
();
_updateWH
(
scale
);
_updateBoundary
();
...
...
packages/uni-components/src/components/label.ts
浏览文件 @
5a15f947
import
{
provide
}
from
'
vue
'
import
{
PolySymbol
}
from
'
@dcloudio/uni-core
'
export
const
p
rops
=
{
export
const
labelP
rops
=
{
for
:
{
type
:
String
,
default
:
''
,
...
...
packages/uni-components/src/components/movable-view/index.ts
浏览文件 @
5a15f947
import
{
ExtractPropTypes
}
from
'
vue
'
import
{
Decline
,
Friction
,
STD
}
from
'
./utils
'
export
{
Decline
,
Friction
,
STD
}
export
const
p
rops
=
{
export
const
movableViewP
rops
=
{
direction
:
{
type
:
String
,
default
:
'
none
'
,
...
...
@@ -56,7 +56,7 @@ export const props = {
},
}
export
type
Props
=
ExtractPropTypes
<
typeof
p
rops
>
export
type
Props
=
ExtractPropTypes
<
typeof
movableViewP
rops
>
export
type
FrictionCallback
=
(
friction
:
Friction
|
STD
)
=>
void
export
type
Record
=
{
id
:
number
...
...
packages/uni-components/src/components/movable
-a
rea.ts
→
packages/uni-components/src/components/movable
A
rea.ts
浏览文件 @
5a15f947
import
{
ExtractPropTypes
}
from
'
vue
'
export
const
p
rops
=
{
export
const
movableAreaP
rops
=
{
scaleArea
:
{
type
:
Boolean
,
default
:
false
,
},
}
export
type
Props
=
ExtractPropTypes
<
typeof
p
rops
>
export
type
Props
=
ExtractPropTypes
<
typeof
movableAreaP
rops
>
packages/uni-components/src/components/picker
-v
iew.ts
→
packages/uni-components/src/components/picker
V
iew.ts
浏览文件 @
5a15f947
...
...
@@ -5,7 +5,7 @@ import {
WritableComputedRef
,
}
from
'
vue
'
export
const
props
=
{
export
const
p
ickerViewP
rops
=
{
value
:
{
type
:
Array
as
PropType
<
number
[]
>
,
default
()
{
...
...
@@ -36,7 +36,7 @@ export const props = {
},
}
export
type
Props
=
ExtractPropTypes
<
typeof
props
>
export
type
Props
=
ExtractPropTypes
<
typeof
p
ickerViewP
rops
>
export
type
GetPickerViewColumn
=
(
columnInstance
:
ComponentInternalInstance
...
...
packages/uni-components/src/nvue/label/index.tsx
浏览文件 @
5a15f947
import
{
defineComponent
}
from
'
vue
'
import
{
useCurrentPageId
}
from
'
@dcloudio/uni-core
'
import
{
p
rops
,
useProvideLabel
}
from
'
../../components/label
'
import
{
labelP
rops
,
useProvideLabel
}
from
'
../../components/label
'
export
{
UniLabelCtx
,
uniLabelKey
}
from
'
../../components/label
'
...
...
@@ -10,7 +10,7 @@ type LabelTarget = HTMLElement & {
export
default
/*#__PURE__*/
defineComponent
({
name
:
'
Label
'
,
props
,
props
:
labelProps
,
styles
:
[],
setup
(
props
,
{
slots
})
{
const
pageId
=
useCurrentPageId
()
...
...
packages/uni-components/src/nvue/movable-area/index.tsx
浏览文件 @
5a15f947
import
{
defineComponent
,
Ref
,
ref
,
onMounted
,
provide
}
from
'
vue
'
import
{
props
}
from
'
../../components/movable-a
rea
'
import
{
movableAreaProps
}
from
'
../../components/movableA
rea
'
import
{
flatVNode
}
from
'
../../helpers/flatVNode
'
import
{
TouchtrackEvent
}
from
'
../movable-view/useTouchtrack
'
import
{
getComponentSize
}
from
'
../helpers
'
...
...
@@ -28,7 +28,7 @@ export interface parentSize {
export
default
defineComponent
({
name
:
'
MovableArea
'
,
props
,
props
:
movableAreaProps
,
styles
:
[
{
'
uni-movable-area
'
:
{
...
...
packages/uni-components/src/nvue/movable-view/index.tsx
浏览文件 @
5a15f947
...
...
@@ -31,7 +31,7 @@ import {
Decline
,
Friction
,
STD
,
p
rops
,
movableViewP
rops
,
Props
,
FrictionCallback
,
Record
,
...
...
@@ -113,7 +113,7 @@ const animation = weex.requireModule('animation')
export
default
defineComponent
({
name
:
'
MovableView
'
,
props
,
props
:
movableViewProps
,
emits
:
[
'
change
'
,
'
scale
'
],
styles
:
[
{
...
...
packages/uni-components/src/nvue/picker-view/index.tsx
浏览文件 @
5a15f947
...
...
@@ -10,21 +10,24 @@ import {
ExtractPropTypes
,
}
from
'
vue
'
import
{
extend
}
from
'
@vue/shared
'
import
{
props
,
GetPickerViewColumn
}
from
'
../../components/picker-view
'
import
{
pickerViewProps
,
GetPickerViewColumn
,
}
from
'
../../components/pickerView
'
import
{
flatVNode
}
from
'
../../helpers/flatVNode
'
import
{
useCustomEvent
,
EmitEvent
}
from
'
../../helpers/useNVueEvent
'
export
{
Props
,
GetPickerViewColumn
}
const
pickerViewProps
=
extend
({},
p
rops
,
{
const
nvuePickerViewProps
=
extend
({},
pickerViewP
rops
,
{
height
:
{
type
:
[
Number
,
String
],
default
:
0
,
},
})
type
Props
=
ExtractPropTypes
<
typeof
p
ickerViewProps
>
type
Props
=
ExtractPropTypes
<
typeof
nvueP
ickerViewProps
>
export
default
defineComponent
({
name
:
'
PickerView
'
,
props
:
p
ickerViewProps
,
props
:
nvueP
ickerViewProps
,
emits
:
[
'
change
'
,
'
update:value
'
],
setup
(
props
,
{
slots
,
emit
})
{
const
rootRef
:
Ref
<
HTMLElement
|
null
>
=
ref
(
null
)
...
...
packages/uni-components/src/vue/label/index.tsx
浏览文件 @
5a15f947
...
...
@@ -2,13 +2,13 @@ import { computed } from 'vue'
import
{
useCurrentPageId
}
from
'
@dcloudio/uni-core
'
import
{
withWebEvent
}
from
'
../../helpers/useEvent
'
import
{
defineBuiltInComponent
}
from
'
../../helpers/component
'
import
{
p
rops
,
useProvideLabel
}
from
'
../../components/label
'
import
{
labelP
rops
,
useProvideLabel
}
from
'
../../components/label
'
export
{
UniLabelCtx
,
uniLabelKey
}
from
'
../../components/label
'
export
default
/*#__PURE__*/
defineBuiltInComponent
({
name
:
'
Label
'
,
props
,
props
:
labelProps
,
setup
(
props
,
{
slots
})
{
const
pageId
=
useCurrentPageId
()
const
handlers
=
useProvideLabel
()
...
...
packages/uni-components/src/vue/movable-area/index.tsx
浏览文件 @
5a15f947
...
...
@@ -6,7 +6,7 @@ import { initScrollBounce, disableScrollBounce } from '../../helpers/scroll'
import
ResizeSensor
from
'
../resize-sensor/index
'
import
{
flatVNode
}
from
'
../../helpers/flatVNode
'
import
{
useRebuild
}
from
'
../../helpers/useRebuild
'
import
{
props
,
Props
}
from
'
../../components/movable-a
rea
'
import
{
movableAreaProps
,
Props
}
from
'
../../components/movableA
rea
'
type
_TouchEvent
=
'
_onTouchstart
'
|
'
_onTouchmove
'
|
'
_onTouchend
'
export
interface
MovableViewContext
{
...
...
@@ -21,7 +21,7 @@ export type RemoveMovableViewContext = (context: MovableViewContext) => void
export
default
/*#__PURE__*/
defineBuiltInComponent
({
inheritAttrs
:
false
,
name
:
'
MovableArea
'
,
props
,
props
:
movableAreaProps
,
setup
(
props
,
{
slots
})
{
const
rootRef
:
Ref
<
HTMLElement
|
null
>
=
ref
(
null
)
const
_isMounted
=
ref
(
false
)
...
...
packages/uni-components/src/vue/movable-view/index.tsx
浏览文件 @
5a15f947
...
...
@@ -17,7 +17,7 @@ import {
Decline
,
Friction
,
STD
,
p
rops
,
movableViewP
rops
,
Props
,
FrictionCallback
,
Record
,
...
...
@@ -28,7 +28,7 @@ type RootRef = Ref<HTMLElement | null>
export
default
/*#__PURE__*/
defineBuiltInComponent
({
name
:
'
MovableView
'
,
props
,
props
:
movableViewProps
,
emits
:
[
'
change
'
,
'
scale
'
],
setup
(
props
,
{
slots
,
emit
})
{
const
rootRef
:
RootRef
=
ref
(
null
)
...
...
packages/uni-components/src/vue/picker-view/index.tsx
浏览文件 @
5a15f947
...
...
@@ -18,8 +18,8 @@ import { flatVNode } from '../../helpers/flatVNode'
import
{
useRebuild
}
from
'
../../helpers/useRebuild
'
import
ResizeSensor
from
'
../resize-sensor/index
'
import
{
useCustomEvent
}
from
'
../../helpers/useEvent
'
import
{
p
rops
}
from
'
../../components/picker-v
iew
'
import
type
{
Props
,
GetPickerViewColumn
}
from
'
../../components/picker
-v
iew
'
import
{
p
ickerViewProps
}
from
'
../../components/pickerV
iew
'
import
type
{
Props
,
GetPickerViewColumn
}
from
'
../../components/picker
V
iew
'
export
{
Props
,
GetPickerViewColumn
}
export
interface
State
{
value
:
number
[]
...
...
@@ -54,7 +54,7 @@ function useState(props: Props): State {
export
default
/*#__PURE__*/
defineBuiltInComponent
({
name
:
'
PickerView
'
,
props
,
props
:
pickerViewProps
,
emits
:
[
'
change
'
,
'
pickstart
'
,
'
pickend
'
,
'
update:value
'
],
setup
(
props
,
{
slots
,
emit
})
{
const
rootRef
:
Ref
<
HTMLElement
|
null
>
=
ref
(
null
)
...
...
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
5a15f947
...
...
@@ -729,7 +729,7 @@ function provideForm(trigger) {
});
return
fields2
;
}
const
props$u
=
{
const
labelProps
=
{
for
:
{
type
:
String
,
default
:
""
...
...
@@ -750,7 +750,7 @@ function useProvideLabel() {
}
var
index$D
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
Label
"
,
props
:
props$u
,
props
:
labelProps
,
setup
(
props2
,
{
slots
})
{
...
...
@@ -1626,7 +1626,7 @@ function getTempCanvas(width = 0, height = 0) {
tempCanvas
.
height
=
height
;
return
tempCanvas
;
}
const
props$
t
=
{
const
props$
q
=
{
canvasId
:
{
type
:
String
,
default
:
""
...
...
@@ -1646,7 +1646,7 @@ var index$B = /* @__PURE__ */ defineBuiltInComponent({
compatConfig
:
{
MODE
:
3
},
props
:
props$
t
,
props
:
props$
q
,
computed
:
{
id
()
{
return
this
.
canvasId
;
...
...
@@ -2104,7 +2104,7 @@ function useMethods(props2, canvasRef, actionsWaiting) {
});
}
const
uniCheckGroupKey
=
PolySymbol
(
process
.
env
.
NODE_ENV
!==
"
production
"
?
"
uniCheckGroup
"
:
"
ucg
"
);
const
props$
s
=
{
const
props$
p
=
{
name
:
{
type
:
String
,
default
:
""
...
...
@@ -2112,7 +2112,7 @@ const props$s = {
};
var
index$A
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
CheckboxGroup
"
,
props
:
props$
s
,
props
:
props$
p
,
emits
:
[
"
change
"
],
setup
(
props2
,
{
emit
:
emit2
,
...
...
@@ -2164,7 +2164,7 @@ function useProvideCheckGroup(props2, trigger) {
}
return
getFieldsValue
;
}
const
props$
r
=
{
const
props$
o
=
{
checked
:
{
type
:
[
Boolean
,
String
],
default
:
false
...
...
@@ -2188,7 +2188,7 @@ const props$r = {
};
var
index$z
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
Checkbox
"
,
props
:
props$
r
,
props
:
props$
o
,
setup
(
props2
,
{
slots
})
{
...
...
@@ -2255,7 +2255,7 @@ function useCheckboxInject(checkboxChecked, checkboxValue, reset) {
let
resetTimer
;
function
iosHideKeyboard
()
{
}
const
props$
q
=
{
const
props$
n
=
{
cursorSpacing
:
{
type
:
[
Number
,
String
],
default
:
0
...
...
@@ -2427,7 +2427,7 @@ function useQuill(props2, rootRef, trigger) {
useContextInfo
();
useSubscribe
();
}
const
props$
p
=
/* @__PURE__ */
shared
.
extend
({},
props$q
,
{
const
props$
m
=
/* @__PURE__ */
shared
.
extend
({},
props$n
,
{
id
:
{
type
:
String
,
default
:
""
...
...
@@ -2455,7 +2455,7 @@ const props$p = /* @__PURE__ */ shared.extend({}, props$q, {
});
var
index$y
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
Editor
"
,
props
:
props$
p
,
props
:
props$
m
,
emit
:
[
"
ready
"
,
"
focus
"
,
"
blur
"
,
"
input
"
,
"
statuschange
"
,
...
emit$1
],
setup
(
props2
,
{
emit
:
emit2
...
...
@@ -2541,7 +2541,7 @@ var index$x = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const
props$
o
=
{
const
props$
l
=
{
src
:
{
type
:
String
,
default
:
""
...
...
@@ -2580,7 +2580,7 @@ const IMAGE_MODES = {
};
var
index$w
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
Image
"
,
props
:
props$
o
,
props
:
props$
l
,
setup
(
props2
,
{
emit
:
emit2
})
{
...
...
@@ -2829,7 +2829,7 @@ const UniViewJSBridgeSubscribe = function() {
function
getValueString
(
value
)
{
return
value
===
null
?
""
:
String
(
value
);
}
const
props$
n
=
/* @__PURE__ */
shared
.
extend
({},
{
const
props$
k
=
/* @__PURE__ */
shared
.
extend
({},
{
name
:
{
type
:
String
,
default
:
""
...
...
@@ -2898,7 +2898,7 @@ const props$n = /* @__PURE__ */ shared.extend({}, {
type
:
Boolean
,
default
:
false
}
},
props$
q
);
},
props$
n
);
const
emit
=
[
"
input
"
,
"
focus
"
,
...
...
@@ -3093,7 +3093,7 @@ function useField(props2, rootRef, emit2, beforeInput) {
trigger
};
}
const
props$
m
=
/* @__PURE__ */
shared
.
extend
({},
props$n
,
{
const
props$
j
=
/* @__PURE__ */
shared
.
extend
({},
props$k
,
{
placeholderClass
:
{
type
:
String
,
default
:
"
input-placeholder
"
...
...
@@ -3105,7 +3105,7 @@ const props$m = /* @__PURE__ */ shared.extend({}, props$n, {
});
var
Input
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
Input
"
,
props
:
props$
m
,
props
:
props$
j
,
emits
:
[
"
confirm
"
,
...
emit
],
setup
(
props2
,
{
emit
:
emit2
...
...
@@ -3283,7 +3283,7 @@ function flatVNode(nodes) {
}
return
array
;
}
const
props$l
=
{
const
movableAreaProps
=
{
scaleArea
:
{
type
:
Boolean
,
default
:
false
...
...
@@ -3292,7 +3292,7 @@ const props$l = {
var
index$v
=
/* @__PURE__ */
defineBuiltInComponent
({
inheritAttrs
:
false
,
name
:
"
MovableArea
"
,
props
:
props$l
,
props
:
movableAreaProps
,
setup
(
props2
,
{
slots
})
{
...
...
@@ -3780,7 +3780,7 @@ STD.prototype.reconfigure = function(e2, t2, n) {
this
.
_springY
.
reconfigure
(
e2
,
t2
,
n
);
this
.
_springScale
.
reconfigure
(
e2
,
t2
,
n
);
};
const
props$k
=
{
const
movableViewProps
=
{
direction
:
{
type
:
String
,
default
:
"
none
"
...
...
@@ -3839,7 +3839,7 @@ function v(a, b) {
}
var
index$u
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
MovableView
"
,
props
:
props$k
,
props
:
movableViewProps
,
emits
:
[
"
change
"
,
"
scale
"
],
setup
(
props2
,
{
slots
,
...
...
@@ -4324,7 +4324,7 @@ var index$t = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const
p
rops$j
=
{
const
p
ickerViewProps
=
{
value
:
{
type
:
Array
,
default
()
{
...
...
@@ -4371,7 +4371,7 @@ function useState$2(props2) {
}
var
PickerView
=
/* @__PURE__ */
defineBuiltInComponent
({
name
:
"
PickerView
"
,
props
:
p
rops$j
,
props
:
p
ickerViewProps
,
emits
:
[
"
change
"
,
"
pickstart
"
,
"
pickend
"
,
"
update:value
"
],
setup
(
props2
,
{
slots
,
...
...
@@ -4464,7 +4464,7 @@ var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({
const
getPickerViewColumn
=
vue
.
inject
(
"
getPickerViewColumn
"
);
const
instance
=
vue
.
getCurrentInstance
();
const
currentRef
=
getPickerViewColumn
?
getPickerViewColumn
(
instance
)
:
vue
.
ref
(
0
);
const
pickerViewProps
=
vue
.
inject
(
"
pickerViewProps
"
);
const
pickerViewProps
2
=
vue
.
inject
(
"
pickerViewProps
"
);
const
pickerViewState
=
vue
.
inject
(
"
pickerViewState
"
);
const
indicatorHeight
=
vue
.
ref
(
34
);
const
resizeSensorRef
=
vue
.
ref
(
null
);
...
...
@@ -4530,11 +4530,11 @@ var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({
"
onClick
"
:
handleTap
,
"
class
"
:
"
uni-picker-view-group
"
},
[
vue
.
createVNode
(
"
div
"
,
vue
.
mergeProps
(
scopedAttrsState
.
attrs
,
{
"
class
"
:
[
"
uni-picker-view-mask
"
,
pickerViewProps
.
maskClass
],
"
style
"
:
`background-size: 100%
${
maskSize
.
value
}
px;
${
pickerViewProps
.
maskStyle
}
`
"
class
"
:
[
"
uni-picker-view-mask
"
,
pickerViewProps
2
.
maskClass
],
"
style
"
:
`background-size: 100%
${
maskSize
.
value
}
px;
${
pickerViewProps
2
.
maskStyle
}
`
}),
null
,
16
),
vue
.
createVNode
(
"
div
"
,
vue
.
mergeProps
(
scopedAttrsState
.
attrs
,
{
"
class
"
:
[
"
uni-picker-view-indicator
"
,
pickerViewProps
.
indicatorClass
],
"
style
"
:
pickerViewProps
.
indicatorStyle
"
class
"
:
[
"
uni-picker-view-indicator
"
,
pickerViewProps
2
.
indicatorClass
],
"
style
"
:
pickerViewProps
2
.
indicatorStyle
}),
[
vue
.
createVNode
(
ResizeSensor
,
{
"
ref
"
:
resizeSensorRef
,
"
onResize
"
:
({
...
...
@@ -6370,7 +6370,7 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const
props$9
=
/* @__PURE__ */
shared
.
extend
({},
props$
n
,
{
const
props$9
=
/* @__PURE__ */
shared
.
extend
({},
props$
k
,
{
placeholderClass
:
{
type
:
String
,
default
:
"
input-placeholder
"
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
5a15f947
...
...
@@ -1769,7 +1769,7 @@ function provideForm(trigger) {
});
return fields2;
}
const
props$B
= {
const
labelProps
= {
for: {
type: String,
default: ""
...
...
@@ -1790,7 +1790,7 @@ function useProvideLabel() {
}
var index$z = /* @__PURE__ */ defineBuiltInComponent({
name: "Label",
props:
props$B
,
props:
labelProps
,
setup(props2, {
slots
}) {
...
...
@@ -6419,7 +6419,7 @@ function getTempCanvas(width = 0, height = 0) {
tempCanvas.height = height;
return tempCanvas;
}
const props$
A
= {
const props$
x
= {
canvasId: {
type: String,
default: ""
...
...
@@ -6439,7 +6439,7 @@ var index$w = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: {
MODE: 3
},
props: props$
A
,
props: props$
x
,
computed: {
id() {
return this.canvasId;
...
...
@@ -6900,7 +6900,7 @@ function useMethods(props2, canvasRef, actionsWaiting) {
});
}
const uniCheckGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg");
const props$
z
= {
const props$
w
= {
name: {
type: String,
default: ""
...
...
@@ -6908,7 +6908,7 @@ const props$z = {
};
var index$v = /* @__PURE__ */ defineBuiltInComponent({
name: "CheckboxGroup",
props: props$
z
,
props: props$
w
,
emits: ["change"],
setup(props2, {
emit: emit2,
...
...
@@ -6960,7 +6960,7 @@ function useProvideCheckGroup(props2, trigger) {
}
return getFieldsValue;
}
const props$
y
= {
const props$
v
= {
checked: {
type: [Boolean, String],
default: false
...
...
@@ -6984,7 +6984,7 @@ const props$y = {
};
var index$u = /* @__PURE__ */ defineBuiltInComponent({
name: "Checkbox",
props: props$
y
,
props: props$
v
,
setup(props2, {
slots
}) {
...
...
@@ -7061,7 +7061,7 @@ function useCheckboxInject(checkboxChecked, checkboxValue, reset) {
let resetTimer;
function iosHideKeyboard() {
}
const props$
x
= {
const props$
u
= {
cursorSpacing: {
type: [Number, String],
default: 0
...
...
@@ -7838,7 +7838,7 @@ function useQuill(props2, rootRef, trigger) {
}
}, id2, true);
}
const props$
w = /* @__PURE__ */ extend({}, props$x
, {
const props$
t = /* @__PURE__ */ extend({}, props$u
, {
id: {
type: String,
default: ""
...
...
@@ -7866,7 +7866,7 @@ const props$w = /* @__PURE__ */ extend({}, props$x, {
});
var index$t = /* @__PURE__ */ defineBuiltInComponent({
name: "Editor",
props: props$
w
,
props: props$
t
,
emit: ["ready", "focus", "blur", "input", "statuschange", ...emit$1],
setup(props2, {
emit: emit2
...
...
@@ -7953,7 +7953,7 @@ var index$s = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const props$
v
= {
const props$
s
= {
src: {
type: String,
default: ""
...
...
@@ -7992,7 +7992,7 @@ const IMAGE_MODES = {
};
var index$r = /* @__PURE__ */ defineBuiltInComponent({
name: "Image",
props: props$
v
,
props: props$
s
,
setup(props2, {
emit: emit2
}) {
...
...
@@ -8306,7 +8306,7 @@ const UniViewJSBridgeSubscribe = function() {
function getValueString(value) {
return value === null ? "" : String(value);
}
const props$
u
= /* @__PURE__ */ extend({}, {
const props$
r
= /* @__PURE__ */ extend({}, {
name: {
type: String,
default: ""
...
...
@@ -8375,7 +8375,7 @@ const props$u = /* @__PURE__ */ extend({}, {
type: Boolean,
default: false
}
}, props$
x
);
}, props$
u
);
const emit = [
"input",
"focus",
...
...
@@ -8579,7 +8579,7 @@ function useField(props2, rootRef, emit2, beforeInput) {
trigger
};
}
const props$
t = /* @__PURE__ */ extend({}, props$u
, {
const props$
q = /* @__PURE__ */ extend({}, props$r
, {
placeholderClass: {
type: String,
default: "input-placeholder"
...
...
@@ -8591,7 +8591,7 @@ const props$t = /* @__PURE__ */ extend({}, props$u, {
});
var Input = /* @__PURE__ */ defineBuiltInComponent({
name: "Input",
props: props$
t
,
props: props$
q
,
emits: ["confirm", ...emit],
setup(props2, {
emit: emit2
...
...
@@ -8769,7 +8769,7 @@ function flatVNode(nodes) {
}
return array;
}
const
props$
s = {
const
movableAreaProp
s = {
scaleArea: {
type: Boolean,
default: false
...
...
@@ -8778,7 +8778,7 @@ const props$s = {
var MovableArea = /* @__PURE__ */ defineBuiltInComponent({
inheritAttrs: false,
name: "MovableArea",
props:
props$
s,
props:
movableAreaProp
s,
setup(props2, {
slots
}) {
...
...
@@ -9384,7 +9384,7 @@ STD.prototype.reconfigure = function(e2, t2, n) {
this._springY.reconfigure(e2, t2, n);
this._springScale.reconfigure(e2, t2, n);
};
const
props$r
= {
const
movableViewProps
= {
direction: {
type: String,
default: "none"
...
...
@@ -9443,7 +9443,7 @@ function v(a2, b) {
}
var MovableView = /* @__PURE__ */ defineBuiltInComponent({
name: "MovableView",
props:
props$r
,
props:
movableViewProps
,
emits: ["change", "scale"],
setup(props2, {
slots,
...
...
@@ -10139,7 +10139,7 @@ var index$q = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const p
rops$q
= {
const p
ickerViewProps
= {
value: {
type: Array,
default() {
...
...
@@ -10186,7 +10186,7 @@ function useState$4(props2) {
}
var PickerView = /* @__PURE__ */ defineBuiltInComponent({
name: "PickerView",
props: p
rops$q
,
props: p
ickerViewProps
,
emits: ["change", "pickstart", "pickend", "update:value"],
setup(props2, {
slots,
...
...
@@ -10993,7 +10993,7 @@ var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({
const getPickerViewColumn = inject("getPickerViewColumn");
const instance2 = getCurrentInstance();
const currentRef = getPickerViewColumn ? getPickerViewColumn(instance2) : ref(0);
const pickerViewProps = inject("pickerViewProps");
const pickerViewProps
2
= inject("pickerViewProps");
const pickerViewState = inject("pickerViewState");
const indicatorHeight = ref(34);
const resizeSensorRef = ref(null);
...
...
@@ -11119,11 +11119,11 @@ var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({
"onClick": handleTap,
"class": "uni-picker-view-group"
}, [createVNode("div", mergeProps(scopedAttrsState.attrs, {
"class": ["uni-picker-view-mask", pickerViewProps.maskClass],
"style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}`
"class": ["uni-picker-view-mask", pickerViewProps
2
.maskClass],
"style": `background-size: 100% ${maskSize.value}px;${pickerViewProps
2
.maskStyle}`
}), null, 16), createVNode("div", mergeProps(scopedAttrsState.attrs, {
"class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass],
"style": pickerViewProps.indicatorStyle
"class": ["uni-picker-view-indicator", pickerViewProps
2
.indicatorClass],
"style": pickerViewProps
2
.indicatorStyle
}), [createVNode(ResizeSensor, {
"ref": resizeSensorRef,
"onResize": ({
...
...
@@ -13283,7 +13283,7 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const props$g = /* @__PURE__ */ extend({}, props$
u
, {
const props$g = /* @__PURE__ */ extend({}, props$
r
, {
placeholderClass: {
type: String,
default: "input-placeholder"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录