Vue-Pesdk (vue-pesdk)
PhotoEditor SDK is a product of 9elements GmbH. In order to use PhotoEditor SDK inside one of your products, you will need a valid a license.
PhotoEditor SDK是9elements GmbH的产品。 为了在其中一种产品中使用PhotoEditor SDK,您将需要有效的许可证。
🔧安装 (🔧 Installation)
yarn add vue-pesdk photoeditorsdk react react-dom
or
npm i -D vue-pesdk photoeditorsdk react react-dom
photoeditorsdk
, react
and react-dom
are peerDependencies and are needed to render the PhotoEditorSDK UI. In addition you need the PhotoEditor SDK assets. You can either get them here or copy it from your node_modules
into your public asset folder. And set the assetPath
prop to this folder.
photoeditorsdk
, react
和react-dom
是peerDependencies,是呈现PhotoEditorSDK UI所必需的。 另外,您需要PhotoEditor SDK资产。 您可以在此处获取它们,也可以将其从node_modules
复制到公共资产文件夹中。 并将assetPath
设置为此文件夹。
If you scaffold your project with Vue CLI you can just cp the asset folder from node_modules
.
如果使用Vue CLI node_modules
项目,则只需从node_modules
cp资产文件夹node_modules
。
cp -r node_modules/photoeditorsdk/assets/ ~/projects/your-project/static/
If needed, take a look at the official documentation for further information.
如果需要