Browse Source

fix: 官网h5样式修改

suzigang 3 years ago
parent
commit
b47fac7088
3 changed files with 3 additions and 8 deletions
  1. 1 1
      src/packages/__VUE/pullrefresh/demo.vue
  2. 1 1
      src/packages/__VUE/steps/demo.vue
  3. 1 6
      vite.config.ts

+ 1 - 1
src/packages/__VUE/pullrefresh/demo.vue

@@ -131,7 +131,7 @@ export default createDemo({
 });
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 .demo {
   padding-left: 0 !important;
   padding-right: 0 !important;

+ 1 - 1
src/packages/__VUE/steps/demo.vue

@@ -164,7 +164,7 @@ export default createDemo({
 });
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 .nut-theme-dark {
   .steps-wrapper {
     background-color: #1b1b1b;

+ 1 - 6
vite.config.ts

@@ -1,10 +1,9 @@
-import { defineConfig, PluginOption } from 'vite';
+import { defineConfig } from 'vite';
 import vue from '@vitejs/plugin-vue';
 import Markdown from 'vite-plugin-md';
 import MarkdownIt from 'markdown-it-container';
 import path from 'path';
 import config from './package.json';
-import { visualizer } from 'rollup-plugin-visualizer';
 import hljs from 'highlight.js';
 import autoprefixer from 'autoprefixer';
 import { compressText } from './src/sites/doc/components/demo-block/basedUtil';
@@ -85,10 +84,6 @@ export default defineConfig({
         });
       }
     })
-    // legacy({
-    //   targets: ['defaults', 'not IE 11']
-    // })
-    // ,[visualizer() as PluginOption]
   ],
   build: {
     target: 'es2015',