147 Star 761 Fork 145

heyui / heyui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
simple.html 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
vvpvvp 提交于 2021-12-25 21:48 . feat: update hlang config
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
</head>
<body>
<div id="app">
<p>
<h-button color="primary" @click="show = true">Open vue modal</h-button>
</p>
<p>
<h-button color="primary" @click="openModal">Open js modal</h-button>
</p>
<Modal v-model="show">
<template v-slot:header>title</template>
<div>This is a modal called by vue</div>
<template v-slot:footer>
<h-button @click="show=false">cancel</h-button>
</template>
</Modal>
<h-pagination />
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue@3"></script>
<script src="./dist/heyui.js"></script>
<link rel="stylesheet" href="./themes/index.css" />
<script>
const App = {
data() {
return {
message: 'Hello Vue!',
show: false
};
},
methods: {
openModal: function () {
console.log(this);
HeyUI.modal({
title: 'title',
content: 'This is a js modal'
});
}
}
};
const app = Vue.createApp(App);
app.use(HeyUI);
app.mount('#app');
</script>
</html>
JavaScript
1
https://gitee.com/heyui/heyui.git
git@gitee.com:heyui/heyui.git
heyui
heyui
heyui
master

搜索帮助