diff --git a/react-ui/src/assets/img/dataset-version.png b/react-ui/src/assets/img/dataset-version.png new file mode 100644 index 00000000..c17d46cf Binary files /dev/null and b/react-ui/src/assets/img/dataset-version.png differ diff --git a/react-ui/src/components/DisabledInput/index.less b/react-ui/src/components/DisabledInput/index.less new file mode 100644 index 00000000..2eb28917 --- /dev/null +++ b/react-ui/src/components/DisabledInput/index.less @@ -0,0 +1,9 @@ +.disabled-input { + padding: 4px 11px; + color: rgba(0, 0, 0, 0.25); + font-size: @font-size-input; + background-color: rgba(0, 0, 0, 0.04); + border: 1px solid #d9d9d9; + border-radius: 6px; + cursor: not-allowed; +} diff --git a/react-ui/src/components/DisabledInput/index.tsx b/react-ui/src/components/DisabledInput/index.tsx new file mode 100644 index 00000000..a3c67b7d --- /dev/null +++ b/react-ui/src/components/DisabledInput/index.tsx @@ -0,0 +1,20 @@ +import { Typography } from 'antd'; +import styles from './index.less'; + +type DisabledInputProps = { + value?: any; + valuePropName?: string; +}; + +function DisabledInput({ value, valuePropName }: DisabledInputProps) { + const data = valuePropName ? value[valuePropName] : value; + return ( +