-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from ZhQuella/main-feat/workflow
feat(feat): "优化页面设计器"
- Loading branch information
Showing
5 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
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
38 changes: 38 additions & 0 deletions
38
packages/grow_designer/src/packages/GDesigner/components/eleOptions/index.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,38 @@ | ||
<template> | ||
<div class="h-full flex flex-col"> | ||
<h5 class="text-[14px] p-[10px] bg-BG_COLOR2">组件配置</h5> | ||
<div class="px-[5px] shrink-0 grow-0"> | ||
<ElTabs v-model="tabModel" stretch> | ||
<ElTabPane label="属性" name="props"/> | ||
<ElTabPane label="样式" name="styles"/> | ||
<ElTabPane label="事件" name="events"/> | ||
<ElTabPane label="高级" name="renderArgument"/> | ||
</ElTabs> | ||
</div> | ||
<ElScrollbar class="h-full flex-1"> | ||
<p class="p-[10px] text-center">用爱发电中...😊</p> | ||
{{ config[tabModel][activeUUID] }} | ||
</ElScrollbar> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineOptions({ name: "eleOptions" }); | ||
import { toRefs, ref } from "vue"; | ||
const props = defineProps({ | ||
activeUUID: { | ||
type: String, | ||
required: true | ||
}, | ||
config: { | ||
type: Object, | ||
required: true | ||
} | ||
}); | ||
const { activeUUID, config } = toRefs(props); | ||
const tabModel = ref("props"); | ||
// console.log( activeUUID, config); | ||
</script> |
22 changes: 22 additions & 0 deletions
22
packages/grow_designer/src/packages/GDesigner/components/pageOptions/index.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,22 @@ | ||
<template> | ||
<div class="h-full flex flex-col"> | ||
<h5 class="text-[14px] p-[10px] bg-BG_COLOR2">页面配置</h5> | ||
<div class="px-[5px] shrink-0 grow-0"> | ||
<ElTabs v-model="tabModel" stretch> | ||
<ElTabPane label="属性" name="props"/> | ||
<ElTabPane label="高级" name="renderArgument"/> | ||
</ElTabs> | ||
</div> | ||
<ElScrollbar class="h-full flex-1"> | ||
<p class="p-[10px] text-center">用爱发电中...😊</p> | ||
</ElScrollbar> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineOptions({ name: "pageOptions" }); | ||
import { ref } from "vue"; | ||
const tabModel = ref("props"); | ||
</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
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