mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
[improvement][semantic-fe] Add permission control to the action buttons for the main domain; apply high sensitivity filtering to the authorization of metrics/dimensions. [improvement][semantic-fe] Optimize the editing mode in the dimension/metric/datasource components to use the modelId stored in the database for data, instead of relying on the data from the state manager.
26 lines
544 B
TypeScript
26 lines
544 B
TypeScript
import React from 'react';
|
|
|
|
type Props = {
|
|
title: string;
|
|
labelStyles?: CSSStyleSheet;
|
|
};
|
|
|
|
const FormLabelRequire: React.FC<Props> = ({ title, labelStyles = {} }) => {
|
|
return (
|
|
<>
|
|
<div className="ant-col ant-form-item-label" style={{ padding: 0 }}>
|
|
<label
|
|
htmlFor="description"
|
|
className="ant-form-item-required"
|
|
title={title}
|
|
style={{ fontSize: '16px', ...labelStyles }}
|
|
>
|
|
{title}
|
|
</label>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default FormLabelRequire;
|