瀏覽代碼

remove devDependencies of date-picker

Leopoldthecoder 9 年之前
父節點
當前提交
ce95bd6979

+ 6 - 0
examples/app.vue

@@ -67,6 +67,12 @@
   .demo {
     margin: 20px 0;
   }
+  @media (max-width: 1140px) {
+    .container,
+    .page-container {
+      width: 100%;
+    }
+  }
 </style>
 
 <template>

+ 1 - 1
examples/components/footer-nav.vue

@@ -19,7 +19,7 @@
 
 <style>
   .footer-nav {
-    padding: 24px;
+    padding: 24px 0;
     color: #99a9bf;
     font-size: 14px;
     

+ 1 - 1
examples/components/footer.vue

@@ -4,7 +4,7 @@
       <div class="footer-main">
         <p class="footer-main-title">Element 1.0 Hydrogen</p>
         <span class="footer-main-link">反馈建议</span>
-        <span class="footer-main-link"><router-link to="/changelog">更新日志</router-link></span>
+        <!--<span class="footer-main-link"><router-link to="/changelog">更新日志</router-link></span>-->
       </div>
       <div class="footer-social">
         <el-popover

+ 1 - 0
examples/components/header.vue

@@ -164,6 +164,7 @@
       scroll((direction) => {
         if (this.isHome) {
           this.hangUp = false;
+          this.isFixed = false;
           this.headerStyle.transition = '';
           const threshold = 200;
           let alpha = Math.min(document.body.scrollTop, threshold) / threshold;

+ 1 - 1
examples/docs/color.md

@@ -105,7 +105,7 @@ Element 主要品牌颜色是鲜艳、友好的蓝色。
 
 ### 辅助色
 
-除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。每种颜色都有较浅和较深两种。
+除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。
 
 <el-row :gutter="12">
   <el-col :span="6">

+ 2 - 2
examples/docs/typography.md

@@ -106,13 +106,13 @@
   <div class="name">Arial</div>
 </div>
 
-### 字体家族 css 代码:
+### Font-family 代码
 
 ```css
 font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
 ```
 
-### 字体使用规范
+### 字体使用规范
 
 <table class="demo-typo-size">
   <tbody>

+ 6 - 1
examples/pages/index.vue

@@ -127,6 +127,11 @@
     from { opacity: 0; }
     to { opacity: 1; }
   }
+  @media (max-width: 1140px) {
+    .cards {
+      width: 100%;
+    }
+  }
 </style>
 <template>
   <div>
@@ -160,7 +165,7 @@
           <div class="card">
             <img src="~examples/assets/images/zujian.png" alt="">
             <h3>组件</h3>
-            <p>使用组件 Demo 快速体验交互细节;使用前端框架封装的代码帮助工程师快速开发。</p>
+            <p>使用组件 Demo 快速体验交互细节使用前端框架封装的代码帮助工程师快速开发。</p>
             <router-link
               active-class="active"
               to="/component/layout"

+ 1 - 9
examples/route.config.js

@@ -17,9 +17,6 @@ const registerRoute = (config) => {
       },
       component: component.default || component
     };
-    if (page.path === '/changelog') {
-      child.redirect = '/changelog';
-    }
 
     route[0].children.push(child);
   }
@@ -73,12 +70,7 @@ let indexRoute = {
   component: require('./pages/index.vue')
 };
 
-let changeLogRoute = {
-  path: '/changelog',
-  component: require('./pages/changelog.vue')
-};
-
-route.route = route.route.concat([indexRoute, guideRoute, resourceRoute, changeLogRoute]);
+route.route = route.route.concat([indexRoute, guideRoute, resourceRoute]);
 
 route.route.push({
   path: '*',

+ 0 - 3
packages/date-picker/package.json

@@ -13,8 +13,5 @@
   "license": "MIT",
   "dependencies": {
     "wind-dom": "0.0.3"
-  },
-  "devDependencies": {
-    "vue": "^2.0.0-beta.7"
   }
 }