<script>
export default {
  name: "wxcpConfig",
  model: {
    prop: "form",
    event: "input"
  },
  props: {
    form: Object,
    title: String
  },
  watch: {
    form: {
      handler() {
        this.$emit("input", this.form)
      },
      deep: true
    }
  }
}
</script>

<template>
  <ai-card :title="title" class="wxcpConfig">
    <template #content>
      <el-form-item label="默认首页">
        <el-input v-model="form.homePage" clearable placeholder="填写应用的文件名"/>
      </el-form-item>
      <el-form-item label="域名根目录(baseURL)">
        <el-input v-model="form.base" clearable placeholder="域名根目录"/>
      </el-form-item>
      <el-form-item label="是否启用水印">
        <el-checkbox v-model="form.waterMarker"/>
      </el-form-item>
      <el-form-item label="接口是否单服务">
        <el-checkbox v-model="form.isSingleService"/>
      </el-form-item>
      <el-form-item label="自定义登录">
        <el-checkbox v-model="form.customLogin"/>
      </el-form-item>
      <el-form-item label="开启百度流量">
        <el-checkbox v-model="form.hmt"/>
      </el-form-item>
    </template>
  </ai-card>
</template>

<style scoped lang="scss">
.wxcpConfig {
}
</style>
