Skip to content

Commit 728ee84

Browse files
Jesse205gitee-org
authored andcommitted
fix: 允许边距等于0
Signed-off-by: 杰西205 <2055675594@qq.com>
1 parent 53949b5 commit 728ee84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/PrinterPage/components/AdjustSheets/CustomMarginItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function createMarginInputLinter(value: Accessor<string>) {
1616
const MARGIN_INPUT_SYNC_STATE_OPTIONS: SyncStateOptions<number, string> = {
1717
flowDown: (value) => String(value),
1818
flowUp: (value) => Number.parseFloat(value),
19-
canFlowUp: (value) => Number.parseFloat(value) > 0,
19+
canFlowUp: (value) => Number.parseFloat(value) >= 0,
2020
};
2121
export default function CustomMarginItems() {
2222
const { state: config, actions: configActions } = useConfig();

0 commit comments

Comments
 (0)