import { ElInput, ElInputNumber, ElSelect, ElOption } from 'element-plus' import { useDisabled, useProxy } from './use-proxy' import './index.less' export default { props: { protocol: { type: String, default: 'http:' }, host: String, port: Number, path: String, size: { type: String, default: 'small' }, portMin: { type: Number, default: 0 }, portMax: { type: Number, default: 65535 }, disabled: { type: Boolean, default: undefined }, disabledConfig: { type: Object, default: () => ({}) } // { protocol, host, port, path} }, setup (props, { emit }) { const [proxyProtocol, proxyHost, proxyPort, proxyPath] = useProxy(props, ['protocol', 'host', 'port', 'path'], emit) const [protocolDisabled, hostDisabled, portDisabled, pathDisabled] = useDisabled(props, ['protocol', 'host', 'port', 'path']) return () =>
} }