-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deDuplicated BuiltinComponentsMap (#1073)
- Loading branch information
1 parent
6d7303f
commit 15b6a9c
Showing
6 changed files
with
265 additions
and
10 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
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
23 changes: 19 additions & 4 deletions
23
packages/vue-generator/test/testcases/generator/expected/appdemo01/src/router/index.js
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 |
---|---|---|
@@ -1,11 +1,26 @@ | ||
import { createRouter, createWebHashHistory } from 'vue-router' | ||
const routes = [ | ||
{ path: '/', redirect: '/demopage' }, | ||
{ path: '/demopage', component: () => import('@/views/DemoPage.vue') }, | ||
{ path: '/createVm', component: () => import('@/views/createVm.vue') } | ||
{ | ||
name: '5bhD7p5FUsUOTFRN', | ||
path: 'demopage', | ||
component: () => import('@/views/DemoPage.vue'), | ||
children: [] | ||
}, | ||
{ | ||
name: 'NTJ4MjvqoVj8OVsc', | ||
path: 'createVm', | ||
component: () => import('@/views/createVm.vue'), | ||
children: [] | ||
}, | ||
{ | ||
name: '1737797330916', | ||
path: 'testCanvasRowCol', | ||
component: () => import('@/views/testCanvasRowCol.vue'), | ||
children: [] | ||
} | ||
] | ||
|
||
export default createRouter({ | ||
history: createWebHashHistory(), | ||
routes | ||
routes: [{ path: '/', children: routes }] | ||
}) |
51 changes: 51 additions & 0 deletions
51
.../vue-generator/test/testcases/generator/expected/appdemo01/src/views/testCanvasRowCol.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,51 @@ | ||
<template> | ||
<div> | ||
<canvas-row-col-container rowGap="20px"> | ||
<canvas-row rowGap="20px" colGap="20px"> | ||
<canvas-col rowGap="20px" colGap="20px" :grow="true" :shrink="true" widthType="auto"></canvas-col> | ||
<canvas-col rowGap="20px" colGap="20px" :grow="true" :shrink="true" widthType="auto"></canvas-col | ||
></canvas-row> | ||
<canvas-row rowGap="20px" colGap="20px"> | ||
<canvas-col rowGap="20px" colGap="20px" :grow="true" :shrink="true" widthType="auto"> | ||
<canvas-row rowGap="20px" colGap="20px"> | ||
<canvas-col rowGap="20px" colGap="20px" :grow="true" :shrink="true" widthType="auto"></canvas-col | ||
></canvas-row> | ||
<canvas-row rowGap="20px" colGap="20px"> | ||
<canvas-col rowGap="20px" colGap="20px" :grow="true" :shrink="true" widthType="auto"></canvas-col | ||
></canvas-row> | ||
<canvas-row rowGap="20px" colGap="20px"> | ||
<canvas-col | ||
rowGap="20px" | ||
colGap="20px" | ||
:grow="true" | ||
:shrink="true" | ||
widthType="auto" | ||
></canvas-col></canvas-row | ||
></canvas-col> | ||
<canvas-col rowGap="20px" colGap="20px" :grow="true" :shrink="true" widthType="auto"></canvas-col></canvas-row | ||
></canvas-row-col-container> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { CanvasRow, CanvasCol, CanvasRowColContainer } from '@opentiny/tiny-engine-builtin-component' | ||
import * as vue from 'vue' | ||
import { defineProps, defineEmits } from 'vue' | ||
import { I18nInjectionKey } from 'vue-i18n' | ||
const props = defineProps({}) | ||
const emit = defineEmits([]) | ||
const { t, lowcodeWrap, stores } = vue.inject(I18nInjectionKey).lowcode() | ||
const wrap = lowcodeWrap(props, { emit }) | ||
wrap({ stores }) | ||
const state = vue.reactive({ dataDisk: [1, 2, 3] }) | ||
wrap({ state }) | ||
</script> | ||
<style scoped> | ||
body { | ||
background-color: #eef0f5; | ||
margin-bottom: 80px; | ||
} | ||
</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