Skip to content

Plugin Configuration

The plugin configuration file is config.ts

- qrcode
 |- config.ts  # Plugin configuration
 |- ElementData.ts # Element data class
 |- Element.tsx # Preview area component
 |- Options.tsx # Editor area component
 |- index.ts # Default entry
 |- types.ts # TS type definition

Taking the QR code plugin as an example:

ts
export const config = {
  type: "qrcode", // Element type, also the unique identifier, such as: image, video, audio, effect...
  name: "QR Code", // Element name, such as: Image, Video, Audio...
  version: "1.0.0", // Version number, note that the version number format must be [a].[b].[c], and it needs to be manually modified after each update
};

Powered by Sichuan AiQuWu Technology Co., Ltd. Shu ICP Bei 18034069 Hao.