import { CStringOnlySetter } from "../_setters";
import { t } from "../../src/locale";
import { uuid } from "../_utils/utils";
export default {
  name: 'componentKey',
  title: {
    label: t('loop-box.key_m1Tbsriyh12Z'),
    tip: t('loop-box.key_1srzDzyjKm9i')
  },
  isRequired: true,
  propType: 'string',
  setter: CStringOnlySetter,
  defaultValue: function defaultValue() {
    return "cr_" + uuid();
  },
  supportVariable: false
};