myprint-design
Version:
操作简单,组件丰富的一站式打印解决方案打印设计器
190 lines (189 loc) • 6.54 kB
TypeScript
import { i18n } from '../../../../locales';
declare const _default: import("vue").DefineComponent<{}, {
useSocketData: import("pinia").Store<"myPrintSocket", {
socket: any;
timer: any;
connect: boolean;
printerList: import("../../../../index").Printer[];
resolveMap: {};
}, {}, {
INIT_SOCKET(): void;
SET_PRINTER_LIST(list: import("../../../../index").Printer[]): void;
SEND(taskId: string, msg: any): Promise<import("../../../../index").ClientResult>;
}>;
configStore: import("pinia").Store<"myPrintConfig", {
init: boolean;
printer: any;
defaultPrinter: any;
clientProtocol: string;
clientUrl: string;
autoConnect: number;
settingPanel: any;
settingDesign: {
autoAlign: number;
showElementDesignBorderIs: number;
};
}, {}, {
initConfig(): void;
updateConfig(key: string, value: string): void;
postConfig(): void;
}>;
statusName: import("vue").ComputedRef<"连接成功" | "连接断开">;
MySwitch: import("vue").DefineComponent<{
enable: {
type: BooleanConstructor;
required: false;
default: boolean;
};
modelValue: {
type: NumberConstructor;
required: false;
default: any;
};
nullActive: {
type: BooleanConstructor;
required: false;
default: boolean;
};
activeText: {
type: StringConstructor;
required: false;
default: string;
};
inactiveText: {
type: StringConstructor;
required: false;
default: string;
};
}, {
emit: (event: "change" | "click" | "update:modelValue", ...args: any[]) => void;
props: any;
modelValueComputed: import("vue").ComputedRef<any>;
statusText: import("vue").ComputedRef<any>;
click: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "click" | "update:modelValue")[], "change" | "click" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
enable: {
type: BooleanConstructor;
required: false;
default: boolean;
};
modelValue: {
type: NumberConstructor;
required: false;
default: any;
};
nullActive: {
type: BooleanConstructor;
required: false;
default: boolean;
};
activeText: {
type: StringConstructor;
required: false;
default: string;
};
inactiveText: {
type: StringConstructor;
required: false;
default: string;
};
}>> & {
onClick?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
onChange?: (...args: any[]) => any;
}, {
enable: boolean;
modelValue: number;
nullActive: boolean;
activeText: string;
inactiveText: string;
}, {}>;
MyFormItem: import("vue").DefineComponent<{
label: {
type: StringConstructor;
required: false;
};
labelWidth: {
type: StringConstructor;
required: false;
default: string;
};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
label: {
type: StringConstructor;
required: false;
};
labelWidth: {
type: StringConstructor;
required: false;
default: string;
};
}>>, {
labelWidth: string;
}, {}>;
MyForm: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
MyInput: import("vue").DefineComponent<{
modelValue: {
type: any;
required: true;
};
placeholder: {
type: StringConstructor;
required: false;
};
type: {
type: StringConstructor;
required: false;
default: string;
};
disabled: {
type: BooleanConstructor;
required: false;
default: boolean;
};
}, {
emit: (event: "input" | "change" | "update:modelValue", ...args: any[]) => void;
inputRef: import("vue").Ref<HTMLInputElement>;
textareaRef: import("vue").Ref<HTMLInputElement>;
props: any;
myInputRef: import("vue").ComputedRef<HTMLInputElement>;
nativeInputValue: import("vue").ComputedRef<string>;
setNativeInputValue: () => void;
data: {
focusIs: boolean;
};
inputBlur: () => void;
inputFocus: () => void;
onInput: (e: InputEvent) => Promise<void>;
onChange: (e: InputEvent) => void;
clickWrapper: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "update:modelValue")[], "input" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: any;
required: true;
};
placeholder: {
type: StringConstructor;
required: false;
};
type: {
type: StringConstructor;
required: false;
default: string;
};
disabled: {
type: BooleanConstructor;
required: false;
default: boolean;
};
}>> & {
"onUpdate:modelValue"?: (...args: any[]) => any;
onInput?: (...args: any[]) => any;
onChange?: (...args: any[]) => any;
}, {
type: string;
disabled: boolean;
}, {}>;
readonly i18n: typeof i18n;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
export default _default;