Coder Social home page Coder Social logo

rx-ts / vue Goto Github PK

View Code? Open in Web Editor NEW
283.0 283.0 54.0 2.5 MB

Make Vue greater with RxTS.

Home Page: https://vue-rx.vercel.app

License: MIT License

JavaScript 0.56% TypeScript 61.89% Vue 35.05% Less 2.50%
qrcode rx-vue vue vue-plugin vue-qrcode vue-rx

vue's People

Contributors

github-actions[bot] avatar jounqin avatar renovate-bot avatar rnovec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue's Issues

Error while compiling.

vue.common.js?e881:560 [Vue warn]: Error compiling template:


  <div>
    <canvas
      :style="{height: size + 'px', width: size + 'px'}"
      height={{size}}
      width={{size}}
      v-el:qr
    ></canvas>
  </div>


- height="{{size}}": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.
- width="{{size}}": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.
 
(found in <Qrcode>)

in vue 2.1.10 "vue-qrcode": "0.0.2",

Typings not available

Hi - thanks for putting together this component! I'm attempting to use it in a Vue 2 project with TypeScript 3.9, and am getting the following error on compilation:

ERROR in /usr/src/app/ui/src/components/MyComponent.vue(35,23):
uiserver_1       | 35:23 Could not find a declaration file for module 'vue-qrious'. '/usr/src/app/ui/node_modules/vue-qrious/lib/cjs.js' implicitly has an 'any' type.
uiserver_1       |   Try `npm install @types/vue-qrious` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-qrious';`
uiserver_1       |   > 35 | import VueQrious from 'vue-qrious';

I can work around this by creating a custom .d.ts file in my project with declare module 'vue-qrious';. However, according to the package.json, a types attribute is declared.

I was wondering if the built package could be updated to export the type definitions. Thanks!

Download generated QRcode image

How can I download the image I generate with component ?
I want on button click to download as a image file.
I noticed the component generates an image with src attribute, but its too big, i dont understand it

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (@)

The default values in VueQrcode do not match the documentation.

In the VueQrcode documentation, it states that all props have default values. However, after installing version 2.2.2, I noticed that the color and type props require mandatory values.

In my opinion, it would be beneficial to maintain the default values for these props.

tslib dependency missing

results in

ERROR in ./node_modules/vue-qrcode/lib/index.js Module not found: Error: Can't resolve 'tslib' in '/project/node_modules/vue-qrcode/lib' @ ./node_modules/vue-qrcode/lib/index.js 1:0-41 88:68-74 104:23-31 104:32-40 @ ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile.vue?vue&type=script&lang=js& @ ./resources/js/components/Profile.vue?vue&type=script&lang=js& @ ./resources/js/components/Profile.vue @ ./resources/js/routes.js @ ./resources/js/app.js @ multi ./resources/js/app.js ./resources/sass/app.scss

version 1.0.0 can not usable

Tried to install 1.0.0 version but can not have success. But 0.4.0 is OK.

This dependency was not found:
* vue-qrcode in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/webpack/node_modules/vue-loader/lib??vue-loader-options!./renderer/components/order-window/Receipt.vue?vue&type=script&lang=js&

vue 2.7 vue-qrcode 2.2.0

the demo:

<vue-qrcode
value="https://www.1stg.me"
@change="onDataUrlChange"
/>

<script> import VueQrcode from 'vue-qrcode' export default { data() { return { dataUrl: null, } }, components: { VueQrcode, }, methods: { onDataUrlChange(dataUrl) { this.dataUrl = dataUrl }, }, } </script>

the error:
[Vue warn]: Missing required prop: "color"
Vue warn]: Missing required prop: "type"

change demo:

data() {
return {
qrcode: {
color: {
dark: 'black', // 设置二维码的主要颜色
light: 'white' // 设置二维码的背景颜色
}
},
codeText: 'test qrcode text',
no error, but there is no a qrcode in the page

Error on Nuxt 3 with 'vue-qrcode': 'QRCodeSegment' Export Not Found in 'qrcode' Module

I am encountering an error in Nuxt 3 when trying to import VueQrcode in the plugins. The code I used is import VueQrcode from "vue-qrcode"; export default defineNuxtPlugin(nuxtApp => { nuxtApp.vueApp.component("vue-qrcode", VueQrcode)}). However, upon starting, I receive an error message: [nuxt] [request error] [unhandled] [500] The requested module 'qrcode' does not provide an export named 'QRCodeSegment'. The version I am using is "vue-qrcode": "^2.2.1"

Regarding the file name of generated QR codes.

First of all, thank you for your great work...!

As a default, a generated QR code has a file name as "download.png" when a user drag a QR code out from the browser.

Is there any way to make the default file name to be different...?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @changesets/cli to ^2.27.7
  • chore(deps): update dependency rimraf to ^5.0.10
  • fix(deps): update dependency tslib to ^2.6.3
  • chore(deps): update dependency qrcode to ^1.5.4
  • chore(deps): update dependency typescript to ^5.5.4
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency @vitejs/plugin-vue-jsx to v4
  • chore(deps): update dependency rimraf to v6
  • chore(deps): update dependency vue-tsc to v2
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v3
.github/workflows/codeql.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/pkg-size.yml
  • actions/checkout v4
  • actions/setup-node v4
  • pkg-size/action v1
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • @1stg/app-config ^10.0.1
  • @changesets/changelog-github ^0.5.0
  • @changesets/cli ^2.27.1
  • @d-ts/vue ^1.0.0
  • @pkgr/rollup ^6.0.0
  • @types/lodash-es ^4.17.12
  • @types/node ^18.19.8
  • @types/qrcode ^1.5.5
  • @types/web ^0.0.135
  • @vitejs/plugin-vue-jsx ^3.1.0
  • less ^4.2.0
  • lodash-es ^4.17.21
  • postcss ^8.4.33
  • qrcode ^1.5.3
  • qrious ^4.0.2
  • rimraf ^5.0.5
  • rxjs ^7.8.1
  • sass ^1.70.0
  • type-coverage ^2.27.1
  • typescript ^5.3.3
  • vitepress ^1.0.0-rc.40
  • vue ^3.4.15
  • vue-tsc ^1.8.27
  • yarn-deduplicate ^6.0.2
  • prettier ^3.2.4
  • yarn 1.22.21
packages/vue-qrcode/package.json
  • tslib ^2.6.2
  • qrcode ^1.0.0
  • vue ^2.7.0 || ^3.0.0
packages/vue-qrious/package.json
  • tslib ^2.6.2
  • qrious ^4.0.0
  • vue ^2.7.0 || ^3.0.0
packages/vue-resizor/package.json
  • tslib ^2.6.2
  • vue ^2.7.0 || ^3.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

组件为何不将canvas转为img

请问,
该组件为何不使用canvas.toDataURL()将canvas转为img,方便类似微信“长按识别二维码”的功能
(canvas无法长按识别)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.