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
05704d5d
Commit
05704d5d
authored
Sep 23, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: add cdn usage, #134
parent
85495b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
examples/docs/quickstart.md
examples/docs/quickstart.md
+16
-0
No files found.
examples/docs/quickstart.md
View file @
05704d5d
...
...
@@ -61,3 +61,19 @@ Vue.component(Button.name, Button);
]]]
}
```
### 通过标签全局引入
这里用 unpkg cdn 做示范。请先引入 Vue 再引入组件,加载完成后会自动注册,参考
[
示例
](
https://codepen.io/anon/pen/ozYpNA
)
。
```
html
<!-- 引入样式 -->
<link
rel=
"stylesheet"
href=
"//unpkg.com/element-ui@1.0.0-rc.4/lib/theme-default/index.css"
>
<!-- body -->
<!-- 引入组件库 -->
<script
src=
"//unpkg.com/vue@2.0.0-rc.6/dist/vue.js"
></script>
<script
src=
"//unpkg.com/element-ui@1.0.0-rc.4/lib/index.js"
></script>
```
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