'use strict';

require('../../../utils/index.js');
var runtime = require('../../../utils/props/runtime.js');

"use strict";
const selectGroupFormType = [
  "input",
  "select",
  "range-picker",
  "treeSelect"
];
const selectGroupData = runtime.buildProps({
  // buildProps和defineprops一样
  /**
   * @description 表单提示占位符
   */
  placeholder: {
    type: String
  },
  /**
   * @description 表单的字段 name
   */
  name: {
    type: String,
    required: true
  },
  /**
   * @description 右边表单的 value
   */
  value: {
    type: String,
    required: true
  },
  /**
   * @description SVG 图标的大小，size x size
   */
  showFormType: {
    type: String,
    values: selectGroupFormType
  },
  /**
   * @description 格式化属性例如tree/select
   */
  fieldNames: {
    type: runtime.definePropType(Object)
  },
  /**
   * @description select的options
   */
  options: {
    type: runtime.definePropType(Array)
  },
  /**
   * @description 左侧选择的options
   */
  list: {
    type: runtime.definePropType(Array)
  },
  /**
   * @description 是否在下拉框select最前面添加全部
   */
  noFirstAddAll: {
    type: Boolean
  }
});
const selectGroupProps = runtime.buildProps({
  /**
   * @description 选中select中的某一项（和value对应）
   */
  selectValue: {
    type: String
  },
  /**
   * @description 右边表单的 value
   */
  value: {
    type: [Array, String, Number, Boolean, Object],
    default: void 0
  },
  /**
   * @description select的options
   */
  data: {
    type: runtime.definePropType(Array),
    default: () => []
  }
});
const selectGroupEmits = {
  change: (selectV, value) => !!selectV || !!value,
  onSelectChange: (selectV, item) => !!selectV && !!item
  // 左侧selectchange
};
const LEFT_SELECT_MIN_WIDTH = 84;

exports.LEFT_SELECT_MIN_WIDTH = LEFT_SELECT_MIN_WIDTH;
exports.selectGroupData = selectGroupData;
exports.selectGroupEmits = selectGroupEmits;
exports.selectGroupFormType = selectGroupFormType;
exports.selectGroupProps = selectGroupProps;
//# sourceMappingURL=select-group.js.map
