js开源包怎么应用到VUE框架上?
用的是VUE框架,这个用法看不懂啊,好像是给react框架用的,VUE框架可以用这个吗?如果可以用的话,怎么用?大佬点拨一下
/////////////用法//////////////////////
js资源:https://或https://www.;
npm install ketcher-standalone
import { StandaloneStructServiceProvider } from 'ketcher-standalone'
const structServiceProvider = new StandaloneStructServiceProvider()
const MyComponent = () => {
return (
<Editor
staticResourcesUrl={process.env.PUBLIC_URL}
structServiceProvider={structServiceProvider}
/>
)
///////////////////////////////////