1
0

chore: update demo build script and rebuild demo

This commit is contained in:
Justineo
2018-12-21 18:07:36 +08:00
parent c92272b420
commit 09cfa91d1f
7 changed files with 18 additions and 13 deletions

View File

@@ -1 +0,0 @@
h1{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}h1 span{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}h2{margin-top:2rem}article{margin:0 auto;width:600px}.divider[data-content]{margin:2rem 0}.form-horizontal{width:60%}.slider{height:1.8rem}.demo{padding:1rem;background:#f8f8f8;border:1px solid #f1f1f1;border-radius:2px;line-height:2}.hyphens{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.toggle{margin-left:.4rem}.featured{margin-right:.4rem}ul{list-style:disc outside}ul p{margin-bottom:.6rem}.hljs{padding:0}.secondary{font-size:90%}footer{margin:6rem 0 3rem;text-align:center}::-webkit-details-marker{display:none}details{margin-bottom:1em}summary{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5em}summary h4{margin:0}summary:before{content:"";width:.4rem;height:.4rem;margin-right:.4rem;border:2px solid currentColor;border-style:none solid solid none;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}details[open] summary:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}

View File

@@ -0,0 +1 @@
html{scroll-behavior:smooth}h1{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}h1 span{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}h2{margin-top:2rem}article{margin:0 auto;width:600px}.divider[data-content]{margin:2rem 0}.form-horizontal{width:60%}.slider{height:1.8rem}.demo{padding:1rem;background:#f8f8f8;border:1px solid #f1f1f1;border-radius:2px;line-height:2}.hyphens{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.toggle{margin-left:.4rem}.featured{margin-right:.4rem}ul{list-style:disc outside}ul p{margin-bottom:.6rem}.hljs{padding:0}.secondary{font-size:90%}footer{margin:6rem 0 3rem;text-align:center}::-webkit-details-marker{display:none}details{margin-bottom:1em}summary{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5em}summary h4{margin:0}summary:before{content:"";width:.4rem;height:.4rem;margin-right:.4rem;border:2px solid currentColor;border-style:none solid solid none;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}details[open] summary:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}

View File

@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-clamp</title><link href=css/app.5a4c3468.css rel=preload as=style><link href=css/chunk-vendors.99ab1800.css rel=preload as=style><link href=js/app.a12a2942.js rel=preload as=script><link href=js/chunk-vendors.9584c235.js rel=preload as=script><link href=js/vue.2409c628.js rel=preload as=script><link href=css/chunk-vendors.99ab1800.css rel=stylesheet><link href=css/app.5a4c3468.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-clamp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/vue.2409c628.js></script><script src=js/chunk-vendors.9584c235.js></script><script src=js/app.a12a2942.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-clamp</title><link href=css/app.b6324a6b.css rel=preload as=style><link href=css/chunk-vendors.99ab1800.css rel=preload as=style><link href=js/app.d0e2ac22.js rel=preload as=script><link href=js/chunk-vendors.9584c235.js rel=preload as=script><link href=js/vue.2409c628.js rel=preload as=script><link href=css/chunk-vendors.99ab1800.css rel=stylesheet><link href=css/app.b6324a6b.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-clamp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/vue.2409c628.js></script><script src=js/chunk-vendors.9584c235.js></script><script src=js/app.d0e2ac22.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -4,16 +4,18 @@ import { terser } from 'rollup-plugin-terser'
import resolve from 'rollup-plugin-node-resolve'
export default {
entry: 'src/components/Clamp.js',
input: 'src/components/Clamp.js',
output: {
file: 'dist/vue-clamp.js',
name: 'VueClamp',
format: 'umd',
globals: {
vue: 'Vue'
}
},
external: [
'vue'
],
globals: {
vue: 'Vue'
},
format: 'umd',
moduleName: 'VueClamp',
dest: 'dist/vue-clamp.js',
plugins: [
resolve(),
vue({

View File

@@ -336,7 +336,7 @@ export default {
</li>
<li>
<p><code>max-height: number|string</code></p>
<p v-if="zh">'根元素的最大高度数字值将被转换为 <code>px</code> 单位字符串值将直接作为 CSS 属性 <code>max-height</code> 输出</p>
<p v-if="zh">根元素的最大高度数字值将被转换为 <code>px</code> 单位字符串值将直接作为 CSS 属性 <code>max-height</code> 输出</p>
<p v-else>The max height of the root element. Number values are converted to <code>px</code> units. String values are used directly as the <code>max-height</code> CSS property.</p>
</li>
<li>
@@ -468,6 +468,9 @@ export default {
<style src="highlight.js/styles/atom-one-light.css"></style>
<style lang="stylus">
html
scroll-behavior smooth
h1
display flex
margin-top 2rem