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

chore: nvue native tag

上级 ef934f5f
......@@ -129,7 +129,34 @@ function isH5NativeTag(tag) {
function isAppNativeTag(tag) {
return shared.isHTMLTag(tag) || shared.isSVGTag(tag) || isBuiltInComponent(tag);
}
const NVUE_CUSTOM_COMPONENTS = [
'ad',
'ad-draw',
'button',
'checkbox-group',
'checkbox',
'form',
'icon',
'label',
'movable-area',
'movable-view',
'navigator',
'picker',
'progress',
'radio-group',
'radio',
'rich-text',
'swiper-item',
'swiper',
'switch',
'slider',
'picker-view',
'picker-view-column',
];
function isAppNVueNativeTag(tag) {
if (NVUE_CUSTOM_COMPONENTS.includes(tag)) {
return false;
}
if (isBuiltInComponent(tag)) {
return true;
}
......
......@@ -125,7 +125,34 @@ function isH5NativeTag(tag) {
function isAppNativeTag(tag) {
return isHTMLTag(tag) || isSVGTag(tag) || isBuiltInComponent(tag);
}
const NVUE_CUSTOM_COMPONENTS = [
'ad',
'ad-draw',
'button',
'checkbox-group',
'checkbox',
'form',
'icon',
'label',
'movable-area',
'movable-view',
'navigator',
'picker',
'progress',
'radio-group',
'radio',
'rich-text',
'swiper-item',
'swiper',
'switch',
'slider',
'picker-view',
'picker-view-column',
];
function isAppNVueNativeTag(tag) {
if (NVUE_CUSTOM_COMPONENTS.includes(tag)) {
return false;
}
if (isBuiltInComponent(tag)) {
return true;
}
......
......@@ -136,7 +136,35 @@ export function isAppNativeTag(tag: string) {
return isHTMLTag(tag) || isSVGTag(tag) || isBuiltInComponent(tag)
}
const NVUE_CUSTOM_COMPONENTS = [
'ad',
'ad-draw',
'button',
'checkbox-group',
'checkbox',
'form',
'icon',
'label',
'movable-area',
'movable-view',
'navigator',
'picker',
'progress',
'radio-group',
'radio',
'rich-text',
'swiper-item',
'swiper',
'switch',
'slider',
'picker-view',
'picker-view-column',
]
export function isAppNVueNativeTag(tag: string) {
if (NVUE_CUSTOM_COMPONENTS.includes(tag)) {
return false
}
if (isBuiltInComponent(tag)) {
return true
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册