| | |
| | | }, |
| | | "dependencies": { |
| | | "@ant-design/icons-vue": "^7.0.1", |
| | | "@form-create/designer": "^3.2.11", |
| | | "@form-create/element-ui": "^3.2.25", |
| | | "@tinymce/tinymce-vue": "^6.0.1", |
| | | "@vben/access": "workspace:*", |
| | | "@vben/common-ui": "workspace:*", |
| | |
| | | "crypto-js": "^4.2.0", |
| | | "dayjs": "catalog:", |
| | | "echarts": "^5.5.1", |
| | | "element-plus": "^2.10.2", |
| | | "jsencrypt": "^3.3.2", |
| | | "lodash-es": "^4.17.21", |
| | | "pinia": "catalog:", |
| | |
| | | import '@vben/styles/antd'; |
| | | |
| | | import { useTitle } from '@vueuse/core'; |
| | | |
| | | import ElementPlus from 'element-plus'; |
| | | import 'element-plus/dist/index.css'; // æ ·å¼æä»¶ |
| | | import { setupGlobalComponent } from '#/components/global'; |
| | | import { $t, setupI18n } from '#/locales'; |
| | | |
| | | import { initComponentAdapter } from './adapter/component'; |
| | | import App from './app.vue'; |
| | | import { router } from './router'; |
| | | |
| | | import formCreate from '@form-create/element-ui'; |
| | | import FcDesigner from '@form-create/designer'; |
| | | async function bootstrap(namespace: string) { |
| | | // åå§åç»ä»¶éé
å¨ |
| | | await initComponentAdapter(); |
| | |
| | | |
| | | // é
ç½®Motionæä»¶ |
| | | app.use(MotionPlugin); |
| | | |
| | | app.use(ElementPlus); |
| | | app.use(formCreate); |
| | | app.use(FcDesigner); |
| | | // å¨ææ´æ°æ é¢ |
| | | watchEffect(() => { |
| | | if (preferences.app.dynamicTitle) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <fc-designer ref="designer" /> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref } from 'vue'; |
| | | |
| | | const designer = ref(); |
| | | |
| | | // è·å表å JSON é
ç½® |
| | | const getJson = () => { |
| | | console.log(designer.value.getJson()); |
| | | }; |
| | | |
| | | // å 载已æé
ç½® |
| | | const loadJson = (json) => { |
| | | designer.value.setJson(json); |
| | | }; |
| | | </script> |