修改部分规则模块删除无用前端 新增前端界面
This commit is contained in:
42
modeler/src/components/container.ts
Normal file
42
modeler/src/components/container.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
import {defineComponent, h, type VNode} from 'vue';
|
||||
import {ConfigProvider, StyleProvider} from 'ant-design-vue'
|
||||
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
||||
|
||||
export const Container = defineComponent({
|
||||
name: 'Container',
|
||||
setup(_, {slots}) {
|
||||
|
||||
const renderContent = (): VNode => {
|
||||
const themeData = {
|
||||
algorithm: [],
|
||||
token: {
|
||||
// colorPrimary: '#0653bf',
|
||||
// borderPrimary: 'red',
|
||||
// colorPrimaryBg: '#e6f7ff', // 按钮等
|
||||
// colorBgContainer:'#0e2877', // 卡片等
|
||||
},
|
||||
components: {},
|
||||
}
|
||||
|
||||
return h(StyleProvider, {}, {
|
||||
default: () => h(ConfigProvider, {
|
||||
locale: zhCN,
|
||||
theme: themeData,
|
||||
}, {
|
||||
default: () => slots.default ? slots.default() : null
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
return () => renderContent()
|
||||
},
|
||||
});
|
||||
26
modeler/src/components/endpoint.ts
Normal file
26
modeler/src/components/endpoint.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
import {defineComponent, h} from 'vue';
|
||||
import {RouterView} from 'vue-router';
|
||||
import {Container} from './container'
|
||||
|
||||
/**
|
||||
* 应用入口组件,负责渲染路由视图
|
||||
* @name Entrypoint
|
||||
* @component
|
||||
*/
|
||||
export const Entrypoint = defineComponent({
|
||||
name: 'Entrypoint',
|
||||
setup() {
|
||||
return () => h(Container, {}, {
|
||||
default: () => h(RouterView)
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
29
modeler/src/components/wrapper.ts
Normal file
29
modeler/src/components/wrapper.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
import {defineComponent, h, type VNode} from 'vue';
|
||||
|
||||
export const Wrapper = defineComponent({
|
||||
name: 'Wrapper',
|
||||
setup(_, {slots}) {
|
||||
const renderContent = (): VNode => {
|
||||
return h('div', {
|
||||
class: [
|
||||
'ks-wrapper',
|
||||
'bg-wrapper',
|
||||
'w-full',
|
||||
'h-[100vh]'
|
||||
]
|
||||
}, {
|
||||
default: () => slots.default ? slots.default() : null
|
||||
})
|
||||
}
|
||||
return () => renderContent()
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user