Git Product home page Git Product logo

datav.jiaminghi.com's People

Contributors

jiaming743 avatar net592 avatar wzx-3015 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datav.jiaminghi.com's Issues

在vite下用安装后,会出现[plugin:vite:vue] <template v-for> key should be placed on the <template> tag.错误。

错误提示如下:
[plugin:vite:vue] key should be placed on the tag.
D:/GitHub/map/node_modules/@jiaminghi/data-view/lib/components/decoration6/src/main.vue:8:11
6 | >
7 | <rect
8 | :key="i"
| ^
9 | :fill="mergedColor[Math.random() > 0.5 ? 0 : 1]"
10 | :x="point[0] - halfRectWidth"
at createCompilerError (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:19:19)
at D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:3851:45
at Array.some ()
at D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:3847:31
at Array. (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:3978:13)
at traverseNode (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:2222:19)
at traverseChildren (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:2164:9)
at traverseNode (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:2215:13)
at traverseChildren (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:2164:9)
at traverseNode (D:\GitHub\map\node_modules@vue\compiler-core\dist\compiler-core.cjs.js:2215:13
Click outside or fix the code to dismiss.
You can also disable this overlay with hmr: { overlay: false } in vite.config.js.

错误位置源码如下:

<template>
  <div class="dv-decoration-6" :ref="ref">
    <svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`">
      <template
        v-for="(point, i) in points"
      >
        <rect
          :key="i"
          :fill="mergedColor[Math.random() > 0.5 ? 0 : 1]"
          :x="point[0] - halfRectWidth"
          :y="point[1] - heights[i] / 2"
          :width="rectWidth"
          :height="heights[i]"
        >

响应

楼主项目单位用的是px 是如何实现字体响应式的呢

轮播表中点击事件

轮播表中是只能展示文本数据不能展示图片么?有什么好的解决方案么
我想的解决方案是:看文档中有click操作,想着是点击该行拿到数据,然后再写js方法加载图片进行展示
但是我这里只能拿到所有数据,无法拿到该行的数据,请问这个应该如何解决?或者是有没有更好的解决方案可以让我展示图片?
image
image
image
image

使用vite报错

Uncaught SyntaxError: The requested module '/node_modules/@jiaminghi/c-render/lib/index.js?v=9a11b98b' does not provide an export named 'default' (at main.vue:8:8)

demo底部显示不完整问题

image
为什么我用chrome打开demo地址底部没有显示完整呢? 我clone下代码自己run起来底部也显示不完

dv-scroll-ranking-board无法渲染

如图中代码 dv-scroll-ranking-board 被放置在dv-border-box-8下的div中,页面无法显示轮播表,但是如果去掉红框上的div,则可以正常渲染
image

<dv-full-screen-container> <top-header /> <div class="main-content"> <dv-border-box-8 style="width:20%"> <div id="ranking-board-div"> <div class="ranking-board-title">销售额省份排名</div> <!-- <dv-loading v-if="loading">Loading...</dv-loading> --> <dv-scroll-ranking-board :config="config"/> </div> </dv-border-box-8> <dv-border-box-8 style="width:50%">dv-border-box-12</dv-border-box-8> <dv-border-box-8 style="width:30%">dv-border-box-12</dv-border-box-8> </div> </dv-full-screen-container>

dv-border-box-11不支持改title的字体颜色吗

在官方文档给出的效果预览中dv-border-box-11的标题是彩色的,但并没有给出更改title字体颜色的配置。
我自己在使用时title的字体颜色是白色。在翻看了dv-border-box-11对应的源码之后,发现props里也未给出更改title颜色的配置。

小程序

不知道大佬有没有考虑过小程序。做个小程序ui库 。

pie chart binding data can not show

hi, i have a question as below,
url1: https://baijiahao.baidu.com/s?id=1659789987293640224&wfr=spider&for=pc
url2: http://datav.jiaminghi.com/demo/construction-data/index.html

url1 use the same demo page as url2, but why the first can display pie chart binded value, but the second not show it?

here is my code:

createData () {
const { randomExtend } = this

  let seriesdata = [
    { name: "pass", value: randomExtend(5000, 6000) },
    { name: "prevent", value: randomExtend(100, 150) },
    { name: "check", value: randomExtend(200, 300) }
  ]

  this.option = {
     series: [
            {
              type: 'pie',
              radius: '70%',
              roseSort: false,
              data: seriesdata,
              roseType: true
            }
          ],
  	color: [ '#224590', '#f46827', '#4d99fc']
  };
},

where is wrong?
thanks for point it very much~
ui
code
ui

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.