@tplc/wot 0.1.44 → 0.1.45
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,8 @@
|
|
|
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
|
+
### [0.1.45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.44...v0.1.45) (2024-12-26)
|
|
6
|
+
|
|
5
7
|
### [0.1.44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.43...v0.1.44) (2024-12-26)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
<script lang="ts" setup>
|
|
132
132
|
import { ref, computed, watch } from 'vue'
|
|
133
133
|
import { dayjs } from '../common/dayjs'
|
|
134
|
-
import { deepClone, isArray, isEqual, padZero, requestAnimationFrame } from '../common/util'
|
|
134
|
+
import { deepClone, isArray, isEqual, isH5, padZero, requestAnimationFrame } from '../common/util'
|
|
135
135
|
import { getWeekNumber, isRange } from '../wd-calendar-view/utils'
|
|
136
136
|
import { useCell } from '../composables/useCell'
|
|
137
137
|
import { FORM_KEY, type FormItemRule } from '../wd-form/types'
|
|
@@ -225,7 +225,8 @@ const emit = defineEmits(['cancel', 'change', 'update:modelValue', 'confirm'])
|
|
|
225
225
|
const pickerShow = ref<boolean>(false)
|
|
226
226
|
const calendarValue = ref<null | number | number[]>(null)
|
|
227
227
|
const lastCalendarValue = ref<null | number | number[]>(null)
|
|
228
|
-
const
|
|
228
|
+
const viewPageHeight = isH5 ? window.innerHeight : uni.getWindowInfo().screenHeight
|
|
229
|
+
const panelHeight = ref<number>(viewPageHeight - 350)
|
|
229
230
|
const confirmBtnDisabled = ref<boolean>(true)
|
|
230
231
|
const currentTab = ref<number>(0)
|
|
231
232
|
const lastTab = ref<number>(0)
|
|
@@ -284,7 +285,7 @@ watch(
|
|
|
284
285
|
newValue.indexOf('range') > -1 ? rangeTabs.indexOf(newValue) || 0 : tabs.indexOf(newValue)
|
|
285
286
|
currentTab.value = index
|
|
286
287
|
}
|
|
287
|
-
panelHeight.value = props.showConfirm ?
|
|
288
|
+
panelHeight.value = viewPageHeight - (props.showConfirm ? 350 : 100)
|
|
288
289
|
currentType.value = deepClone(newValue)
|
|
289
290
|
},
|
|
290
291
|
{
|
|
@@ -296,7 +297,7 @@ watch(
|
|
|
296
297
|
watch(
|
|
297
298
|
() => props.showConfirm,
|
|
298
299
|
(val) => {
|
|
299
|
-
panelHeight.value =
|
|
300
|
+
panelHeight.value = viewPageHeight - (props.showConfirm ? 350 : 100)
|
|
300
301
|
},
|
|
301
302
|
{
|
|
302
303
|
deep: true,
|