meixioacomponent 0.3.76 → 0.3.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.76",
3
+ "version": "0.3.79",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -1,17 +1,20 @@
1
1
  <template>
2
2
  <div
3
- tabindex="-1"
3
+ tabindex="0"
4
4
  v-show="getRenderShow"
5
5
  ref="dialogCacheWrapRef"
6
6
  class="dialog-cache-wrap"
7
- @blur="dialogCacheWrapOnBlue"
7
+ v-clickOutside="dialogCacheWrapOnBlue"
8
8
  >
9
- <div class="dialog-no-cache" v-if="getCacheList.length <= 0">
9
+ <div
10
+ class="dialog-no-cache"
11
+ v-if="getCacheList && getCacheList.length <= 0"
12
+ >
10
13
  <baseDefaultSvg
11
14
  :width="100"
12
15
  :height="100"
13
- :svgName="`404`"
14
16
  :text="`暂无缓存表单`"
17
+ :svgName="`no-content`"
15
18
  ></baseDefaultSvg>
16
19
  </div>
17
20
  <div class="dialog-cache-content" v-else>
@@ -30,7 +33,6 @@
30
33
  </template>
31
34
 
32
35
  <script>
33
- import store from '../../../src/store'
34
36
  import baseDefaultSvg from '../base/baseDefaultSvg/baseDefaultSvg.vue'
35
37
  export default {
36
38
  data() {
@@ -40,30 +42,22 @@ export default {
40
42
  mounted() {},
41
43
  computed: {
42
44
  getCacheList() {
43
- return store.getters['dialogCacheStore/getCacheList']
45
+ return this.$store.getters['dialogCacheStore/getCacheList']
44
46
  },
45
47
  getRenderShow() {
46
- return store.getters['dialogCacheStore/getRenderShow']
48
+ return this.$store.getters['dialogCacheStore/getRenderShow']
47
49
  },
48
50
  },
49
51
  components: { baseDefaultSvg },
50
52
  methods: {
51
53
  openDialogCache(index) {
52
- store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index)
54
+ this.$store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index)
53
55
  },
54
56
  dialogCacheWrapOnBlue() {
55
57
  this.$store.commit('dialogCacheStore/SET_RENDER_SHOW', false)
56
58
  },
57
59
  },
58
- watch: {
59
- getRenderShow(newVal, oldVal) {
60
- if (newVal) {
61
- this.$nextTick(() => {
62
- this.$refs.dialogCacheWrapRef.focus()
63
- })
64
- }
65
- },
66
- },
60
+ watch: {},
67
61
  }
68
62
  </script>
69
63
 
@@ -541,7 +541,6 @@ export default {
541
541
 
542
542
  this._proScreenConfig = proScreenConfig.map((item) => {
543
543
  let index = this.$props.tableConfig.findIndex((citem) => {
544
- //console.log(citem);
545
544
  return citem.key == item.key
546
545
  })
547
546
 
@@ -551,7 +550,6 @@ export default {
551
550
  return item
552
551
  }
553
552
  })
554
-
555
553
  },
556
554
  // 打开高级筛选
557
555
  handleOpenProScreen() {
package/src/App.vue CHANGED
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div id="app">
3
3
  <div style="height: 100vh;">
4
+ <el-button @click="click">click</el-button>
4
5
  <test></test>
5
6
  <!-- <base-upload-item
6
7
  :fileType="`img`"
@@ -62,6 +63,9 @@ export default {
62
63
  })
63
64
  },
64
65
  methods: {
66
+ click() {
67
+ this.$store.commit('dialogCacheStore/SET_RENDER_SHOW', true)
68
+ },
65
69
  uploadEd(res) {
66
70
  console.log(res)
67
71
  },
@@ -1,8 +1,9 @@
1
- <!-- <template>
1
+ <template>
2
2
  <base-dialog
3
3
  ref="dialog"
4
4
  :modal="true"
5
5
  :title="`验证邮箱`"
6
+ :isCache="true"
6
7
  :isDestroy="true"
7
8
  :appendToBody="true"
8
9
  :contentHeight="`200px`"
@@ -165,7 +166,7 @@ export default {
165
166
  transform: translateY(-50%);
166
167
  }
167
168
  }
168
- </style> -->
169
+ </style>
169
170
 
170
171
  <!-- <template>
171
172
  <base-drawer
@@ -311,7 +312,7 @@ export default {
311
312
  }
312
313
  </style> -->
313
314
 
314
- <template>
315
+ <!-- <template>
315
316
  <div class="page-table-wrap" ref="pageTableWrap" v-if="show">
316
317
  <base-pro-table
317
318
  :align="`left`"
@@ -556,7 +557,7 @@ export default {
556
557
  height: 100%;
557
558
  background: inherit;
558
559
  }
559
- </style>
560
+ </style> -->
560
561
 
561
562
  <!-- 普通表单 -->
562
563