diff --git a/src/csseditor/editor/index.js b/src/csseditor/editor/index.js index 0b571017e..cb1a2705a 100644 --- a/src/csseditor/editor/index.js +++ b/src/csseditor/editor/index.js @@ -132,8 +132,6 @@ export default class CSSEditor extends UIElement { } [EVENT('refreshAll')] () { - // this.refs.$middle.toggleClass('open-right', editor.openRightPanel); - this.emit('refreshProjectList'); this.trigger('refreshAllSelectProject'); } diff --git a/src/csseditor/i18n/locales/ko_KR.js b/src/csseditor/i18n/locales/ko_KR.js index 8688e886c..e60a60ede 100644 --- a/src/csseditor/i18n/locales/ko_KR.js +++ b/src/csseditor/i18n/locales/ko_KR.js @@ -241,7 +241,7 @@ export default { 'timeline.value.editor.value': '값', 'timeline.value.editor.time': '시간', - 'timeline.value.editor.timing': '시간곡선', + 'timeline.value.editor.timing': '타이밍 함수', 'svgfilter.popup.title': 'SVG 필터', @@ -333,7 +333,7 @@ export default { 'flex.layout.editor.align-items': '아이템 정렬', 'flex.layout.editor.align-content': '컨텐츠 정렬', - 'flex.layout.item.property.title': '레이아웃 아이템', + 'flex.layout.item.property.title': '플렉스 아이템 설정', 'flex.layout.item.property.grow': '공간 비율', 'flex.layout.item.property.shrink': '축소 비율', 'flex.layout.item.property.basis': '초기 크기', @@ -352,7 +352,7 @@ export default { 'grid.box.editor.count': '반복', 'grid.box.editor.value': '크기', - 'grid.layout.item.property.title': '레이아웃 아이템', + 'grid.layout.item.property.title': '그리드 아이템 설정', 'grid.layout.item.property.column': '열', 'grid.layout.item.property.row': '행', 'grid.layout.item.property.start': '시작', diff --git a/src/csseditor/ui/property-editor/GridGapEditor.js b/src/csseditor/ui/property-editor/GridGapEditor.js new file mode 100644 index 000000000..3a4d63743 --- /dev/null +++ b/src/csseditor/ui/property-editor/GridGapEditor.js @@ -0,0 +1,77 @@ +import UIElement, { EVENT } from "../../../util/UIElement"; +import { LOAD } from "../../../util/Event"; +import { Length } from "../../../editor/unit/Length"; +import RangeEditor from "./RangeEditor"; + + +export default class GridGapEditor extends UIElement { + + components() { + return { + RangeEditor + } + } + + initState() { + return { + label: this.props.label, + value: this.parseValue(this.props.value) + } + } + + setValue (value) { + this.setState({ + list: this.parseValue(value) + }) + } + + parseValue (value) { + return Length.parse(value); + } + + getValue () { + return this.state.value + } + + modifyData() { + this.parent.trigger(this.props.onchange, this.props.key, this.getValue()) + } + + makeItem () { + return /*html*/` +