diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -44,7 +44,7 @@ const QrcodeVue = {
     return createElement(
       'div',
       {
-        class: className,
+        class: this.class || className,
         attrs: { value, level, background, foreground },
       },
       [
@@ -70,6 +70,10 @@ const QrcodeVue = {
       type: String,
       default: '',
     },
+    class: {
+      type: String,
+      default: '',
+    },
     size: {
       type: [Number, String],
       default: 100,
fix: rename className to class