File tree 4 files changed +10
-9
lines changed
packages/vue-simulator-renderer
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 3
3
"main" : " ./dist/vue-simulator-renderer.js" ,
4
4
"module" : " ./dist/vue-simulator-renderer.mjs" ,
5
5
"typings" : " ./dist/vue-simulator-renderer.d.ts" ,
6
- "version" : " 1.6.0-beta.0 " ,
6
+ "version" : " 1.6.0-beta.1 " ,
7
7
"keywords" : [
8
8
" vue" ,
9
9
" lowcode" ,
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ import {
18
18
onUnmounted ,
19
19
} from 'vue' ;
20
20
import { config } from '@knxcloud/lowcode-vue-renderer' ;
21
- import { IPublicEnumTransformStage as TransformStage } from '@alilc/lowcode-types/es/shell/enum' ;
22
21
import {
23
22
AssetLoader ,
24
23
buildUtils ,
25
24
buildComponents ,
26
25
getSubComponent ,
26
+ exportSchema ,
27
27
} from '@knxcloud/lowcode-utils' ;
28
28
import { Renderer , SimulatorRendererView } from './simulator-view' ;
29
29
import { Slot , Leaf , Page } from './buildin-components' ;
@@ -68,9 +68,7 @@ function createDocumentInstance(
68
68
69
69
const timestamp = ref ( Date . now ( ) ) ;
70
70
71
- const schema = computed (
72
- ( ) => document . export ( TransformStage . Render ) as IPublicTypeRootSchema
73
- ) ;
71
+ const schema = computed ( ( ) => exportSchema < IPublicTypeRootSchema > ( document ) ) ;
74
72
75
73
const checkInstanceMounted = ( instance : ComponentInstance ) : boolean => {
76
74
return instance . $ . isMounted ;
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ export default defineConfig({
11
11
formats : [ 'es' ] ,
12
12
} ,
13
13
rollupOptions : {
14
- external : [ ...Object . keys ( pkg . dependencies ) , ...Object . keys ( pkg . peerDependencies ) ] ,
14
+ external : [
15
+ ...Object . keys ( pkg . dependencies ) ,
16
+ ...Object . keys ( pkg . peerDependencies ) ,
17
+ ] . filter ( ( item ) => ! item . includes ( '@alilc' ) ) ,
15
18
output : {
16
19
assetFileNames ( { name } ) {
17
20
return name === 'style.css' ? 'vue-simulator-renderer.css' : name ! ;
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ module.exports = defineConfig({
48
48
} ) ;
49
49
50
50
config . resolve . alias . merge ( {
51
- '@knxcloud/hooks' : resolve ( '../hooks/src' ) ,
52
- '@knxcloud/utils' : resolve ( '../utils/src' ) ,
53
- '@knxcloud/vue-renderer' : resolve ( '../vue-renderer/src' ) ,
51
+ '@knxcloud/lowcode- hooks' : resolve ( '../hooks/src' ) ,
52
+ '@knxcloud/lowcode- utils' : resolve ( '../utils/src' ) ,
53
+ '@knxcloud/lowcode- vue-renderer' : resolve ( '../vue-renderer/src' ) ,
54
54
} ) ;
55
55
56
56
config . devServer . allowedHosts . add ( 'all' ) ;
You can’t perform that action at this time.
0 commit comments