@symbo.ls/preview 0.0.83 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -79,7 +79,7 @@ const DotForPropButton = {
|
|
|
79
79
|
const property = direction.parent
|
|
80
80
|
|
|
81
81
|
const propKey = diffPropValue(property.value, direction.value)
|
|
82
|
-
const active = table.props[propKey] === row
|
|
82
|
+
const active = table.props[propKey] === row && row.key
|
|
83
83
|
|
|
84
84
|
const isRadius = property.value === 'borderRadius'
|
|
85
85
|
|
|
@@ -116,7 +116,7 @@ export const SpacingPropButton = {
|
|
|
116
116
|
props: (element) => {
|
|
117
117
|
const { table, row, property } = getStateTree(element)
|
|
118
118
|
const propValue = property.value
|
|
119
|
-
const active = table.props[propValue] === row
|
|
119
|
+
const active = table.props[propValue] === row && row.key
|
|
120
120
|
return {
|
|
121
121
|
active,
|
|
122
122
|
lazyLoad: true,
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
Object.keys(SPACING_BUTTONS).filter(v => {
|
|
30
30
|
const rowState = state.sequence[state.selectedKey]
|
|
31
31
|
const { maxValue } = SPACING_BUTTONS[v]
|
|
32
|
-
return maxValue ? maxValue > rowState
|
|
32
|
+
return maxValue ? maxValue > rowState && rowState.val : true
|
|
33
33
|
}
|
|
34
34
|
)
|
|
35
35
|
}
|