@tplc/wot 0.1.50 → 0.1.52
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 +9 -0
- package/components/wd-drop-menu/wd-drop-menu.vue +0 -1
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +5 -1
- package/components/wd-slider/types.ts +2 -0
- package/components/wd-slider/wd-slider.vue +6 -5
- package/package.json +1 -1
- package/types/components/wd-slider/types.d.ts +4 -0
- package/types/components/wd-slider/wd-slider.vue.d.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.51...v0.1.52) (2025-01-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 调整rate 数据类型 ([9809c85](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9809c8517514103ed8266ad68894701dc25c4252))
|
|
11
|
+
|
|
12
|
+
### [0.1.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.64...v0.1.51) (2025-01-05)
|
|
13
|
+
|
|
5
14
|
### [0.1.50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.46...v0.1.50) (2024-12-31)
|
|
6
15
|
|
|
7
16
|
### [0.1.49](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.42...v0.1.49) (2024-12-30)
|
|
@@ -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)
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
<view :class="`wd-slider__label-min ${customMinClass}`" v-if="!hideMinMax">
|
|
7
7
|
{{ minText || minValue }}
|
|
8
8
|
</view>
|
|
9
|
+
<view :class="`wd-slider__label-max ${customMaxClass}`" v-if="!hideMinMax">
|
|
10
|
+
{{ maxText || maxValue }}
|
|
11
|
+
</view>
|
|
9
12
|
<view class="wd-slider__bar-wrapper" :style="barWrapperStyle">
|
|
10
13
|
<view class="wd-slider__bar" :style="barCustomStyle"></view>
|
|
11
14
|
<!-- 左边 -->
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
@touchend="onTouchEnd"
|
|
18
21
|
@touchcancel="onTouchEnd"
|
|
19
22
|
>
|
|
20
|
-
<view class="wd-slider__label" v-if="!hideLabel">{{ leftNewValue }}</view>
|
|
23
|
+
<view class="wd-slider__label" v-if="!hideLabel">{{ unit + leftNewValue }}</view>
|
|
21
24
|
<view class="wd-slider__button" />
|
|
22
25
|
</view>
|
|
23
26
|
<!-- 右边 -->
|
|
@@ -30,13 +33,11 @@
|
|
|
30
33
|
@touchend="onTouchEndRight"
|
|
31
34
|
@touchcancel="onTouchEndRight"
|
|
32
35
|
>
|
|
33
|
-
<view class="wd-slider__label" v-if="!hideLabel">{{ rightNewValue }}</view>
|
|
36
|
+
<view class="wd-slider__label" v-if="!hideLabel">{{ unit + rightNewValue }}</view>
|
|
34
37
|
<view class="wd-slider__button" />
|
|
35
38
|
</view>
|
|
36
39
|
</view>
|
|
37
|
-
|
|
38
|
-
{{ maxText || maxValue }}
|
|
39
|
-
</view>
|
|
40
|
+
|
|
40
41
|
<!-- #ifdef MP-DINGTALK -->
|
|
41
42
|
</view>
|
|
42
43
|
<!-- #endif -->
|
package/package.json
CHANGED
|
@@ -52,6 +52,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
52
52
|
type: import('vue').PropType<string>
|
|
53
53
|
default: string
|
|
54
54
|
}
|
|
55
|
+
unit: {
|
|
56
|
+
type: import('vue').PropType<string>
|
|
57
|
+
default: string
|
|
58
|
+
}
|
|
55
59
|
customStyle: {
|
|
56
60
|
type: import('vue').PropType<string>
|
|
57
61
|
default: string
|
|
@@ -131,6 +135,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
131
135
|
type: import('vue').PropType<string>
|
|
132
136
|
default: string
|
|
133
137
|
}
|
|
138
|
+
unit: {
|
|
139
|
+
type: import('vue').PropType<string>
|
|
140
|
+
default: string
|
|
141
|
+
}
|
|
134
142
|
customStyle: {
|
|
135
143
|
type: import('vue').PropType<string>
|
|
136
144
|
default: string
|
|
@@ -162,6 +170,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
162
170
|
inactiveColor: string
|
|
163
171
|
minText: string
|
|
164
172
|
maxText: string
|
|
173
|
+
unit: string
|
|
165
174
|
},
|
|
166
175
|
{}
|
|
167
176
|
>
|