File tree 2 files changed +7
-7
lines changed
packages/fighting-components/image/src
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 20
20
21
21
<div
22
22
v-if =" caption"
23
+ v-show =" isLoadOk"
23
24
class =" f-image-caption"
24
25
:style =" {
25
26
width: width || `${captionWidth}px`,
67
68
const emit = defineEmits (Emits )
68
69
69
70
const isError: Ref <boolean > = ref <boolean >(true )
71
+ const isLoadOk: Ref <boolean > = ref <boolean >(false )
70
72
const isPreviewListShow: Ref <boolean > = ref <boolean >(false )
71
73
const captionWidth: Ref <number > = ref <number >(0 )
72
74
const FImageImg: Ref <HTMLImageElement | null > = ref <HTMLImageElement | null >(
99
101
width : number
100
102
): void => {
101
103
isError .value = params
104
+ isLoadOk .value = params
102
105
captionWidth .value = width
103
106
}
104
107
Original file line number Diff line number Diff line change 3
3
<f-image
4
4
root-margin =" 100px"
5
5
src =" https://tianyuhao.cn/images/auto/1.png"
6
+ err-src =" https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg"
6
7
:draggable =" false"
7
8
lazy
8
9
alt =" ada"
9
10
:preview-list =" listImg"
10
11
:select =" true"
11
12
:preview-z-index =" 10022"
13
+ :modal-close =" false"
14
+ :show-close-btn =" false"
12
15
:preview-show-option =" false"
13
16
round =" 20px"
14
17
preview-round =" 120px"
15
- caption =" 回到家啊回到家萨的好时机啊的话苏家爱华打算结婚的洒酒大数据坎大哈时间坎大哈时间的撒健康大数据坎大哈事件扩大化 "
18
+ caption =" 回到家啊回到家萨的好时机啊 "
16
19
:preview-show-index =" 32"
17
- block
18
20
/>
19
21
<span >12</span >
20
22
</template >
47
49
</script >
48
50
49
51
<style >
50
- html ,
51
- body {
52
- width : 100% ;
53
- height : 100% ;
54
- }
55
52
.list {
56
53
width : 300px ;
57
54
height : 200px ;
You can’t perform that action at this time.
0 commit comments