@tplc/wot 0.1.83 → 0.1.84
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.84](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.109...v0.1.84) (2025-05-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增骨架屏 ([6f837dd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6f837ddb1c1db52b25ec2155461a4cade58bfc09))
|
|
11
|
+
|
|
5
12
|
### [0.1.83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.75...v0.1.83) (2025-04-25)
|
|
6
13
|
|
|
7
14
|
### [0.1.82](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.69...v0.1.82) (2025-04-15)
|
|
@@ -7,7 +7,20 @@
|
|
|
7
7
|
:mode="mode"
|
|
8
8
|
:lazy-load="lazyLoad"
|
|
9
9
|
/>
|
|
10
|
+
<img
|
|
11
|
+
v-if="height === 'auto' && isH5"
|
|
12
|
+
:class="`wd-img__image coverImg ${customImage}`"
|
|
13
|
+
:src="wrapPhoto({ photo: src, width, type: 1 })"
|
|
14
|
+
:lazy-load="lazyLoad"
|
|
15
|
+
@load="handleLoad"
|
|
16
|
+
@error="handleError"
|
|
17
|
+
:style="{
|
|
18
|
+
display: status === 'success' ? 'block' : 'none',
|
|
19
|
+
objectFit: 'cover',
|
|
20
|
+
}"
|
|
21
|
+
/>
|
|
10
22
|
<image
|
|
23
|
+
v-else
|
|
11
24
|
:class="`wd-img__image coverImg ${customImage}`"
|
|
12
25
|
:src="wrapPhoto({ photo: src, width, type: 1 })"
|
|
13
26
|
:mode="mode"
|
|
@@ -34,7 +47,7 @@ export default {
|
|
|
34
47
|
|
|
35
48
|
<script lang="ts" setup>
|
|
36
49
|
import { computed, ref, watch } from 'vue'
|
|
37
|
-
import { addUnit, isDef, isVideoUrl, objToStyle } from '../common/util'
|
|
50
|
+
import { addUnit, isDef, isH5, isVideoUrl, objToStyle } from '../common/util'
|
|
38
51
|
import { imgProps } from './types'
|
|
39
52
|
|
|
40
53
|
const props = defineProps(imgProps)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
2
|
+
<view
|
|
3
|
+
:class="`wd-swiper ${customClass}`"
|
|
4
|
+
:style="`${customStyle};--swiper-item-padding:${itemPadding}`"
|
|
5
|
+
>
|
|
3
6
|
<swiper
|
|
4
7
|
class="wd-swiper__track"
|
|
5
8
|
:autoplay="autoplay"
|
|
@@ -21,7 +24,6 @@
|
|
|
21
24
|
v-for="(item, index) in innerList"
|
|
22
25
|
:key="index"
|
|
23
26
|
class="wd-swiper__item"
|
|
24
|
-
:style="{ paddingRight: itemPadding, paddingLeft: itemPadding }"
|
|
25
27
|
@click="handleClick(index, item)"
|
|
26
28
|
>
|
|
27
29
|
<view
|
|
@@ -272,4 +274,8 @@ function doIndicatorBtnChange(dir: string, source: string) {
|
|
|
272
274
|
|
|
273
275
|
<style lang="scss" scoped>
|
|
274
276
|
@import './index';
|
|
277
|
+
.wd-swiper__item {
|
|
278
|
+
padding-right: var(--swiper-item-padding);
|
|
279
|
+
padding-left: var(--swiper-item-padding);
|
|
280
|
+
}
|
|
275
281
|
</style>
|