@easyv/config
Advanced tools
Comparing version 1.0.30 to 1.0.31
const config = require('./lib'); | ||
module.exports = config; |
@@ -17,4 +17,4 @@ "use strict"; | ||
actions: [{ | ||
name: "鼠标点击", | ||
value: "click" | ||
name: '鼠标点击', | ||
value: 'click' | ||
}], | ||
@@ -43,7 +43,7 @@ extraInput: [] | ||
name: 'action', | ||
displayName: "匹配动作", | ||
type: "select", | ||
value: "", | ||
displayName: '匹配动作', | ||
type: 'select', | ||
value: 'click', | ||
config: { | ||
options: callback.actions ? (0, _toConsumableArray2["default"])(callback.actions) : [defaultCallback.actions] | ||
options: callback.actions ? callback.actions : defaultCallback.actions | ||
} | ||
@@ -70,7 +70,7 @@ }, { | ||
name: 'actions', | ||
displayName: "匹配动作", | ||
type: "select", | ||
value: "", | ||
displayName: '匹配动作', | ||
type: 'select', | ||
value: 'click', | ||
config: { | ||
options: callback.actions ? (0, _toConsumableArray2["default"])(callback.actions) : [defaultCallback.actions] | ||
options: callback.actions ? callback.actions : defaultCallback.actions | ||
} | ||
@@ -77,0 +77,0 @@ }, { |
{ | ||
"name": "@easyv/config", | ||
"version": "1.0.30", | ||
"version": "1.0.31", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ import { show as showConfig } from './'; |
@@ -0,0 +0,0 @@ import { gridLine, tickLine, axisLine, extent, unit, translate, font } from '.'; |
@@ -0,0 +0,0 @@ const axisLine = { |
@@ -0,0 +0,0 @@ const defaultBrush = { |
@@ -0,0 +0,0 @@ const defaultDimension = { |
@@ -0,0 +0,0 @@ const extent = { |
@@ -0,0 +0,0 @@ const defaultFont = { |
@@ -0,0 +0,0 @@ const gridLine = { |
@@ -0,0 +0,0 @@ import show from './show'; |
@@ -5,5 +5,5 @@ /** | ||
const defaultCallback = { | ||
actions:[{name:"鼠标点击",value:"click"}], | ||
extraInput: [] | ||
} | ||
actions: [{ name: '鼠标点击', value: 'click' }], | ||
extraInput: [], | ||
}; | ||
@@ -28,8 +28,10 @@ export default ({ callback, remoteControl }) => ({ | ||
name: 'action', | ||
displayName:"匹配动作", | ||
type:"select", | ||
value:"", | ||
config:{ | ||
options:callback.actions?[...callback.actions]:[defaultCallback.actions] | ||
} | ||
displayName: '匹配动作', | ||
type: 'select', | ||
value: 'click', | ||
config: { | ||
options: callback.actions | ||
? callback.actions | ||
: defaultCallback.actions, | ||
}, | ||
}, | ||
@@ -48,3 +50,5 @@ { | ||
}, | ||
...(callback.extraInput?callback.extraInput:defaultCallback.extraInput) | ||
...(callback.extraInput | ||
? callback.extraInput | ||
: defaultCallback.extraInput), | ||
], | ||
@@ -61,8 +65,10 @@ })), | ||
name: 'actions', | ||
displayName:"匹配动作", | ||
type:"select", | ||
value:"", | ||
config:{ | ||
options:callback.actions?[...callback.actions]:[defaultCallback.actions] | ||
} | ||
displayName: '匹配动作', | ||
type: 'select', | ||
value: 'click', | ||
config: { | ||
options: callback.actions | ||
? callback.actions | ||
: defaultCallback.actions, | ||
}, | ||
}, | ||
@@ -81,3 +87,5 @@ { | ||
}, | ||
...(callback.extraInput?callback.extraInput:defaultCallback.extraInput) | ||
...(callback.extraInput | ||
? callback.extraInput | ||
: defaultCallback.extraInput), | ||
], | ||
@@ -84,0 +92,0 @@ }, |
@@ -0,0 +0,0 @@ import { translate, font } from '.'; |
@@ -0,0 +0,0 @@ const { translate: translateConfig, font, show: showConfig } = require('.'); |
@@ -0,0 +0,0 @@ const defaultMapping = { fieldName: '', displayName: '' }; |
@@ -0,0 +0,0 @@ const defaultMargin = { |
@@ -0,0 +0,0 @@ import { font, show as showConfig, translate as translateConfig } from './'; |
@@ -0,0 +0,0 @@ import { mapping, label } from '.'; |
@@ -0,0 +0,0 @@ export default (show = false) => ({ |
@@ -0,0 +0,0 @@ const defaultTickLine = { |
@@ -0,0 +0,0 @@ import { translate, margin } from '.'; |
@@ -0,0 +0,0 @@ export default (x = 0, y = 0) => ({ |
@@ -0,0 +0,0 @@ const { translate } = require('.'); |
Sorry, the diff of this file is not supported yet
7621
220380