Skip to content

Commit

Permalink
fix: component style lost fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed Mar 6, 2024
1 parent 2a42e48 commit 9089b0f
Show file tree
Hide file tree
Showing 9 changed files with 9,686 additions and 21 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
node_modules
.vscode
43 changes: 42 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml"
]
}
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
"release": "npm run build && npx changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint . --fix"
},
"peerDependencies": {
"@varlet/shared": "latest",
"@varlet/ui": "latest"
},
"dependencies": {
"@nuxt/kit": "^3.3.2",
"knitwork": "^1.0.0",
Expand All @@ -54,7 +50,6 @@
"@nuxt/schema": "^3.3.2",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@types/node": "^18.13.0",
"@varlet/shared": "latest",
"@varlet/ui": "latest",
"eslint": "^8.46.0",
"husky": "^8.0.3",
Expand All @@ -81,4 +76,4 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
}
4 changes: 0 additions & 4 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<script setup lang="ts">
import '@varlet/touch-emulator'
</script>

<template>
<nuxt-layout>
<nuxt-page />
Expand Down
12 changes: 12 additions & 0 deletions playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { Themes } from '@varlet/ui'
const show = ref(false)
const active = ref(0)
function showSnackBar() {
Snackbar({
Expand All @@ -13,11 +14,16 @@ function showSnackBar() {

<template>
<div>
<var-app-bar title="标题" />
<VarButton>wefwef</VarButton>
<nuxt-link to="/demo">
link to demo qwef
</nuxt-link>

<var-button text round>
<var-icon text-6 name="palette" />
</var-button>

<var-button block @click="() => StyleProvider(Themes.md3Light)">
Material Design 3 暗色
</var-button>
Expand All @@ -38,6 +44,12 @@ function showSnackBar() {
<var-skeleton :loading="show">
加载的数据
</var-skeleton>
<var-bottom-navigation v-model:active="active">
<var-bottom-navigation-item label="标签" icon="home" />
<var-bottom-navigation-item label="标签" icon="magnify" />
<var-bottom-navigation-item label="标签" icon="heart" />
<var-bottom-navigation-item label="标签" icon="account-circle" />
</var-bottom-navigation>
</div>
</template>

Expand Down
Loading

0 comments on commit 9089b0f

Please sign in to comment.