
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
精美易用的前端复杂组件及市场上未出现的需求组件收录
你可以引入整个 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 2 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.