1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <view class="control">
- <view class="update-line">
- <view class="label" :style="{ color: fColor }">
- {{ ctrlModel.funcname }}
- </view>
- <view class="content" :style="{ color: fColor }">
- {{ ctrlModel.showValue || '暂未设置' }}
- <view class="control-updata-but" hover-class="navigator-hover" @click="onClick(ctrlModel)">{{
- ctrlModel.isfeedback ? '待更新' : '更新' }}</view>
- </view>
- </view>
- <My_input ref="MyInput" />
- </view>
- </template>
- <script>
- export default {
- name: "mpattern",
- props: {
- fColor: {
- type: String,
- value: "#FFF"
- }
- },
- data() {
- return {
- ctrlModel: {}
- }
- },
- methods: {
- onClick(item) {
- this.$refs.MyInput.openInput(item)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .row {
- position: relative;
- display: flex;
- padding: 4px 6px 0;
- height: 60px;
- box-sizing: border-box;
- background: #fff;
- border-radius: 4px;
- margin-bottom: 5px;
- .box {
- width: 49%;
- .content {
- display: flex;
- margin-top: 10px;
- align-items: flex-end;
- .value {
- width: 0;
- flex: 1;
- color: #333;
- font-size: 16px;
- flex-shrink: 0;
- font-weight: bold;
- }
- .unit {
- font-size: 10px;
- color: #666;
- flex-shrink: 0;
- max-width: 50px;
- }
- }
- }
- .dot {
- position: absolute;
- right: 2px;
- top: 2px;
- width: 10px;
- height: 10px;
- background: #D9001B;
- border-radius: 50%;
- }
- }
- </style>
|