Skip to content

Commit c8dd955

Browse files
Merge branch 'feature/1.1.1' into develop
2 parents 6e2e0c9 + 479677d commit c8dd955

File tree

102 files changed

+3975
-1143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+3975
-1143
lines changed

CHANGELOG.md

Lines changed: 146 additions & 12 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pnpm i && pnpm playground
4242
4. 请求方法属性
4343
4. 事件与全局状态管理类
4444
```
45-
// scheams最终协议, 七猫低代码协议标准,待定
45+
// scheams最终协议, 低代码协议标准,待定
4646
// scheams格式例子
4747
{
4848
type: 'root', // root | page | container

apps/quantum-backend/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# port
22
VITE_PORT = 8090
33
VITE_APP_RELEASE_VERSION = 'vue-project-temp 1.0.0'
4-
VITE_GLOB_APP_TITLE = '七猫低代码平台'
4+
VITE_GLOB_APP_TITLE = '低代码平台'

apps/quantum-backend/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
"@qimao/quantum-editor": "workspace:*",
1919
"@qimao/quantum-sandbox": "workspace:*",
2020
"@ant-design/icons-vue": "6.1.0",
21-
"@q-front-npm-configs/vite": "~1.2.5-beta.1",
22-
"@q-front-npm/hooks": "~1.2.5-beta.1",
23-
"@q-front-npm/http": "~1.2.9-beta.2",
24-
"@q-front-npm/shared": "~1.2.4-beta.0",
25-
"@q-front-npm/vue3-antd-pc-ui": "~1.2.10-beta.5",
26-
"@q-front-npm/vue3-pc-ui": "~1.2.5-beta.5",
21+
"@q-front-npm-configs/vite": "~1.2.5",
22+
"@q-front-npm/hooks": "~1.2.5",
23+
"@q-front-npm/http": "~1.2.9",
24+
"@q-front-npm/shared": "~1.2.4",
25+
"@q-front-npm/vue3-antd-pc-ui": "~1.2.10",
26+
"@q-front-npm/vue3-pc-ui": "~1.2.5",
2727
"ant-design-vue": "~4.0.6",
2828
"axios": "0.27.2",
2929
"dayjs": "1.11.7",
3030
"element-resize-detector": "1.2.4",
31-
"lodash-es": "4.17.21",
31+
"lodash-es": "^4.17.21",
3232
"nprogress": "0.2.0",
3333
"pinia": "~2.1.6",
3434
"sortablejs": "^1.15.0",

apps/quantum-backend/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default defineComponent({
7474
} else {
7575
const _res = import('@/menus/index');
7676
const _list = (await _res).default;
77-
sysStore.initMenuData = '/quantum-editor/backend/manage/h5-manage';
77+
sysStore.initMenuData = '/quantum-editor/';
7878
sysStore.set_format_route_list(_list);
7979
sysStore.menuDataLoadingEnd = true;
8080
getSearchButton.value && get_net_router(sysStore.mainMenuData as Required<IMenuData>[]);

apps/quantum-backend/src/components/classic/sidebar/comp-list/index.vue

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
<template>
33
<div class="classic-sidebar-comp">
44
<a-tabs size="small">
5-
<a-tab-pane v-for="group in compList" :key="group.text" :tab="group.text">
5+
<a-tab-pane v-for="group in compList" :key="group.text" >
6+
<template #tab>
7+
<template v-if="group.helpMessage">
8+
<a-tooltip :title="group.helpMessage">
9+
<q-antd-icon type="InfoCircleOutlined" />
10+
</a-tooltip>
11+
</template>
12+
{{group.text}}
13+
</template>
614
<div class="classic-sidebar-comp-tab">
715
<template
816
v-for="item in group.children"
@@ -45,21 +53,33 @@ defineOptions({
4553
})
4654
4755
const services = inject<IServices>('services');
48-
const compList = computed(() => services?.componentService.getList())
56+
const compList = computed(() => services?.componentService.getList());
57+
const emits = defineEmits(['add'])
4958
5059
function addComp(item: IComponentItem) {
51-
const width = services?.editorService?.get('sandbox')?.designWidth
52-
services?.editorService.add({
53-
label: item.text,
54-
type: item.component,
55-
...{
56-
...item.data,
57-
style: {
58-
height: '',
59-
width: width
60-
}
61-
},
62-
})
60+
const itemType = item.itemType || 'add'
61+
const width = services?.editorService?.get('sandbox')?.designWidth;
62+
if (itemType === 'add') {
63+
services?.editorService.add({
64+
label: item.text,
65+
type: item.component,
66+
...{
67+
...item.data,
68+
style: {
69+
height: '',
70+
width: width
71+
}
72+
},
73+
})
74+
} else if (itemType === 'cover') {
75+
services?.editorService.update({
76+
type: 'root',
77+
field: 'root',
78+
...item.data
79+
})
80+
}
81+
emits('add')
82+
6383
}
6484
6585
</script>

apps/quantum-backend/src/components/classic/sidebar/index.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
<!-- -->
22
<template>
33
<div class="classic-sidebar">
4-
<comp-list></comp-list>
5-
<props-list></props-list>
4+
<comp-list @add="addComp"></comp-list>
5+
<props-list :isAdd="cnt"></props-list>
66
</div>
77
</template>
88

99
<script lang='ts' setup>
1010
import { IServices } from '@qimao/quantum-editor';
11-
import { PropType, provide, reactive } from 'vue'
11+
import { PropType, provide, reactive, ref } from 'vue'
1212
import CompList from './comp-list/index.vue'
1313
import PropsList from './props-list/index.vue'
1414
defineOptions({
1515
name: 'Sidebar'
16-
})
16+
});
1717
const props = defineProps({
1818
services: {
1919
type: Object as PropType<IServices>,
2020
default: () => {}
2121
}
2222
})
23-
provide('services', props.services)
23+
provide('services', props.services);
24+
25+
const cnt = ref(0)
26+
function addComp() {
27+
cnt.value++
28+
}
2429
2530
</script>
2631
<style lang='scss' scoped>

0 commit comments

Comments
 (0)