diff --git a/packages/editor/src/assets/images/color.svg b/packages/editor/src/assets/images/color.svg new file mode 100644 index 0000000..15a8164 --- /dev/null +++ b/packages/editor/src/assets/images/color.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/editor/src/assets/images/icons/index.ts b/packages/editor/src/assets/images/icons/index.ts deleted file mode 100644 index 7537450..0000000 --- a/packages/editor/src/assets/images/icons/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export const svgs = import.meta.glob('./*.svg', { eager: true, as: 'raw' }) -export const IconProps = { - name: String, - color: String, - size: [String, Number] -} - -export const getIcon = (name?: string) => { - if (!name) return '' - return svgs[`./${name}.svg`] -} diff --git a/packages/editor/src/components/layout/components/Border.vue b/packages/editor/src/components/layout/components/Border.vue index 8bac9b1..8c6e043 100644 --- a/packages/editor/src/components/layout/components/Border.vue +++ b/packages/editor/src/components/layout/components/Border.vue @@ -1,17 +1,5 @@ - - diff --git a/packages/editor/src/components/layout/components/ColorPicker.vue b/packages/editor/src/components/layout/components/ColorPicker.vue index 2f1df5f..9d1836e 100644 --- a/packages/editor/src/components/layout/components/ColorPicker.vue +++ b/packages/editor/src/components/layout/components/ColorPicker.vue @@ -1,8 +1,12 @@ diff --git a/packages/editor/src/components/layout/components/InputNumber.vue b/packages/editor/src/components/layout/components/InputNumber.vue index 9d671d7..e6aaca1 100644 --- a/packages/editor/src/components/layout/components/InputNumber.vue +++ b/packages/editor/src/components/layout/components/InputNumber.vue @@ -1,5 +1,5 @@ + diff --git a/packages/editor/src/components/layout/info/ElementStyle.vue b/packages/editor/src/components/layout/info/ElementStyle.vue index 3d17cfb..d30cd52 100644 --- a/packages/editor/src/components/layout/info/ElementStyle.vue +++ b/packages/editor/src/components/layout/info/ElementStyle.vue @@ -22,7 +22,7 @@ 透明度: - + + + + + + - - - -
文本:
- @@ -52,6 +52,7 @@ import TextStyle from './TextStyle.vue' import { useEditorStore } from '@es-drager/editor/src/store' import Background from '../components/Background.vue' import Border from '../components/Border.vue' +import Shadow from '../components/Shadow.vue' const store = useEditorStore() const itemList = ref([ @@ -121,9 +122,29 @@ function onChange(key: string, value: any) { .el-checkbox-group, .el-checkbox-button__inner { width: 100%; } - .el-color-picker.el-tooltip__trigger, + .el-color-picker.el-tooltip__trigger { + width: 100%; + } .el-color-picker__trigger { + justify-content: flex-start; width: 100%; + &:after { + content: ''; + display: inline-block; + width: 20px; + height: 20px; + background: url('../../../assets/images/color.svg') no-repeat; + background-size: contain; + margin-left: 4px; + } + .el-color-picker__color { + width: calc(100% - 10px); + } + } + + .el-slider { + padding-right: 10px; + --el-slider-button-size: 13px; } } diff --git a/packages/editor/src/components/layout/info/Info.vue b/packages/editor/src/components/layout/info/Info.vue index 8f5a1d8..96ed4bc 100644 --- a/packages/editor/src/components/layout/info/Info.vue +++ b/packages/editor/src/components/layout/info/Info.vue @@ -57,6 +57,8 @@ watch(() => store.current.selected, () => { } .es-info-style { padding: 10px; + height: calc(100% - 40px); + overflow-y: auto; } .es-info-tabs { display: flex;