GithubHelp home page GithubHelp logo

hellof2e / quark-design Goto Github PK

View Code? Open in Web Editor NEW
1.8K 19.0 187.0 6.76 MB

Browser-native component library, framework-agnostic, base on web components.(无框架,跨技术栈组件库,即插即用。)

Home Page: https://quark-ecosystem.github.io/quarkd-docs

License: MIT License

JavaScript 14.25% HTML 0.18% TypeScript 46.20% SCSS 2.75% Vue 26.82% CSS 9.78% Shell 0.01%
quarkd quarkc webcomponent webcomponents

quark-design's People

Contributors

c0dedance avatar charleewa avatar dyf19118 avatar er1c0 avatar friedricenoodles avatar gaoxiaoduan avatar hbf2e avatar houhoz avatar iceywu avatar kailong321200875 avatar liaohainan avatar nieyt avatar notwoboy avatar sanqi-med avatar simon-he95 avatar sio2-a avatar szqingt avatar thinkasany avatar tiny-dust avatar wing-9527 avatar xiaojieajie avatar xiezongchen avatar xsf0105 avatar xushanpei avatar yoyo837 avatar yuhaiyang1 avatar yuyuabc1 avatar yx376642000 avatar zhuokuang avatar zyg-616 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

quark-design's Issues

[image] image、upload等个别组件存在引用缺失

Quark Design 版本

1.0.12

重现链接

No response

重现步骤

导入1.0.12后即可复现该错误,见图:
fedf7e0b6e75b865c4d40ea8cafe017

期望结果

No response

实际结果

No response

框架版本

任意

浏览器版本

No response

系统版本

No response

Node版本

16

补充说明

No response

部分组件存在引用缺失

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

#75 ,还有一些组件无法成功引用:

  • quarkd/lib/form
  • quarkd/lib/nativeuploader
  • quarkd/lib/uploader

如图:
image

image

image

是否能支持微信小程序

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

No response

有些不懂这个组件库的逻辑

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

随便找个组件看了一下,就拿 Stepper 组件来说 限制了范围之后的值就删不掉了,到实际业务场景假如设置一个非必填题,那如果用户不下心填错了,怎么删都删不掉那要重新刷新页面嘛?

再一个就更怪了,为什么开始只能输入0.x, 不能输入5.x,6.x...?

在一个就是输入一个2,按一下删除会变成 0?,再按一下才是null?

【popup组件】关闭按钮点击不可关闭

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

【popup组件】关闭按钮点击不可关闭,需要双击才能关闭

关于图片查看的建议

应该添加zoom入参,允许查看大图时,可以通过手势放大缩小,无需开发者自己去写这段逻辑,图片能手势缩放对移动端来说属于重要且基本的功能之一

组件切换会回到首页

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

问题说明: 初次进入点击组件选择vue会白屏然后切换react会回到首页
20221117105832
重现步骤: 初次加载网站的时候点击导航栏的组件然后来回切

Rate 组件禁用状态视觉效果问题

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

Rate 组件禁用状态的style和普通的区分只是在 opacity: 0.6; 上,如图。
总体视觉上还是没有区分开来,是不是应该重新设计下视觉效果?

image

Why css unit is converted in the lib?

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

在库里就做了 vw 转化, 不想跟着转的话对齐都很麻烦了, 这个不用做成默认行为吧?

亲, 更新日志建议坚持一下

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

image

【文档】双击按钮会莫名选中按钮下面的文字

reproduce link(重现链接)

No response

Steps to reproduce(重现步骤)

No response

Desired result(期望结果)

No response

Actual results(实际结果)

No response

Framework version(框架版本)

No response

Node version

No response

Other instructions(其他说明)

双击按钮会莫名选中按钮下面的文字
image

[uploader]禁止上传的的图标是不是应该有点变化

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

禁止上传的的图标是不是应该有点变化,和非禁止样子一样,点击也没提示

缺少单独build的npm script

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

缺少单独build的npm script

sticky 的offsettop属性为什么单位只能是vw

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

一时没能理解sticky 的offsettop属性为什么单位只能是vw,应该能写各种单位尺寸才对吧,内部还使用了convertVw方法,写了其他单位,就变成NaN了,
如果只能限制一个单位,也应该是vh吧

vite 引入报错

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

image

不支持 nuxt

期望

希望支持服务端渲染框架

效果

HTMLElement is not defined

.gitignore 文件里要忽视 types 文件吗?

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

image

文档站点的更新日志没同步

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

问题说明:文档站点的更新日志没同步
期望: 同步更新 changelog

关于使用 Microsoft Edge 浏览器浏览组件库官网组件介绍页面明显卡顿问题

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

具体页面 Url:https://quark-design.hellobike.com/#/zh-CN/component/button

具体体现:
1.左侧内容目录部分可以流畅滚动,右侧组件使用指南部分滚动卡顿。
2.在 Safari 浏览器没有此现象。

附上视频:

2022-12-09_10-40-15.mp4

组件文档滚动条问题

具体情况如图:
image
这样会导致在看完上一个组件的api时,下一个组件的内容并不是从头开始,而是处在一个奇怪的位置。

太差劲了,组件要啥没啥

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

quark-textarea, 连动态绑定值都不行, 这框架有什么毛用

npx lerna run --scope quarkd test error

Quark Design 版本

all

重现链接

No response

重现步骤

执行npx lerna run --scope quarkd test 测试命令报错

lerna notice cli v5.1.8
lerna info versioning independent
lerna notice filter including "quarkd"
lerna info filter [ 'quarkd' ]
lerna info Executing command in 1 package: "yarn run test"
lerna ERR! yarn run test exited 1 in 'quarkd'
lerna ERR! yarn run test stdout:
yarn run v1.22.18
$ karma start --timeout 10000

START:
08 11 2022 22:50:51.021:WARN [filelist]: Pattern "/Users/tang/Documents/mian/quark-design/packages/quark/snapshots//*.md" does not match any file.
08 11 2022 22:50:51.022:WARN [filelist]: Pattern "/Users/tang/Documents/mian/quark-design/packages/quark/src/packages/
/*.test.js" does not match any file.
08 11 2022 22:50:51.037:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9876/
08 11 2022 22:50:51.037:INFO [launcher]: Launching browsers ChromeHeadlessNoSandbox with concurrency unlimited
08 11 2022 22:50:51.040:INFO [launcher]: Starting browser ChromeHeadless
08 11 2022 22:50:51.569:INFO [Chrome Headless 107.0.5304.87 (Mac OS 10.15.7)]: Connected on socket M9TcB-qiw6W1uWxMAAAA with id 79500159

Finished in 0 secs / 0 secs @ 22:50:51 GMT+0800 (**标准时间)

SUMMARY:
✔ 0 tests completed
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run test stderr:
warning package.json: No license field
(node:68367) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.
(Use node --trace-deprecation ... to show where the warning was created)
(node:68367) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.
(node:68367) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.
(node:68367) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.
(node:68367) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.
(node:68367) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.
error Command failed with exit code 1.
lerna ERR! yarn run test exited 1 in 'quarkd'

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

[按钮] 设置事件会重复执行

Quark Design 版本

1.0.12

重现链接

No response

重现步骤

import React, { useState } from 'react';
import { Button } from '@quarkd/quark-react';
// import { Button } from 'antd';

const Index = () => {
const [count, setCount] = useState(0);
console.log(count);
return (


<Button
onClick={(e) => {
setCount((count) => count + 1);
}}
>
我是一个按钮 {count}


);
};

export default Index;

期望结果

1

实际结果

2

框架版本

react

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

建议组件文档这里对不同的技术栈提供不同的用法

目前只提供了vue和react的用法,其他的我觉着也得来一份(公司使用Angular,移动端用ionic),有的话会直观一点,光靠看vue用法转换多少都得花点时间
虽然你们才刚开源不久,但不依赖技术栈这点值得关注,毕竟国内ng能用的资源本就不多

[quark] 希望能提供无样式且支持独立引入的组件

这个功能解决了什么问题

quark 以 web-components 作为基础来实现,跨框架的思路很棒,但在现有 / 复杂项目中引入整个 UI 库比较困难,而且设计风格不一致,即使覆盖样式后也可能会在升级后出现样式不兼容的情况。希望能够像 radix-ui 一样,给开发者最大的样式自定义自由,并且支持单独安装(独立组件 package),这样会比较便于使用。

你建议的方案是什么

  • 渐进式地将组件拆成 package,开发者只需要安装 core package, component package, framework wrapper package 即可使用。
    • 举个例子,业务上曾有 marquee 的需求,我实现了一个 web-components 的版本来试用是比较容易接受的,但一下子引入整个 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.