Skip to content

Commit

Permalink
feat: 加入parcel,将button组件改为单文件组件
Browse files Browse the repository at this point in the history
  • Loading branch information
zyqq committed Mar 29, 2019
1 parent 1e16a91 commit fb2af05
Show file tree
Hide file tree
Showing 8 changed files with 7,460 additions and 40 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1 +1,3 @@
node_modules/
node_modules/
dist/
.cache/
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# 轮子 - 一个用 Vue 写的 UI 组件
# 轮子 -- 一个用 Vue 写的 UI 框架

作者: Echo

Expand Down
5 changes: 0 additions & 5 deletions button.js

This file was deleted.

33 changes: 1 addition & 32 deletions index.html
Expand Up @@ -31,45 +31,14 @@
margin: 20px;
}
</style>
<style>
.g-button {
height: var(--button-height);
padding: 0 1em;
font: inherit;
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
background: var(--button-bg);
}

.g-button:hover {
border-color: var(--border-color-hover);
}

.g-button:active {
background: var(--button-active-bg);
}

.g-button:focus {
outline: none;
}
</style>
</head>

<body>
<div id="app">
<g-button></g-button>
</div>

<script src="./node_modules/vue/dist/vue.min.js"></script>
<script src="./button.js"></script>
<script>
new Vue({
el: '#app',
data: {
message: 'hi'
}
})
</script>
<script src="./src/app.js"></script>
</body>

</html>

0 comments on commit fb2af05

Please sign in to comment.