Browse Source

【集成】.editorconfig:编辑器风格配置文件

master
xiaosi 1 year ago
parent
commit
03cd680d71
  1. 7
      .editorconfig
  2. 6
      src/assets/base.css
  3. 5
      src/assets/logo.svg
  4. 1
      src/stores/counter.js

7
.editorconfig

@ -0,0 +1,7 @@
[*.{js,json,jsx,ts,tsx,vue,cjs}]
indent_style = space
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 180

6
src/assets/base.css

@ -62,12 +62,10 @@ body {
min-height: 100vh;
color: var(--color-text);
background: var(--color-background);
transition:
color 0.5s,
transition: color 0.5s,
background-color 0.5s;
line-height: 1.6;
font-family:
Inter,
font-family: Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',

5
src/assets/logo.svg

@ -1 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69">
<path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/>
<path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/>
</svg>

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 287 B

1
src/stores/counter.js

@ -4,6 +4,7 @@ import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)
const doubleCount = computed(() => count.value * 2)
function increment() {
count.value++
}

Loading…
Cancel
Save