Browse Source

eslint 验证错误

master
王梦远 2 weeks ago
parent
commit
38fd53b467
  1. 15
      src/views/formula/index.vue

15
src/views/formula/index.vue

@ -2,20 +2,17 @@
import FormulaConfig from 'components/formula/FormulaConfig.vue' import FormulaConfig from 'components/formula/FormulaConfig.vue'
import FormulaTable from 'components/formula/FormulaTable.vue' import FormulaTable from 'components/formula/FormulaTable.vue'
import { ref } from 'vue' import { ref } from 'vue'
import { Plus } from '@element-plus/icons-vue'
// //
const formRef = ref(null)
const formRef = ref()
const onAddFormula = () => { const onAddFormula = () => {
selectedIndexRest() selectedIndexRest()
if (formRef.value) {
formRef.value.addFormula() //
}
formRef.value?.formRef.value.addFormula()
} }
const tableRef = ref(null)
const tableRef = ref()
const selectedIndexRest = () => { const selectedIndexRest = () => {
if (tableRef.value) {
tableRef.value.selectedIndexRest() //
}
tableRef.value?.tableRef.value.selectedIndexRest() //
} }
</script> </script>
@ -43,7 +40,7 @@ const selectedIndexRest = () => {
</div> </div>
</div> </div>
<div class="formula-right"> <div class="formula-right">
<FormulaConfig ref="formRef" type="formula" formula-name-visible="true" />
<FormulaConfig ref="formRef" type="formula" :formula-name-visible="true" />
</div> </div>
</main> </main>
</div> </div>

Loading…
Cancel
Save