@tplc/wot 0.1.73 → 0.1.74
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-backtop/types.ts +13 -1
- package/components/wd-backtop/wd-backtop.vue +2 -2
- package/components/wd-img/wd-img.vue +13 -3
- package/package.json +1 -1
- package/types/components/wd-backtop/types.d.ts +8 -0
- package/types/components/wd-backtop/wd-backtop.vue.d.ts +18 -0
- package/types/components/wd-img/wd-img.vue.d.ts +66 -77
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.74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.26...v0.1.74) (2025-03-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.4.27 ([1eab1d7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1eab1d78e8764e97f0a32b965a3fe914e1af7730))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ✨ Features | 新功能
|
|
14
|
+
|
|
15
|
+
* lcb-city-select 自动清空额外字段 ([229b530](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/229b530f93fe237a9674a48c1248cae955fa9006))
|
|
16
|
+
* search 焦点 ([76a175f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/76a175ff3fc3f91c66bedf39af6780f11d0cb686))
|
|
17
|
+
* 修改数据 ([e068701](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e0687014bb0d3fef33658acc50f742326d60a783))
|
|
18
|
+
* 初始化字段 ([2bb232b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2bb232bcf514bb880e92ebe2e1c78c424f5a22b6))
|
|
19
|
+
* 同步city ([155266f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/155266f0e8dd302b5e974968552146e6d8448f5d))
|
|
20
|
+
* 字段同步 ([5395b64](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5395b6415bbb5d7ef7396fbc949940ce0ccab2a5))
|
|
21
|
+
* 支持img ([508b7f9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/508b7f97b40f3c473e8a4528814db54b74e8b919))
|
|
22
|
+
* 暂时完善数据同步 ([66af8a1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/66af8a18e04913c407ccae7e1463a19b6aa584c3))
|
|
23
|
+
* 样式 ([5e4039c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5e4039ca29a673da67790e424cf2e7fc35fa1d1d))
|
|
24
|
+
|
|
5
25
|
### [0.1.73](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.15...v0.1.73) (2025-03-25)
|
|
6
26
|
|
|
7
27
|
### [0.1.72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.89...v0.1.72) (2025-03-20)
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
baseProps,
|
|
3
|
+
makeBooleanProp,
|
|
4
|
+
makeNumberProp,
|
|
5
|
+
makeRequiredProp,
|
|
6
|
+
makeStringProp,
|
|
7
|
+
} from '../common/props'
|
|
2
8
|
|
|
3
9
|
export const backtopProps = {
|
|
4
10
|
...baseProps,
|
|
@@ -34,4 +40,10 @@ export const backtopProps = {
|
|
|
34
40
|
* 距离屏幕右边距离
|
|
35
41
|
*/
|
|
36
42
|
right: makeNumberProp(20),
|
|
43
|
+
|
|
44
|
+
// 一直显示
|
|
45
|
+
alwaysShow: makeBooleanProp(false),
|
|
46
|
+
|
|
47
|
+
// 距离屏幕左边距离 优先级更高
|
|
48
|
+
left: makeNumberProp(0),
|
|
37
49
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<wd-transition :show="show" name="fade">
|
|
3
3
|
<view
|
|
4
4
|
:class="`wd-backtop ${customClass} is-${shape}`"
|
|
5
|
-
:style="`z-index: ${zIndex}; bottom: ${bottom}px; right: ${right}px
|
|
5
|
+
:style="`z-index: ${zIndex}; bottom: ${bottom}px; ${left ? `left: ${left}px;` : `right: ${right}px;`} ${customStyle}`"
|
|
6
6
|
@click="handleBacktop"
|
|
7
7
|
>
|
|
8
8
|
<slot v-if="$slots.default"></slot>
|
|
@@ -34,7 +34,7 @@ import { onPageScroll } from '@dcloudio/uni-app'
|
|
|
34
34
|
const scrollTop = ref(0)
|
|
35
35
|
const props = defineProps(backtopProps)
|
|
36
36
|
|
|
37
|
-
const show = computed(() => scrollTop.value > props.top)
|
|
37
|
+
const show = computed(() => scrollTop.value > props.top || props.alwaysShow)
|
|
38
38
|
onPageScroll((e) => {
|
|
39
39
|
scrollTop.value = e.scrollTop
|
|
40
40
|
})
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
:mode="mode"
|
|
8
8
|
:lazy-load="lazyLoad"
|
|
9
9
|
/>
|
|
10
|
-
|
|
10
|
+
<!-- #ifdef H5 -->
|
|
11
|
+
<img
|
|
11
12
|
:class="`wd-img__image coverImg ${customImage}`"
|
|
12
13
|
:src="wrapPhoto({ photo: src, width, type: 1 })"
|
|
13
14
|
:mode="mode"
|
|
@@ -18,8 +19,17 @@
|
|
|
18
19
|
display: status === 'success' ? 'block' : 'none',
|
|
19
20
|
}"
|
|
20
21
|
/>
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
<!-- #endif -->
|
|
23
|
+
<!-- #ifndef H5 -->
|
|
24
|
+
<image
|
|
25
|
+
:class="`wd-img__image coverImg ${customImage}`"
|
|
26
|
+
:src="wrapPhoto({ photo: src, width, type: 1 })"
|
|
27
|
+
:mode="mode"
|
|
28
|
+
:lazy-load="lazyLoad"
|
|
29
|
+
@load="handleLoad"
|
|
30
|
+
@error="handleError"
|
|
31
|
+
/>
|
|
32
|
+
<!-- #endif -->
|
|
23
33
|
</view>
|
|
24
34
|
</template>
|
|
25
35
|
<script lang="ts">
|
package/package.json
CHANGED
|
@@ -55,6 +55,14 @@ export declare const backtopProps: {
|
|
|
55
55
|
type: NumberConstructor
|
|
56
56
|
default: number
|
|
57
57
|
}
|
|
58
|
+
alwaysShow: {
|
|
59
|
+
type: BooleanConstructor
|
|
60
|
+
default: boolean
|
|
61
|
+
}
|
|
62
|
+
left: {
|
|
63
|
+
type: NumberConstructor
|
|
64
|
+
default: number
|
|
65
|
+
}
|
|
58
66
|
customStyle: {
|
|
59
67
|
type: import('vue').PropType<string>
|
|
60
68
|
default: string
|
|
@@ -33,6 +33,14 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
33
33
|
type: NumberConstructor
|
|
34
34
|
default: number
|
|
35
35
|
}
|
|
36
|
+
alwaysShow: {
|
|
37
|
+
type: BooleanConstructor
|
|
38
|
+
default: boolean
|
|
39
|
+
}
|
|
40
|
+
left: {
|
|
41
|
+
type: NumberConstructor
|
|
42
|
+
default: number
|
|
43
|
+
}
|
|
36
44
|
customStyle: {
|
|
37
45
|
type: import('vue').PropType<string>
|
|
38
46
|
default: string
|
|
@@ -85,6 +93,14 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
85
93
|
type: NumberConstructor
|
|
86
94
|
default: number
|
|
87
95
|
}
|
|
96
|
+
alwaysShow: {
|
|
97
|
+
type: BooleanConstructor
|
|
98
|
+
default: boolean
|
|
99
|
+
}
|
|
100
|
+
left: {
|
|
101
|
+
type: NumberConstructor
|
|
102
|
+
default: number
|
|
103
|
+
}
|
|
88
104
|
customStyle: {
|
|
89
105
|
type: import('vue').PropType<string>
|
|
90
106
|
default: string
|
|
@@ -106,6 +122,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
106
122
|
iconStyle: string
|
|
107
123
|
shape: string
|
|
108
124
|
right: number
|
|
125
|
+
alwaysShow: boolean
|
|
126
|
+
left: number
|
|
109
127
|
},
|
|
110
128
|
{}
|
|
111
129
|
>,
|
|
@@ -1,6 +1,54 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
|
|
3
|
-
{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<
|
|
2
|
+
{
|
|
3
|
+
customImage: {
|
|
4
|
+
type: import('vue').PropType<string>
|
|
5
|
+
default: string
|
|
6
|
+
}
|
|
7
|
+
src: StringConstructor
|
|
8
|
+
round: {
|
|
9
|
+
type: BooleanConstructor
|
|
10
|
+
default: boolean
|
|
11
|
+
}
|
|
12
|
+
mode: {
|
|
13
|
+
type: import('vue').PropType<import('./types').ImageMode>
|
|
14
|
+
default: import('./types').ImageMode
|
|
15
|
+
}
|
|
16
|
+
lazyLoad: {
|
|
17
|
+
type: BooleanConstructor
|
|
18
|
+
default: boolean
|
|
19
|
+
}
|
|
20
|
+
width: (NumberConstructor | StringConstructor)[]
|
|
21
|
+
height: (NumberConstructor | StringConstructor)[]
|
|
22
|
+
radius: (NumberConstructor | StringConstructor)[]
|
|
23
|
+
enablePreview: {
|
|
24
|
+
type: BooleanConstructor
|
|
25
|
+
default: boolean
|
|
26
|
+
}
|
|
27
|
+
lazyPlaceWidth: (NumberConstructor | StringConstructor)[]
|
|
28
|
+
customStyle: {
|
|
29
|
+
type: import('vue').PropType<string>
|
|
30
|
+
default: string
|
|
31
|
+
}
|
|
32
|
+
customClass: {
|
|
33
|
+
type: import('vue').PropType<string>
|
|
34
|
+
default: string
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{},
|
|
38
|
+
unknown,
|
|
39
|
+
{},
|
|
40
|
+
{},
|
|
41
|
+
import('vue').ComponentOptionsMixin,
|
|
42
|
+
import('vue').ComponentOptionsMixin,
|
|
43
|
+
{
|
|
44
|
+
click: (...args: any[]) => void
|
|
45
|
+
error: (...args: any[]) => void
|
|
46
|
+
load: (...args: any[]) => void
|
|
47
|
+
},
|
|
48
|
+
string,
|
|
49
|
+
import('vue').PublicProps,
|
|
50
|
+
Readonly<
|
|
51
|
+
import('vue').ExtractPropTypes<{
|
|
4
52
|
customImage: {
|
|
5
53
|
type: import('vue').PropType<string>
|
|
6
54
|
default: string
|
|
@@ -34,80 +82,21 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
34
82
|
type: import('vue').PropType<string>
|
|
35
83
|
default: string
|
|
36
84
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
import('vue').ComponentOptionsMixin,
|
|
44
|
-
{
|
|
45
|
-
click: (...args: any[]) => void
|
|
46
|
-
error: (...args: any[]) => void
|
|
47
|
-
load: (...args: any[]) => void
|
|
48
|
-
},
|
|
49
|
-
string,
|
|
50
|
-
import('vue').PublicProps,
|
|
51
|
-
Readonly<
|
|
52
|
-
import('vue').ExtractPropTypes<{
|
|
53
|
-
customImage: {
|
|
54
|
-
type: import('vue').PropType<string>
|
|
55
|
-
default: string
|
|
56
|
-
}
|
|
57
|
-
src: StringConstructor
|
|
58
|
-
round: {
|
|
59
|
-
type: BooleanConstructor
|
|
60
|
-
default: boolean
|
|
61
|
-
}
|
|
62
|
-
mode: {
|
|
63
|
-
type: import('vue').PropType<import('./types').ImageMode>
|
|
64
|
-
default: import('./types').ImageMode
|
|
65
|
-
}
|
|
66
|
-
lazyLoad: {
|
|
67
|
-
type: BooleanConstructor
|
|
68
|
-
default: boolean
|
|
69
|
-
}
|
|
70
|
-
width: (NumberConstructor | StringConstructor)[]
|
|
71
|
-
height: (NumberConstructor | StringConstructor)[]
|
|
72
|
-
radius: (NumberConstructor | StringConstructor)[]
|
|
73
|
-
enablePreview: {
|
|
74
|
-
type: BooleanConstructor
|
|
75
|
-
default: boolean
|
|
76
|
-
}
|
|
77
|
-
lazyPlaceWidth: (NumberConstructor | StringConstructor)[]
|
|
78
|
-
customStyle: {
|
|
79
|
-
type: import('vue').PropType<string>
|
|
80
|
-
default: string
|
|
81
|
-
}
|
|
82
|
-
customClass: {
|
|
83
|
-
type: import('vue').PropType<string>
|
|
84
|
-
default: string
|
|
85
|
-
}
|
|
86
|
-
}>
|
|
87
|
-
> & {
|
|
88
|
-
onLoad?: ((...args: any[]) => any) | undefined
|
|
89
|
-
onError?: ((...args: any[]) => any) | undefined
|
|
90
|
-
onClick?: ((...args: any[]) => any) | undefined
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
customStyle: string
|
|
94
|
-
customClass: string
|
|
95
|
-
round: boolean
|
|
96
|
-
customImage: string
|
|
97
|
-
mode: import('./types').ImageMode
|
|
98
|
-
lazyLoad: boolean
|
|
99
|
-
enablePreview: boolean
|
|
100
|
-
},
|
|
101
|
-
{}
|
|
102
|
-
>,
|
|
85
|
+
}>
|
|
86
|
+
> & {
|
|
87
|
+
onLoad?: ((...args: any[]) => any) | undefined
|
|
88
|
+
onError?: ((...args: any[]) => any) | undefined
|
|
89
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
90
|
+
},
|
|
103
91
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
92
|
+
customStyle: string
|
|
93
|
+
customClass: string
|
|
94
|
+
round: boolean
|
|
95
|
+
customImage: string
|
|
96
|
+
mode: import('./types').ImageMode
|
|
97
|
+
lazyLoad: boolean
|
|
98
|
+
enablePreview: boolean
|
|
99
|
+
},
|
|
100
|
+
{}
|
|
107
101
|
>
|
|
108
102
|
export default _default
|
|
109
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
110
|
-
new (): {
|
|
111
|
-
$slots: S
|
|
112
|
-
}
|
|
113
|
-
}
|