Commit 0c154234 by 前端

commit

1 parent e63390c3
......@@ -12,8 +12,9 @@ let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig()
const { response, request, sign, secret, sign_common, request_common ,merchantId} = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
......
......@@ -20,18 +20,17 @@ export default {
componentName: 'selectyy',
data() {
return {
groupStyle: ''
groupStyle: '',
includeData:['el-input__inner','placeholder','el-select__caret el-input__icon el-icon-arrow-up']
}
},
mounted() {
mounted() {
if (this.appendToBody) document.body.appendChild(this.$el)
this.getBoundingClientRect()
window.addEventListener('resize', this.getBoundingClientRect)
document.addEventListener('click', e => {
console.log(this.$options.componentName)
if (e.target.className != 'group-select') {
// this.removeEl()
if (!this.includeData.includes(e.target.className)) {
this.removeEl()
}
})
},
......@@ -41,8 +40,8 @@ export default {
this.groupStyle = { left: left + 'px', top: top + 45 + 'px' }
},
removeEl() {
console.log(document.body.contains(this.$el))
document.body.contains(this.$el) && document.body.removeChild(this.$el)
this.$emit('changeStatu')
}
},
beforeDestroy() {
......@@ -54,7 +53,7 @@ export default {
.group-select {
min-width: 284px;
transform-origin: center top;
z-index: 2005;
z-index: 10000;
position: fixed;
top: 740px;
left: 600px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!