This sample project demonstrates how to use the Syncfusion Barcode, QR Code and DataMatrix generator components in a Vue 3 application.
The repository contains a minimal Vue 3 app (created with Vue CLI) that registers and renders the following Syncfusion components from @syncfusion/ej2-vue-barcode-generator:
- BarcodeGeneratorComponent (
<ejs-barcodegenerator>) - QRCodeGeneratorComponent (
<ejs-qrcodegenerator>) - DataMatrixGeneratorComponent (
<ejs-datamatrixgenerator>)
System requirements for Syncfusion® Vue UI components
The easiest way to create a Vue application is to use the Vue CLI. Vue CLI versions higher than 4.5.0 are mandatory for creating applications using Vue 3. Use the following command to uninstall older versions of the Vue CLI.
npm uninstall vue-cli -gUse the following commands to install the latest version of Vue CLI.
npm install -g @vue/cli
npm install -g @vue/cli-initCreate a new project using the following command.
vue create quickstart
Initiating a new project prompts us to select the type of project to be used for the current application. Select the option Default (Vue 3) from the menu.
Use the following command to install it.
npm install @syncfusion/ej2-vue-barcode-generatorRun the application using the following command.
npm run serveOpen http://localhost:8080 in your browser (Vue CLI's default dev server) to see the sample.