Skip to content

Commit

Permalink
remove checkbox componant
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Oct 16, 2021
1 parent d6848d8 commit 03dce26
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 92 deletions.
Empty file modified lib/gitm.js
100644 → 100755
Empty file.
87 changes: 0 additions & 87 deletions ui/src/components/checkbox/index.vue

This file was deleted.

3 changes: 0 additions & 3 deletions ui/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import v3Split from './split/index.vue'
import v3Button from './button/index.vue'
import v3Checkbox from './checkbox/index.vue'
import v3Collapse from './collapse/index.vue'
import v3CollapseItem from './collapse-item/index.vue'
import v3Box from './box/index.vue'

const install = app => {
app.component(v3Split.name, v3Split)
app.component(v3Button.name, v3Button)
app.component(v3Checkbox.name, v3Checkbox)
app.component(v3Collapse.name, v3Collapse)
app.component(v3CollapseItem.name, v3CollapseItem)
app.component(v3Box.name, v3Box)
Expand All @@ -18,7 +16,6 @@ export default {
install,
v3Split,
v3Button,
v3Checkbox,
v3Collapse,
v3CollapseItem
}
3 changes: 2 additions & 1 deletion ui/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createApp } from 'vue'
import { ElProgress, ElSkeleton, ElRow, ElCol, ElButton, ElCarousel, ElForm, ElInput, ElSelect, ElTooltip, ElMessage, ElMessageBox } from 'element-plus'
import { ElProgress, ElSkeleton, ElCheckbox, ElRow, ElCol, ElButton, ElCarousel, ElForm, ElInput, ElSelect, ElTooltip, ElMessage, ElMessageBox } from 'element-plus'
import 'element-plus/theme-chalk/index.css'
// @ts-ignore
import plugins from '@/plugins'
Expand All @@ -16,6 +16,7 @@ app.config.globalProperties.$ELEMENT = { size: 'small', zIndex: 5000 }

app.use(ElProgress)
app.use(ElSkeleton)
app.use(ElCheckbox)
app.use(ElRow)
app.use(ElCol)
app.use(ElButton)
Expand Down
3 changes: 2 additions & 1 deletion ui/src/views/control/comp/command.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<li v-for="option in data.options" :key="option.long">
{{ option.description }}
<el-input v-if="option.optional" v-model="option.value" :key="option.long + '-option'" :placeholder="option.required ? '必填' : '选填'"></el-input>
<v3-checkbox v-else v-model="option.value" :key="option.long + '-option-check'"></v3-checkbox>
<el-checkbox v-else v-model="option.value" :key="option.long + '-option-check'"></el-checkbox>
</li>
</ul>
</div>
Expand Down Expand Up @@ -40,6 +40,7 @@ const props = defineProps({
})
// 数据
const data = reactive(toRaw(props.value))
console.log(888, toRaw(props.value))
data.options.forEach(option => {
if (!('value' in option)) option.value = null
})
Expand Down

0 comments on commit 03dce26

Please sign in to comment.