Kresus Input based on element UI.
The two components are under src/components/KresusInputWrapped.vue and src/components/KresusInputExtend.vue
One wrapping the default el-input element of the element library, the other extending from it.
To use the component, simple use
<kresus-input-wrapped> </kresus-input-wrapped>
<kresus-input-extend></kresus-input-extend>
instead of el-input.
Usage example can be found under src/views/WrappedView.vue and src/views/ExtendedView.vue.
You may start the project and play with demo checkbox to see the different available states, default,active et error.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lint