sadais-piui 1.2.7-beta62 → 1.2.7-beta63
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.
|
@@ -51,25 +51,13 @@
|
|
|
51
51
|
:style="[col.slot.style]"
|
|
52
52
|
/>
|
|
53
53
|
<view v-else-if="col.slot && col.slot.type === 'link'" class="pi-align-center">
|
|
54
|
-
<text v-for="(link, linkIdx) in col.slot.links" :key="linkIdx" class="link" :style="[link.style]"
|
|
54
|
+
<text v-for="(link, linkIdx) in col.slot.links" :key="linkIdx" class="link" :style="[link.style]">{{ link.name }}</text>
|
|
55
55
|
</view>
|
|
56
56
|
<block v-else>{{ row[col.prop] }}</block>
|
|
57
57
|
</view>
|
|
58
58
|
<view class="cell-content-wrap" :style="[cellContentWrapStyle]">
|
|
59
|
-
<image
|
|
60
|
-
|
|
61
|
-
:src="row[col.prop]"
|
|
62
|
-
:style="[col.slot.style]"
|
|
63
|
-
/>
|
|
64
|
-
<image
|
|
65
|
-
v-else-if="
|
|
66
|
-
col.slot &&
|
|
67
|
-
col.slot.type === 'rank' &&
|
|
68
|
-
idx < col.slot.condition
|
|
69
|
-
"
|
|
70
|
-
:src="row[col.prop]"
|
|
71
|
-
:style="[col.slot.style]"
|
|
72
|
-
/>
|
|
59
|
+
<image v-if="col.slot && col.slot.type === 'img'" :src="row[col.prop]" :style="[col.slot.style]" />
|
|
60
|
+
<image v-else-if="col.slot && col.slot.type === 'rank' && idx < col.slot.condition" :src="row[col.prop]" :style="[col.slot.style]" />
|
|
73
61
|
<view v-else-if="col.slot && col.slot.type === 'link'" class="pi-align-center">
|
|
74
62
|
<text v-for="(link, linkIdx) in col.slot.links" :key="linkIdx" class="link" :style="[link.style]" @click="handleClickLink({ row, link, linkIdx, rowIdx: idx })">{{ link.name }}</text>
|
|
75
63
|
</view>
|
|
@@ -177,12 +165,15 @@ export default {
|
|
|
177
165
|
rightMap[i] = { right: isRight(col) ? `${right}px` : "auto" };
|
|
178
166
|
right += isRight(col) ? list[i].width : 0;
|
|
179
167
|
}
|
|
180
|
-
this.leftMap = leftMap
|
|
181
|
-
this.rightMap = rightMap
|
|
182
|
-
})
|
|
168
|
+
this.leftMap = leftMap
|
|
169
|
+
this.rightMap = rightMap
|
|
170
|
+
})
|
|
183
171
|
},
|
|
184
|
-
|
|
185
|
-
|
|
172
|
+
handleClickLink(info) {
|
|
173
|
+
this.$emit('link', info)
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
186
177
|
</script>
|
|
187
178
|
|
|
188
179
|
<style lang="scss" scoped>
|