/** * @description 滚动条配置 */ import React from "react" import { PopModal, Input, Button, PopMessage, StateManage } from "../../../../" interface IScrollSetting { config?: { x?: string | number y?: string | number } onOk?: ({ config }) => void } export const ScrollSetting = (params: IScrollSetting) => { const { config, onOk } = params || {} const [xState, XTpl] = Input({ label: "横向滚动", type: "number", value: config?.x, style: { width: "70%" } }, false) const [yState, YTpl] = Input({ label: "纵向滚动", type: "number", value: config?.y, style: { width: "70%" } }, false) PopModal({ title: "滚动条配置", allowFullScreen: false, width: "400px", height: "120px", content: