| | |
| | | <!-- 右侧运算符 --> |
| | | <el-col :span="10"> |
| | | <el-card |
| | | class="box-card" |
| | | style="height: 33vh;"> |
| | | class="box-card formula-box-card" |
| | | style="height: 35vh;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span style="font-size: medium">运算符</span> |
| | | </div> |
| | | <div class="text item"> |
| | | <div class="formula-editor-total"> |
| | | <div class="formula-editor"> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '7' })" |
| | | > |
| | | 7 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '8' })" |
| | | > |
| | | 8 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '9' })" |
| | | > |
| | | 9 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '/' })" |
| | | > |
| | | /</button |
| | | ><br /> |
| | | /</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '4' })" |
| | | > |
| | | 4 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '5' })" |
| | | > |
| | | 5 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '6' })" |
| | | > |
| | | 6 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '*' })" |
| | | > |
| | | *</button |
| | | ><br /> |
| | | *</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '1' })" |
| | | > |
| | | 1 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '2' })" |
| | | > |
| | | 2 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '3' })" |
| | | > |
| | | 3 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '>' })" |
| | | > |
| | | -</button |
| | | ><br /> |
| | | -</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '0' })" |
| | | > |
| | | 0 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '00' })" |
| | | > |
| | | 00 |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '.' })" |
| | | > |
| | | . |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '+' })" |
| | | > |
| | | +</button |
| | | ><br /> |
| | | +</el-button> |
| | | <br/> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '->' })" |
| | | > |
| | | -> |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '==' })" |
| | | > |
| | | == |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '(' })" |
| | | > |
| | | ( |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: ')' })" |
| | | > |
| | | )</button |
| | | ><br /> |
| | | )</el-button> |
| | | <br /> |
| | | </div> |
| | | <div class="one"> |
| | | <button |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '<' })" |
| | | > |
| | | < |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '>' })" |
| | | > |
| | | > |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '<=' })" |
| | | > |
| | | <= |
| | | </button> |
| | | <button |
| | | </el-button> |
| | | <el-button type="primary" |
| | | class="formula-editor-btn-sm" |
| | | @click="dbClickAddContent({ formula: '>=' })" |
| | | > |
| | | >= |
| | | </button> |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style> |
| | | |
| | | .formula-box-card > .el-card__body { |
| | | padding: 0px; |
| | | height: 85%; |
| | | width: 100%; |
| | | } |
| | | |
| | | .formula-editor-total { |
| | | /* margin-top: 3px; */ |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | |
| | | .formula-editor{ |
| | | margin-top: -15px; |
| | | margin-left: 4vw; |
| | | /*设置弹性盒子*/ |
| | | display: flex; |
| | | /*子元素以竖列排列,一共有6列*/ |
| | | flex-direction:column; |
| | | width: 310px; |
| | | height: 185px; |
| | | width: 100%; |
| | | height: 100%; |
| | | /*左右均匀排列*/ |
| | | justify-content: space-around; |
| | | /*上下均匀排列*/ |
| | |
| | | display: flex; |
| | | /*以行排列*/ |
| | | flex-direction: row; |
| | | width: 223px; |
| | | height: 80px; |
| | | width: auto; |
| | | height: auto; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | |
| | | .formula-editor-btn-sm { |
| | | width: 55px; |
| | | height: 29px; |
| | | background: rgb(153, 214, 240); |
| | | border-radius: 10%; |
| | | width: 4.5vw; |
| | | height: 4vh; |
| | | margin-left: 10px; |
| | | text-align: center; |
| | | line-height: 0; |
| | | /* background: rgb(153, 214, 240); */ |
| | | background: #87c2fc; |
| | | /* border-radius: 10%; */ |
| | | } |
| | | |
| | | </style> |
| | | |