Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
精美易用的前端复杂组件及市场上未出现的需求组件收录
你可以引入整个 weilan-ui,也可以根据需要仅引入部分组件。
在main.js写入一下内容:
import Vue from 'vue';
import WeilanUi from 'weilan-ui';
import 'weilan-ui/weilan-ui.css';
import App from './App.vue';
Vue.use(WeilanUi);
new Vue({
el: '#app',
render: h => h(App)
});
如果你只希望引入部分组件,比如 Gantt 和 Explorer,那么可以在 main.js 中写入以下内容:
import Vue from 'vue';
import App from './App.vue';
import { WlGantt, WlExplorer } from 'weilan-ui';
import 'weilan-ui/weilan-ui.css';
Vue.use(WlGantt)
Vue.use(WlExplorer)
new Vue({
el: '#app',
render: h => h(App)
});
通过script标签方式使用weilan-ui需要同时引入element-ui
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<link rel="stylesheet" href="https://unpkg.com/weilan-ui/weilan-ui.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="https://unpkg.com/weilan-ui/weilan-ui.umd.min.js"></script>
完整示例如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<link rel="stylesheet" href="https://unpkg.com/weilan-ui/weilan-ui.css">
</head>
<body>
<div id="app">
<wl-add @click="visible = true"></wl-add>
<wl-fade-in :show="visible">
我出现啦
<template #footer>
<wl-add @click="visible = false">取 消</wl-add>
<wl-add @click="visible = false">确 定</wl-add>
</template>
</wl-fade-in>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="https://unpkg.com/weilan-ui/weilan-ui.umd.min.js"></script>
<script>
new Vue({
el: '#app',
data: function () {
return { visible: false }
}
})
</script>
</html>
如果你有心,可以请作者喝杯咖啡
Issue | QQ群 |
---|---|
wlui/issues |
FAQs
Unknown package
The npm package weilan-ui receives a total of 9 weekly downloads. As such, weilan-ui popularity was classified as not popular.
We found that weilan-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.