dpzvc3-ui 3.0.5 → 3.0.7

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": "dpzvc3-ui",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Vue3组件库",
5
5
  "main": "dist/dpzvc3.js",
6
6
  "module": "dist/dpzvc3.esm.js",
@@ -20,7 +20,7 @@
20
20
  v-if="cancleText"
21
21
  href="javascript:;"
22
22
  :class="cancleClass"
23
- @click="visible = false"
23
+ @click="cancleClick"
24
24
  >{{ cancleText }}</a>
25
25
  </div>
26
26
  </Popup>
@@ -80,6 +80,9 @@ export default defineComponent({
80
80
  emit('update:modelValue', false)
81
81
  }
82
82
 
83
+ const cancleClick = () => {
84
+ emit('update:modelValue', false)
85
+ }
83
86
  return {
84
87
  visible,
85
88
  actions,
@@ -87,6 +90,7 @@ export default defineComponent({
87
90
  wrapperClasses,
88
91
  wrapperActionClass,
89
92
  cancleClass,
93
+ cancleClick,
90
94
  emit: emitAction
91
95
  }
92
96
  }
@@ -34,7 +34,7 @@
34
34
 
35
35
  <script>
36
36
  import { defineComponent, ref, computed, onMounted, watch } from 'vue'
37
- import { useRouter } from 'vue-router'
37
+ // import { useRouter } from 'vue-router'
38
38
 
39
39
  const prefixCls = 'dpzvc3-header'
40
40
 
@@ -63,7 +63,7 @@ export default defineComponent({
63
63
  emits: ['update:modelValue'],
64
64
 
65
65
  setup (props, { emit }) {
66
- const router = useRouter()
66
+ // const router = useRouter()
67
67
 
68
68
  const visible = ref(props.modelValue)
69
69
  const isWechat = ref(props.wechat)
@@ -114,11 +114,11 @@ export default defineComponent({
114
114
 
115
115
  /** 返回 */
116
116
  const back = () => {
117
- if (router) {
118
- router.back()
119
- } else {
120
- window.history.back()
121
- }
117
+ // if (router) {
118
+ // router.back()
119
+ // } else {
120
+ window.history.back()
121
+ // }
122
122
  }
123
123
 
124
124
  return {