Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

831 B
Raw Blame
<template>
  <div v-if="props.value" class="checkbox checkboxConfirm" @click="method.clickCheckBox()">
    <v-icon style="font-size: 12px"> mdi-check </v-icon>
  </div>
  <div v-else class="checkbox" @click="method.clickCheckBox()"></div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'

const emit = defineEmits(['update:value'])

const props = defineProps<{
  value: boolean
}>()

const method = reactive({
  clickCheckBox: () => {
    emit('update:value', !props.value)
  }
})
</script>

<style scoped lang="less">
.checkbox {
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #f8f8f9;
  display: flex;
  justify-content: center;
  align-items: center;
}
.checkboxConfirm {
  background-color: #409eff;
  color: #fff;
  border: 1px solid #409eff;
}
</style>