@weitutech/by-components-v3 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import CommonInput from './src/index.vue';
2
+ export { CommonInput };
3
+ export type { CommonInputProps as ByCommonInputProps, CommonInputValue } from './src/types';
4
+ export default CommonInput;
@@ -0,0 +1,25 @@
1
+ import './index.scss';
2
+ import type { CommonInputProps, CommonInputValue } from './types';
3
+ declare const _default: import("vue").DefineComponent<CommonInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
+ input: (value: CommonInputValue) => any;
5
+ "update:modelValue": (value: CommonInputValue) => any;
6
+ blur: (event: FocusEvent) => any;
7
+ change: (value: CommonInputValue) => any;
8
+ focus: (event: FocusEvent) => any;
9
+ "batch-input": (rawContent: string, processedContent: CommonInputValue) => any;
10
+ }, string, import("vue").PublicProps, Readonly<CommonInputProps> & Readonly<{
11
+ onInput?: (value: CommonInputValue) => any;
12
+ "onUpdate:modelValue"?: (value: CommonInputValue) => any;
13
+ onBlur?: (event: FocusEvent) => any;
14
+ onChange?: (value: CommonInputValue) => any;
15
+ onFocus?: (event: FocusEvent) => any;
16
+ "onBatch-input"?: (rawContent: string, processedContent: CommonInputValue) => any;
17
+ }>, {
18
+ size: "large" | "default" | "small" | "mini";
19
+ modelValue: CommonInputValue;
20
+ showBatchInput: boolean;
21
+ batchInputPopoverTitle: string;
22
+ batchInputPlaceholder: string;
23
+ batchInputPopoverWidth: string | number;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * 通用输入框绑定值类型
3
+ */
4
+ export type CommonInputValue = string | number;
5
+ /**
6
+ * 通用输入框 props
7
+ */
8
+ export interface CommonInputProps {
9
+ /**
10
+ * 输入框的值(v-model)
11
+ */
12
+ modelValue?: CommonInputValue;
13
+ /**
14
+ * @deprecated 请使用 modelValue
15
+ */
16
+ value?: CommonInputValue;
17
+ /**
18
+ * 是否显示批量输入按钮
19
+ */
20
+ showBatchInput?: boolean;
21
+ /**
22
+ * 批量输入弹窗标题
23
+ */
24
+ batchInputPopoverTitle?: string;
25
+ /**
26
+ * 批量输入弹窗 placeholder
27
+ */
28
+ batchInputPlaceholder?: string;
29
+ /**
30
+ * 批量输入弹窗宽度
31
+ */
32
+ batchInputPopoverWidth?: string | number;
33
+ /**
34
+ * 输入框大小(用于批量输入按钮)
35
+ */
36
+ size?: 'large' | 'default' | 'small' | 'mini';
37
+ }
@@ -0,0 +1,50 @@
1
+ import { type IProps, IFormItems } from './props';
2
+ declare const _default: import("vue").DefineComponent<IProps, {
3
+ formRef: import("vue").Ref<any, any>;
4
+ submit: () => void;
5
+ reset: () => void;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (values: Record<string, any>) => any;
8
+ change: (values: Record<string, any>) => any;
9
+ reset: () => any;
10
+ submit: (formModelValue: Record<string, any>) => any;
11
+ resetBtnClick: (cloneModelValue: Record<string, any>, cloneFormItems: IFormItems[]) => any;
12
+ queryBtnClick: () => any;
13
+ }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
14
+ "onUpdate:modelValue"?: (values: Record<string, any>) => any;
15
+ onChange?: (values: Record<string, any>) => any;
16
+ onReset?: () => any;
17
+ onSubmit?: (formModelValue: Record<string, any>) => any;
18
+ onResetBtnClick?: (cloneModelValue: Record<string, any>, cloneFormItems: IFormItems[]) => any;
19
+ onQueryBtnClick?: () => any;
20
+ }>, {
21
+ labelWidth: string;
22
+ labelPosition: "left" | "right" | "top";
23
+ inlineMessage: boolean;
24
+ showMessage: boolean;
25
+ otherOptions: {
26
+ submit?: boolean;
27
+ reset?: boolean;
28
+ submitText?: string;
29
+ resetText?: string;
30
+ showSubmitIcon?: boolean;
31
+ };
32
+ requireAsteriskPosition: "left" | "right";
33
+ labelSuffix: string;
34
+ inline: boolean;
35
+ statusIcon: boolean;
36
+ validateOnRuleChange: boolean;
37
+ hideRequiredAsterisk: boolean;
38
+ scrollToError: boolean;
39
+ disabled: boolean;
40
+ modelValue: Record<string, any>;
41
+ isFlexible: boolean;
42
+ flexible: {
43
+ foldField?: any[] | "none";
44
+ unfold?: boolean;
45
+ };
46
+ rowAttrs: import("./props").IRow;
47
+ colLayout: import("./props").TColLayout;
48
+ elSize: "small" | "large" | "default" | "" | string;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ export default _default;
@@ -63,7 +63,7 @@ export type TFormItemProps = {
63
63
  otherOptions?: TOtherOptions;
64
64
  };
65
65
  export declare type IFormItems = TFormItemProps & Omit<FormItemProps, 'labelWidth' | 'inlineMessage' | 'showMessage' | 'labelPosition' | 'otherOptions'>;
66
- interface IRow {
66
+ export interface IRow {
67
67
  gutter?: number;
68
68
  justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between' | 'space-evenly';
69
69
  align?: 'top' | 'middle' | 'bottom';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@weitutech/by-components-v3",
4
- "version": "1.1.22",
4
+ "version": "1.1.23",
5
5
  "private": false,
6
6
  "main": "/src/main.ts",
7
7
  "module": "./dist/by-components-v3.js",