@tplc/wot 1.0.30 → 1.0.31
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.31](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.78...v1.0.31) (2026-01-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* **calendar:** add defaultDays prop to support automatic end date selection in date ranges ([2e5157a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2e5157af7fb0fd198ce129bd5017eeb753617807))
|
|
11
|
+
|
|
5
12
|
### [1.0.30](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.29...v1.0.30) (2026-01-18)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -71,13 +71,13 @@ export default {
|
|
|
71
71
|
options: {
|
|
72
72
|
virtualHost: true,
|
|
73
73
|
addGlobalClass: true,
|
|
74
|
-
styleIsolation: 'shared'
|
|
75
|
-
}
|
|
74
|
+
styleIsolation: 'shared',
|
|
75
|
+
},
|
|
76
76
|
}
|
|
77
77
|
</script>
|
|
78
78
|
|
|
79
79
|
<script lang="ts" setup>
|
|
80
|
-
import { computed, onBeforeMount, ref } from 'vue'
|
|
80
|
+
import { computed, inject, onBeforeMount, ref, watch } from 'vue'
|
|
81
81
|
import wdIcon from '../wd-icon/wd-icon.vue'
|
|
82
82
|
import wdOverlay from '../wd-overlay/wd-overlay.vue'
|
|
83
83
|
import wdTransition from '../wd-transition/wd-transition.vue'
|
|
@@ -96,7 +96,7 @@ const emit = defineEmits([
|
|
|
96
96
|
'after-leave',
|
|
97
97
|
'after-enter',
|
|
98
98
|
'click-modal',
|
|
99
|
-
'close'
|
|
99
|
+
'close',
|
|
100
100
|
])
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -125,7 +125,9 @@ const transitionName = computed<TransitionName | TransitionName[]>(() => {
|
|
|
125
125
|
})
|
|
126
126
|
|
|
127
127
|
const safeBottom = ref<number>(0)
|
|
128
|
-
|
|
128
|
+
const popupProvide = inject('wd-popup', {
|
|
129
|
+
value: false,
|
|
130
|
+
})
|
|
129
131
|
const style = computed(() => {
|
|
130
132
|
return `z-index:${props.zIndex}; padding-bottom: ${safeBottom.value}px;${props.customStyle}`
|
|
131
133
|
})
|
|
@@ -150,6 +152,13 @@ onBeforeMount(() => {
|
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
154
|
})
|
|
155
|
+
watch(
|
|
156
|
+
() => props.modelValue,
|
|
157
|
+
(newVal) => {
|
|
158
|
+
popupProvide.value = newVal
|
|
159
|
+
},
|
|
160
|
+
{ deep: true, immediate: true },
|
|
161
|
+
)
|
|
153
162
|
|
|
154
163
|
function handleClickModal() {
|
|
155
164
|
emit('click-modal')
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
>
|
|
10
10
|
<slot />
|
|
11
11
|
</view>
|
|
12
|
-
<view
|
|
12
|
+
<view
|
|
13
|
+
:class="rootClass"
|
|
14
|
+
:style="style"
|
|
15
|
+
@transitionend="onTransitionEnd"
|
|
16
|
+
@click="handleClick"
|
|
17
|
+
v-else-if="isShow && !disableTouchMove"
|
|
18
|
+
>
|
|
13
19
|
<slot />
|
|
14
20
|
</view>
|
|
15
21
|
</template>
|
|
@@ -20,8 +26,8 @@ export default {
|
|
|
20
26
|
options: {
|
|
21
27
|
addGlobalClass: true,
|
|
22
28
|
virtualHost: true,
|
|
23
|
-
styleIsolation: 'shared'
|
|
24
|
-
}
|
|
29
|
+
styleIsolation: 'shared',
|
|
30
|
+
},
|
|
25
31
|
}
|
|
26
32
|
</script>
|
|
27
33
|
|
|
@@ -51,15 +57,23 @@ const getClassNames = (name?: TransitionName | TransitionName[]) => {
|
|
|
51
57
|
leaveTo = `wd-${name}-leave-to wd-${name}-leave-active ${leaveTo}`
|
|
52
58
|
}
|
|
53
59
|
return {
|
|
54
|
-
enter
|
|
60
|
+
enter,
|
|
55
61
|
'enter-to': enterTo,
|
|
56
|
-
leave
|
|
57
|
-
'leave-to': leaveTo
|
|
62
|
+
leave,
|
|
63
|
+
'leave-to': leaveTo,
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
const props = defineProps(transitionProps)
|
|
62
|
-
const emit = defineEmits([
|
|
68
|
+
const emit = defineEmits([
|
|
69
|
+
'click',
|
|
70
|
+
'before-enter',
|
|
71
|
+
'enter',
|
|
72
|
+
'before-leave',
|
|
73
|
+
'leave',
|
|
74
|
+
'after-leave',
|
|
75
|
+
'after-enter',
|
|
76
|
+
])
|
|
63
77
|
|
|
64
78
|
// 初始化是否完成
|
|
65
79
|
const inited = ref<boolean>(false)
|
|
@@ -107,7 +121,7 @@ watch(
|
|
|
107
121
|
(newVal) => {
|
|
108
122
|
handleShow(newVal)
|
|
109
123
|
},
|
|
110
|
-
{ deep: true }
|
|
124
|
+
{ deep: true },
|
|
111
125
|
)
|
|
112
126
|
|
|
113
127
|
function handleClick() {
|