Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Divider+Inset:
Divider+Padded+Inset:
Disabled
Selected
Activated
}>Graphic
}>
}
})
render(, 'body')
//set twice
setTimeout(function () {
document.documentElement.scrollTop = ele._preScrollTop
document.body.scrollTop = ele._preScrollTop
}, 0)
} else {
const node = render(vnode, root)
node.onShow && node.onShow()
wx.currentPage = node
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
}
} else {
const ele = document.querySelector(selector)
ele && ele.parentNode.removeChild(ele)
const node = render(vnode, root)
node.onShow && node.onShow()
wx.currentPage = node
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
}
}
}, 0)
} else {
const node = render(vnode, root)
node.onShow && node.onShow()
node._component && node._component.onShow && node._component.onShow()
currentPage = node
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
}
} else {
//前进
if (item && item.ele) {
item.ele.parentNode.removeChild(item.ele)
remove(item)
}
const node = render(vnode, root)
node.onShow && node.onShow()
node._component && node._component.onShow && node._component.onShow()
currentPage = node
const ele = root.childNodes[root.childNodes.length - 1]
stackList.push({ slt: selector, ele: ele, display: window.getComputedStyle(ele).display, scrollTop: 0 })
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
}
}
import '../../src/badge/index.tsx'
import '../../src/icon/index.tsx'
import '../../src/icon-button/index.tsx'
import { render, h } from 'omi'
render(
<div>
<br><br><br>
<br><br><br>
</div>
//浏览器后退
if (item && item.ele) {
const ele = item.ele
ele.style.display = item.display
ele.onShow && ele.onShow()
ele._component && ele._component.onShow && ele._component.onShow()
currentPage = ele
document.documentElement.scrollTop = item.scrollTop
document.body.scrollTop = item.scrollTop
//set twice
setTimeout(function () {
document.documentElement.scrollTop = item.scrollTop
document.body.scrollTop = item.scrollTop
}, 0)
} else {
const node = render(vnode, root)
node.onShow && node.onShow()
node._component && node._component.onShow && node._component.onShow()
currentPage = node
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
}
} else {
//前进
if (item && item.ele) {
item.ele.parentNode.removeChild(item.ele)
remove(item)
}
const node = render(vnode, root)
node.onShow && node.onShow()
node._component && node._component.onShow && node._component.onShow()
currentPage = node
import '../../src/color-picker/index.tsx'
import { render, h } from 'omi'
render(
<div>
<div>abc</div>
</div>
, 'body')
background:#fff;
}`}
items={this.items}
onItemClick={this.onItemClick}
>
)
}
})
render(, 'body')
this.data.path = ctx.path
this.update()
}
contact = (ctx) => {
this.data.path = ctx.path
this.update()
}
notfound = (ctx) => {
this.data.path = ctx.path
this.update()
}
}
render(, 'body')
import { render } from 'omi'
import './assets/index.css'
import './elements/app'
import store from './store/app-store'
render(, '#root', store)
<li>Pretty row 49</li>
<li>Pretty row 50</li>
<div id="footer"></div>
}
})
render(, 'body')