import '../../../utils/index.mjs';
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';

"use strict";
const selectGroupFormType = [
  "input",
  "select",
  "range-picker",
  "treeSelect"
];
const selectGroupData = 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: definePropType(Object)
  },
  /**
   * @description select的options
   */
  options: {
    type: definePropType(Array)
  },
  /**
   * @description 左侧选择的options
   */
  list: {
    type: definePropType(Array)
  },
  /**
   * @description 是否在下拉框select最前面添加全部
   */
  noFirstAddAll: {
    type: Boolean
  }
});
const selectGroupProps = buildProps({
  /**
   * @description 选中select中的某一项（和value对应）
   */
  selectValue: {
    type: String
  },
  /**
   * @description 右边表单的 value
   */
  value: {
    type: [Array, String, Number, Boolean, Object],
    default: void 0
  },
  /**
   * @description select的options
   */
  data: {
    type: definePropType(Array),
    default: () => []
  }
});
const selectGroupEmits = {
  change: (selectV, value) => !!selectV || !!value,
  onSelectChange: (selectV, item) => !!selectV && !!item
  // 左侧selectchange
};
const LEFT_SELECT_MIN_WIDTH = 84;

export { LEFT_SELECT_MIN_WIDTH, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps };
//# sourceMappingURL=select-group.mjs.map
