Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
a1f21b55
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6067
Star
93
Fork
166
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a1f21b55
编写于
12月 20, 2024
作者:
F
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增:uni_modules插件static静态资源相对路径引入测试 issues=14427
上级
6ae1f151
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
109 addition
and
1 deletion
+109
-1
pages/component/image/image-path.uvue
pages/component/image/image-path.uvue
+2
-1
uni_modules/test-image-path/changelog.md
uni_modules/test-image-path/changelog.md
+0
-0
uni_modules/test-image-path/components/test-image-path/test-image-path.vue
...image-path/components/test-image-path/test-image-path.vue
+23
-0
uni_modules/test-image-path/package.json
uni_modules/test-image-path/package.json
+83
-0
uni_modules/test-image-path/readme.md
uni_modules/test-image-path/readme.md
+1
-0
uni_modules/test-image-path/static/test-image-path.png
uni_modules/test-image-path/static/test-image-path.png
+0
-0
未找到文件。
pages/component/image/image-path.uvue
浏览文件 @
a1f21b55
...
...
@@ -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;">
...
...
uni_modules/test-image-path/changelog.md
0 → 100644
浏览文件 @
a1f21b55
uni_modules/test-image-path/components/test-image-path/test-image-path.vue
0 → 100644
浏览文件 @
a1f21b55
<
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
>
uni_modules/test-image-path/package.json
0 → 100644
浏览文件 @
a1f21b55
{
"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
uni_modules/test-image-path/readme.md
0 → 100644
浏览文件 @
a1f21b55
# test-image-path
\ No newline at end of file
uni_modules/test-image-path/static/test-image-path.png
0 → 100644
浏览文件 @
a1f21b55
4.2 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录