提交 b6e16bdb 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue

上级 8816f5a7
......@@ -3968,7 +3968,7 @@ var Swiper = defineComponent({
return createVNode("div", {
"ref": rootRef,
"class": "uni-swiper"
}, [createVNode(resolveComponent("slider"), mergeProps({
}, [createVNode("slider", mergeProps({
"class": "uni-swiper-slider"
}, {
autoPlay: props2.autoplay,
......@@ -3979,12 +3979,10 @@ var Swiper = defineComponent({
infinite: props2.circular,
vertical: props2.vertical,
scrollable: !props2.disableTouch
}, listeners), {
default: () => [swiperItems, createVNode("indicator", {
"class": "uni-swiper-dots",
"styles": indicatorStyle
}, null)]
})]);
}, listeners), [swiperItems, createVNode("indicator", {
"class": "uni-swiper-dots",
"styles": indicatorStyle
}, null)])]);
};
}
});
......
......@@ -152,20 +152,20 @@ const NVUE_CUSTOM_COMPONENTS = [
'swiper-item',
'swiper',
'switch',
'slider',
// 'slider',
'picker-view',
'picker-view-column',
];
function isAppNVueNativeTag(tag) {
if (NVUE_BUILT_IN_TAGS.includes(tag)) {
return true;
}
if (NVUE_CUSTOM_COMPONENTS.includes(tag)) {
return false;
}
if (isBuiltInComponent(tag)) {
return true;
}
if (NVUE_BUILT_IN_TAGS.includes(tag)) {
return true;
}
// u-text,u-video...
if (NVUE_U_BUILT_IN_TAGS.includes(tag)) {
return true;
......
......@@ -148,20 +148,20 @@ const NVUE_CUSTOM_COMPONENTS = [
'swiper-item',
'swiper',
'switch',
'slider',
// 'slider',
'picker-view',
'picker-view-column',
];
function isAppNVueNativeTag(tag) {
if (NVUE_BUILT_IN_TAGS.includes(tag)) {
return true;
}
if (NVUE_CUSTOM_COMPONENTS.includes(tag)) {
return false;
}
if (isBuiltInComponent(tag)) {
return true;
}
if (NVUE_BUILT_IN_TAGS.includes(tag)) {
return true;
}
// u-text,u-video...
if (NVUE_U_BUILT_IN_TAGS.includes(tag)) {
return true;
......
......@@ -159,21 +159,21 @@ const NVUE_CUSTOM_COMPONENTS = [
'swiper-item',
'swiper',
'switch',
'slider',
// 'slider',
'picker-view',
'picker-view-column',
]
export function isAppNVueNativeTag(tag: string) {
if (NVUE_BUILT_IN_TAGS.includes(tag)) {
return true
}
if (NVUE_CUSTOM_COMPONENTS.includes(tag)) {
return false
}
if (isBuiltInComponent(tag)) {
return true
}
if (NVUE_BUILT_IN_TAGS.includes(tag)) {
return true
}
// u-text,u-video...
if (NVUE_U_BUILT_IN_TAGS.includes(tag)) {
return true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册