Comments (15)
what you up to?
from element-plus.
@lichencc Please modify the content according to the specification, otherwise the issue will be closed.
from element-plus.
what you up to?
我想在完整的项目中(可参考发布的codesandbox),用cdn的方式替代之前npm包的使用方式,该如何做呢
from element-plus.
你想做什么?
我想在完整的项目中(可参考发布的codesandbox),用cdn的方式替代npm包之前的使用方式,来做呢
https://staging.element-plus.org/zh-CN/guide/installation.html
from element-plus.
https://cn.vuejs.org/guide/essentials/component-basics.html#in-dom-template-parsing-caveats
注意事项
from element-plus.
你想做什么?
我想在完整的项目中(可参考发布的codesandbox),用cdn的方式替代npm包之前的使用方式,来做呢
https://staging.element-plus.org/zh-CN/guide/installation.html
这仍然是在html中使用,在完整项目的index.html中引入这两个cdn,我无法在我的vue文件中使用element-plus组件。是否有使用cdn,并类似在main.js中app.use(ElementPlus)的使用示例呢
from element-plus.
你想做什么?
我想在完整的项目中(可参考发布的codesandbox),用cdn的方式替代npm包之前的使用方式,来做呢
https://staging.element-plus.org/zh-CN/guide/installation.html
这仍然是在html中使用,在完整项目的index.html中引入这两个cdn,我无法在我的vue文件中使用element-plus组件。是否有使用cdn,并类似在main.js中app.use(ElementPlus)的使用示例呢
不太清楚,可以这样用么?
from element-plus.
你想做什么?
我想在完整的项目中(可参考发布的codesandbox),用cdn的方式替代npm包之前的使用方式,来做呢
https://staging.element-plus.org/zh-CN/guide/installation.html
这仍然是在html中使用,在完整项目的index.html中引入这两个cdn,我无法在我的vue文件中使用element-plus组件。是否有使用cdn,并类似在main.js中app.use(ElementPlus)的使用示例呢
不太清楚,可以这样用么?
难道cdn只能在单html文件中使用吗,那项目中就无法使用cdn了?
from element-plus.
here is a sample using cdn
https://github.com/yzqtpl/element-cdn-sample.git
from element-plus.
Bug Type:
Other
Environment
- Vue Version:
3.4.19
- Element Plus Version:
2.5.1
- Browser / OS:
Chrome 121.0.6167.185
- Build Tool:
Vite
Reproduction
Related Component
N/A
Reproduction Link
Steps to reproduce
!
What is Expected?
在main.ts中引入ElementPlus
What is actually happening?
无法引入
Additional comments
(empty)
from element-plus.
在html中的head标签中引入cdn之后,在main.js中拿到ElementPlus变量,然后app.use(ElementPlus)应该就可以吧
from element-plus.
,在main.js中拿到ElementPlus变量,然后app.u
em我试了下拿不到ElementPlus变量,window上有,但只是个空对象
from element-plus.
可以重新发一个分享的链接吗,你发的那个没有打开权限
from element-plus.
可以重新发一个分享的链接吗,你发的那个没有打开权限
那就是一个codesandbox中vue3+vite5项目的空白模版,其中main.ts中挂载了app
from element-plus.
here is a sample using cdn
大佬,你这个sample是生产环境读取cdn,我想要开发环境也读取cdn可以实现吗
from element-plus.
Related Issues (20)
- [Component] [select] el-select中, 无法回显value为空的option的label HOT 1
- [Component] [tour] CDN 下使用el-tour 会报错aria.ts:22 Uncaught (in promise) ReferenceError: process is not defined HOT 11
- [Style] [table] 表格内容溢出时,鼠标移入显示的tooltip背景色显示无效 HOT 2
- [Component] [input] input component: The clearable attribute is invalid HOT 1
- [Component] [date-picker, time-picker] DatePicker 选中值并隐藏下拉选项后,在先聚焦外部的情况下,再次点击页面其它地方会再次出现消失动画 HOT 2
- [Component] [table, table-column] table 多列合并后渲染了多余的数据 HOT 3
- [Component] [table, table-column] el-table内的show-overflow-tooltip属性,在windows的chrome浏览器内,会在文字没有溢出时,也会出现Tooltip 文字提示 HOT 2
- [Component] [tree-select] [Component] [TreeSelect ] TreeSelect 设置check-strictly="false后当子节点无children,子节点也可被选择 HOT 4
- [Component] [input-number] <el-input-number> 可以输入e 其他都输不了 HOT 1
- [Component] [color-picker] Cannot set class name of el-color-picker’s trigger
- [Component] [radio] radio无法被选中 HOT 4
- [Style] [dropdown] Dropdown 下拉菜单 HOT 6
- [slider] slider 组件会响应home和end的快捷键,我不想让他响应,我应该怎么做? HOT 11
- [Component] [tree-select] 开启 `allow-create` 时样式错乱
- [Component] [All] Failed to resolve component: el-button If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. HOT 1
- [Component] [select]: select 配置可清空功能,清空后值变成undefined,类型发生变化 HOT 7
- [Component] [row, col] 当横向渲染分辨率设置为767px时el-col组件布局失去响应式。
- [IDEA] more Types HOT 1
- [Feature Request] More types HOT 5
- [tree-select] el-tree-select
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element-plus.