提交 a1f21b55 编写于 作者: F fxy060608

新增:uni_modules插件static静态资源相对路径引入测试 issues=14427

上级 6ae1f151
......@@ -11,7 +11,8 @@
<image class="image" mode="widthFix" :src="item.errorImage == null ? item.src : item.errorImage"
@error="imageErrorEvent(index, $event as ImageErrorEvent)"></image>
</view>
</view>
</view>
<test-image-path />
<view>
<text class="uni-subtitle-text">非static目录的src静态路径:./logo.png</text>
<view class="uni-center" style="background:#FFFFFF;">
......
<template>
<view>
<view>
<text class="uni-subtitle-text">uni_modules的组件模板相对路径静态引入插件内static目录图片</text>
<view class="uni-center" style="background:#FFFFFF;">
<image class="image" mode="widthFix" src="../../static/test-image-path.png" />
</view>
</view>
<view>
<text class="uni-subtitle-text">uni_modules的组件模板绝对路径静态引入插件内static目录图片</text>
<view class="uni-center" style="background:#FFFFFF;">
<image class="image" mode="widthFix" src="/uni_modules/test-image-path/static/test-image-path.png" />
</view>
</view>
</view>
</template>
<style>
.image {
margin: 20px auto;
width: 100px;
}
</style>
{
"id": "test-image-path",
"displayName": "test-image-path",
"version": "1.0.0",
"description": "test-image-path",
"keywords": [
"test-image-path"
],
"repository": "",
"engines": {
"HBuilderX": "^3.1.0"
},
"dcloudext": {
"type": "component-vue",
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "",
"data": "",
"permissions": ""
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "u",
"aliyun": "u",
"alipay": "u"
},
"client": {
"Vue": {
"vue2": "u",
"vue3": "u"
},
"App": {
"app-vue": "u",
"app-nvue": "u",
"app-uvue": "u"
},
"H5-mobile": {
"Safari": "u",
"Android Browser": "u",
"微信浏览器(Android)": "u",
"QQ浏览器(Android)": "u"
},
"H5-pc": {
"Chrome": "u",
"IE": "u",
"Edge": "u",
"Firefox": "u",
"Safari": "u"
},
"小程序": {
"微信": "u",
"阿里": "u",
"百度": "u",
"字节跳动": "u",
"QQ": "u",
"钉钉": "u",
"快手": "u",
"飞书": "u",
"京东": "u"
},
"快应用": {
"华为": "u",
"联盟": "u"
}
}
}
}
}
\ No newline at end of file
# test-image-path
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册