@shaonq/vue 1.1.15 → 1.1.17
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.
- package/lib/index.d.ts +21 -13
- package/lib/index.js +2220 -2196
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
|
184
184
|
declare type ButtonInstance = InstanceType<typeof Button>;
|
|
185
185
|
|
|
186
186
|
/** 组件属性处理函数签名 */
|
|
187
|
-
declare type ComponentAttrHandler = (
|
|
187
|
+
declare type ComponentAttrHandler = (util: OrcFormUtilBind, index?: any) => unknown;
|
|
188
188
|
|
|
189
189
|
/** 组件属性允许的值类型 */
|
|
190
190
|
declare type ComponentAttrValue = null | boolean | number | string | RecordAny_3 | RecordAny_3[] | ComponentAttrHandler;
|
|
@@ -819,8 +819,11 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
819
819
|
value?: any;
|
|
820
820
|
setValue?: ((v: any) => void) | undefined;
|
|
821
821
|
options?: any;
|
|
822
|
-
utils: OrcFormUtil
|
|
823
|
-
|
|
822
|
+
utils: OrcFormUtil & {
|
|
823
|
+
model: string;
|
|
824
|
+
getFormItem: () => OrcFormItem;
|
|
825
|
+
} & Pick<OrcFormUtil, "onChange" | "onMounted">;
|
|
826
|
+
componentAttr: RecordAny_3;
|
|
824
827
|
}) => any>> & {
|
|
825
828
|
row?(_: {}): any;
|
|
826
829
|
default?(_: {
|
|
@@ -933,7 +936,7 @@ export declare type OrcFormItem = {
|
|
|
933
936
|
*/
|
|
934
937
|
rules?: RecordAny_3[] | ((val: OrcFormItem, util: OrcFormUtil) => RecordAny_3[]);
|
|
935
938
|
/** 表单事件处理器 */
|
|
936
|
-
events?: Pick<OrcFormUtil, 'onMounted' | 'onChange'
|
|
939
|
+
events?: Pick<OrcFormUtil, 'onMounted' | 'onChange'>;
|
|
937
940
|
/** 扩展说明字段 */
|
|
938
941
|
note?: string;
|
|
939
942
|
};
|
|
@@ -975,6 +978,8 @@ declare type OrcFormUtil = {
|
|
|
975
978
|
* @returns 匹配的选项对象
|
|
976
979
|
*/
|
|
977
980
|
getModelOption(model: string, val: string): SelectOptionData;
|
|
981
|
+
/** 读取所有内容 */
|
|
982
|
+
getModels: () => any;
|
|
978
983
|
/** 获取指定模型的值 */
|
|
979
984
|
getModel: (model: string) => any;
|
|
980
985
|
/** 检查指定模型是否可见 */
|
|
@@ -992,13 +997,16 @@ declare type OrcFormUtil = {
|
|
|
992
997
|
/** 用于双向数据绑定的模型属性 */
|
|
993
998
|
model?: string;
|
|
994
999
|
/** 组件挂载后执行 */
|
|
995
|
-
onMounted?: (util:
|
|
1000
|
+
onMounted?: (util: OrcFormUtilBind) => any | Promise<any>;
|
|
996
1001
|
/** 值改变时触发 */
|
|
997
|
-
onChange?: (val: any, util:
|
|
998
|
-
/** 响应式更新时触发 */
|
|
999
|
-
onUpdate?: (val: any, oldVal: any, util: OrcFormUtil) => void | Promise<void>;
|
|
1002
|
+
onChange?: (val: any, util: OrcFormUtilBind) => void | Promise<void>;
|
|
1000
1003
|
};
|
|
1001
1004
|
|
|
1005
|
+
declare type OrcFormUtilBind = OrcFormUtil & {
|
|
1006
|
+
model: string;
|
|
1007
|
+
getFormItem: () => OrcFormItem;
|
|
1008
|
+
} & OrcFormItem['events'];
|
|
1009
|
+
|
|
1002
1010
|
export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
1003
1011
|
isShow?: boolean | undefined;
|
|
1004
1012
|
isDirection?: boolean | undefined;
|
|
@@ -1430,7 +1438,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1430
1438
|
rows: any;
|
|
1431
1439
|
}>;
|
|
1432
1440
|
removeRows(): void;
|
|
1433
|
-
|
|
1441
|
+
validate(list?: RecordAny_2[] | undefined): Promise<[string, RecordAny_2[]]>;
|
|
1434
1442
|
getRowSeq(row: any): string | number;
|
|
1435
1443
|
getRowIndex(row: any): number;
|
|
1436
1444
|
removerRowIndex(rowIndex: number): void;
|
|
@@ -1714,7 +1722,7 @@ declare interface TableGridTwoType extends RecordAny_2 {
|
|
|
1714
1722
|
* 选中行数据校验
|
|
1715
1723
|
* @param list 默认 所有选择的数据
|
|
1716
1724
|
*/
|
|
1717
|
-
|
|
1725
|
+
validate(list?: RecordAny_2[]): Promise<[string, RecordAny_2[]]>;
|
|
1718
1726
|
/**
|
|
1719
1727
|
* 根据 row 获取行的序号
|
|
1720
1728
|
* @param row 行对象
|
|
@@ -1816,7 +1824,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1816
1824
|
rows: any;
|
|
1817
1825
|
}>;
|
|
1818
1826
|
removeRows: () => void;
|
|
1819
|
-
|
|
1827
|
+
validate: (list?: RecordAny_2[] | undefined) => Promise<[string, RecordAny_2[]]>;
|
|
1820
1828
|
getRowSeq: (row: any) => string | number;
|
|
1821
1829
|
getRowIndex: (row: any) => number;
|
|
1822
1830
|
removerRowIndex: (rowIndex: number) => void;
|
|
@@ -1837,7 +1845,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1837
1845
|
rows: any;
|
|
1838
1846
|
}>;
|
|
1839
1847
|
removeRows: () => void;
|
|
1840
|
-
|
|
1848
|
+
validate: (list?: RecordAny_2[] | undefined) => Promise<[string, RecordAny_2[]]>;
|
|
1841
1849
|
getRowSeq: (row: any) => string | number;
|
|
1842
1850
|
getRowIndex: (row: any) => number;
|
|
1843
1851
|
removerRowIndex: (rowIndex: number) => void;
|
|
@@ -1900,7 +1908,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1900
1908
|
rows: any;
|
|
1901
1909
|
}>;
|
|
1902
1910
|
removeRows(): void;
|
|
1903
|
-
|
|
1911
|
+
validate(list?: RecordAny_2[] | undefined): Promise<[string, RecordAny_2[]]>;
|
|
1904
1912
|
getRowSeq(row: any): string | number;
|
|
1905
1913
|
getRowIndex(row: any): number;
|
|
1906
1914
|
removerRowIndex(rowIndex: number): void;
|