飞行漫游
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
let list = ['icon-py', 'icon-edit', 'icon-add', 'icon-add2', 'icon-minus', 'icon-play', 'icon-pause', 'icon-updateheight', 'icon-draw', 'icon-positions', 'icon-reset', 'icon-xj', 'icon-yj', 'icon-zj', 'icon-close', 'icon-query', 'icon-route', 'icon-copy', 'icon-load', 'icon-rubric', 'icon-pen', 'icon-cross', 'icom-confirm']
|
||||
let list = ['icon-py', 'icon-edit', 'icon-add', 'icon-add2', 'icon-minus', 'icon-play', 'icon-pause', 'icon-updateheight', 'icon-draw', 'icon-positions', 'icon-reset', 'icon-xj', 'icon-yj', 'icon-zj', 'icon-close', 'icon-query', 'icon-route', 'icon-copy', 'icon-load', 'icon-rubric', 'icon-pen', 'icon-cross', 'icom-confirm', 'icon-delete', 'icon-resetView']
|
||||
function setSvg() {
|
||||
let svgElm = document.createElement('svg');
|
||||
svgElm.xmlns = 'http://www.w3.org/2000/svg'
|
||||
@ -14,7 +14,7 @@ function setSvg() {
|
||||
.then(r => r.text())
|
||||
.then(b => {
|
||||
const xmlDoc = parser.parseFromString(b, 'text/xml').getElementsByTagName('svg')[0]
|
||||
if(xmlDoc) {
|
||||
if (xmlDoc) {
|
||||
xmlDoc.id = 'yj-' + name
|
||||
svgElm.appendChild(xmlDoc)
|
||||
}
|
||||
@ -23,4 +23,4 @@ function setSvg() {
|
||||
}
|
||||
}
|
||||
|
||||
export { setSvg }
|
||||
export { setSvg }
|
||||
|
||||
Reference in New Issue
Block a user