mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: rename MixinSetter to MixedSetter
This commit is contained in:
parent
d70081ce24
commit
0e9a740406
@ -4,6 +4,7 @@ import ExpressionSetter from './expression-setter';
|
||||
import ColorSetter from './color-setter';
|
||||
import JsonSetter from './json-setter';
|
||||
import EventsSetter from './events-setter';
|
||||
import MixedSetter from './mixed-setter';
|
||||
|
||||
export const StringSetter = {
|
||||
component: Input,
|
||||
@ -29,7 +30,12 @@ export const DateYearSetter = DatePicker.YearPicker;
|
||||
export const DateMonthSetter = DatePicker.MonthPicker;
|
||||
export const DateRangeSetter = DatePicker.RangePicker;
|
||||
|
||||
export { ExpressionSetter, EventsSetter };
|
||||
export {
|
||||
ExpressionSetter,
|
||||
EventsSetter,
|
||||
JsonSetter,
|
||||
MixedSetter,
|
||||
};
|
||||
|
||||
const builtinSetters: any = {
|
||||
StringSetter,
|
||||
@ -51,6 +57,7 @@ const builtinSetters: any = {
|
||||
EventsSetter,
|
||||
ColorSetter,
|
||||
JsonSetter,
|
||||
MixedSetter,
|
||||
};
|
||||
|
||||
registerSetter(builtinSetters);
|
||||
|
||||
13
packages/editor-setters/src/mixed-setter/index.scss
Normal file
13
packages/editor-setters/src/mixed-setter/index.scss
Normal file
@ -0,0 +1,13 @@
|
||||
// mixed
|
||||
.lowcode-setter-mixed > * {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.lowcode-setter-mixed {
|
||||
width: 86%;
|
||||
}
|
||||
.lowcode-setter-mixed .next-input {
|
||||
width: 100%;
|
||||
}
|
||||
.lowcode-setter-mixed .next-select-trigger {
|
||||
width: 100%;
|
||||
}
|
||||
@ -8,8 +8,8 @@ import { generateI18n } from './locale/utils';
|
||||
import zhCN from './locale/zh-CN';
|
||||
import './index.scss';
|
||||
|
||||
export default class Mixin extends PureComponent {
|
||||
static displayName = 'Mixin';
|
||||
export default class Mixed extends PureComponent {
|
||||
static displayName = 'Mixed';
|
||||
static propTypes = {
|
||||
locale: PropTypes.string,
|
||||
messages: PropTypes.object,
|
||||
@ -147,7 +147,7 @@ export default class Mixin extends PureComponent {
|
||||
let TargetNode = this.typeMap[this.state.type]?.component || 'div';
|
||||
let targetProps = this.typeMap[this.state.type]?.props || {};
|
||||
let tarStyle = { position: 'relative', ...style };
|
||||
let classes = classNames(className, 'lowcode-setter-mixin');
|
||||
let classes = classNames(className, 'lowcode-setter-mixed');
|
||||
|
||||
return (
|
||||
<div style={tarStyle} className={classes} >
|
||||
@ -1,13 +0,0 @@
|
||||
// mixin
|
||||
.lowcode-setter-mixin > * {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.lowcode-setter-mixin {
|
||||
width: 86%;
|
||||
}
|
||||
.lowcode-setter-mixin .next-input {
|
||||
width: 100%;
|
||||
}
|
||||
.lowcode-setter-mixin .next-select-trigger {
|
||||
width: 100%;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user