初步联调装表
This commit is contained in:
27
pages/workBenchNew/components/operateButton/index.js
Normal file
27
pages/workBenchNew/components/operateButton/index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// pages/workBenchNew/components/operateButton/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
text: String,
|
||||
style: String,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
handleClick() {
|
||||
this.triggerEvent("click")
|
||||
}
|
||||
}
|
||||
})
|
||||
4
pages/workBenchNew/components/operateButton/index.json
Normal file
4
pages/workBenchNew/components/operateButton/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
2
pages/workBenchNew/components/operateButton/index.wxml
Normal file
2
pages/workBenchNew/components/operateButton/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--pages/workBenchNew/components/operateButton/index.wxml-->
|
||||
<view class="buttonWrapper" style="{{style}}" bind:tap="handleClick"> {{ text }} </view>
|
||||
12
pages/workBenchNew/components/operateButton/index.wxss
Normal file
12
pages/workBenchNew/components/operateButton/index.wxss
Normal file
@@ -0,0 +1,12 @@
|
||||
/* pages/workBenchNew/components/operateButton/index.wxss */
|
||||
|
||||
.buttonWrapper {
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: 1rpx solid #ccc;
|
||||
border-radius: 10rpx;
|
||||
margin-bottom: 24rpx;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user