新增前端

This commit is contained in:
USER-20220102CG\noblelift
2022-06-06 15:12:30 +08:00
parent cf94a586b3
commit 4e6bb0b95f
448 changed files with 48350 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import Dict from './Dict'
const install = function(Vue) {
Vue.mixin({
data() {
if (this.$options.dicts instanceof Array) {
const dict = {
dict: {},
label: {}
}
return {
dict
}
}
return {}
},
created() {
if (this.$options.dicts instanceof Array) {
new Dict(this.dict).init(this.$options.dicts, () => {
this.$nextTick(() => {
this.$emit('dictReady')
})
})
}
}
})
}
export default { install }