diff --git a/demo/SiteProvider.vue b/demo/SiteProvider.vue index 33fae180c..ec643b9e3 100644 --- a/demo/SiteProvider.vue +++ b/demo/SiteProvider.vue @@ -4,6 +4,7 @@ namespace="naive-ui-doc" :theme="theme" :unstable-theme="theme === 'dark' ? darkTheme : undefined" + :unstable-theme-overrides="overrides" :language="lang" > @@ -22,7 +23,7 @@ import { ref, computed } from 'vue' import Site from './Site.vue' import { useRoute, useRouter } from 'vue-router' -import { darkTheme } from '../src/styles.new' +import { darkTheme } from '../src' export default { name: 'SiteProvider', @@ -81,7 +82,12 @@ export default { theme: themeRef, lang: langRef, // unstable - darkTheme + darkTheme, + overrides: { + // common: { + // primaryColor: 'rgb(255, 0, 0)' + // } + } } } } diff --git a/src/_base/README.md b/src/_base/README.md index 20595e9fc..63e2ec607 100644 --- a/src/_base/README.md +++ b/src/_base/README.md @@ -2,5 +2,4 @@ Themeable components: - selection - select-menu -- clear-button -- close +- clear diff --git a/src/_base/clear-button/index.js b/src/_base/clear-button/index.js deleted file mode 100644 index d502c67fa..000000000 --- a/src/_base/clear-button/index.js +++ /dev/null @@ -1,2 +0,0 @@ -/* istanbul ignore file */ -export { default } from './src/ClearButton.vue' diff --git a/src/_base/clear-button/styles/index.js b/src/_base/clear-button/styles/index.js deleted file mode 100644 index 69c2b104e..000000000 --- a/src/_base/clear-button/styles/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { default as baseClearButtonLight } from './light' -export { default as baseClearButtonDark } from './dark' diff --git a/src/_base/clear/index.js b/src/_base/clear/index.js new file mode 100644 index 000000000..b9d4e2222 --- /dev/null +++ b/src/_base/clear/index.js @@ -0,0 +1,2 @@ +/* istanbul ignore file */ +export { default } from './src/Clear.vue' diff --git a/src/_base/clear-button/src/ClearButton.vue b/src/_base/clear/src/Clear.vue similarity index 81% rename from src/_base/clear-button/src/ClearButton.vue rename to src/_base/clear/src/Clear.vue index 933175a90..dc3f586f2 100644 --- a/src/_base/clear-button/src/ClearButton.vue +++ b/src/_base/clear/src/Clear.vue @@ -1,16 +1,16 @@