Skip to content

Commit

Permalink
样式系统
Browse files Browse the repository at this point in the history
  • Loading branch information
57code committed Mar 7, 2022
1 parent e50ed73 commit f1e3e30
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .eslintcache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"/Users/yangtao/projects/sheep-ui/sheep-ui/vite.config.ts":"1","/Users/yangtao/projects/sheep-ui/sheep-ui/.eslintrc.js":"2"},{"size":212,"mtime":1646617615331,"results":"3","hashOfConfig":"4"},{"size":374,"mtime":1646618430674,"results":"5","hashOfConfig":"4"},{"filePath":"6","messages":"7","suppressedMessages":"8","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"r3sp3h",{"filePath":"9","messages":"10","suppressedMessages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/yangtao/projects/sheep-ui/sheep-ui/vite.config.ts",[],[],"/Users/yangtao/projects/sheep-ui/sheep-ui/.eslintrc.js",[],[]]
[{"/Users/yangtao/projects/sheep-ui/sheep-ui/vite.config.ts":"1","/Users/yangtao/projects/sheep-ui/sheep-ui/.eslintrc.js":"2","/Users/yangtao/projects/sheep-ui/sheep-ui/docs/vite.config.ts":"3"},{"size":212,"mtime":1646617615331,"results":"4","hashOfConfig":"5"},{"size":374,"mtime":1646618430674,"results":"6","hashOfConfig":"5"},{"size":136,"mtime":1646621421690,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","suppressedMessages":"10","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"r3sp3h",{"filePath":"11","messages":"12","suppressedMessages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/yangtao/projects/sheep-ui/sheep-ui/vite.config.ts",[],[],"/Users/yangtao/projects/sheep-ui/sheep-ui/.eslintrc.js",[],[],"/Users/yangtao/projects/sheep-ui/sheep-ui/docs/vite.config.ts",[],[]]
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
// import HelloWorld from './components/HelloWorld.vue'
import HelloWorld from './components/HelloWorld.vue'
import Test from './components/Test'
</script>

<template>
<img alt="Vue logo" src="./assets/logo.png" />
<!-- <HelloWorld msg="Hello Vue 3 + TypeScript + Vite" /> -->
<!-- <img alt="Vue logo" src="./assets/logo.png" /> -->
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
<Test></Test>
</template>

Expand Down
25 changes: 1 addition & 24 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,7 @@ const count = ref(0)
</script>

<template>
<h1>{{ msg }}</h1>

<p>
Recommended IDE setup:
<a href="https://code.visualstudio.com/" target="_blank">VSCode</a>
+
<a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>
</p>

<p>See <code>README.md</code> for more information.</p>

<p>
<a href="https://vitejs.dev/guide/features.html" target="_blank">
Vite Docs
</a>
|
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Docs</a>
</p>

<button type="button" @click="count++">count is: {{ count }}</button>
<p>
Edit
<code>components/HelloWorld.vue</code> to test hot module replacement.
</p>
<h1 class="text-3xl font-bold underline">{{ msg }}</h1>
</template>

<style scoped>
Expand Down
3 changes: 3 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { createApp } from 'vue'
import App from './App.vue'

import './index.scss'

createApp(App).mount('#app')
7 changes: 7 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
theme: {
extend: {}
},
plugins: []
}

0 comments on commit f1e3e30

Please sign in to comment.