remove 'next' and 'rc' for 1.0.0 release

pull/947/head
Leopoldthecoder 2016-11-09 17:36:17 +08:00
parent a88577b99b
commit 933da27f6a
8 changed files with 24 additions and 18 deletions

6
FAQ.md
View File

@ -28,6 +28,12 @@
参数 `row` 即为对应行的数据。
</details>
<details>
<summary>Tree 组件的 `render-content` 和 Table 组件的 `render-header` 怎么用?</summary>
请阅读 Vue 文档 [Render Function](http://vuejs.org/v2/guide/render-function.html) 的相关内容。注意,使用 JSX 来写 Render Function 的话,需要安装 `babel-plugin-transform-vue-jsx`,并参照其[文档](https://github.com/vuejs/babel-plugin-transform-vue-jsx)进行配置。
</details>
<details>
<summary>你们的文档怎么偷偷更新了?</summary>

View File

@ -4,8 +4,8 @@
[![CDNJS](https://img.shields.io/cdnjs/v/element-ui.svg)](https://cdnjs.com/libraries/element-ui)
[![npm package](https://img.shields.io/npm/v/element-ui.svg)](https://www.npmjs.org/package/element-ui)
[![NPM downloads](http://img.shields.io/npm/dm/element-ui.svg)](https://npmjs.org/package/element-ui)
![JS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui@next/lib/index.js?compression=gzip&label=gzip%20size:%20JS)
![CSS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui@next/lib/theme-default/index.css?compression=gzip&label=gzip%20size:%20CSS)
![JS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui/lib/index.js?compression=gzip&label=gzip%20size:%20JS)
![CSS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-default/index.css?compression=gzip&label=gzip%20size:%20CSS)
[![Join the chat at https://gitter.im/ElemeFE/element](https://badges.gitter.im/ElemeFE/element.svg)](https://gitter.im/ElemeFE/element?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
> Desktop UI elements for Vue.js 2.0.
@ -28,7 +28,7 @@
## Install
```shell
npm install element-ui@next -S
npm install element-ui -S
```
## Quick Start

View File

@ -15,7 +15,7 @@ then
echo "Releasing theme-default $VERSION ..."
cd packages/theme-default
npm version $VERSION --message "[release] $VERSION"
npm publish --tag next
npm publish
cd ../..
# commit
@ -26,5 +26,5 @@ then
# publish
git push eleme refs/tags/v$VERSION
git push eleme master
npm publish --tag next
npm publish
fi

View File

@ -9,7 +9,7 @@ npm i element-theme -D
安装默认主题,可以从 npm 安装或者从 GitHub 拉取最新代码。
```shell
npm i element-theme-default@next -D
npm i element-theme-default -D
# 从 GitHub
npm i https://github.com/ElementUI/theme-default -D

View File

@ -169,10 +169,10 @@
goJsfiddle() {
const { script, html, style } = this.jsfiddle;
const resourcesTpl = '<scr' + 'ipt src="//unpkg.com/vue/dist/vue.js"></scr' + 'ipt>' +
'\n<scr' + 'ipt src="//unpkg.com/element-ui@next/lib/index.js"></scr' + 'ipt>';
'\n<scr' + 'ipt src="//unpkg.com/element-ui/lib/index.js"></scr' + 'ipt>';
let jsTpl = (script || '').replace(/export default/, 'var Main =').trim();
let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>`;
let cssTpl = `@import url("//unpkg.com/element-ui@next/lib/theme-default/index.css");\n${(style || '').trim()}\n`;
let cssTpl = `@import url("//unpkg.com/element-ui/lib/theme-default/index.css");\n${(style || '').trim()}\n`;
jsTpl = jsTpl
? jsTpl + '\nvar Ctor = Vue.extend(Main)\nnew Ctor().$mount(\'#app\')'
: 'new Vue().$mount(\'#app\')';

View File

@ -4,18 +4,17 @@
推荐使用 npm 的方式安装,它能更好地和 [webpack](https://webpack.js.org/) 打包工具配合使用。
```shell
npm i element-ui@next -D
npm i element-ui -D
```
**由于当前还处于 rc 阶段,所以仍然需要通过 @next 的方式获取最新版本。**
### CDN
目前可以通过 [unpkg.com/element-ui](https://unpkg.com/element-ui@next/) 获取到最新版本的资源,在页面上引入 js 和 css 文件即可开始使用。
目前可以通过 [unpkg.com/element-ui](https://unpkg.com/element-ui/) 获取到最新版本的资源,在页面上引入 js 和 css 文件即可开始使用。
```html
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui@1.0.0-rc.8/lib/theme-default/index.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui@1.0.0/lib/theme-default/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui@1.0.0-rc.8/lib/index.js"></script>
<script src="https://unpkg.com/element-ui@1.0.0/lib/index.js"></script>
```
### Hello world
@ -27,7 +26,7 @@ npm i element-ui@next -D
<head>
<meta charset="UTF-8">
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui@1.0.0-rc.8/lib/theme-default/index.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui@1.0.0/lib/theme-default/index.css">
</head>
<body>
<div id="app">
@ -38,9 +37,9 @@ npm i element-ui@next -D
</div>
</body>
<!-- 先引入 Vue -->
<script src="https://unpkg.com/vue@2.0.3/dist/vue.js"></script>
<script src="https://unpkg.com/vue@2.0.5/dist/vue.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui@1.0.0-rc.8/lib/index.js"></script>
<script src="https://unpkg.com/element-ui@1.0.0/lib/index.js"></script>
<script>
new Vue({
el: '#app',

View File

@ -46,8 +46,8 @@
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"dependencies": {
"element-ui": "^1.0.0-rc.8",
"vue": "^2.0.3"
"element-ui": "^1.0.0",
"vue": "^2.0.5"
},
"devDependencies": {
"babel-core": "^6.0.0",

View File

@ -41,5 +41,6 @@ Currently Element ships with the following languages:
- Chinese
- English
- German
- Portuguese
If your target language is not included, you are more than welcome to contribute: just add another language config [here](https://github.com/ElemeFE/element/tree/master/src/locale/lang) and create a pull request.