-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,663 additions
and
8 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<div class="icon-color-editor-box"> | ||
<el-form-item label="图标颜色:"> | ||
<color-picker-custom-vue v-model="widgetItem.css.iconColor"></color-picker-custom-vue> | ||
</el-form-item> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import useSelectWidgetItem from '../hooks/useSelectWidgetItem'; | ||
import ColorPickerCustomVue from '../components/ColorPicker/ColorPickerCustom.vue'; | ||
const props = defineProps<{ | ||
id: string; | ||
pageIndex: number; | ||
}>(); | ||
// 选中的widgetItem | ||
const { widgetItem } = useSelectWidgetItem(props.id, props.pageIndex); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div class="icon-size-editor-box"> | ||
<el-form-item label="图标大小:"> | ||
<el-input-number v-model="widgetItem.css.iconSize" :min="0" /> | ||
<span class="unit">像素</span> | ||
</el-form-item> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import useSelectWidgetItem from '../hooks/useSelectWidgetItem'; | ||
const props = defineProps<{ | ||
id: string; | ||
pageIndex: number; | ||
}>(); | ||
// 选中的widgetItem | ||
const { widgetItem } = useSelectWidgetItem(props.id, props.pageIndex); | ||
</script> | ||
<style lang="scss" scoped> | ||
.icon-size-editor-box { | ||
.unit { | ||
margin-left: 10px; | ||
color: #929292; | ||
letter-spacing: 2px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/views/LegoDesigner/widgets/icon/LegoDesignIconList.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div class="lego-design-icon-box"> | ||
<svg-icon :icon-name="widgetData?.icon" color="#74a274" size="25px"></svg-icon> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import { IWidget } from '../../types'; | ||
interface IWidgetItem { | ||
widgetData: IWidget | null; // 模块数据 | ||
} | ||
withDefaults(defineProps<IWidgetItem>(), { | ||
widgetData: null | ||
}); | ||
</script> | ||
<style lang="scss" scoped> | ||
.lego-design-icon-box { | ||
width: 40px; | ||
height: 40px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
</style> |
37 changes: 37 additions & 0 deletions
37
src/views/LegoDesigner/widgets/icon/LegoDesignIconRender.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div class="lego-design-icon-box"> | ||
<svg-icon | ||
:icon-name="widgetData?.icon" | ||
:color="widgetData?.css.iconColor" | ||
:size="widgetData?.css.iconSize + 'px'" | ||
></svg-icon> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import { IWidget } from '../../types'; | ||
interface IWidgetItem { | ||
widgetData: IWidget | null; // 模块数据 | ||
} | ||
const props = withDefaults(defineProps<IWidgetItem>(), { | ||
widgetData: null | ||
}); | ||
</script> | ||
<style lang="scss" scoped> | ||
.lego-design-icon-box { | ||
width: v-bind('props.widgetData?.css.width + "px"'); | ||
height: v-bind('props.widgetData?.css.height + "px"'); | ||
border-style: v-bind('props.widgetData?.css.borderStyle'); | ||
border-width: v-bind('props.widgetData?.css.borderWidth + "px"'); | ||
padding: v-bind('props.widgetData?.css.padding.top + "px"') | ||
v-bind('props.widgetData?.css.padding.right + "px"') | ||
v-bind('props.widgetData?.css.padding.bottom + "px"') | ||
v-bind('props.widgetData?.css.padding.left + "px"'); | ||
border-color: v-bind('props.widgetData?.css.borderColor'); | ||
overflow: hidden; | ||
background-color: v-bind('props.widgetData?.css.backgroundColor'); | ||
display: flex; | ||
align-items: center; | ||
justify-content: v-bind('props.widgetData?.css.textAlign'); | ||
} | ||
</style> |
Oops, something went wrong.
c31e35c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
resume-design – ./
resume-design-kappa.vercel.app