UNPKG

@cainiaofe/cn-ui-charts

Version:
17 lines 513 B
import { Button } from '@alife/cn-ui'; import copy from 'copy-to-clipboard'; import React from "react"; var IdSetter = function IdSetter(props) { var value = props === null || props === void 0 ? void 0 : props.value; return /*#__PURE__*/React.createElement("div", { style: { '-webkit-user-select': 'text' } }, value, " ", /*#__PURE__*/React.createElement(Button, { size: 'small', onClick: function onClick() { copy(value); } }, "\u590D\u5236")); }; export default IdSetter;