开始做发票
This commit is contained in:
24
pages/invoicing/components/card/index.js
Normal file
24
pages/invoicing/components/card/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// pages/invoicing/components/card/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
title: String,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
||||
4
pages/invoicing/components/card/index.json
Normal file
4
pages/invoicing/components/card/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
7
pages/invoicing/components/card/index.wxml
Normal file
7
pages/invoicing/components/card/index.wxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<!--pages/invoicing/components/card/index.wxml-->
|
||||
<view class="cardBox">
|
||||
<view class="title"> {{ title }} </view>
|
||||
<view class="content">
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
17
pages/invoicing/components/card/index.wxss
Normal file
17
pages/invoicing/components/card/index.wxss
Normal file
@@ -0,0 +1,17 @@
|
||||
/* pages/invoicing/components/card/index.wxss */
|
||||
.cardBox {
|
||||
margin-left: 32rpx;
|
||||
margin-right: 32rpx;
|
||||
padding: 2rpx 24rpx 24rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
border-bottom: 1rpx solid #ccc;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user