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

chore: sync uni-h5-vue

上级 e3ccd51d
......@@ -9257,9 +9257,16 @@ const nodeOps = {
}
},
createElement: (tag, isSVG, is, props) => {
/**
* fix chrome version 64
* document.createElement('uni-text', undefined) instanceof customElements.get('uni-text') // false
* document.createElement('uni-text') instanceof customElements.get('uni-text') // true
*/
const el = isSVG
? doc.createElementNS(svgNS, tag)
: doc.createElement(tag, is ? { is } : undefined);
: is
? doc.createElement(tag, { is })
: doc.createElement(tag);
if (tag === 'select' && props && props.multiple != null) {
el.setAttribute('multiple', props.multiple);
}
......
......@@ -9358,9 +9358,16 @@ const nodeOps = {
}
},
createElement: (tag, isSVG, is, props) => {
/**
* fix chrome version 64
* document.createElement('uni-text', undefined) instanceof customElements.get('uni-text') // false
* document.createElement('uni-text') instanceof customElements.get('uni-text') // true
*/
const el = isSVG
? doc.createElementNS(svgNS, tag)
: doc.createElement(tag, is ? { is } : undefined);
: is
? doc.createElement(tag, { is })
: doc.createElement(tag);
if (tag === 'select' && props && props.multiple != null) {
el.setAttribute('multiple', props.multiple);
}
......
......@@ -9257,9 +9257,16 @@ const nodeOps = {
}
},
createElement: (tag, isSVG, is, props) => {
/**
* fix chrome version 64
* document.createElement('uni-text', undefined) instanceof customElements.get('uni-text') // false
* document.createElement('uni-text') instanceof customElements.get('uni-text') // true
*/
const el = isSVG
? doc.createElementNS(svgNS, tag)
: doc.createElement(tag, is ? { is } : undefined);
: is
? doc.createElement(tag, { is })
: doc.createElement(tag);
if (tag === 'select' && props && props.multiple != null) {
el.setAttribute('multiple', props.multiple);
}
......
......@@ -9358,9 +9358,16 @@ const nodeOps = {
}
},
createElement: (tag, isSVG, is, props) => {
/**
* fix chrome version 64
* document.createElement('uni-text', undefined) instanceof customElements.get('uni-text') // false
* document.createElement('uni-text') instanceof customElements.get('uni-text') // true
*/
const el = isSVG
? doc.createElementNS(svgNS, tag)
: doc.createElement(tag, is ? { is } : undefined);
: is
? doc.createElement(tag, { is })
: doc.createElement(tag);
if (tag === 'select' && props && props.multiple != null) {
el.setAttribute('multiple', props.multiple);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册