提交 ae564589 编写于 作者: H hdx

fix(components):page-head、uni-collapse、uni-collapse-item、u-link,设置 vue 文件 <script lang="uts">

上级 bf4a056c
<template name="page-head"> <template name="page-head">
<view class="common-page-head"> <view class="common-page-head">
<view class="common-page-head-title-box"> <view class="common-page-head-title-box">
<text class="common-page-head-title">{{title}}</text> <text class="common-page-head-title">{{title}}</text>
</view>
</view> </view>
</view>
</template> </template>
<script> <script lang="uts">
export default { export default {
name: "page-head", name: "page-head",
props: { props: {
title: { title: {
type: String, type: String,
default: "" default: ""
} }
}
} }
}
</script> </script>
<style> <style>
.common-page-head { .common-page-head {
padding: 35rpx; padding: 35rpx;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
} }
.common-page-head-title-box { .common-page-head-title-box {
padding: 0 40rpx; padding: 0 40rpx;
height: 88rpx; height: 88rpx;
border-bottom: 2rpx solid #D8D8D8; border-bottom: 2rpx solid #D8D8D8;
} }
.common-page-head-title { .common-page-head-title {
line-height: 88rpx; line-height: 88rpx;
font-size: 30rpx; font-size: 30rpx;
color: #BEBEBE; color: #BEBEBE;
} }
</style> </style>
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</view> </view>
</template> </template>
<script> <script lang="uts">
/** /**
* @description u-link是一个外部网页超链接组件,在小程序内打开内部web-view组件或复制url,在app内打开外部浏览器,在h5端打开新网页 * @description u-link是一个外部网页超链接组件,在小程序内打开内部web-view组件或复制url,在app内打开外部浏览器,在h5端打开新网页
* @property {String} href 点击后打开的外部网页url,小程序中必须以https://开头 * @property {String} href 点击后打开的外部网页url,小程序中必须以https://开头
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</view> </view>
</template> </template>
<script> <script lang="uts">
import { $dispatch } from './util.uts' import { $dispatch } from './util.uts'
export default { export default {
name: "UniCollapseItem", name: "UniCollapseItem",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</view> </view>
</template> </template>
<script> <script lang="uts">
import { ComponentPublicInstance } from 'vue' import { ComponentPublicInstance } from 'vue'
export default { export default {
name: "UniCollapse", name: "UniCollapse",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册