@easyv/config
Advanced tools
Comparing version 1.0.46 to 1.0.47
@@ -262,3 +262,8 @@ "use strict"; | ||
color: '#1283E3', | ||
radius: 4 | ||
radius: 4, | ||
image: 'components/static-image/superChart/fang.png', | ||
size: { | ||
width: 10, | ||
height: 10 | ||
} | ||
}; | ||
@@ -403,3 +408,11 @@ | ||
_ref4$radius = _ref4.radius, | ||
radius = _ref4$radius === void 0 ? defaultIcon.radius : _ref4$radius; | ||
radius = _ref4$radius === void 0 ? defaultIcon.radius : _ref4$radius, | ||
_ref4$image = _ref4.image, | ||
image = _ref4$image === void 0 ? defaultIcon.image : _ref4$image, | ||
_ref4$size = _ref4.size; | ||
_ref4$size = _ref4$size === void 0 ? defaultIcon.size : _ref4$size; | ||
var _ref4$size$width = _ref4$size.width, | ||
imageWidth = _ref4$size$width === void 0 ? defaultIcon.size.width : _ref4$size$width, | ||
_ref4$size$height = _ref4$size.height, | ||
imageHeight = _ref4$size$height === void 0 ? defaultIcon.size.height : _ref4$size$height; | ||
return { | ||
@@ -426,5 +439,36 @@ name: 'icon', | ||
value: 'double' | ||
}, { | ||
name: '自定义', | ||
value: 'custom' | ||
}] | ||
} | ||
}, { | ||
rule: [['show', '$eq', true], ['mode', '$eq', 'custom']], | ||
name: 'image', | ||
displayName: '图片', | ||
value: image, | ||
type: 'uploadImage' | ||
}, { | ||
rule: [['show', '$eq', true], ['mode', '$eq', 'custom']], | ||
name: 'size', | ||
displayName: '尺寸', | ||
value: [{ | ||
name: 'width', | ||
displayName: '宽度', | ||
value: imageWidth, | ||
config: { | ||
span: 12, | ||
suffix: 'W' | ||
} | ||
}, { | ||
name: 'height', | ||
displayName: '高度', | ||
value: imageHeight, | ||
config: { | ||
span: 12, | ||
suffix: 'H' | ||
} | ||
}], | ||
type: 'group' | ||
}, { | ||
rule: [['show', '$eq', true], ['mode', '$eq', 'double']], | ||
@@ -431,0 +475,0 @@ name: 'inner', |
{ | ||
"name": "@easyv/config", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -216,2 +216,7 @@ import { mapping, label, multiColor } from '.'; | ||
radius: 4, | ||
image: 'components/static-image/superChart/fang.png', | ||
size: { | ||
width: 10, | ||
height: 10 | ||
} | ||
}; | ||
@@ -229,60 +234,60 @@ | ||
) => [ | ||
{ | ||
name: 'type', | ||
displayName: '类型', | ||
value: type, | ||
type: 'select', | ||
config: { | ||
options: [ | ||
{ | ||
name: '实线', | ||
value: 'solid', | ||
}, | ||
{ | ||
name: '虚线', | ||
value: 'dash', | ||
}, | ||
], | ||
{ | ||
name: 'type', | ||
displayName: '类型', | ||
value: type, | ||
type: 'select', | ||
config: { | ||
options: [ | ||
{ | ||
name: '实线', | ||
value: 'solid', | ||
}, | ||
{ | ||
name: '虚线', | ||
value: 'dash', | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'color', | ||
displayName: '颜色', | ||
value: color, | ||
type: 'color', | ||
}, | ||
{ | ||
name: 'lineWidth', | ||
displayName: '粗细', | ||
value: lineWidth, | ||
type: 'input', | ||
config: { | ||
suffix: 'px', | ||
{ | ||
name: 'color', | ||
displayName: '颜色', | ||
value: color, | ||
type: 'color', | ||
}, | ||
}, | ||
{ | ||
name: 'curve', | ||
displayName: '曲线', | ||
value: curve, | ||
type: 'boolean', | ||
}, | ||
{ | ||
rule: [['curve', '$eq', true]], | ||
name: 'tension', | ||
displayName: '曲线张力', | ||
value: tension, | ||
type: 'range', | ||
config: { | ||
min: 0, | ||
max: 1, | ||
step: 0.1, | ||
{ | ||
name: 'lineWidth', | ||
displayName: '粗细', | ||
value: lineWidth, | ||
type: 'input', | ||
config: { | ||
suffix: 'px', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'connectNulls', | ||
displayName: 'null值连接', | ||
value: connectNulls, | ||
type: 'boolean', | ||
}, | ||
]; | ||
{ | ||
name: 'curve', | ||
displayName: '曲线', | ||
value: curve, | ||
type: 'boolean', | ||
}, | ||
{ | ||
rule: [['curve', '$eq', true]], | ||
name: 'tension', | ||
displayName: '曲线张力', | ||
value: tension, | ||
type: 'range', | ||
config: { | ||
min: 0, | ||
max: 1, | ||
step: 0.1, | ||
}, | ||
}, | ||
{ | ||
name: 'connectNulls', | ||
displayName: 'null值连接', | ||
value: connectNulls, | ||
type: 'boolean', | ||
}, | ||
]; | ||
@@ -351,2 +356,7 @@ const lighter = ( | ||
radius = defaultIcon.radius, | ||
image = defaultIcon.image, | ||
size: { | ||
width: imageWidth = defaultIcon.size.width, | ||
height: imageHeight = defaultIcon.size.height | ||
} = defaultIcon.size | ||
} = defaultIcon) => ({ | ||
@@ -378,2 +388,6 @@ name: 'icon', | ||
}, | ||
{ | ||
name: '自定义', | ||
value: 'custom', | ||
}, | ||
], | ||
@@ -385,2 +399,41 @@ }, | ||
['show', '$eq', true], | ||
['mode', '$eq', 'custom'], | ||
], | ||
name: 'image', | ||
displayName: '图片', | ||
value: image, | ||
type: 'uploadImage', | ||
}, | ||
{ | ||
rule: [ | ||
['show', '$eq', true], | ||
['mode', '$eq', 'custom'], | ||
], | ||
name: 'size', | ||
displayName: '尺寸', | ||
value: [ | ||
{ | ||
name: 'width', | ||
displayName: '宽度', | ||
value: imageWidth, | ||
config: { | ||
span: 12, | ||
suffix: 'W', | ||
}, | ||
}, | ||
{ | ||
name: 'height', | ||
displayName: '高度', | ||
value: imageHeight, | ||
config: { | ||
span: 12, | ||
suffix: 'H', | ||
}, | ||
}, | ||
], | ||
type: 'group', | ||
}, | ||
{ | ||
rule: [ | ||
['show', '$eq', true], | ||
['mode', '$eq', 'double'], | ||
@@ -597,13 +650,13 @@ ], | ||
name: 'color', | ||
displayName: currentColor !=undefined?'默认颜色':'颜色', | ||
displayName: currentColor != undefined ? '默认颜色' : '颜色', | ||
type: 'multicolor', | ||
value: multiColor(color), | ||
}, | ||
currentColor !=undefined && { | ||
currentColor != undefined && { | ||
name: 'currentColor', | ||
displayName: '当前颜色', | ||
type:"multicolor", | ||
type: "multicolor", | ||
value: multiColor(currentColor) | ||
} | ||
].filter((item)=>!!item), | ||
].filter((item) => !!item), | ||
type: 'object', | ||
@@ -610,0 +663,0 @@ }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
294378
10235
0