Giter Club home page Giter Club logo

fect's Introduction

downloads npm Version Coverage Status CI Status

Modern and minimalist Vue3 UI library,originating from Geist

Quick start

  1. run yarn add @fect-ui/vue or npm install @fect-ui/vue install it

  2. import into project

import { createApp } from 'vue'
import App from './App.vue'
import FectUI from '@fect-ui/vue'
import '@fect-ui/themes'
import '@fect-ui/vue/dist/cjs/main.css'

createApp(App).use(FectUI).mount('#app')

Browser Support

Fect supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).

Links

All Contributors

Thanks to the following friends for their contributions to Fect:

contributors

Development

Acknowledgements

Thanks to JetBrains for allocating free open-source licences for IDEs such as WebStorm.

JetBrains Black Box Logo logo.

LICENSE

MIT

fect's People

Contributors

blancokitsune avatar liiiiiiiiiiiir avatar lwindh avatar nonzzz avatar qiang001 avatar qiyuor2 avatar zaunist avatar zerxz 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

fect's Issues

Controlled questions about form components

Feature request 🚀

  • It's just a suggestion
  • we will provide props value for all form components like switch,checkbox,rating and so on

Expected:

  • Perfect compatibility
  • Can use props value control component or use v-model change state automatically.

Examples:

<template>
  <div>
    <fe-switch  :value="checked" @change="changeHandler" />
  </div>
</template>

<script>
import { ref } from 'vue'

export default {
  setup() {
    const checked = ref(true)
    const changeHandler = (e) => {
      checked.value = e.target.checked
    }
    return {
      checked,
      changeHandler,
    }
  },
}
</script>

Programme:

None .

Hope to add button width

About styles 🛠️

Hey, Is it possible to add width on the button.
I can now only change the button width as shown below:

<div class="search">
  <fe-button size="large" ghost>Search</fe-button>
</div>
.search {
  button {
    min-width: 40px;
  }
}

[Feature] useTheme中的theme是否可以做成响应式的

Feature request 🚀

Expected:

  • No breaking changes

Examples:

在一个组件中改变theme

const { themeChange } = useTheme();
themeChange();

希望在另一个组件中能够监听到变化

const { theme } = useTheme();
watch(theme, () => {
  // 希望这里能够监听到
}); 

Modal didn't achieve the expected effect

Bug report 🐞

Version & Environment

"@fect-ui/vue": "^1.1.1",
  • Browser: Microsoft Edge version 97.0.1072.62 (64)

Expection

  • When the interval is 1s, click the blank again, the modal box will no longer appear

Actual results (or Errors)

The recorded gif is a bit faster than the actual display

click-modal

click-func-call-modal

[Refactor]: cli part

Feature request 🚀

Expected:

I think we can provide a cli package. May we should create a new repo for it. The current cli is integrated in the main repo. It is very inconvenient when in cli. And i think we can refactor him incidentally

Examples:

Programme:

Others:

Looking forward to adding new tree component

Feature request 🚀

Expected:

Add Tree component

Others:

1.0.3版本已经发布快一个月了,是否有计划在发布1.0.4版本之前添加树形组件呢?期待树形组件的加入。

Error when importing form components on demand using Vite

Bug report 🐞

Error when importing form components on demand using Vite

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import styleImport from 'vite-plugin-style-import'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    styleImport({
      libs: [
        {
          libraryName: '@fect-ui/vue',
          esModule: true,
          resolveStyle: (name) => `@fect-ui/vue/es/${name}/index.css`
        }
      ]
    })
  ]
})

temporary method

 libs: [
        {
          libraryName: '@fect-ui/vue',
          esModule: true,
          resolveStyle: (name) => {
            if (name === 'form') {
              return
            } else {
              return `@fect-ui/vue/es/${name}/index.css`
            }
          },
        },
      ],

Version & Environment

"@fect-ui/vue": "1.2.4",
"vue": "^3.2.25",

Expection

no error

Actual results (or Errors)

[vite] Internal server error: Failed to resolve import "F:/**path**/node_modules/.pnpm/
registry.npmmirror.com+@[email protected][email protected]/node_modules/@fect-ui/vue/es/form/index.css" from "src\plugins\ui.ts". 
Does the file exist?
  Plugin: vite:import-analysis

code form issues

About code

return {
      [`--fect-${key}-grow`]: 0,
      [`--fect-${key}-display`]: display,
      [`--fect-${key}-width`]: `${ratio}`,
      [`--fect-${key}-basis`]: `${ratio}`,
 }

Variables ratio can be used directly in grid/grid.tsx.

select组件下拉框只能向下展开

Bug report 🐞

Version & Environment

  • @fect-ui/vue 1.0.5-rc.0
  • vue 3.0.0

Expection

下拉框靠近屏幕底部希望可以向上展开

Actual results (or Errors)

向下展开,并且增加了页面的高度
image

全局导入组件使用没有生效

Bug report 🐞

在使用VueCli创建的项目中导入安装组件使用没有生效。

Version & Environment

FectUI版本1.0.3,Vue版本3.0.0.
使用环境为Mac,Chrome浏览器。

Expection

Actual results (or Errors)

官网bug

About docs

官网演示代码打不开。可能出现bug

[Feature] Support work in SSR

Feature request 🚀

Expected:

  • All component can work with SSR.
  • Use new style System .

Others:

May it support before 1.5.0 .

The new website document language switch did not work

Bug report 🐞

The new website document language switch did not work.I tried to clear the website cache and switch browsers, but the problem still exists.

Version & Environment

The website document is now in English by default. I tried to click to switch the language. The route was changed, but the language was not switched.

Expection

Language can be switched normally

Actual results (or Errors)

image
Uploading image.png…

[Feature] Form component

Feature request 🚀

  • #142
  • It's just a suggestion

Expected:

  • Easy to use
  • Design simple API
  • Support the use of validators to verify forms

Examples:

()=><Form model={ { } }>
   <FormItem prop="do" label="thing">
       <Input  />
    </FormItem>
</Form>

Programme:

The form component should not be too complicated .

Others:

[Feature]: Is it possible to provide a resolver for unplugin-auto-import

Feature request 🚀

Now I need to write the resolver manually, but I don't know if the code is wrong

function FectUiResolver(): ComponentResolver {
  return {
    type: 'component',
    resolve: (name: string) => {
      if (name.match(/^(Fe[A-Z]|fe-[a-z])/)) {
        return {
          name: name.replace(/^(Fe|fe-)/, ''),
          from: '@fect-ui/vue'
        };
      }
    }
  };
}

Expected:

  • No breaking changes

Examples:

import FectUiResolver from '@fect-ui/vue/resolver'

// config
{
    plugins: [
      AutoImport({
        resolvers: [FectUiResolver()]
      }),
      Components({
        resolvers: [FectUiResolver()]
      }),
    ]
 }

Future changes -- With Scale System.

Background

Util now, fect has been iterate for nearly a year, And our neighbor geist has already enterd the Sclae system.
It is undeniable that scale system is a good enough ux design solution. So, I want to add scale for fect.

Plans

  • May it will be a break change. But I will do my best to ensure incremental upgrades
  • It will be implemented as soon as version 1.6 or 2.0.
  • We will use attr bind to avoid more damage.

Can we change the `dark mode` color scheme of the website?

About styles 🛠️

image

When switching to dark mode, the strong contrast between black and white makes it hard on the eyes, perhaps it would be better to switch to a more muted color scheme.

Like this:

image

Of course, if this issue is accepted, I will be happy to change it.

[Feature]: Add Virtual list component.

Feature request 🚀

Expected:

Add a virtual list compoent for display block elements.Improve interactive experience

  • No breaking changes

Examples:

import { List } from '@fect-ui/vue'

( )=> <List data={mockData} limit={5} />

Programme:

Others:

expect is easy use.

[Feature]: V1.4.0 Planning

Plan

  • Complete current Form component(some state API maybe changes).

Performance

  • Currently , No performance issue for fect . If you find, please contact me.
  • Extract some component logic for easy use.
  • Optimize documentation to expose internal hooks.

Patches

  • This version, we only publish feature. bug will be fixed in 1.3.x.

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.