修改自定义颜色插件
This commit is contained in:
@ -206,7 +206,7 @@ class GroundSvg extends Base {
|
||||
}
|
||||
if (this._elms.color) {
|
||||
this._elms.color.forEach((item, i) => {
|
||||
let colorPicker = new ewPlugins('colorpicker', {
|
||||
let colorPicker = new YJColorPicker({
|
||||
el: item.el,
|
||||
size: 'mini',//颜色box类型
|
||||
alpha: true,//是否开启透明度
|
||||
@ -334,7 +334,7 @@ class GroundSvg extends Base {
|
||||
this.text && (this.text.color = v)
|
||||
if (this._elms.textColor) {
|
||||
this._elms.textColor.forEach((item, i) => {
|
||||
let textColorPicker = new ewPlugins('colorpicker', {
|
||||
let textColorPicker = new YJColorPicker({
|
||||
el: item.el,
|
||||
size: 'mini',//颜色box类型
|
||||
alpha: true,//是否开启透明度
|
||||
@ -994,7 +994,7 @@ class GroundSvg extends Base {
|
||||
this.attributeType = this.options.attributeType
|
||||
|
||||
// 颜色组件
|
||||
let colorPicker = new ewPlugins('colorpicker', {
|
||||
let colorPicker = new YJColorPicker({
|
||||
el: contentElm.getElementsByClassName("color")[0],
|
||||
size: 'mini',//颜色box类型
|
||||
alpha: true,//是否开启透明度
|
||||
@ -1009,7 +1009,7 @@ class GroundSvg extends Base {
|
||||
},//点击清空按钮事件回调
|
||||
})
|
||||
|
||||
let textColorPicker = new ewPlugins('colorpicker', {
|
||||
let textColorPicker = new YJColorPicker({
|
||||
el: contentElm.getElementsByClassName("textColor")[0],
|
||||
size: 'mini',//颜色box类型
|
||||
alpha: true,//是否开启透明度
|
||||
|
Reference in New Issue
Block a user