Merge branch 'master' of git://192.168.5.5/web/flow_web
| | |
| | | import configArcoStyleImportPlugin from './plugin/arcoStyleImport'; |
| | | |
| | | export default defineConfig({ |
| | | base: './', |
| | | plugins: [ |
| | | vue(), |
| | | vueJsx(), |
| | |
| | | onBeforeMount(() => { |
| | | url.value = `${ |
| | | defaultSettings.RAGFlowUrl ? defaultSettings.RAGFlowUrl : window.location.origin |
| | | }/sub/RAGFlow/flow?${localStorage.Authorization}`; |
| | | }/rag/flow?${localStorage.Authorization}`; |
| | | }); |
| | | </script> |
| | | |
| | |
| | | <template> |
| | | <vue-office-docx |
| | | <!-- <vue-office-docx |
| | | :src="previewSrc" |
| | | :style="comStyle" |
| | | @rendered="renderedHandler" |
| | | @error="errorHandler" |
| | | /> |
| | | /> --> |
| | | </template> |
| | | |
| | | <script setup> |
| | | // 获取父组件传递的资源url |
| | | const props = defineProps({ |
| | | previewSrc: { |
| | | type: String, |
| | | required: false, |
| | | default: () => '', |
| | | }, |
| | | }); |
| | | //引入VueOfficeDocx组件相关 |
| | | // import VueOfficeDocx from '@vue-office/docx'; |
| | | // import '@vue-office/docx/lib/index.css'; |
| | | // 获取父组件传递的资源url |
| | | // const props = defineProps({ |
| | | // previewSrc: { |
| | | // type: String, |
| | | // required: false, |
| | | // default: () => '', |
| | | // }, |
| | | // }); |
| | | // //引入VueOfficeDocx组件相关 |
| | | // import VueOfficeDocx from '@vue-office/docx'; |
| | | // import '@vue-office/docx/lib/index.css'; |
| | | |
| | | const comStyle = { |
| | | width: '100%', |
| | | height: '100%', |
| | | }; |
| | | // const comStyle = { |
| | | // width: '100%', |
| | | // height: '100%', |
| | | // }; |
| | | |
| | | const renderedHandler = () => { |
| | | console.log('rendered'); |
| | | }; |
| | | const errorHandler = (err) => { |
| | | console.log('error', err); |
| | | }; |
| | | // const renderedHandler = () => { |
| | | // console.log('rendered'); |
| | | // }; |
| | | // const errorHandler = (err) => { |
| | | // console.log('error', err); |
| | | // }; |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .aUpload { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | .aUpload { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <vue-office-excel |
| | | <!-- <vue-office-excel |
| | | :src="previewSrc" |
| | | :style="comStyle" |
| | | @rendered="renderedHandler" |
| | | @error="errorHandler" |
| | | /> |
| | | /> --> |
| | | </template> |
| | | |
| | | <script setup> |
| | | // 获取父组件传递的资源url |
| | | const props = defineProps({ |
| | | previewSrc: { |
| | | type: String, |
| | | required: false, |
| | | default: () => '', |
| | | }, |
| | | }); |
| | | //引入VueOfficeExcel组件相关 |
| | | // import VueOfficeExcel from '@vue-office/excel'; |
| | | // import '@vue-office/excel/lib/index.css'; |
| | | // 获取父组件传递的资源url |
| | | // 引入VueOfficeExcel组件相关 |
| | | // import VueOfficeExcel from "@vue-office/excel"; |
| | | // import "@vue-office/excel/lib/index.css"; |
| | | |
| | | const comStyle = { |
| | | width: '100%', |
| | | height: '100%', |
| | | }; |
| | | // const props = defineProps({ |
| | | // previewSrc: { |
| | | // type: String, |
| | | // required: false, |
| | | // default: () => "", |
| | | // }, |
| | | // }); |
| | | |
| | | const renderedHandler = () => { |
| | | console.log('rendered'); |
| | | }; |
| | | const errorHandler = (err) => { |
| | | console.log('error', err); |
| | | }; |
| | | // const comStyle = { |
| | | // width: "100%", |
| | | // height: "100%", |
| | | // }; |
| | | |
| | | // const renderedHandler = () => { |
| | | // console.log("rendered"); |
| | | // }; |
| | | // const errorHandler = (err) => { |
| | | // console.log("error", err); |
| | | // }; |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .aUpload { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | .aUpload { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | </style> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | // 获取父组件传递的资源url |
| | | const props = defineProps({ |
| | | previewSrc: { |
| | | type: String, |
| | | required: false, |
| | | default: () => '', |
| | | }, |
| | | }); |
| | | //引入VueOfficeExcel组件相关 |
| | | // import VueOfficeExcel from '@vue-office/excel'; |
| | | // import '@vue-office/excel/lib/index.css'; |
| | | // 获取父组件传递的资源url |
| | | // const props = defineProps({ |
| | | // previewSrc: { |
| | | // type: String, |
| | | // required: false, |
| | | // default: () => '', |
| | | // }, |
| | | // }); |
| | | // //引入VueOfficeExcel组件相关 |
| | | // import VueOfficeExcel from '@vue-office/excel'; |
| | | // import '@vue-office/excel/lib/index.css'; |
| | | |
| | | const comStyle = { |
| | | width: '100%', |
| | | height: '100%', |
| | | }; |
| | | // const comStyle = { |
| | | // width: '100%', |
| | | // height: '100%', |
| | | // }; |
| | | |
| | | const renderedHandler = () => { |
| | | console.log('rendered'); |
| | | }; |
| | | const errorHandler = (err) => { |
| | | console.log('error', err); |
| | | }; |
| | | // const renderedHandler = () => { |
| | | // console.log('rendered'); |
| | | // }; |
| | | // const errorHandler = (err) => { |
| | | // console.log('error', err); |
| | | // }; |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .aUpload { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | .aUpload { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | </style> |