Skip to content

Commit

Permalink
chore: update deps (#21)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore(eslint): semi is true

* chore: add packageManager
  • Loading branch information
liweijie0812 authored Nov 19, 2024
1 parent bdd162e commit ae263c1
Show file tree
Hide file tree
Showing 15 changed files with 6,754 additions and 7,341 deletions.
22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat';

// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: {
semi: true,
},
},
dirs: {
src: [
'./playground',
],
},
})
.append(
// your custom flat config here...
);
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@tdesign-vue-next/nuxt",
"packageManager": "[email protected]",
"version": "0.1.3",
"description": "Nuxt Module for TDesign",
"repository": "tdesignOteam/tdesign-nuxt",
Expand Down Expand Up @@ -30,28 +31,28 @@
"test:watch": "vitest watch"
},
"dependencies": {
"@nuxt/kit": "^3.11.1",
"@nuxt/kit": "^3.14.159",
"lodash-es": "^4.17.21"
},
"peerDependencies": {
"tdesign-icons-vue-next": ">=0.2.2",
"tdesign-icons-vue-next": ">=0.3.3",
"tdesign-vue-next": ">=1"
},
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.11.1",
"@nuxt/test-utils": "^3.12.0",
"@nuxt/eslint-config": "^0.7.0",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.14.159",
"@nuxt/test-utils": "^3.14.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.11.30",
"changelogen": "^0.5.5",
"eslint": "^8.57.0",
"@types/node": "^22.9.0",
"changelogen": "^0.5.7",
"eslint": "9.14.0",
"less": "^4.2.0",
"nuxt": "^3.11.1",
"prettier": "^3.2.5",
"tdesign-icons-vue-next": "^0.2.2",
"tdesign-vue-next": "^1.9.3",
"vitest": "^1.4.0"
"nuxt": "^3.14.159",
"prettier": "^3.3.3",
"tdesign-icons-vue-next": "^0.3.3",
"tdesign-vue-next": "^1.10.3",
"vitest": "^2.1.5"
}
}
69 changes: 51 additions & 18 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,53 @@
<t-divider>Basic</t-divider>
<t-space>
<t-button>Button</t-button>
<t-icon name="cry-and-laugh"></t-icon>
<t-icon name="cry-and-laugh" />
</t-space>

<t-divider>Layout</t-divider>
<t-divider>Navigation</t-divider>
<t-space direction="vertical">
<t-space>
<t-steps :default-current="1">
<t-step-item title="步骤1" content="提示文字" />
<t-step-item title="步骤2" content="提示文字" />
<t-step-item title="步骤3" content="提示文字" />
<t-step-item
title="步骤1"
content="提示文字"
/>
<t-step-item
title="步骤2"
content="提示文字"
/>
<t-step-item
title="步骤3"
content="提示文字"
/>
</t-steps>
</t-space>
<t-space>
<t-tabs>
<t-tab-panel :value="1" label="选项卡1">
<p style="margin: 20px">选项卡1内容区</p>
<t-tab-panel
:value="1"
label="选项卡1"
>
<p style="margin: 20px">
选项卡1内容区
</p>
</t-tab-panel>
<t-tab-panel :value="2" label="选项卡2">
<p style="margin: 20px">选项卡2内容区</p>
<t-tab-panel
:value="2"
label="选项卡2"
>
<p style="margin: 20px">
选项卡2内容区
</p>
</t-tab-panel>
<t-tab-panel :value="3" label="选项卡3">
<p style="margin: 20px">选项卡3内容区</p>
<t-tab-panel
:value="3"
label="选项卡3"
>
<p style="margin: 20px">
选项卡3内容区
</p>
</t-tab-panel>x``
</t-tabs>
</t-space>
Expand All @@ -37,15 +61,24 @@
</t-space>
<t-divider>Plugin</t-divider>
<t-space>
<t-button @click="handleDialog"> DialogPlugin </t-button>
<t-button @click="handleMessage"> MessagePlugin </t-button>
<t-button @click="handleNotify"> NotifyPlugin </t-button>
<t-button @click="handleLoading"> LoadingPlugin </t-button>
<t-button @click="handleDialog">
DialogPlugin
</t-button>
<t-button @click="handleMessage">
MessagePlugin
</t-button>
<t-button @click="handleNotify">
NotifyPlugin
</t-button>
<t-button @click="handleLoading">
LoadingPlugin
</t-button>
</t-space>
<t-divider>Icon </t-divider>
<t-space>
<edit-icon />
<edit-1-icon />
<app-filled-icon />
</t-space>
</div>
</template>
Expand All @@ -58,7 +91,7 @@ const handleDialog = () => {
confirmBtn: {
content: '提交',
theme: 'primary',
loading: false
loading: false,
},
theme: 'warning',
onConfirm: () => {
Expand All @@ -72,7 +105,7 @@ const handleDialog = () => {
confirmDialog.hide();
clearTimeout(timer);
}, 500);
}
},
});
};
const handleMessage = () => {
Expand All @@ -83,14 +116,14 @@ const handleNotify = () => {
title: '标题名称',
content: '这是一条消息通知',
duration: 0,
closeBtn: true
closeBtn: true,
});
};
const handleLoading = () => {
const instance = LoadingPlugin({
fullscreen: true,
attach: 'body',
preventScrollThrough: false
preventScrollThrough: false,
});
const timer = setTimeout(() => {
instance.hide();
Expand Down
9 changes: 6 additions & 3 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
export default defineNuxtConfig({
modules: ['../src/module'],

devtools: { enabled: true },
devServer: { port: 17001 },
compatibilityDate: '2024-11-18',

tdesign: {
resolveIcons: true
resolveIcons: true,
// include:['Button']
// exclude: ['Button']
// iconInclude: ['Edit1']
// prefix: 'tdesign'
// plugins:['NotifyPlugin'],
// importVariables:'~/assets/theme.css'
},
devtools: { enabled: true },
devServer: { port: 17001 }
});
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"generate": "nuxi generate"
},
"dependencies": {
"nuxt": "latest"
"nuxt": "^3.14.159"
}
}
Loading

0 comments on commit ae263c1

Please sign in to comment.