@tplc/wot 0.1.45 → 0.1.46

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
+ ### [0.1.46](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.36...v0.1.46) (2024-12-26)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 更新calendar 尺寸 ([7faa15a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7faa15a4ba24a1743a7b7f8a9f6dc200fdf6fa57))
11
+
5
12
  ### [0.1.45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.44...v0.1.45) (2024-12-26)
6
13
 
7
14
  ### [0.1.44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.43...v0.1.44) (2024-12-26)
@@ -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, isH5, padZero, requestAnimationFrame } from '../common/util'
134
+ import { deepClone, isArray, isEqual, 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,8 +225,7 @@ 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 viewPageHeight = isH5 ? window.innerHeight : uni.getWindowInfo().screenHeight
229
- const panelHeight = ref<number>(viewPageHeight - 350)
228
+ const panelHeight = ref<number>(438)
230
229
  const confirmBtnDisabled = ref<boolean>(true)
231
230
  const currentTab = ref<number>(0)
232
231
  const lastTab = ref<number>(0)
@@ -285,7 +284,7 @@ watch(
285
284
  newValue.indexOf('range') > -1 ? rangeTabs.indexOf(newValue) || 0 : tabs.indexOf(newValue)
286
285
  currentTab.value = index
287
286
  }
288
- panelHeight.value = viewPageHeight - (props.showConfirm ? 350 : 100)
287
+ panelHeight.value = props.showConfirm ? 488 : 550
289
288
  currentType.value = deepClone(newValue)
290
289
  },
291
290
  {
@@ -297,7 +296,7 @@ watch(
297
296
  watch(
298
297
  () => props.showConfirm,
299
298
  (val) => {
300
- panelHeight.value = viewPageHeight - (props.showConfirm ? 350 : 100)
299
+ panelHeight.value = val ? 488 : 550
301
300
  },
302
301
  {
303
302
  deep: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.45",
4
+ "version": "0.1.46",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",