mirror of https://github.com/ElemeFE/element
remove 'next' and 'rc' for 1.0.0 release
parent
a88577b99b
commit
933da27f6a
6
FAQ.md
6
FAQ.md
|
@ -28,6 +28,12 @@
|
||||||
参数 `row` 即为对应行的数据。
|
参数 `row` 即为对应行的数据。
|
||||||
</details>
|
</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>
|
<details>
|
||||||
<summary>你们的文档怎么偷偷更新了?</summary>
|
<summary>你们的文档怎么偷偷更新了?</summary>
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
[](https://cdnjs.com/libraries/element-ui)
|
[](https://cdnjs.com/libraries/element-ui)
|
||||||
[](https://www.npmjs.org/package/element-ui)
|
[](https://www.npmjs.org/package/element-ui)
|
||||||
[](https://npmjs.org/package/element-ui)
|
[](https://npmjs.org/package/element-ui)
|
||||||

|

|
||||||

|

|
||||||
[](https://gitter.im/ElemeFE/element?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[](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.
|
> Desktop UI elements for Vue.js 2.0.
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
```shell
|
```shell
|
||||||
npm install element-ui@next -S
|
npm install element-ui -S
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
|
@ -15,7 +15,7 @@ then
|
||||||
echo "Releasing theme-default $VERSION ..."
|
echo "Releasing theme-default $VERSION ..."
|
||||||
cd packages/theme-default
|
cd packages/theme-default
|
||||||
npm version $VERSION --message "[release] $VERSION"
|
npm version $VERSION --message "[release] $VERSION"
|
||||||
npm publish --tag next
|
npm publish
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
# commit
|
# commit
|
||||||
|
@ -26,5 +26,5 @@ then
|
||||||
# publish
|
# publish
|
||||||
git push eleme refs/tags/v$VERSION
|
git push eleme refs/tags/v$VERSION
|
||||||
git push eleme master
|
git push eleme master
|
||||||
npm publish --tag next
|
npm publish
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,7 +9,7 @@ npm i element-theme -D
|
||||||
|
|
||||||
安装默认主题,可以从 npm 安装或者从 GitHub 拉取最新代码。
|
安装默认主题,可以从 npm 安装或者从 GitHub 拉取最新代码。
|
||||||
```shell
|
```shell
|
||||||
npm i element-theme-default@next -D
|
npm i element-theme-default -D
|
||||||
|
|
||||||
# 从 GitHub
|
# 从 GitHub
|
||||||
npm i https://github.com/ElementUI/theme-default -D
|
npm i https://github.com/ElementUI/theme-default -D
|
||||||
|
|
|
@ -169,10 +169,10 @@
|
||||||
goJsfiddle() {
|
goJsfiddle() {
|
||||||
const { script, html, style } = this.jsfiddle;
|
const { script, html, style } = this.jsfiddle;
|
||||||
const resourcesTpl = '<scr' + 'ipt src="//unpkg.com/vue/dist/vue.js"></scr' + 'ipt>' +
|
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 jsTpl = (script || '').replace(/export default/, 'var Main =').trim();
|
||||||
let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>`;
|
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 = jsTpl
|
||||||
? jsTpl + '\nvar Ctor = Vue.extend(Main)\nnew Ctor().$mount(\'#app\')'
|
? jsTpl + '\nvar Ctor = Vue.extend(Main)\nnew Ctor().$mount(\'#app\')'
|
||||||
: 'new Vue().$mount(\'#app\')';
|
: 'new Vue().$mount(\'#app\')';
|
||||||
|
|
|
@ -4,18 +4,17 @@
|
||||||
推荐使用 npm 的方式安装,它能更好地和 [webpack](https://webpack.js.org/) 打包工具配合使用。
|
推荐使用 npm 的方式安装,它能更好地和 [webpack](https://webpack.js.org/) 打包工具配合使用。
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
npm i element-ui@next -D
|
npm i element-ui -D
|
||||||
```
|
```
|
||||||
**由于当前还处于 rc 阶段,所以仍然需要通过 @next 的方式获取最新版本。**
|
|
||||||
|
|
||||||
### CDN
|
### 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
|
```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
|
### Hello world
|
||||||
|
@ -27,7 +26,7 @@ npm i element-ui@next -D
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
@ -38,9 +37,9 @@ npm i element-ui@next -D
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<!-- 先引入 Vue -->
|
<!-- 先引入 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>
|
<script>
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"element-ui": "^1.0.0-rc.8",
|
"element-ui": "^1.0.0",
|
||||||
"vue": "^2.0.3"
|
"vue": "^2.0.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.0.0",
|
"babel-core": "^6.0.0",
|
||||||
|
|
1
i18n.md
1
i18n.md
|
@ -41,5 +41,6 @@ Currently Element ships with the following languages:
|
||||||
- Chinese
|
- Chinese
|
||||||
- English
|
- English
|
||||||
- German
|
- 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.
|
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.
|
||||||
|
|
Loading…
Reference in New Issue