<commit_before><template lang="pug">
.c-cascader(
  @click="isOpen = true"
  )
  .cascader-context
    c-input(
      :placeholder="placeholder"
      v-model="showValue"
      width="normal"
      :size="size"
      :disabled="disabled"
      )
    c-icon.c-cascader__icon(name="chevron-down")
  .cascader-dropmenu(
    :class="className"
    )
    template(v-if="isOpen")
      Menu(
        :parentMenu="parentMenu"
        :options="optionList"
        :labelKey="labelKey"
        :valueKey="valueKey"
        :childrenKey="childrenKey"
        :showAllLevel="showAllLevel"
        :changeOnSelect="changeOnSelect"
        :loadChildren="loadChildren"
      )
</template>

<script>
import './index.css'
import Menu from './menu.vue'

export default {
  name: 'c-cascader',
  components: {
    Menu
  },
  provide () {
    return {
      '$cascader': this
    }
  },
  props: {
    value: Array,
    placeholder: String,
    disabled: Boolean,
    separator: {
      type: String,
      default: '/'
    },
    changeOnSelect: {
      type: Boolean,
      default: false
    },
    showAllLevel: {
      type: Boolean,
      default: true
    },
    size: String,<commit_msg>change cascader menu to c-cascader-menu<commit_after><template lang="pug">
.c-cascader(
  @click="isOpen = true"
  )
  .cascader-context
    c-input(
      :placeholder="placeholder"
      v-model="showValue"
      width="normal"
      :size="size"
      :disabled="disabled"
      )
    c-icon.c-cascader__icon(name="chevron-down")
  .cascader-dropmenu(
    :class="className"
    )
    template(v-if="isOpen")
      c-cascader-menu(
        :parentMenu="parentMenu"
        :options="optionList"
        :labelKey="labelKey"
        :valueKey="valueKey"
        :childrenKey="childrenKey"
        :showAllLevel="showAllLevel"
        :changeOnSelect="changeOnSelect"
        :loadChildren="loadChildren"
      )
</template>

<script>
import './index.css'
import Menu from './menu.vue'

export default {
  name: 'c-cascader',
  components: {
    'c-cascader-menu': Menu
  },
  provide () {
    return {
      '$cascader': this
    }
  },
  props: {
    value: Array,
    placeholder: String,
    disabled: Boolean,
    separator: {
      type: String,
      default: '/'
    },
    changeOnSelect: {
      type: Boolean,
      default: false
    },
    showAllLevel: {
      type: Boolean,
      default: true
    },
    size: String,
{'fraction_non_alphanumeric': 0.14291632145816072, 'fraction_numerical': 0.0, 'mean_word_length': 2.335635359116022, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2956261', 'n_tokens_mistral': 808, 'n_tokens_neox': 802, 'n_words': 136}