Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
b53dcd17
Commit
b53dcd17
authored
Oct 27, 2017
by
Leopoldthecoder
Committed by
杨奕
Oct 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock CDN resource version for 1.x docs
parent
2a745aa8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
examples/docs/en-US/i18n.md
examples/docs/en-US/i18n.md
+5
-5
examples/docs/en-US/installation.md
examples/docs/en-US/installation.md
+6
-6
examples/docs/zh-CN/i18n.md
examples/docs/zh-CN/i18n.md
+5
-5
examples/docs/zh-CN/installation.md
examples/docs/zh-CN/installation.md
+6
-6
No files found.
examples/docs/en-US/i18n.md
View file @
b53dcd17
...
...
@@ -145,8 +145,8 @@ ElementLocale.i18n((key, value) => i18n.t(key, value))
```
html
<script
src=
"//unpkg.com/vue"
></script>
<script
src=
"//unpkg.com/element-ui"
></script>
<script
src=
"//unpkg.com/element-ui/lib/umd/locale/en.js"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
/lib/umd/locale/en.js"
></script>
<script>
ELEMENT
.
locale
(
ELEMENT
.
lang
.
en
)
...
...
@@ -158,9 +158,9 @@ Compatible with `vue-i18n`
```
html
<script
src=
"//unpkg.com/vue"
></script>
<script
src=
"//unpkg.com/vue-i18n/dist/vue-i18n.js"
></script>
<script
src=
"//unpkg.com/element-ui"
></script>
<script
src=
"//unpkg.com/element-ui/lib/umd/locale/zh-CN.js"
></script>
<script
src=
"//unpkg.com/element-ui/lib/umd/locale/en.js"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
/lib/umd/locale/zh-CN.js"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
/lib/umd/locale/en.js"
></script>
<script>
Vue
.
locale
(
'
en
'
,
ELEMENT
.
lang
.
en
)
...
...
examples/docs/en-US/installation.md
View file @
b53dcd17
...
...
@@ -8,17 +8,17 @@ npm i element-ui -S
```
### CDN
Get the latest version from
[
unpkg.com/element-ui
](
https://unpkg.com/element-ui/
)
, and import JavaScript and CSS file in your page.
Get the latest version from
[
unpkg.com/element-ui
](
https://unpkg.com/element-ui
@1.4
/
)
, and import JavaScript and CSS file in your page.
```
html
<!-- import CSS -->
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui/lib/theme-default/index.css"
>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui
@1.4
/lib/theme-default/index.css"
>
<!-- import JavaScript -->
<script
src=
"https://unpkg.com/element-ui/lib/index.js"
></script>
<script
src=
"https://unpkg.com/element-ui
@1.4
/lib/index.js"
></script>
```
### Hello world
If you are using CDN, a hello-world page is easy with Element.
[
Online Demo
](
http
://codepen.io/QingWei-Li/pen/vXwJrY
)
If you are using CDN, a hello-world page is easy with Element.
[
Online Demo
](
http
s://jsfiddle.net/hzfpyvg6/18/
)
```
html
<!DOCTYPE html>
...
...
@@ -26,7 +26,7 @@ If you are using CDN, a hello-world page is easy with Element. [Online Demo](htt
<head>
<meta
charset=
"UTF-8"
>
<!-- import CSS -->
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui/lib/theme-default/index.css"
>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui
@1.4
/lib/theme-default/index.css"
>
</head>
<body>
<div
id=
"app"
>
...
...
@@ -39,7 +39,7 @@ If you are using CDN, a hello-world page is easy with Element. [Online Demo](htt
<!-- import Vue before Element -->
<script
src=
"https://unpkg.com/vue/dist/vue.js"
></script>
<!-- import JavaScript -->
<script
src=
"https://unpkg.com/element-ui/lib/index.js"
></script>
<script
src=
"https://unpkg.com/element-ui
@1.4
/lib/index.js"
></script>
<script>
new
Vue
({
el
:
'
#app
'
,
...
...
examples/docs/zh-CN/i18n.md
View file @
b53dcd17
...
...
@@ -157,8 +157,8 @@ ElementLocale.i18n((key, value) => i18n.t(key, value))
```
html
<script
src=
"//unpkg.com/vue"
></script>
<script
src=
"//unpkg.com/element-ui"
></script>
<script
src=
"//unpkg.com/element-ui/lib/umd/locale/en.js"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
/lib/umd/locale/en.js"
></script>
<script>
ELEMENT
.
locale
(
ELEMENT
.
lang
.
en
)
...
...
@@ -170,9 +170,9 @@ ElementLocale.i18n((key, value) => i18n.t(key, value))
```
html
<script
src=
"//unpkg.com/vue"
></script>
<script
src=
"//unpkg.com/vue-i18n/dist/vue-i18n.js"
></script>
<script
src=
"//unpkg.com/element-ui"
></script>
<script
src=
"//unpkg.com/element-ui/lib/umd/locale/zh-CN.js"
></script>
<script
src=
"//unpkg.com/element-ui/lib/umd/locale/en.js"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
/lib/umd/locale/zh-CN.js"
></script>
<script
src=
"//unpkg.com/element-ui
@1.4
/lib/umd/locale/en.js"
></script>
<script>
Vue
.
locale
(
'
en
'
,
ELEMENT
.
lang
.
en
)
...
...
examples/docs/zh-CN/installation.md
View file @
b53dcd17
...
...
@@ -8,17 +8,17 @@ npm i element-ui -S
```
### CDN
目前可以通过
[
unpkg.com/element-ui
](
https://unpkg.com/element-ui/
)
获取到最新版本的资源,在页面上引入 js 和 css 文件即可开始使用。
目前可以通过
[
unpkg.com/element-ui
](
https://unpkg.com/element-ui
@1.4
/
)
获取到最新版本的资源,在页面上引入 js 和 css 文件即可开始使用。
```
html
<!-- 引入样式 -->
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui/lib/theme-default/index.css"
>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui
@1.4
/lib/theme-default/index.css"
>
<!-- 引入组件库 -->
<script
src=
"https://unpkg.com/element-ui/lib/index.js"
></script>
<script
src=
"https://unpkg.com/element-ui
@1.4
/lib/index.js"
></script>
```
### Hello world
通过 CDN 的方式我们可以很容易地使用 Element 写出一个 Hello world 页面。
[
在线演示
](
http
://codepen.io/QingWei-Li/pen/vXwJrY
)
通过 CDN 的方式我们可以很容易地使用 Element 写出一个 Hello world 页面。
[
在线演示
](
http
s://jsfiddle.net/hzfpyvg6/18/
)
```
html
<!DOCTYPE html>
...
...
@@ -26,7 +26,7 @@ npm i element-ui -S
<head>
<meta
charset=
"UTF-8"
>
<!-- 引入样式 -->
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui/lib/theme-default/index.css"
>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui
@1.4
/lib/theme-default/index.css"
>
</head>
<body>
<div
id=
"app"
>
...
...
@@ -39,7 +39,7 @@ npm i element-ui -S
<!-- 先引入 Vue -->
<script
src=
"https://unpkg.com/vue/dist/vue.js"
></script>
<!-- 引入组件库 -->
<script
src=
"https://unpkg.com/element-ui/lib/index.js"
></script>
<script
src=
"https://unpkg.com/element-ui
@1.4
/lib/index.js"
></script>
<script>
new
Vue
({
el
:
'
#app
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment