构建: - 新增 tools/build.js:junction HBuilderX 工具链,CLI 构建 h5/mp-weixin - vue 指向补丁版 @dcloudio/uni-h5-vue(官方 npm vue 不导出 isInSSRComponentSetup) - 设 HX_APP_ROOT 避免退化成 H5 空壳产物;产物完整性校验 校验工具: - 新增 check-cloud-methods.js:acorn 解析云对象方法,比对 94 处调用点 - 新增 check-android-contract.js:Kotlin 侧云对象契约校验 - audit-project.js 修 downloadFile 误报(注释未剥离);tools/ 排除出扫描 - package.json 声明此前隐式依赖的 acorn 功能: - 补 uni-cms-articles.getPublishedArticles(安卓端依赖但此前不存在) - 修 u-parse <audio> 引用已移除组件导致 H5 构建失败
54 lines
1.0 KiB
Vue
54 lines
1.0 KiB
Vue
<template>
|
|
<view :class="['list', data.type]">
|
|
<view class="list-item" v-for="(item, index) in (data.items || [])" :key="index">
|
|
<text class="dot">{{data.type === 'ordered' ? `${index + 1}.` : '•'}}</text>
|
|
<view class="item-content">
|
|
<render-text :data="item.data || []" reset class="reset-default"></render-text>
|
|
<render-list v-if="item.children" :data="item.children"></render-list>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import text from './text.vue'
|
|
|
|
export default {
|
|
name: "render-list",
|
|
props: {
|
|
data: {
|
|
type: Object,
|
|
default () {
|
|
return {}
|
|
}
|
|
}
|
|
},
|
|
components: {
|
|
renderText: text
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.list {
|
|
margin-bottom: 40rpx;
|
|
}
|
|
.list-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: 20rpx;
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.dot {
|
|
margin-right: 10rpx;
|
|
}
|
|
}
|
|
.reset-default {
|
|
text-indent: 0;
|
|
flex: 1;
|
|
}
|
|
</style>
|