提交 fecaa795 编写于 作者: D DCloud_LXH

chore(nvue): div -> view

上级 52ad60a8
......@@ -39,7 +39,7 @@ export default /*#__PURE__*/ defineComponent({
}
return () => (
<div onClick={_onClick}>{slots.default && slots.default()}</div>
<view onClick={_onClick}>{slots.default && slots.default()}</view>
)
},
})
......@@ -120,9 +120,9 @@ export default defineComponent({
const defaultSlots = slots.default && slots.default()
const movableViewItems = flatVNode(defaultSlots)
return (
<div class="uni-movable-area" {...listeners}>
<view class="uni-movable-area" {...listeners}>
{movableViewItems}
</div>
</view>
)
}
},
......
......@@ -148,7 +148,7 @@ export default defineComponent({
preventGesture: true,
}
return (
<div
<view
ref={rootRef}
onTouchstart={touchStart}
class="uni-movable-view"
......@@ -156,7 +156,7 @@ export default defineComponent({
{...attrs}
>
{slots.default && slots.default()}
</div>
</view>
)
}
},
......
......@@ -153,14 +153,14 @@ export default defineComponent({
}
return (
<div ref={rootRef} class="uni-picker-view-column">
<view ref={rootRef} class="uni-picker-view-column">
<scroll-view
class="uni-picker-view-group"
style="flex-direction:column;"
onScrollend={onScrollend}
{...scrollOptions}
>
<div
<view
ref={contentRef}
class="uni-picker-view-content"
style={{
......@@ -170,7 +170,7 @@ export default defineComponent({
}}
>
{createScrollViewChild(children)}
</div>
</view>
</scroll-view>
<u-scalable class="uni-picker-view-mask" style={maskStyle}>
<u-scalable
......@@ -193,7 +193,7 @@ export default defineComponent({
top: `${padding}px`,
})}
></u-scalable>
</div>
</view>
)
}
},
......
......@@ -70,15 +70,15 @@ export default defineComponent({
const defaultSlots = slots.default && slots.default()
columnVNodes = flatVNode(defaultSlots)
return (
<div
<view
ref={rootRef}
class="uni-picker-view"
{...{
preventGesture: true,
}}
>
<div class="uni-picker-view-wrapper">{defaultSlots}</div>
</div>
<view class="uni-picker-view-wrapper">{defaultSlots}</view>
</view>
)
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册