meixioacomponent 0.3.78 → 0.3.81

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.78",
3
+ "version": "0.3.81",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -1,10 +1,9 @@
1
1
  <template>
2
2
  <div
3
- tabindex="-1"
4
- v-show="getRenderShow"
3
+ v-if="getRenderShow"
5
4
  ref="dialogCacheWrapRef"
6
5
  class="dialog-cache-wrap"
7
- @blur="dialogCacheWrapOnBlue"
6
+ v-clickOutside="dialogCacheWrapOnBlue"
8
7
  >
9
8
  <div
10
9
  class="dialog-no-cache"
@@ -13,8 +12,8 @@
13
12
  <baseDefaultSvg
14
13
  :width="100"
15
14
  :height="100"
16
- :svgName="`404`"
17
15
  :text="`暂无缓存表单`"
16
+ :svgName="`no-content`"
18
17
  ></baseDefaultSvg>
19
18
  </div>
20
19
  <div class="dialog-cache-content" v-else>
@@ -33,7 +32,6 @@
33
32
  </template>
34
33
 
35
34
  <script>
36
- import store from '../../../src/store'
37
35
  import baseDefaultSvg from '../base/baseDefaultSvg/baseDefaultSvg.vue'
38
36
  export default {
39
37
  data() {
@@ -52,7 +50,7 @@ export default {
52
50
  components: { baseDefaultSvg },
53
51
  methods: {
54
52
  openDialogCache(index) {
55
- this.store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index)
53
+ this.$store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index)
56
54
  },
57
55
  dialogCacheWrapOnBlue() {
58
56
  this.$store.commit('dialogCacheStore/SET_RENDER_SHOW', false)
@@ -60,11 +58,7 @@ export default {
60
58
  },
61
59
  watch: {
62
60
  getRenderShow(newVal, oldVal) {
63
- if (newVal) {
64
- this.$nextTick(() => {
65
- this.$refs.dialogCacheWrapRef.focus()
66
- })
67
- }
61
+ console.log(newVal)
68
62
  },
69
63
  },
70
64
  }
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