import { CStringOnlySetter } from "../_setters";
import { createOnly } from "../_utils/utils";
import { t } from "../../src/locale";

// 全局唯一的id
export default {
  name: 'node_key_id',
  title: {
    label: t('setter.onlyId'),
    tip: t('setter.onlyTip')
  },
  setter: CStringOnlySetter,
  defaultValue: function defaultValue() {
    return createOnly();
  }
};