Comments (3)
轮播表以v-html
的形式渲染元素,可以通过传入<span style="color:red;">text</span>
这种形式的标签内容去修改颜色;分割线的设置,后续将优化轮播表,使其每一行,每一列都具有特定的类名,可使用css优化展示效果
from datav.
轮播表以
v-html
的形式渲染元素,可以通过传入<span style="color:red;">text</span>
这种形式的标签内容去修改颜色;分割线的设置,后续将优化轮播表,使其每一行,每一列都具有特定的类名,可使用css优化展示效果
这很危险,很多用户用轮播表的时候习惯直接把数据塞进去直接展示,v-html会带来XSS攻击的风险,如给一条数据是'<img src="color:#37a2da;" onerror="javascript:alert(1)" />'
,自定义内容可以提供render,样式就给有规则的类或提供自定义行列的类名。
from datav.
+1,已成功复现XSS
并实现node环境下回连shell功能,导致客户端被任意代码执行。
建议轮播表提供slot
而不是直接去编辑v-html
from datav.
Related Issues (20)
- 请问是否支持修改动画速度 HOT 1
- 轮播表序号表头取消从“#”改为“编号” HOT 1
- autoResize.js:41 DataV: Component width or height is 0px, rendering abnormality may occur! HOT 1
- 轮播表可不可以监听滚动
- 轮播表的点击事件
- 官网没看到相关的ts类,目前写vue3+ts+vite项目,很多地方会报类型错误 HOT 2
- 用了全屏,加上dv-scroll-board 就下面会出白边
- 可以麻烦打一个新的release吗?当前release为2020年的。
- dv-scroll-board 组件设置列宽度不起作用 HOT 3
- vue2 main.js 引入后 编译报错
- dv-border-box-11中title不显示
- 颜色能修改么?
- 本地调试能显示,发布就不显示。 HOT 4
- 装饰12预览时报错:Duplicate keys detected error!
- 用了demo那个页面 都做成动态数据,页面卡、慢 HOT 1
- 怎么感觉很旧了,没维护? HOT 2
- 实测不兼容全屏容器不兼容手机,特别是横屏的情况根本没法用 ,各位想入坑同时让手机同样预览效果的掂量掂量,另外里面的装饰线也无法修改宽度 HOT 3
- 图表类型组件 例如柱状图bar,没有tooltip吗?
- 装饰组件dv-decoration-12设置颜色不会重新渲染
- 装饰组件dv-decoration-12设置颜色不会重新渲染
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 datav.