@tplc/wot 0.1.49 → 0.1.51

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,10 @@
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.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.64...v0.1.51) (2025-01-05)
6
+
7
+ ### [0.1.50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.46...v0.1.50) (2024-12-31)
8
+
5
9
  ### [0.1.49](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.42...v0.1.49) (2024-12-30)
6
10
 
7
11
 
@@ -20,8 +20,8 @@
20
20
  :class="`wd-action-sheet ${customClass}`"
21
21
  :style="`${
22
22
  (actions && actions.length) || (panels && panels.length)
23
- ? 'margin: 0 10px calc(var(--window-bottom) + 10px) 10px; border-radius: 16px;'
24
- : 'margin-bottom: var(--window-bottom);'
23
+ ? 'margin: 0 10px 10px 10px; border-radius: 16px;'
24
+ : ''
25
25
  } ${customStyle}`"
26
26
  >
27
27
  <view v-if="title" :class="`wd-action-sheet__header ${customHeaderClass}`">
@@ -45,7 +45,6 @@ import { type Queue, queueKey } from '../composables/useQueue'
45
45
  import { getRect, uuid } from '../common/util'
46
46
  import { useChildren } from '../composables/useChildren'
47
47
  import { DROP_MENU_KEY, dropMenuProps } from './types'
48
-
49
48
  const props = defineProps(dropMenuProps)
50
49
  const queue = inject<Queue | null>(queueKey, null)
51
50
  const dropMenuId = ref<string>(`dropMenuId${uuid()}`)
@@ -86,7 +86,9 @@ const duration = ref<number>(0)
86
86
  const { parent: dropMenu } = useParent(DROP_MENU_KEY)
87
87
 
88
88
  const { proxy } = getCurrentInstance() as any
89
-
89
+ const popupProvide = inject('wd-popup', {
90
+ value: false,
91
+ })
90
92
  const positionStyle = computed(() => {
91
93
  let style: string = ''
92
94
  if (showWrapper.value && dropMenu) {
@@ -173,6 +175,7 @@ function close() {
173
175
  function handleClose() {
174
176
  if (showPop.value) {
175
177
  showPop.value = false
178
+ popupProvide.value = false
176
179
  }
177
180
  }
178
181
 
@@ -195,6 +198,7 @@ function open() {
195
198
  function handleOpen() {
196
199
  showWrapper.value = true
197
200
  showPop.value = true
201
+ popupProvide.value = true
198
202
  if (dropMenu) {
199
203
  modal.value = Boolean(dropMenu.props.modal)
200
204
  duration.value = Number(dropMenu.props.duration)
@@ -214,6 +214,7 @@ function initSlider() {
214
214
  function onTouchStart(event: any) {
215
215
  const { disabled, modelValue } = props
216
216
  if (disabled) return
217
+ event.preventDefault()
217
218
  touchLeft.touchStart(event)
218
219
  startValue.value = !isArray(modelValue)
219
220
  ? format(modelValue)
@@ -227,6 +228,7 @@ function onTouchStart(event: any) {
227
228
  function onTouchMove(event: any) {
228
229
  const { disabled } = props
229
230
  if (disabled) return
231
+ event.preventDefault()
230
232
  touchLeft.touchMove(event)
231
233
  // 移动间距 deltaX 就是向左(-)向右(+)
232
234
  const diff = (touchLeft.deltaX.value / trackWidth.value) * (maxValue.value - minValue.value)
@@ -247,6 +249,7 @@ function onTouchEnd() {
247
249
  // 右边滑轮滑动状态监听
248
250
  function onTouchStartRight(event: any) {
249
251
  if (props.disabled) return
252
+ event.preventDefault()
250
253
  const { modelValue } = props
251
254
  // 右滑轮移动时数据绑定
252
255
  touchRight.touchStart(event)
@@ -261,6 +264,7 @@ function onTouchStartRight(event: any) {
261
264
  }
262
265
  function onTouchMoveRight(event: any) {
263
266
  if (props.disabled) return
267
+ event.preventDefault()
264
268
  touchRight.touchMove(event)
265
269
  // 移动间距 deltaX 就是向左向右
266
270
  const diff = (touchRight.deltaX.value / trackWidth.value) * (maxValue.value - minValue.value)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.49",
4
+ "version": "0.1.51",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",