Code Monkey home page Code Monkey logo

Comments (3)

xiaomitangtang avatar xiaomitangtang commented on June 3, 2024

image
我把你的option copy过来是可以正常使用的
另外
image
这个地方做了转换的,所以,理论上讲,传递字符串类型数字也是可以的

第二个问题
image
此处导出的是一个对象,内部包含了Knob, Swtich, DigitalGauge 而不只是DigitalGauge

image
build的时候,单独把三个分开编译了一次,所以
import DigitalGauge from "t-digital-gauge2/dist/digitalgauge"; 也是可以正常使用,并且不会导入其他两个图表


import DigitalGauge from "t-digital-gauge2";
应写为
import { DigitalGauge } from 't-digital-gauge2'

使用结构赋值或者单独点语法

from t-digital-gauge.

xiaomitangtang avatar xiaomitangtang commented on June 3, 2024

不好意思,刚刚没注意你的问题,不是不能展示,而是value未展示的问题
已经发布新版本进行修复
image

前面的bug是由于,setOption在dom初始化之前,所以未触发相关的钩子。已经修复
另一个,是缺少了一个const
感谢指正,已经行修复

from t-digital-gauge.

xiaomitangtang avatar xiaomitangtang commented on June 3, 2024

index 是三个组件共同打包的,另外三个组件单独打包到dist中,可以单独引入
后续更新也会按照这个文件目录进行更新,
如果您在使用,非常荣幸接受您的建议和意见
同时感谢您的使用和测试

from t-digital-gauge.

Related Issues (3)

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.