Skip to content

Commit 97bafcf

Browse files
committed
feat: theme dark 只需要写样式即可
1 parent d12b5d0 commit 97bafcf

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

Diff for: .eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package.json
2+
vue.config.js
23
# 忽略第三方包
34
**/node_modules

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-tabs-chrome",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": false,
55
"license": "MIT",
66
"scripts": {

Diff for: package/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { App, Plugin } from 'vue'
22
import Vue3TabsChrome from './vue3-tabs-chrome.vue'
3+
import './theme-dark.less'
34

45
const install = (app: App) => {
56
app.component('Vue3TabsChrome', Vue3TabsChrome)
File renamed without changes.

Diff for: src/examples/example-theme-dark.vue

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<script lang="ts">
1010
import { defineComponent, reactive, ref, Ref } from 'vue'
1111
import Vue3TabsChrome, { Tab } from '../../package/vue3-tabs-chrome.vue'
12-
import '../theme-dark.less'
1312
1413
export default defineComponent({
1514
name: 'App',

Diff for: vue.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
lintOnSave: false,
3-
css: {
4-
extract: false
5-
},
3+
// css: {
4+
// extract: false
5+
// },
66
productionSourceMap: false,
77
publicPath: process.env.NODE_ENV === 'production'
88
? '/vue3-tabs-chrome/'

0 commit comments

Comments
 (0)