asiaint-lowcode 3.1.133 → 3.1.135
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/README.md +31 -31
- package/dist/asiaint-lowcode.d.ts +48 -22
- package/dist/asiaint-lowcode.js +12 -10
- package/dist/asiaint-lowcode.umd.cjs +195 -195
- package/dist/lazy/{Card-DtjWg1Xq.js → Card-DmKgpNex.js} +8 -8
- package/dist/lazy/{Cascader-D6tLylt3.js → Cascader-Al6GEjA7.js} +1 -1
- package/dist/lazy/{Checkbox-WRqIiDBI.js → Checkbox-Bqg1dmRj.js} +2 -2
- package/dist/lazy/{Collapse-DUAR3fo-.js → Collapse-kKlBdDd5.js} +1 -1
- package/dist/lazy/{Component-CSAJFNz9.js → Component-B-_VNzhG.js} +2 -2
- package/dist/lazy/{Component-CrWycR59.js → Component-Cj5oeerh.js} +1 -1
- package/dist/lazy/{Component-CKDlCju5.js → Component-CvMJNJkO.js} +2 -2
- package/dist/lazy/{Component-OQoiF-H_.js → Component-DdO5QLCn.js} +2 -2
- package/dist/lazy/{Component-B17yN3a5.js → Component-pX61QaNQ.js} +1 -1
- package/dist/lazy/{CurdCard-Bg0Wn1gz.js → CurdCard-BxOBw_5N.js} +2 -2
- package/dist/lazy/Custom-0UZprobJ.js +26 -0
- package/dist/lazy/{DatePicker-C8-FouNa.js → DatePicker-Bbxi8xJo.js} +1 -1
- package/dist/lazy/{DragList-D4-OlR0N.js → DragList-D_4EWIob.js} +13 -13
- package/dist/lazy/{FilterSearch-DsMGIjD0.js → FilterSearch-DkZ1y8w7.js} +2 -2
- package/dist/lazy/{FloatCurd-CH79GdAP.js → FloatCurd-CEAz35PY.js} +2 -2
- package/dist/lazy/{FormList-LQ0rlYCm.js → FormList-Cg1sWJ5D.js} +1 -1
- package/dist/lazy/{Grid-Dc55OmkP.js → Grid-Dpl7hLeO.js} +1 -1
- package/dist/lazy/{InfiniteScroll-GXJaeDH2.js → InfiniteScroll-BW02Dit3.js} +4 -4
- package/dist/lazy/{Inline-vq_ZINbe.js → Inline-BR7J-2OP.js} +3 -3
- package/dist/lazy/{JsonEdit-C7QZ1US2.js → JsonEdit-DLefRyoB.js} +3 -3
- package/dist/lazy/{LogList-DfXilEAl.js → LogList-Db3N-IxQ.js} +7 -7
- package/dist/lazy/{ObjGroup-DyoofHeG.js → ObjGroup-DxGGDMia.js} +1 -1
- package/dist/lazy/{OfferDetails-DplYmL4_.js → OfferDetails-B4Yft-7E.js} +13 -13
- package/dist/lazy/Pagination-B1H4a-9B.js +121 -0
- package/dist/lazy/{Progress-Dgarzcrb.js → Progress-BpuFjEGz.js} +15 -15
- package/dist/lazy/{Radio-Bu2OFKN5.js → Radio-BcfiAy5A.js} +3 -3
- package/dist/lazy/{SearchSelect-Cnj7EbS1.js → SearchSelect-D-9Mqfnw.js} +6 -6
- package/dist/lazy/{Select-xxPh6dTg.js → Select-Bq_7MUqp.js} +2 -2
- package/dist/lazy/{Table-B1LoAm7D.js → Table-CLikJxSG.js} +92 -92
- package/dist/lazy/{Tabs-DIFPUtoY.js → Tabs-DXGTwfaA.js} +7 -7
- package/dist/lazy/{TextArea-ZxI5JN2L.js → TextArea-DhP1AkkI.js} +3 -3
- package/dist/lazy/{Wrapper-DL_GCV99.js → Wrapper-Bzv3WF7N.js} +4 -4
- package/dist/lazy/{index-Dhg5B5VO.js → index-BmDPMRiQ.js} +6372 -6279
- package/dist/lazy/{useSelect-CNKjta_l.js → useSelect-Ds4rYvFj.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +1 -1
- package/dist/lazy/Custom-BaC1fl3y.js +0 -26
- package/dist/lazy/Pagination-B16-PA7m.js +0 -112
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# asiaint-lowcode
|
|
2
|
-
|
|
3
|
-
基于 [vue](https://github.com/vuejs/vue) 和 [element-plus](https://github.com/ElemeFE/element) 实现的表单设计器 + 渲染器
|
|
4
|
-
|
|
5
|
-
使用了最新的前端技术栈,可以让你免去vue项目中表单的烦恼。
|
|
6
|
-
|
|
7
|
-
### 安装
|
|
8
|
-
|
|
9
|
-
```js
|
|
10
|
-
npm i asiaint-lowcode
|
|
11
|
-
//或
|
|
12
|
-
yarn add asiaint-lowcode
|
|
13
|
-
//或
|
|
14
|
-
pnpm i asiaint-lowcode
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### 全局注册
|
|
18
|
-
|
|
19
|
-
```js
|
|
20
|
-
import { createApp } from 'vue'
|
|
21
|
-
import AsiaintLowcode from 'asiaint-lowcode'
|
|
22
|
-
import ElementPlus from 'element-plus'
|
|
23
|
-
import 'element-plus/dist/index.css'
|
|
24
|
-
import App from './App.vue'
|
|
25
|
-
|
|
26
|
-
const app = createApp(App)
|
|
27
|
-
|
|
28
|
-
app.use(ElementPlus)
|
|
29
|
-
app.use(AsiaintLowcode)
|
|
30
|
-
app.mount('#app')
|
|
31
|
-
```
|
|
1
|
+
# asiaint-lowcode
|
|
2
|
+
|
|
3
|
+
基于 [vue](https://github.com/vuejs/vue) 和 [element-plus](https://github.com/ElemeFE/element) 实现的表单设计器 + 渲染器
|
|
4
|
+
|
|
5
|
+
使用了最新的前端技术栈,可以让你免去vue项目中表单的烦恼。
|
|
6
|
+
|
|
7
|
+
### 安装
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
npm i asiaint-lowcode
|
|
11
|
+
//或
|
|
12
|
+
yarn add asiaint-lowcode
|
|
13
|
+
//或
|
|
14
|
+
pnpm i asiaint-lowcode
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 全局注册
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import { createApp } from 'vue'
|
|
21
|
+
import AsiaintLowcode from 'asiaint-lowcode'
|
|
22
|
+
import ElementPlus from 'element-plus'
|
|
23
|
+
import 'element-plus/dist/index.css'
|
|
24
|
+
import App from './App.vue'
|
|
25
|
+
|
|
26
|
+
const app = createApp(App)
|
|
27
|
+
|
|
28
|
+
app.use(ElementPlus)
|
|
29
|
+
app.use(AsiaintLowcode)
|
|
30
|
+
app.mount('#app')
|
|
31
|
+
```
|
|
@@ -4,10 +4,12 @@ import { ComponentOptionsMixin } from 'vue';
|
|
|
4
4
|
import { ComponentProvideOptions } from 'vue';
|
|
5
5
|
import { ComponentPublicInstance } from 'vue';
|
|
6
6
|
import { DeepReadonly } from 'vue';
|
|
7
|
+
import { default as default_2 } from 'element-plus/es/components/tree/src/model/node';
|
|
7
8
|
import { DefineComponent } from 'vue';
|
|
8
9
|
import { ExtractPropTypes } from 'vue';
|
|
9
10
|
import { FormValidationResult } from 'element-plus';
|
|
10
11
|
import { InjectionKey } from 'vue';
|
|
12
|
+
import { LayoutItem } from 'grid-layout-plus';
|
|
11
13
|
import { ModelRef } from 'vue';
|
|
12
14
|
import { PropType } from 'vue';
|
|
13
15
|
import { PublicProps } from 'vue';
|
|
@@ -126,7 +128,7 @@ parentPageFun?: typeof methodMap;
|
|
|
126
128
|
}>>, {
|
|
127
129
|
activate: typeof activate;
|
|
128
130
|
ruleFunction: typeof ruleFunction;
|
|
129
|
-
findRef: <T extends keyof FindRefTypeMap
|
|
131
|
+
findRef: <T extends keyof FindRefTypeMap, R = FindRefType<T>>(key: string) => R;
|
|
130
132
|
setFormDisabled: (key: string, disabled: boolean) => void;
|
|
131
133
|
clearValidate: (key: string, names?: string | string[]) => void;
|
|
132
134
|
validate: (keys: string[] | string) => Promise<boolean | undefined>;
|
|
@@ -154,7 +156,7 @@ getGlobalParams: () => any;
|
|
|
154
156
|
setBtnState: setBtnStateFn;
|
|
155
157
|
setReadMode: (key: string, readMode: boolean) => void;
|
|
156
158
|
getParentPageFun: () => {
|
|
157
|
-
findRef: <T extends keyof FindRefTypeMap
|
|
159
|
+
findRef: <T extends keyof FindRefTypeMap, R = FindRefType<T>>(key: string) => R;
|
|
158
160
|
setFormDisabled: (key: string, disabled: boolean) => void;
|
|
159
161
|
clearValidate: (key: string, names?: string | string[]) => void;
|
|
160
162
|
validate: (keys: string[] | string) => Promise<boolean | undefined>;
|
|
@@ -394,10 +396,7 @@ declare const _default: {
|
|
|
394
396
|
export default _default;
|
|
395
397
|
|
|
396
398
|
declare const _default_10: DefineComponent<ExtractPropTypes< {
|
|
397
|
-
modelValue:
|
|
398
|
-
required: true;
|
|
399
|
-
type: PropType<ItemType[]>;
|
|
400
|
-
};
|
|
399
|
+
modelValue: PropType<ItemType[]>;
|
|
401
400
|
name: {
|
|
402
401
|
type: PropType<string>;
|
|
403
402
|
required: true;
|
|
@@ -418,6 +417,10 @@ selectAllChange: {
|
|
|
418
417
|
type: PropType<string>;
|
|
419
418
|
required: true;
|
|
420
419
|
};
|
|
420
|
+
defaultPageSize: {
|
|
421
|
+
type: PropType<number>;
|
|
422
|
+
required: true;
|
|
423
|
+
};
|
|
421
424
|
}>, {
|
|
422
425
|
setPagination: (val: {
|
|
423
426
|
pageNum?: number;
|
|
@@ -451,10 +454,7 @@ setData: (val: ItemType[]) => void;
|
|
|
451
454
|
setHiddenPagination: (val: boolean) => void;
|
|
452
455
|
type: "checkboxCard";
|
|
453
456
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
454
|
-
modelValue:
|
|
455
|
-
required: true;
|
|
456
|
-
type: PropType<ItemType[]>;
|
|
457
|
-
};
|
|
457
|
+
modelValue: PropType<ItemType[]>;
|
|
458
458
|
name: {
|
|
459
459
|
type: PropType<string>;
|
|
460
460
|
required: true;
|
|
@@ -475,6 +475,10 @@ selectAllChange: {
|
|
|
475
475
|
type: PropType<string>;
|
|
476
476
|
required: true;
|
|
477
477
|
};
|
|
478
|
+
defaultPageSize: {
|
|
479
|
+
type: PropType<number>;
|
|
480
|
+
required: true;
|
|
481
|
+
};
|
|
478
482
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
479
483
|
|
|
480
484
|
declare const _default_11: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps_6<{
|
|
@@ -555,10 +559,6 @@ pageRulePath: {
|
|
|
555
559
|
type: PropType<string>;
|
|
556
560
|
required: true;
|
|
557
561
|
};
|
|
558
|
-
styleType: {
|
|
559
|
-
type: PropType<"normal" | "btn" | "modal">;
|
|
560
|
-
required: true;
|
|
561
|
-
};
|
|
562
562
|
}>, {
|
|
563
563
|
setTabContent: (newContents: TabsSchema["content"]) => void;
|
|
564
564
|
addTabContent: (newContent: TabsSchema["content"] | getArrayType<TabsSchema["content"]>) => void;
|
|
@@ -582,7 +582,7 @@ readonly hidden?: boolean | undefined;
|
|
|
582
582
|
readonly isSticky?: boolean | undefined;
|
|
583
583
|
readonly stickyTop?: number | undefined;
|
|
584
584
|
readonly expandTop?: boolean | undefined;
|
|
585
|
-
readonly styleType?: ("modal" | "btn" | "normal") | undefined;
|
|
585
|
+
readonly styleType?: ("modal" | "btn" | "normal" | "small") | undefined;
|
|
586
586
|
readonly staticBtns: readonly ({
|
|
587
587
|
readonly component: "Popover";
|
|
588
588
|
readonly props: {
|
|
@@ -920,10 +920,6 @@ pageRulePath: {
|
|
|
920
920
|
type: PropType<string>;
|
|
921
921
|
required: true;
|
|
922
922
|
};
|
|
923
|
-
styleType: {
|
|
924
|
-
type: PropType<"normal" | "btn" | "modal">;
|
|
925
|
-
required: true;
|
|
926
|
-
};
|
|
927
923
|
}>> & Readonly<{
|
|
928
924
|
onDoneParent?: ((...args: any[]) => any) | undefined;
|
|
929
925
|
onAddPageParams?: ((...args: any[]) => any) | undefined;
|
|
@@ -1312,6 +1308,30 @@ export declare type FormElement = {
|
|
|
1312
1308
|
|
|
1313
1309
|
export declare type FormInstance = Omit<InstanceType<typeof FormRender>, keyof ComponentPublicInstance>;
|
|
1314
1310
|
|
|
1311
|
+
export declare const FormItemGroup: DefineComponent<ExtractPropTypes< {
|
|
1312
|
+
gridData: PropType<(LayoutItem & {
|
|
1313
|
+
rowHeight?: number;
|
|
1314
|
+
contentHeight?: number;
|
|
1315
|
+
})[]>;
|
|
1316
|
+
list: {
|
|
1317
|
+
type: PropType<FormItemType[]>;
|
|
1318
|
+
required: true;
|
|
1319
|
+
};
|
|
1320
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1321
|
+
gridItemMoved: (...args: any[]) => void;
|
|
1322
|
+
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1323
|
+
gridData: PropType<(LayoutItem & {
|
|
1324
|
+
rowHeight?: number;
|
|
1325
|
+
contentHeight?: number;
|
|
1326
|
+
})[]>;
|
|
1327
|
+
list: {
|
|
1328
|
+
type: PropType<FormItemType[]>;
|
|
1329
|
+
required: true;
|
|
1330
|
+
};
|
|
1331
|
+
}>> & Readonly<{
|
|
1332
|
+
onGridItemMoved?: ((...args: any[]) => any) | undefined;
|
|
1333
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1334
|
+
|
|
1315
1335
|
export declare interface FormItemType {
|
|
1316
1336
|
label?: string;
|
|
1317
1337
|
labelSuffixText?: string;
|
|
@@ -1505,7 +1525,7 @@ declare type Locale = {
|
|
|
1505
1525
|
* 方法映射
|
|
1506
1526
|
*/
|
|
1507
1527
|
declare const methodMap: {
|
|
1508
|
-
findRef: <T extends keyof FindRefTypeMap
|
|
1528
|
+
findRef: <T extends keyof FindRefTypeMap, R = FindRefType<T>>(key: string) => R;
|
|
1509
1529
|
setFormDisabled: (key: string, disabled: boolean) => void;
|
|
1510
1530
|
clearValidate: (key: string, names?: string | string[]) => void;
|
|
1511
1531
|
validate: (keys: string[] | string) => Promise<boolean | undefined>;
|
|
@@ -1533,7 +1553,7 @@ declare const methodMap: {
|
|
|
1533
1553
|
setBtnState: setBtnStateFn;
|
|
1534
1554
|
setReadMode: (key: string, readMode: boolean) => void;
|
|
1535
1555
|
getParentPageFun: () => {
|
|
1536
|
-
findRef: <T extends keyof FindRefTypeMap
|
|
1556
|
+
findRef: <T extends keyof FindRefTypeMap, R = FindRefType<T>>(key: string) => R;
|
|
1537
1557
|
setFormDisabled: (key: string, disabled: boolean) => void;
|
|
1538
1558
|
clearValidate: (key: string, names?: string | string[]) => void;
|
|
1539
1559
|
validate: (keys: string[] | string) => Promise<boolean | undefined>;
|
|
@@ -1907,7 +1927,7 @@ declare type TabsSchema = {
|
|
|
1907
1927
|
isSticky?: boolean;
|
|
1908
1928
|
stickyTop?: number;
|
|
1909
1929
|
expandTop?: boolean;
|
|
1910
|
-
styleType?: 'modal' | 'btn' | 'normal';
|
|
1930
|
+
styleType?: 'modal' | 'btn' | 'normal' | 'small';
|
|
1911
1931
|
staticBtns: BtnType[];
|
|
1912
1932
|
dynamicBtns: BtnType[];
|
|
1913
1933
|
content: {
|
|
@@ -1948,9 +1968,12 @@ nodeKey: string;
|
|
|
1948
1968
|
styleType?: "modal" | "normal";
|
|
1949
1969
|
name: string;
|
|
1950
1970
|
showCheckbox?: boolean;
|
|
1971
|
+
filter?: string;
|
|
1951
1972
|
}>>, {
|
|
1952
1973
|
getCurrentNode: () => any;
|
|
1953
1974
|
getCheckedNodes: () => any;
|
|
1975
|
+
setCurrentNode: (node: default_2) => void;
|
|
1976
|
+
setCurrentKey: (nodeKey: string | number) => void;
|
|
1954
1977
|
elTreeRef: Readonly<unknown>;
|
|
1955
1978
|
type: "tree";
|
|
1956
1979
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
|
|
@@ -1965,8 +1988,11 @@ nodeKey: string;
|
|
|
1965
1988
|
styleType?: "modal" | "normal";
|
|
1966
1989
|
name: string;
|
|
1967
1990
|
showCheckbox?: boolean;
|
|
1991
|
+
filter?: string;
|
|
1968
1992
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1969
1993
|
|
|
1994
|
+
export declare const useComponentRef: (key: string, instance: any) => () => void;
|
|
1995
|
+
|
|
1970
1996
|
export declare const useFormInstance: () => FormInstance;
|
|
1971
1997
|
|
|
1972
1998
|
export declare const useRuleContext: () => {
|
package/dist/asiaint-lowcode.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as r, D as n, b as m, d as t, P as d, E as i, H as p, z as u, f, G as R, i as F, u as g, c as l } from "./lazy/index-BmDPMRiQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import "vue";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as $options,
|
|
7
7
|
n as FormDesign,
|
|
8
|
+
m as FormItemGroup,
|
|
8
9
|
t as FormRender,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
g as
|
|
10
|
+
d as PageRender,
|
|
11
|
+
i as TableRender,
|
|
12
|
+
p as Tree,
|
|
13
|
+
u as default,
|
|
14
|
+
f as findItemByName,
|
|
15
|
+
R as provideRefManager,
|
|
16
|
+
F as useComponentRef,
|
|
17
|
+
g as useFormInstance,
|
|
18
|
+
l as useRuleContext
|
|
17
19
|
};
|