element/examples/docs/es/installation.md

35 lines
1.4 KiB
Markdown
Raw Normal View History

2017-11-11 07:32:35 +00:00
## Instalación
2017-11-06 11:22:02 +00:00
### npm
2017-11-11 07:32:35 +00:00
Instalar mediante npm es la forma recomendada ya que se integra facilmente con [webpack](https://webpack.js.org/).
2017-11-06 11:22:02 +00:00
```shell
npm i element-ui -S
```
### CDN
2017-12-03 10:03:06 +00:00
Obtenga la última versión desde [unpkg.com/element-ui](https://unpkg.com/element-ui/) , e importe el JavaScript y los archivos CSS en su página.
2017-11-06 11:22:02 +00:00
```html
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
```
2017-11-11 07:32:35 +00:00
##Tip
Recomendamos a nuestros usuarios congelar la versión de Elemet cuando usas un CDN. Por favor, refiérase a [unpkg.com](https://unpkg.com) para más información.
2017-11-06 11:22:02 +00:00
### Hello world
Si esta usando un CDN, una página con Hello-World es fácil con Element. [Online Demo](https://codepen.io/ziyoung/pen/rRKYpd)
2017-11-06 11:22:02 +00:00
<iframe height="265" style="width: 100%;" scrolling="no" title="Element demo" src="//codepen.io/ziyoung/embed/rRKYpd/?height=265&theme-id=light&default-tab=html,result" frameborder="no" allowtransparency="true" allowfullscreen="true">
See the Pen <a href='https://codepen.io/ziyoung/pen/rRKYpd/'>Element demo</a> by hetech
(<a href='https://codepen.io/ziyoung'>@ziyoung</a>) on <a href='https://codepen.io'>CodePen</a>.
</iframe>
2017-11-11 07:32:35 +00:00
2018-08-02 06:33:51 +00:00
Si esta usando npm y desea combinarlo con webpack, por favor continue a la siguiente página: [Quick Start](/#/es/component/quickstart)