Rap 原分销系统代码Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5136f40ed9ab8c4c8674ad093aa7be48f53fb45f.svn-base 552B

5 月之前
1234567891011121314151617181920212223242526272829
  1. import Dict from './Dict'
  2. const install = function(Vue) {
  3. Vue.mixin({
  4. data() {
  5. if (this.$options.dicts instanceof Array) {
  6. const dict = {
  7. dict: {},
  8. label: {}
  9. }
  10. return {
  11. dict
  12. }
  13. }
  14. return {}
  15. },
  16. created() {
  17. if (this.$options.dicts instanceof Array) {
  18. new Dict(this.dict).init(this.$options.dicts, () => {
  19. this.$nextTick(() => {
  20. this.$emit('dictReady')
  21. })
  22. })
  23. }
  24. }
  25. })
  26. }
  27. export default { install }