在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JosephusPaye/Keen-UI开源软件地址(OpenSource Url):https://github.com/JosephusPaye/Keen-UI开源编程语言(OpenSource Language):JavaScript 82.8%开源软件介绍(OpenSource Introduction):Keen UIKeen UI is a Vue.js UI library with a simple API, inspired by Google's Material Design. Keen UI is not a CSS framework. Therefore, it doesn't include styles for a grid system, typography, etc. Instead, the focus is on interactive components that require Javascript. You should be able to use Keen UI with any page layout, structure, or CSS framework. Documentation and demohttp://josephuspaye.github.io/Keen-UI/ Requirements
Optional Browser supportIE 10+ (due to Flexbox support). Installationnpm install keen-ui --save UsageCSS ResetBefore using Keen UI, ensure that the following CSS resets are applied to your site. *,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 100%;
} You can add the reset to your stylesheet (before other styles). If you are using a CSS framework, check to see if the framework already includes a reset (most CSS frameworks do). The root font size set on ES6Use as a Vue plugin (globally registers all components): import Vue from 'vue';
import KeenUI from 'keen-ui';
import 'keen-ui/dist/keen-ui.css';
Vue.use(KeenUI);
new Vue({
components: {
// all Keen UI components already registered
}
}); Use individual components: import Vue from 'vue';
import { UiAlert, UiButton } from 'keen-ui';
new Vue({
components: {
UiAlert,
UiButton
}
}); Script tagFirst, add a stylesheet link to the Keen UI CSS file in If Keen UI detects the global Example: <!-- Place this in <head> -->
<link rel="stylesheet" href="path/to/keen-ui.min.css">
<!-- Place this in <body> -->
<div id="app">
<ui-button>Hello world!</ui-button>
</div>
<script src="path/to/vue.js"></script>
<script src="path/to/keen-ui.min.js"></script>
<script>
new Vue({
el: '#app',
components: {
// all Keen UI components already registered
}
});
</script> CustomizationYou can customize many aspects of Keen UI, including theme colors, component sizes, default props, and more. See Customization. Using standalone componentsEach component is built into a standalone file with the necessary CSS included. You can use these individual standalone components without importing the rest of the library. The standalone components are located in the NOTE: Standalone component files each contain their own dependencies, and many contain overlapping dependencies. As a result, using multiple standalone files may increase the size of your bundle due to duplicate code. import Vue from 'vue';
import 'keen-ui/src/bootstrap'; // Required when using standalone components, should be imported only once in your project
import UiButton from 'keen-ui/lib/UiButton';
new Vue({
components: {
UiButton
}
}); LicenceKeen UI is open source and released under the MIT Licence. Copyright (c) 2019 Josephus Paye II.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论