@tplc/wot 0.1.61 → 0.1.63
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 +20 -0
- package/components/wd-calendar/types.ts +10 -1
- package/components/wd-calendar/wd-calendar.vue +1 -1
- package/components/wd-img/wd-img.vue +33 -7
- package/components/wd-swiper/types.ts +2 -0
- package/components/wd-swiper/wd-swiper.vue +1 -0
- package/components/wd-swiper-nav/types.ts +8 -0
- package/components/wd-swiper-nav/wd-swiper-nav.vue +3 -0
- package/package.json +1 -1
- package/types/components/wd-calendar/types.d.ts +11 -1
- package/types/components/wd-calendar/wd-calendar.vue.d.ts +9 -0
- package/types/components/wd-swiper/types.d.ts +4 -0
- package/types/components/wd-swiper/wd-swiper.vue.d.ts +9 -0
- package/types/components/wd-swiper-nav/types.d.ts +14 -0
- package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +18 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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.63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.76...v0.1.63) (2025-03-10)
|
|
6
|
+
|
|
7
|
+
### [0.1.62](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.57...v0.1.62) (2025-02-24)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
11
|
+
|
|
12
|
+
* **release:** 0.3.58 ([5714272](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5714272e0acc716ec8fb1326c15e73cac448151b))
|
|
13
|
+
* **release:** 0.3.59 ([4b94bc6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4b94bc63f3b25112370adf3fe0d3082e70adb3b7))
|
|
14
|
+
* **release:** 0.3.60 ([d58f018](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d58f01898d3fa953c2e008878b30e4f79964a323))
|
|
15
|
+
* **release:** 0.3.61 ([9d90cab](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9d90cab4b70b69acc065176b08c82251739aff6d))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ✨ Features | 新功能
|
|
19
|
+
|
|
20
|
+
* getFinalUrl 调整不插入其他数据 ([a96a25f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a96a25ffe3f82475c20b2166aef45cb5ae53308a))
|
|
21
|
+
* 修改整体字体大小 ([80a7abb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/80a7abb1e670a2bb191d9d0175fcc87423c5ed40))
|
|
22
|
+
* 字体加粗 ([d35519f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d35519fa29db1fb340efd6b710f210a5813de382))
|
|
23
|
+
* 调整ui ([2cb67aa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2cb67aa044ceb3ddb8a26a8a4a4345a3944c6ded))
|
|
24
|
+
|
|
5
25
|
### [0.1.61](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.53...v0.1.61) (2025-02-18)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-calendar/types.ts
|
|
8
8
|
* 记得注释
|
|
9
9
|
*/
|
|
10
|
-
import type { PropType } from 'vue'
|
|
10
|
+
import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue'
|
|
11
11
|
import {
|
|
12
12
|
baseProps,
|
|
13
13
|
makeArrayProp,
|
|
@@ -207,6 +207,11 @@ export const calendarProps = {
|
|
|
207
207
|
* 打开前执行的函数
|
|
208
208
|
*/
|
|
209
209
|
initFun: Function as PropType<() => void>,
|
|
210
|
+
/**
|
|
211
|
+
* 是否使用内置单元格
|
|
212
|
+
* 默认为 true,使用内置单元格
|
|
213
|
+
*/
|
|
214
|
+
withCell: makeBooleanProp(true),
|
|
210
215
|
}
|
|
211
216
|
|
|
212
217
|
export type CalendarDisplayFormat = (value: number | number[], type: CalendarType) => string
|
|
@@ -237,3 +242,7 @@ export type CalendarExpose = {
|
|
|
237
242
|
/** 打开时间选择器弹窗 */
|
|
238
243
|
open: () => void
|
|
239
244
|
}
|
|
245
|
+
|
|
246
|
+
export type CalendarProps = ExtractPropTypes<typeof calendarProps>
|
|
247
|
+
|
|
248
|
+
export type CalendarInstance = ComponentPublicInstance<CalendarExpose, CalendarProps>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view :class="`wd-calendar ${cell.border.value ? 'is-border' : ''} ${customClass}`">
|
|
3
|
-
<view class="wd-calendar__field" @click="open">
|
|
3
|
+
<view class="wd-calendar__field" @click="open" v-if="withCell">
|
|
4
4
|
<slot v-if="useDefaultSlot"></slot>
|
|
5
5
|
<view
|
|
6
6
|
v-else
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
<image
|
|
4
4
|
v-if="status !== 'success'"
|
|
5
5
|
:class="`wd-img__image coverImg ${customImage}`"
|
|
6
|
-
:src="wrapPhoto({ photo: src, width: lazyPlaceWidth })"
|
|
6
|
+
:src="wrapPhoto({ photo: src, width: lazyPlaceWidth, type: 2 })"
|
|
7
7
|
:mode="mode"
|
|
8
8
|
:lazy-load="lazyLoad"
|
|
9
9
|
/>
|
|
10
10
|
<image
|
|
11
11
|
:class="`wd-img__image coverImg ${customImage}`"
|
|
12
|
-
:src="wrapPhoto({ photo: src, width, type:
|
|
12
|
+
:src="wrapPhoto({ photo: src, width, type: 1 })"
|
|
13
13
|
:mode="mode"
|
|
14
14
|
:lazy-load="lazyLoad"
|
|
15
15
|
@load="handleLoad"
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
|
-
import { computed, ref } from 'vue'
|
|
38
|
+
import { computed, ref, watch } from 'vue'
|
|
39
39
|
import { addUnit, isDef, objToStyle } from '../common/util'
|
|
40
40
|
import { imgProps } from './types'
|
|
41
41
|
|
|
@@ -80,15 +80,41 @@ function handleLoad(event: Event) {
|
|
|
80
80
|
emit('load', event)
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
function wrapPhoto({ photo, width =
|
|
83
|
+
function wrapPhoto({ photo, width = 100, type = 1 }: any) {
|
|
84
|
+
let finalWidth = width
|
|
85
|
+
if (type === 1) {
|
|
86
|
+
if (typeof width === 'string') {
|
|
87
|
+
const imgWidth = parseInt(width.replace('rpx', ''))
|
|
88
|
+
if (width.includes('rpx')) {
|
|
89
|
+
finalWidth = imgWidth * 6
|
|
90
|
+
} else if (width.includes('px')) {
|
|
91
|
+
finalWidth = imgWidth * 3
|
|
92
|
+
} else if (width.includes('%')) {
|
|
93
|
+
finalWidth = 1500
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
finalWidth = width * 3
|
|
97
|
+
}
|
|
98
|
+
if (finalWidth > 1500) {
|
|
99
|
+
finalWidth = 1500
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
84
103
|
const isctyun = photo?.indexOf('.ctyun') >= 0
|
|
85
104
|
const sym = photo?.indexOf('?') > 0 ? '&' : '?'
|
|
86
105
|
const suffix = isctyun
|
|
87
|
-
? `${sym}x-amz-process=image/resize,w_${
|
|
88
|
-
: `${sym}x-oss-process=image/resize,m_mfit,w_${
|
|
89
|
-
const url = `${photo}${
|
|
106
|
+
? `${sym}x-amz-process=image/resize,w_${finalWidth},m_lfit`
|
|
107
|
+
: `${sym}x-oss-process=image/resize,m_mfit,w_${finalWidth}&imageView2/2/w/${finalWidth}`
|
|
108
|
+
const url = `${photo}${suffix}`
|
|
90
109
|
return url
|
|
91
110
|
}
|
|
111
|
+
|
|
112
|
+
watch(
|
|
113
|
+
() => props.src,
|
|
114
|
+
() => {
|
|
115
|
+
status.value = 'loading'
|
|
116
|
+
},
|
|
117
|
+
)
|
|
92
118
|
</script>
|
|
93
119
|
|
|
94
120
|
<style lang="scss" scoped>
|
|
@@ -37,6 +37,14 @@ export const swiperNavprops = {
|
|
|
37
37
|
* 指示器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等
|
|
38
38
|
*/
|
|
39
39
|
type: makeStringProp<SwiperIndicatorType>('dots'),
|
|
40
|
+
/**
|
|
41
|
+
* 指示器活动颜色
|
|
42
|
+
*/
|
|
43
|
+
activityColor: makeStringProp('var(--wot-color-theme)'),
|
|
44
|
+
/**
|
|
45
|
+
* 指示器非活动颜色
|
|
46
|
+
*/
|
|
47
|
+
inactiveColor: makeStringProp('#e7e7e7'),
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
export type SwiperNavProps = ExtractPropTypes<typeof swiperNavprops>
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
v-for="(item, index) in total"
|
|
14
14
|
:key="index"
|
|
15
15
|
:class="`wd-swiper-nav__item--${type} ${current === index ? 'is-active' : ''} is-${direction}`"
|
|
16
|
+
:style="{
|
|
17
|
+
backgroundColor: current === index ? activityColor : inactiveColor,
|
|
18
|
+
}"
|
|
16
19
|
></view>
|
|
17
20
|
</block>
|
|
18
21
|
<block v-if="type === 'fraction'">{{ current + 1 }}/{{ total }}</block>
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropType } from 'vue'
|
|
1
|
+
import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue'
|
|
2
2
|
import type { CalendarFormatter, CalendarTimeFilter, CalendarType } from '../wd-calendar-view/types'
|
|
3
3
|
import type { FormItemRule } from '../wd-form/types'
|
|
4
4
|
export declare const calendarProps: {
|
|
@@ -258,6 +258,14 @@ export declare const calendarProps: {
|
|
|
258
258
|
* 打开前执行的函数
|
|
259
259
|
*/
|
|
260
260
|
initFun: PropType<() => void>
|
|
261
|
+
/**
|
|
262
|
+
* 是否使用内置单元格
|
|
263
|
+
* 默认为 true,使用内置单元格
|
|
264
|
+
*/
|
|
265
|
+
withCell: {
|
|
266
|
+
type: BooleanConstructor
|
|
267
|
+
default: boolean
|
|
268
|
+
}
|
|
261
269
|
customStyle: {
|
|
262
270
|
type: PropType<string>
|
|
263
271
|
default: string
|
|
@@ -289,3 +297,5 @@ export type CalendarExpose = {
|
|
|
289
297
|
/** 打开时间选择器弹窗 */
|
|
290
298
|
open: () => void
|
|
291
299
|
}
|
|
300
|
+
export type CalendarProps = ExtractPropTypes<typeof calendarProps>
|
|
301
|
+
export type CalendarInstance = ComponentPublicInstance<CalendarExpose, CalendarProps>
|
|
@@ -130,6 +130,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
130
130
|
default: boolean
|
|
131
131
|
}
|
|
132
132
|
initFun: import('vue').PropType<() => void>
|
|
133
|
+
withCell: {
|
|
134
|
+
type: BooleanConstructor
|
|
135
|
+
default: boolean
|
|
136
|
+
}
|
|
133
137
|
customStyle: {
|
|
134
138
|
type: import('vue').PropType<string>
|
|
135
139
|
default: string
|
|
@@ -286,6 +290,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
286
290
|
default: boolean
|
|
287
291
|
}
|
|
288
292
|
initFun: import('vue').PropType<() => void>
|
|
293
|
+
withCell: {
|
|
294
|
+
type: BooleanConstructor
|
|
295
|
+
default: boolean
|
|
296
|
+
}
|
|
289
297
|
customStyle: {
|
|
290
298
|
type: import('vue').PropType<string>
|
|
291
299
|
default: string
|
|
@@ -331,6 +339,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
331
339
|
customViewClass: string
|
|
332
340
|
customLabelClass: string
|
|
333
341
|
customValueClass: string
|
|
342
|
+
withCell: boolean
|
|
334
343
|
},
|
|
335
344
|
{}
|
|
336
345
|
>,
|
|
@@ -127,6 +127,10 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
127
127
|
type: BooleanConstructor
|
|
128
128
|
default: boolean
|
|
129
129
|
}
|
|
130
|
+
indicatorCustomStyle: {
|
|
131
|
+
type: import('vue').PropType<string>
|
|
132
|
+
default: string
|
|
133
|
+
}
|
|
130
134
|
customStyle: {
|
|
131
135
|
type: import('vue').PropType<string>
|
|
132
136
|
default: string
|
|
@@ -274,6 +278,10 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
274
278
|
type: BooleanConstructor
|
|
275
279
|
default: boolean
|
|
276
280
|
}
|
|
281
|
+
indicatorCustomStyle: {
|
|
282
|
+
type: import('vue').PropType<string>
|
|
283
|
+
default: string
|
|
284
|
+
}
|
|
277
285
|
customStyle: {
|
|
278
286
|
type: import('vue').PropType<string>
|
|
279
287
|
default: string
|
|
@@ -321,6 +329,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
321
329
|
customNextImageClass: string
|
|
322
330
|
itemPadding: string
|
|
323
331
|
imageRadius: string
|
|
332
|
+
indicatorCustomStyle: string
|
|
324
333
|
},
|
|
325
334
|
{}
|
|
326
335
|
>
|
|
@@ -54,6 +54,20 @@ export declare const swiperNavprops: {
|
|
|
54
54
|
type: import('vue').PropType<SwiperIndicatorType>
|
|
55
55
|
default: SwiperIndicatorType
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* 指示器活动颜色
|
|
59
|
+
*/
|
|
60
|
+
activityColor: {
|
|
61
|
+
type: import('vue').PropType<string>
|
|
62
|
+
default: string
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 指示器非活动颜色
|
|
66
|
+
*/
|
|
67
|
+
inactiveColor: {
|
|
68
|
+
type: import('vue').PropType<string>
|
|
69
|
+
default: string
|
|
70
|
+
}
|
|
57
71
|
customStyle: {
|
|
58
72
|
type: import('vue').PropType<string>
|
|
59
73
|
default: string
|
|
@@ -28,6 +28,14 @@ declare const _default: import('vue').DefineComponent<
|
|
|
28
28
|
type: import('vue').PropType<import('./types').SwiperIndicatorType>
|
|
29
29
|
default: import('./types').SwiperIndicatorType
|
|
30
30
|
}
|
|
31
|
+
activityColor: {
|
|
32
|
+
type: import('vue').PropType<string>
|
|
33
|
+
default: string
|
|
34
|
+
}
|
|
35
|
+
inactiveColor: {
|
|
36
|
+
type: import('vue').PropType<string>
|
|
37
|
+
default: string
|
|
38
|
+
}
|
|
31
39
|
customStyle: {
|
|
32
40
|
type: import('vue').PropType<string>
|
|
33
41
|
default: string
|
|
@@ -78,6 +86,14 @@ declare const _default: import('vue').DefineComponent<
|
|
|
78
86
|
type: import('vue').PropType<import('./types').SwiperIndicatorType>
|
|
79
87
|
default: import('./types').SwiperIndicatorType
|
|
80
88
|
}
|
|
89
|
+
activityColor: {
|
|
90
|
+
type: import('vue').PropType<string>
|
|
91
|
+
default: string
|
|
92
|
+
}
|
|
93
|
+
inactiveColor: {
|
|
94
|
+
type: import('vue').PropType<string>
|
|
95
|
+
default: string
|
|
96
|
+
}
|
|
81
97
|
customStyle: {
|
|
82
98
|
type: import('vue').PropType<string>
|
|
83
99
|
default: string
|
|
@@ -97,9 +113,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
97
113
|
current: number
|
|
98
114
|
direction: import('../wd-swiper/types').DirectionType
|
|
99
115
|
total: number
|
|
116
|
+
inactiveColor: string
|
|
100
117
|
minShowNum: number
|
|
101
118
|
indicatorPosition: import('../wd-swiper/types').IndicatorPositionType
|
|
102
119
|
showControls: boolean
|
|
120
|
+
activityColor: string
|
|
103
121
|
},
|
|
104
122
|
{}
|
|
105
123
|
>
|