first add files
This commit is contained in:
19
ProjectLiaisonForm/pages/checkbox/card/index.js
Normal file
19
ProjectLiaisonForm/pages/checkbox/card/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
Component({
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
checked: true,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
changeChecked(e) {
|
||||
this.setData({
|
||||
checked: e.detail.checked,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
7
ProjectLiaisonForm/pages/checkbox/card/index.json
Normal file
7
ProjectLiaisonForm/pages/checkbox/card/index.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group",
|
||||
"t-checkbox": "tdesign-miniprogram/checkbox/checkbox"
|
||||
}
|
||||
}
|
||||
5
ProjectLiaisonForm/pages/checkbox/card/index.wxml
Normal file
5
ProjectLiaisonForm/pages/checkbox/card/index.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<t-checkbox-group t-class="theme-card" default-value="{{['1', '2']}}">
|
||||
<t-checkbox value="1" label="多选" />
|
||||
<t-checkbox value="2" label="多选" />
|
||||
<t-checkbox value="3" label="多选标题多行多选标题多行多选标题多行多选标题多行多选标题多行多选标题" />
|
||||
</t-checkbox-group>
|
||||
5
ProjectLiaisonForm/pages/checkbox/card/index.wxss
Normal file
5
ProjectLiaisonForm/pages/checkbox/card/index.wxss
Normal file
@@ -0,0 +1,5 @@
|
||||
.theme-card {
|
||||
border-radius: 24rpx;
|
||||
margin: 32rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
Reference in New Issue
Block a user