← All changes
|
classes/Visualizer/Gutenberg/src/Components/Sidebar/SlicesSettings.js
+4
-1
3.1.2
→
3.9.4
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | const { __ } = wp.i18n; |
| 5 | 5 | |
| 6 | 6 | const { Component } = wp.element; |
| 7 | 7 | |
| 8 | -const { ColorPalette } = wp.editor; | |
| 8 | +const { ColorPalette } = wp.blockEditor || wp.editor; | |
| 9 | 9 | |
| 10 | 10 | const { |
| 11 | 11 | BaseControl, |
| 12 | 12 | PanelBody, |
| @@ -67,8 +67,11 @@ | ||
| 67 | 67 | onChange={ e => { |
| 68 | 68 | settings.slices[i].offset = e; |
| 69 | 69 | this.props.edit( settings ); |
| 70 | 70 | } } |
| 71 | + type="number" | |
| 72 | + min="0" | |
| 73 | + step="0.1" | |
| 71 | 74 | /> |
| 72 | 75 | |
| 73 | 76 | <BaseControl |
| 74 | 77 | label={ __( 'Format' ) } |