NOTE: This is a COMMUNITY PROJECT, not associated with Vercel.
geist-org / vue Goto Github PK
View Code? Open in Web Editor NEWVue implementation of Geist
Home Page: https://vue.geist-ui.dev
License: MIT License
Vue implementation of Geist
Home Page: https://vue.geist-ui.dev
License: MIT License
NOTE: This is a COMMUNITY PROJECT, not associated with Vercel.
v2.3.x
gap
or gapHalf
.Hi! I'd like to know if you were planning to port your User and AutoComplete components from React UI to this one. I'd even pay a small amount to get those in :)
Thanks!
特别漂亮, 请问老哥可不可以整一个 react
版本的, 非常感谢Thanks♪(・ω・)ノ
Radio Component:
Playground component/page is play the component online
Refer to Zeit Playground
docs
Support show dropdown on hover
<zi-popover trigger="hover"></zi-popover>
styles
🛠️https://vue.zeit-ui.co/zh-cn/card
I can only found zi-card
and .zi-card.hoverable
style in @zeit-ui/vue/dist/zeit-ui.css and @zeit-ui/vue/lib/card.css.
Maybe you guys forgot to add shadow style?
The attr name(fill
) of Note
is unreasonable.
v2.3.x
should be changed to filled
.
fill
Note Component:
secondary
styleWhen dialog element is open, I would expect the page to stay in the same place. Currently the page jumps to the side because scrollbar is removed due to overflow:hidden
set on the body.
I'd recommend measuring the width of the scrollbar and maintaining padding on the body element to be equal to scrollbar width if it's present.
I like how Bootstrap deals with this problem and here's the code they use:
https://github.com/twbs/bootstrap/blob/main/js/src/modal.js#L459
datapicker component add
I know that ZEIT does not support this component, so can you add it, or any suggestions about that?
Thanks
Popper.js V1 is a huge library and this project could be trimmed down significantly by replacing Popper V1 with V2.
Here are bundle sizes before and after replacement:
Before:
Here's the process I had to follow:
Remove popperjs v1 and replace with
"@popperjs/core": "^2.4.2"
In tooltip.vue:
import { createPopper } from '@popperjs/core';
...
mounted() {
createPopper(this.$refs.host, this.$refs.inner, {
placement: this.placement,
modifiers: [
{
name: 'arrow',
options: {
element: this.$refs.arrow
}
},
{
name: 'offset',
options: {
offset: [0, 8]
}
}
]
})
},
Then, in tooltip.styl, remove all existing arrow styles and replace with:
.zi-tooltip-arrow,
.zi-tooltip-arrow::before {
position: absolute;
width: 8px;
height: 8px;
z-index: -1;
}
.zi-tooltip-arrow::before {
content: '';
transform: rotate(45deg);
background: var(--geist-foreground);
}
.zi-tooltip-box[data-popper-placement^=bottom] .zi-tooltip-arrow
top -4px
.zi-tooltip-box[data-popper-placement^=top] .zi-tooltip-arrow
bottom -4px
.zi-tooltip-box[data-popper-placement^=left] .zi-tooltip-arrow
right 0
.zi-tooltip-box[data-popper-placement^=right] .zi-tooltip-arrow
left -8px
After that, the size is significantly trimmed!
Hope this helps!
button-dropdown
component2.4
<zi-button-dropdown >
<zi-button-dropdown-item main type="warning">
Default Actions
</zi-button-dropdown-item>
<zi-button-dropdown-item type="dange">
Secondary Actions
</zi-button-dropdown-item>
</zi-button-dropdown>
Unknown custom element:
All other elements work except for the table component
Display
component is added to improve the readability of normal layout.
caption
& shadow
on zi-image
Display
darkBash
to zi-code
Refer to React Component
styles
🛠️It appears that I cannot see which buttons are active when I use "tab" key on my keyboard.
I'd suggest adding :focus
styles to buttons to make them focused and visible via keyboard
I import components in the following way:
import Vue from 'vue'
import Button from '@zeit-ui/vue/lib/button.common'
import '@zeit-ui/themes/index.css'
import '@zeit-ui/themes/dark.css'
import '@zeit-ui/vue/lib/button.css'
Button.install(Vue)
It works well, but when I try to swtich theme to dark:
import ZeitUI from '@zeit-ui/vue'
ZeitUI.theme.enableDark()
Only the Button turn to dark, but the body's background color is still white. When I change to import 'zeit-ui.css'
import Vue from 'vue'
import Button from '@zeit-ui/vue/lib/button.common'
import '@zeit-ui/vue/dist/zeit-ui.css'
import '@zeit-ui/vue/lib/button.css'
Button.install(Vue)
Everything works well
"@zeit-ui/vue": "^2.5.0-canary.3"
with "nuxt": "^2.13.0"
Background color of body doesn't turn dark when importing components on demand
As described above. I found that when I import 'zeit-ui.css', there is such a css
But that doesn't exist when I use the first way
The vue version of geist ui lacks components as compared to what the react version has. Moreover similar components have more features in react version as compared to their vue counterparts.
Are there any plans to make all the components available on vue as well?
styles
🛠️请问可以增加设置图标大小和颜色的属性吗?现在显示在页面上跟旁边的字体和元素大小不匹配,显得太大了,又没有办法缩小。还有颜色想改成红色的,默认是黑色的。可以在外面包一层div来设置颜色,但是加了一层div之后有时候会引起布局的变化,如果有一个属性可以直接设置颜色会更合理一些。
谢谢。
dialog默认值为 true
是不显示
^2.3.2
需要初始化时设置为 false
后,修改为 true
才显示
icon
option to get a component
value2.4
<zi-button :icon-right="IconComponent">
Actions
</zi-button>
Button
in some status should ignore the icons.styles
🛠️Hi! This is a great starter kit for many projects!
I was wondering how you would achieve responsive column / row layout like Bootstrap provides, for example if I want layout split in 3 columns on desktop to become 1 column layout on mobile.
What would you recommend to achieve responsive composition?
前端素人一枚,没框架就不会编程的那种。
想做点简单的页面,现在需要 header 还有 footer 以及 popup。请问咋办呀。
styles
🛠️前端素人一枚。
做了个小网站,喜欢这个效果,但是想一直开启。请问有什么方法没有吗?
A successful compilation.
The error information displayed in the terminal is below:
gram Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run dev --scripts-prepend-node-path=auto
> [email protected] dev D:\Workspace\project-test
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
13% building modules 29/35 modules 6 active ...D:\Workspace\project-test\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
94% asset optimization
ERROR Failed to compile with 1 errors 上午8:06:41
error in ./node_modules/_@[email protected]@@geist-ui/vue/dist/geist-ui.common.js
Module parse failed: Unexpected token (1851:25)
You may need an appropriate loader to handle this file type.
| const props = { size: [String, Number], color: String }
| const computed = {
| listeners() { return { ...this.$listeners } },
| styles() {
| const sizes = this.size ? { height: this.size, width: this.size } : {}
@ ./src/main.js 7:0-36
@ multi (webpack)-dev-server/client?http://localhost:8081 webpack/hot/dev-server ./src/main.js
[prompt]:<>(please add labels first)
Type:
Version & Environment:
Description: note匹配的页面与fieldnote一样
Screenshots:
I use the zeit-ui/vue
with nuxt
, and I want user the nuxt
generate static pages, so the nuxt
mode is universal, but when start the project, I miss ReferenceError document is not defined on the 3500 line of /@zeit-ui/vue/dist/zeit-ui.common.js
.
I want to know zeit-ui/vue
Is there any plan for nuxt
support.
styles
🛠️version: 1.1.3
system: macOS
比如
https://github.com/zeit-ui/vue/blob/master/packages/files/files.vue
其实依赖了 file-item,但是没有在 files 中使用 components 注册组件
导致直接引用 Files 组件时,会提示 zi-files-item 未注册
我是这样子使用的
import Files from '@zeit-ui/vue/packages/files'
export default {
components: { Files }
template: `<Files :files="[]" />`
}
这里没有使用 Files.install,使用 Files.install 的话可以绕开这个问题,但是我觉得上面的使用方式也是比较常见的
files 内部注册用到的组件
直接使用 files 会提示 zi-files-item 未注册
其他组件可能也有类似问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.