提交 af3850b9 作者: 方治民

fix: 避免旧版本 eslint 检测命名冲突

上级 3c893ebe
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
}, },
}) })
const size = computed(() => `${props.size}rpx`) const isize = computed(() => `${props.size}rpx`)
const color = computed(() => props.color) const icolor = computed(() => props.color)
</script> </script>
<template> <template>
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
<style lang="less" scoped> <style lang="less" scoped>
.icon { .icon {
width: v-bind(size); width: v-bind(isize);
height: v-bind(size); height: v-bind(isize);
color: v-bind(color); color: v-bind(icolor);
} }
</style> </style>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
}) })
// 生成预览容器高度 // 生成预览容器高度
const height = computed(() => `${props.height}rpx`) const iheight = computed(() => `${props.height}rpx`)
// 分离图片和视频资源地址 // 分离图片和视频资源地址
const images = computed(() => props.assets.filter((item) => isImage(item.url))) const images = computed(() => props.assets.filter((item) => isImage(item.url)))
const videos = computed(() => props.assets.filter((item) => isVideo(item.url))) const videos = computed(() => props.assets.filter((item) => isVideo(item.url)))
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
position: relative; position: relative;
:deep(.fui-lazyload__img) { :deep(.fui-lazyload__img) {
height: v-bind(height) !important; height: v-bind(iheight) !important;
} }
.icon-wrap { .icon-wrap {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论