asiaint-lowcode 3.0.18 → 3.0.20
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/dist/asiaint-lowcode.js +5 -5
- package/dist/asiaint-lowcode.umd.cjs +132 -132
- package/dist/index.d.ts +9 -81
- package/dist/lazy/{Card-BZBVb7aE.js → Card-Bne8hKf_.js} +1 -1
- package/dist/lazy/{Cascader-B4lz7iK6.js → Cascader-Dx2zWmTz.js} +1 -1
- package/dist/lazy/{Checkbox-Bynb0NT0.js → Checkbox-CA6KM4FC.js} +2 -2
- package/dist/lazy/{Collapse-G30hqmNm.js → Collapse-BJDKB5YO.js} +1 -1
- package/dist/lazy/{Component-CPdFFbsj.js → Component-CDr7HbSm.js} +1 -1
- package/dist/lazy/{Component-fNOhYdFv.js → Component-DqVp3K0h.js} +1 -1
- package/dist/lazy/{Component-B0hYH3vU.js → Component-DrhyApcI.js} +1 -1
- package/dist/lazy/{Component-CWNB0Jlu.js → Component-VTV1gteG.js} +1 -1
- package/dist/lazy/{Component-DPvjrsCR.js → Component-bLrPrFUd.js} +1 -1
- package/dist/lazy/{Component-BeSgMnB2.js → Component-eeXz6daT.js} +1 -1
- package/dist/lazy/CurdCard-C6gI7wmm.js +136 -0
- package/dist/lazy/{Custom-iAQ_31Jp.js → Custom-tlI13tso.js} +1 -1
- package/dist/lazy/{FormList-paORw3Fb.js → FormList-PEPeABIK.js} +1 -1
- package/dist/lazy/{Grid-CAcJjpEy.js → Grid-Dl1sitD5.js} +1 -1
- package/dist/lazy/{Inline-Dtx-csTe.js → Inline-5AXoh0Dy.js} +1 -1
- package/dist/lazy/{JsonEdit-CvdrWLHq.js → JsonEdit-CQhtFaMM.js} +1 -1
- package/dist/lazy/{ObjGroup-Cjz4SzvJ.js → ObjGroup-DHmVfpyI.js} +1 -1
- package/dist/lazy/{OfferDetails-BGoovbJm.js → OfferDetails-D27JKH31.js} +43 -43
- package/dist/lazy/{Radio-DKzZn31G.js → Radio-qZe3BPR2.js} +2 -2
- package/dist/lazy/{SearchSelect-B1YX-Ao2.js → SearchSelect-C1LoYowg.js} +2 -2
- package/dist/lazy/{Select-p4eyst_E.js → Select-DK8LYL5I.js} +2 -2
- package/dist/lazy/Table-C_05Yepo.js +294 -0
- package/dist/lazy/{Tabs-10OyFGmb.js → Tabs-C8RqJeA1.js} +1 -1
- package/dist/lazy/{Wrapper-DauMa47J.js → Wrapper-yuE53Dg_.js} +1 -1
- package/dist/lazy/{index-DMmaR_UH.js → index-GtzBrb0u.js} +6916 -6677
- package/dist/lazy/{useSelect-BsvU-jJC.js → useSelect-DHjiJUFb.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/CardList-DwWiAo9-.js +0 -108
- package/dist/lazy/CardListItem-yhIgxbTe.js +0 -85
- package/dist/lazy/CurdCard-B7bGNxEj.js +0 -107
- package/dist/lazy/Table-CuJVitWt.js +0 -279
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { DeepReadonly } from 'vue';
|
|
|
8
8
|
import { DefineComponent } from 'vue';
|
|
9
9
|
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
10
10
|
import { ExtractPropTypes } from 'vue';
|
|
11
|
+
import { FormInstance as FormInstance_2 } from 'packages/types';
|
|
11
12
|
import { FormValidationResult } from 'element-plus';
|
|
12
13
|
import { InjectionKey } from 'vue';
|
|
13
14
|
import { ModelRef } from 'vue';
|
|
@@ -397,6 +398,7 @@ export declare interface FormInstance extends FormRenderProps {
|
|
|
397
398
|
updateVCodePass: (value: boolean) => void;
|
|
398
399
|
validate: () => FormValidationResult | undefined;
|
|
399
400
|
resetFields: (names?: string[]) => void;
|
|
401
|
+
findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
|
|
400
402
|
submit: () => void;
|
|
401
403
|
}
|
|
402
404
|
|
|
@@ -448,6 +450,7 @@ export declare type FormSchema = {
|
|
|
448
450
|
hideRequiredAsterisk?: boolean;
|
|
449
451
|
labelBold?: boolean;
|
|
450
452
|
scrollToError?: boolean;
|
|
453
|
+
onMounted?: string;
|
|
451
454
|
initialValues?: Record<string, any>;
|
|
452
455
|
key?: string;
|
|
453
456
|
items: FormItemType[];
|
|
@@ -517,6 +520,7 @@ declare type NavBarSchema = {
|
|
|
517
520
|
back?: boolean;
|
|
518
521
|
btns: BtnType[];
|
|
519
522
|
mixMode?: boolean;
|
|
523
|
+
simple?: boolean;
|
|
520
524
|
secondary?: boolean;
|
|
521
525
|
hidden?: boolean;
|
|
522
526
|
key: string;
|
|
@@ -571,6 +575,7 @@ declare type PageSchema = {
|
|
|
571
575
|
schema: TabsSchema;
|
|
572
576
|
}>;
|
|
573
577
|
btns: Array<BtnType>;
|
|
578
|
+
btnPosition?: 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'end' | 'start';
|
|
574
579
|
};
|
|
575
580
|
|
|
576
581
|
declare type RefType<T extends keyof RefTypeMap> = RefTypeMap[T] & ComponentPublicInstance;
|
|
@@ -714,6 +719,9 @@ declare type TableSchema = {
|
|
|
714
719
|
handleCurrentChange?: string;
|
|
715
720
|
pageSizes?: any;
|
|
716
721
|
defaultPageSize?: number;
|
|
722
|
+
typeSwitch?: boolean;
|
|
723
|
+
displayType?: 'card' | 'table';
|
|
724
|
+
onMounted?: string;
|
|
717
725
|
};
|
|
718
726
|
|
|
719
727
|
declare type TabsSchema = {
|
|
@@ -748,86 +756,6 @@ export declare type TemplateData = {
|
|
|
748
756
|
id?: string;
|
|
749
757
|
}[];
|
|
750
758
|
|
|
751
|
-
export declare const useFormInstance: () =>
|
|
752
|
-
readonly formValues: {
|
|
753
|
-
readonly [x: string]: any;
|
|
754
|
-
};
|
|
755
|
-
readonly selectData: {
|
|
756
|
-
readonly [x: string]: {
|
|
757
|
-
readonly [x: string]: any;
|
|
758
|
-
};
|
|
759
|
-
};
|
|
760
|
-
readonly initialValues: {
|
|
761
|
-
readonly [x: string]: {
|
|
762
|
-
readonly [x: string]: any;
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
readonly context: {
|
|
766
|
-
readonly [x: string]: any;
|
|
767
|
-
};
|
|
768
|
-
readonly vCodePass: boolean;
|
|
769
|
-
readonly updateFormValues: (values: Record<string, any>, isAssign?: boolean) => void;
|
|
770
|
-
readonly updateSelectData: (key: string, value: Record<string, any>) => void;
|
|
771
|
-
readonly updateInitialValues: (values: Record<string, any>) => void;
|
|
772
|
-
readonly updateVCodePass: (value: boolean) => void;
|
|
773
|
-
readonly validate: () => FormValidationResult | undefined;
|
|
774
|
-
readonly resetFields: (names?: string[]) => void;
|
|
775
|
-
readonly submit: () => void;
|
|
776
|
-
readonly schema: {
|
|
777
|
-
readonly labelWidth?: number | undefined;
|
|
778
|
-
readonly labelPosition?: ("top" | "left" | "right") | undefined;
|
|
779
|
-
readonly labelSuffix?: string | undefined;
|
|
780
|
-
readonly size?: ("default" | "small" | "large") | undefined;
|
|
781
|
-
readonly disabled?: boolean | undefined;
|
|
782
|
-
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
783
|
-
readonly labelBold?: boolean | undefined;
|
|
784
|
-
readonly scrollToError?: boolean | undefined;
|
|
785
|
-
readonly initialValues?: {
|
|
786
|
-
readonly [x: string]: any;
|
|
787
|
-
} | undefined;
|
|
788
|
-
readonly key?: string | undefined;
|
|
789
|
-
readonly items: readonly {
|
|
790
|
-
readonly label?: string | undefined;
|
|
791
|
-
readonly name: string;
|
|
792
|
-
readonly component: string;
|
|
793
|
-
readonly required?: boolean | undefined;
|
|
794
|
-
readonly props?: {
|
|
795
|
-
readonly [x: string]: any;
|
|
796
|
-
} | undefined;
|
|
797
|
-
readonly initialValue?: any;
|
|
798
|
-
readonly help?: string | undefined;
|
|
799
|
-
readonly children?: readonly any[] | undefined;
|
|
800
|
-
readonly hidden?: (boolean | string) | undefined;
|
|
801
|
-
readonly hideLabel?: boolean | undefined;
|
|
802
|
-
readonly designKey?: string | undefined;
|
|
803
|
-
readonly rules?: readonly {
|
|
804
|
-
readonly type: "email" | "url" | "custom" | string;
|
|
805
|
-
readonly customReg?: string | undefined;
|
|
806
|
-
readonly templateExp?: any;
|
|
807
|
-
readonly message?: string | undefined;
|
|
808
|
-
readonly trigger: readonly string[];
|
|
809
|
-
}[] | undefined;
|
|
810
|
-
readonly class?: any;
|
|
811
|
-
readonly style?: any;
|
|
812
|
-
readonly change?: readonly {
|
|
813
|
-
readonly target: string;
|
|
814
|
-
readonly value?: any;
|
|
815
|
-
readonly condition?: any;
|
|
816
|
-
}[] | undefined;
|
|
817
|
-
readonly dialog?: boolean | undefined;
|
|
818
|
-
readonly width?: number | undefined;
|
|
819
|
-
}[];
|
|
820
|
-
readonly rulePath?: string | undefined;
|
|
821
|
-
readonly hidden?: boolean | undefined;
|
|
822
|
-
readonly dataModel?: string | undefined;
|
|
823
|
-
};
|
|
824
|
-
readonly schemaContext?: {
|
|
825
|
-
readonly [x: string]: any;
|
|
826
|
-
} | undefined;
|
|
827
|
-
readonly design?: boolean | undefined;
|
|
828
|
-
readonly footer?: boolean | undefined;
|
|
829
|
-
readonly read?: boolean | undefined;
|
|
830
|
-
readonly pageRulePath?: string | undefined;
|
|
831
|
-
};
|
|
759
|
+
export declare const useFormInstance: () => FormInstance_2;
|
|
832
760
|
|
|
833
761
|
export { }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, ref as y, inject as u, resolveComponent as _, openBlock as l, createBlock as c, mergeProps as g, withCtx as s, createElementVNode as r, createElementBlock as d, createVNode as a, unref as i, normalizeClass as B, createCommentVNode as M, toDisplayString as $, Fragment as v, renderList as I, Transition as E, withDirectives as V, vShow as x } from "vue";
|
|
2
|
-
import { _ as D, I as C, B as F, a as N, b as S } from "./index-
|
|
2
|
+
import { _ as D, I as C, B as F, a as N, b as S } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const j = { class: "card-header" }, z = { class: "card-btns" }, L = /* @__PURE__ */ w({
|
|
5
5
|
__name: "Card",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as y, openBlock as M, createBlock as C, mergeProps as h, unref as r } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as b } from "./useSelect-
|
|
3
|
+
import { u as b } from "./useSelect-DHjiJUFb.js";
|
|
4
4
|
const k = /* @__PURE__ */ f({
|
|
5
5
|
__name: "Cascader",
|
|
6
6
|
props: /* @__PURE__ */ g({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as T, mergeModels as w, useModel as D, watch as F, resolveComponent as u, resolveDirective as M, unref as a, openBlock as l, createElementBlock as n, toDisplayString as I, Fragment as d, createCommentVNode as i, withDirectives as P, createBlock as s, mergeProps as S, withCtx as f, renderList as h } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as j } from "./index-
|
|
4
|
-
import { u as E } from "./useSelect-
|
|
3
|
+
import { u as j } from "./index-GtzBrb0u.js";
|
|
4
|
+
import { u as E } from "./useSelect-DHjiJUFb.js";
|
|
5
5
|
const L = { key: 0 }, N = {
|
|
6
6
|
key: 0,
|
|
7
7
|
style: { "font-size": "12px" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
|
|
2
|
-
import { a as y } from "./index-
|
|
2
|
+
import { a as y } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
|
|
5
5
|
const x = /* @__PURE__ */ u({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, inject as h, ref as b, resolveComponent as C, openBlock as c, createBlock as m, mergeProps as B, withCtx as f, createElementVNode as d, toDisplayString as y, createElementBlock as _, createCommentVNode as k, Fragment as v, renderList as I, unref as P, withModifiers as V, createTextVNode as w } from "vue";
|
|
2
|
-
import { f as E, I as F, b as j } from "./index-
|
|
2
|
+
import { f as E, I as F, b as j } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = { class: "tree-node-label" }, R = {
|
|
5
5
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
|
|
2
|
-
import { u as V } from "./index-
|
|
2
|
+
import { u as V } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
|
|
5
|
-
import { u as b, b as x } from "./index-
|
|
5
|
+
import { u as b, b as x } from "./index-GtzBrb0u.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
function S() {
|
|
8
8
|
return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, mergeModels as u, useModel as p, resolveComponent as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
|
|
2
|
-
import { u as v } from "./index-
|
|
2
|
+
import { u as v } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const _ = { key: 0 }, K = /* @__PURE__ */ s({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
|
|
2
|
-
import { b as H, u as K, c as Q } from "./index-
|
|
2
|
+
import { b as H, u as K, c as Q } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
|
|
2
2
|
import { ElMessage as M, ElMessageBox as N } from "element-plus";
|
|
3
|
-
import { _ as f } from "./index-
|
|
3
|
+
import { _ as f } from "./index-GtzBrb0u.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent as S, inject as I, ref as w, resolveComponent as E, openBlock as l, createElementBlock as s, createElementVNode as t, normalizeClass as u, createBlock as p, createCommentVNode as h, toDisplayString as F, Fragment as g, renderList as N, withCtx as _, createVNode as i, unref as k, Transition as V, withDirectives as z, vShow as D } from "vue";
|
|
2
|
+
import { u as j, I as r, B as L, a as B, i as R, b as q } from "./index-GtzBrb0u.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const A = { class: "crm-curd-card" }, G = { class: "left-part" }, H = { class: "title" }, J = { class: "right-part" }, K = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "switch-panel"
|
|
7
|
+
}, O = { key: 2 }, P = /* @__PURE__ */ S({
|
|
8
|
+
__name: "CurdCard",
|
|
9
|
+
props: {
|
|
10
|
+
name: {},
|
|
11
|
+
children: {},
|
|
12
|
+
collapsible: { type: Boolean },
|
|
13
|
+
onCollapsed: {},
|
|
14
|
+
typeSwitch: { type: Boolean },
|
|
15
|
+
title: {},
|
|
16
|
+
btns: {},
|
|
17
|
+
type: {},
|
|
18
|
+
mainIcon: {},
|
|
19
|
+
extraIcons: {}
|
|
20
|
+
},
|
|
21
|
+
setup(T) {
|
|
22
|
+
const d = I("ruleModule", void 0), y = I("pageMethodMap", {}), f = (e) => {
|
|
23
|
+
if (e && d)
|
|
24
|
+
try {
|
|
25
|
+
d[e](y);
|
|
26
|
+
} catch (o) {
|
|
27
|
+
console.error(o);
|
|
28
|
+
}
|
|
29
|
+
}, M = () => {
|
|
30
|
+
c.value = !c.value, C.onCollapsed && d && d[C.onCollapsed](y, c.value);
|
|
31
|
+
}, c = w(!1), v = w("table"), $ = j(), b = (e) => {
|
|
32
|
+
v.value = e;
|
|
33
|
+
const o = R($.schema.items, C.name), m = (n) => {
|
|
34
|
+
n.forEach((a) => {
|
|
35
|
+
a.component === "Table" && a.props && (a.props.displayType = e), a.children && a.children.length > 0 && m(a.children);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
o && o.children && m(o.children);
|
|
39
|
+
}, C = T;
|
|
40
|
+
return (e, o) => {
|
|
41
|
+
const m = E("el-tooltip");
|
|
42
|
+
return l(), s("div", A, [
|
|
43
|
+
t("div", {
|
|
44
|
+
class: u(["card-header", {
|
|
45
|
+
inline: e.type === "inline",
|
|
46
|
+
mix: e.type === "mix",
|
|
47
|
+
default: e.type === "default"
|
|
48
|
+
}])
|
|
49
|
+
}, [
|
|
50
|
+
t("div", G, [
|
|
51
|
+
e.mainIcon ? (l(), p(r, {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "title-icon",
|
|
54
|
+
size: "large",
|
|
55
|
+
name: e.mainIcon.name,
|
|
56
|
+
color: e.mainIcon.color
|
|
57
|
+
}, null, 8, ["name", "color"])) : h("", !0),
|
|
58
|
+
t("span", H, F(e.title), 1),
|
|
59
|
+
(l(!0), s(g, null, N(e.extraIcons, (n) => (l(), s(g, {
|
|
60
|
+
key: n.name
|
|
61
|
+
}, [
|
|
62
|
+
n.tips ? (l(), p(m, {
|
|
63
|
+
key: 0,
|
|
64
|
+
content: n.tips,
|
|
65
|
+
placement: "right"
|
|
66
|
+
}, {
|
|
67
|
+
default: _(() => [
|
|
68
|
+
i(r, {
|
|
69
|
+
class: "extra-icon",
|
|
70
|
+
name: n.name,
|
|
71
|
+
color: n.color,
|
|
72
|
+
onClick: (a) => f(n.onClick)
|
|
73
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1032, ["content"])) : (l(), p(r, {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: "extra-icon",
|
|
79
|
+
name: n.name,
|
|
80
|
+
color: n.color,
|
|
81
|
+
onClick: (a) => f(n.onClick)
|
|
82
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
83
|
+
], 64))), 128))
|
|
84
|
+
]),
|
|
85
|
+
t("div", J, [
|
|
86
|
+
e.typeSwitch ? (l(), s("div", K, [
|
|
87
|
+
t("div", {
|
|
88
|
+
class: u(["switch-icon-wrapper", { active: v.value === "card" }]),
|
|
89
|
+
onClick: o[0] || (o[0] = (n) => b("card"))
|
|
90
|
+
}, [
|
|
91
|
+
i(r, { name: "icon-kapian" })
|
|
92
|
+
], 2),
|
|
93
|
+
t("div", {
|
|
94
|
+
class: u(["switch-icon-wrapper", { active: v.value === "table" }]),
|
|
95
|
+
onClick: o[1] || (o[1] = (n) => b("table"))
|
|
96
|
+
}, [
|
|
97
|
+
i(r, { name: "icon-biaoge" })
|
|
98
|
+
], 2)
|
|
99
|
+
])) : h("", !0),
|
|
100
|
+
e.collapsible ? (l(), s("div", {
|
|
101
|
+
key: 1,
|
|
102
|
+
class: u(["collapse-icon-wrapper", { collapsed: c.value }]),
|
|
103
|
+
onClick: M
|
|
104
|
+
}, [
|
|
105
|
+
i(r, { name: "icon-shaixuan" })
|
|
106
|
+
], 2)) : h("", !0),
|
|
107
|
+
e.btns && e.btns.length > 0 ? (l(), s("div", O, [
|
|
108
|
+
i(k(L), {
|
|
109
|
+
btns: e.btns || []
|
|
110
|
+
}, null, 8, ["btns"])
|
|
111
|
+
])) : h("", !0)
|
|
112
|
+
])
|
|
113
|
+
], 2),
|
|
114
|
+
e.onCollapsed ? (l(), p(k(B), {
|
|
115
|
+
key: 1,
|
|
116
|
+
list: e.children
|
|
117
|
+
}, null, 8, ["list"])) : (l(), p(V, {
|
|
118
|
+
key: 0,
|
|
119
|
+
name: "collapse"
|
|
120
|
+
}, {
|
|
121
|
+
default: _(() => [
|
|
122
|
+
z(t("div", null, [
|
|
123
|
+
i(k(B), { list: e.children }, null, 8, ["list"])
|
|
124
|
+
], 512), [
|
|
125
|
+
[D, !c.value]
|
|
126
|
+
])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}))
|
|
130
|
+
]);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}), X = /* @__PURE__ */ q(P, [["__scopeId", "data-v-a14eca40"]]);
|
|
134
|
+
export {
|
|
135
|
+
X as default
|
|
136
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
|
|
2
|
-
import { b as i } from "./index-
|
|
2
|
+
import { b as i } from "./index-GtzBrb0u.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
|
|
2
|
-
import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-
|
|
2
|
+
import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
|
|
5
5
|
__name: "FormList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, computed as a, openBlock as d, createBlock as e, unref as r, normalizeStyle as l } from "vue";
|
|
2
|
-
import { a as m } from "./index-
|
|
2
|
+
import { a as m } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const f = /* @__PURE__ */ o({
|
|
5
5
|
__name: "Grid",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
|
|
2
|
-
import { a as c, b as f } from "./index-
|
|
2
|
+
import { a as c, b as f } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const m = /* @__PURE__ */ a({
|
|
5
5
|
__name: "Inline",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
|
|
2
|
-
import { b as xt, g as Nt } from "./index-
|
|
2
|
+
import { b as xt, g as Nt } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Mt = /* @__PURE__ */ At({
|
|
5
5
|
__name: "Disabled",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
|
|
2
|
-
import { u as j, d as h, e as k } from "./index-
|
|
2
|
+
import { u as j, d as h, e as k } from "./index-GtzBrb0u.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent as D, resolveComponent as I, openBlock as l, createBlock as N, withCtx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const V = { class: "content" }, K = { class: "product-list" }, j = { class: "attribute-list" }, x = {
|
|
1
|
+
import { defineComponent as D, resolveComponent as I, openBlock as l, createBlock as N, withCtx as M, createVNode as S, createElementVNode as a, createElementBlock as s, Fragment as c, renderList as _, toDisplayString as h, createCommentVNode as O, ref as F, inject as m, watchEffect as P, onMounted as $, normalizeStyle as z } from "vue";
|
|
2
|
+
import { j as A, $ as L, b as R } from "./index-GtzBrb0u.js";
|
|
3
|
+
const V = { class: "content" }, j = { class: "product-list" }, K = { class: "attribute-list" }, x = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "attribute-list-item"
|
|
7
6
|
}, U = { class: "product-title attribute-title" }, q = { class: "attribute-item-list" }, G = { class: "attribute-label" }, H = { class: "attribute-value" }, J = /* @__PURE__ */ D({
|
|
@@ -12,39 +11,39 @@ const V = { class: "content" }, K = { class: "product-list" }, j = { class: "att
|
|
|
12
11
|
},
|
|
13
12
|
setup(g) {
|
|
14
13
|
return (o, d) => {
|
|
15
|
-
const
|
|
16
|
-
return l(), N(
|
|
14
|
+
const y = I("el-popover");
|
|
15
|
+
return l(), N(y, {
|
|
17
16
|
"popper-class": "offer-detail",
|
|
18
17
|
placement: "right"
|
|
19
18
|
}, {
|
|
20
|
-
reference:
|
|
21
|
-
|
|
19
|
+
reference: M(() => [
|
|
20
|
+
S(A, {
|
|
22
21
|
data: o.data,
|
|
23
22
|
btns: o.btns
|
|
24
23
|
}, null, 8, ["data", "btns"])
|
|
25
24
|
]),
|
|
26
|
-
default:
|
|
25
|
+
default: M(() => [
|
|
27
26
|
a("div", V, [
|
|
28
27
|
d[0] || (d[0] = a("div", { class: "product-title" }, "Product", -1)),
|
|
29
|
-
a("div",
|
|
30
|
-
(l(!0),
|
|
28
|
+
a("div", j, [
|
|
29
|
+
(l(!0), s(c, null, _(o.data.product, (r) => (l(), s("div", {
|
|
31
30
|
class: "product-item",
|
|
32
|
-
key:
|
|
33
|
-
},
|
|
31
|
+
key: r.label
|
|
32
|
+
}, h(r.label), 1))), 128))
|
|
34
33
|
]),
|
|
35
|
-
a("div",
|
|
36
|
-
(l(!0),
|
|
37
|
-
key:
|
|
34
|
+
a("div", K, [
|
|
35
|
+
(l(!0), s(c, null, _(o.data.product, (r) => (l(), s(c, {
|
|
36
|
+
key: r.label
|
|
38
37
|
}, [
|
|
39
|
-
|
|
40
|
-
a("div", U,
|
|
38
|
+
r.children.length > 0 ? (l(), s("div", x, [
|
|
39
|
+
a("div", U, h(r.label), 1),
|
|
41
40
|
a("div", q, [
|
|
42
|
-
(l(!0),
|
|
41
|
+
(l(!0), s(c, null, _(r.children, (u) => (l(), s("div", {
|
|
43
42
|
class: "attribute-item",
|
|
44
43
|
key: u.label
|
|
45
44
|
}, [
|
|
46
|
-
a("div", G,
|
|
47
|
-
a("div", H,
|
|
45
|
+
a("div", G, h(u.label), 1),
|
|
46
|
+
a("div", H, h(u.value || "--"), 1)
|
|
48
47
|
]))), 128))
|
|
49
48
|
])
|
|
50
49
|
])) : O("", !0)
|
|
@@ -79,45 +78,46 @@ const V = { class: "content" }, K = { class: "product-list" }, j = { class: "att
|
|
|
79
78
|
handleCurrentChange: {},
|
|
80
79
|
pageSizes: {},
|
|
81
80
|
defaultPageSize: {},
|
|
81
|
+
typeSwitch: { type: Boolean },
|
|
82
|
+
displayType: {},
|
|
83
|
+
onMounted: {},
|
|
82
84
|
gridColumns: { default: 3 },
|
|
83
85
|
gap: { default: 16 },
|
|
84
|
-
footerText: {},
|
|
85
|
-
onClickFooter: {},
|
|
86
86
|
data: {},
|
|
87
87
|
columns: {}
|
|
88
88
|
},
|
|
89
89
|
setup(g) {
|
|
90
|
-
var B,
|
|
91
|
-
const o = g, d =
|
|
90
|
+
var B, w;
|
|
91
|
+
const o = g, d = F(), y = m("ruleModule", void 0), r = m("pageMethodMap", {}), u = () => {
|
|
92
92
|
try {
|
|
93
|
-
|
|
93
|
+
y[o.onClickFooter](r, o.data);
|
|
94
94
|
} catch (e) {
|
|
95
95
|
console.error(e);
|
|
96
96
|
}
|
|
97
|
-
}, k =
|
|
97
|
+
}, k = F([]), b = (B = o.columns.find((e) => e.position === "title")) == null ? void 0 : B.key, v = (w = o.columns.find((e) => e.position === "subTitle")) == null ? void 0 : w.key, p = o.columns.find((e) => e.position === "footer"), T = (e) => {
|
|
98
98
|
const t = [];
|
|
99
99
|
return e.children && e.children.length > 0 && e.children.forEach((n) => {
|
|
100
|
-
const
|
|
100
|
+
const f = {
|
|
101
101
|
label: n.OFFER_NAME,
|
|
102
102
|
children: []
|
|
103
103
|
};
|
|
104
|
-
n.children && n.children.length > 0 && n.children.forEach((
|
|
105
|
-
|
|
106
|
-
label:
|
|
107
|
-
value:
|
|
104
|
+
n.children && n.children.length > 0 && n.children.forEach((E) => {
|
|
105
|
+
f.children.push({
|
|
106
|
+
label: E.OFFER_NAME,
|
|
107
|
+
value: E.ATTR_VALUE
|
|
108
108
|
});
|
|
109
|
-
}), t.push(
|
|
109
|
+
}), t.push(f);
|
|
110
110
|
}), t;
|
|
111
|
-
}, C =
|
|
111
|
+
}, C = m(L), i = C ? C.translateFn : null;
|
|
112
112
|
return P(() => {
|
|
113
113
|
o.data && (d.value = o.data.map((e) => {
|
|
114
114
|
const t = {
|
|
115
115
|
content: []
|
|
116
116
|
};
|
|
117
|
-
return
|
|
117
|
+
return b && (t.title = i ? i(b, e) : e[b]), v && (t.subTitle = i ? i(v, e) : e[v]), p && (t.footer = {
|
|
118
118
|
icon: p.footerIcon || "icon-tishi",
|
|
119
119
|
text: `${p.label}: ${i ? i(p.key, e) : e[p.key]}`
|
|
120
|
-
}), e.children && (t.product =
|
|
120
|
+
}), e.children && (t.product = T(e)), o.columns.forEach((n) => {
|
|
121
121
|
n.position === "content" && t.content.push({
|
|
122
122
|
label: n.label,
|
|
123
123
|
value: i ? i(n.key, e) : e[n.key]
|
|
@@ -131,7 +131,7 @@ const V = { class: "content" }, K = { class: "product-list" }, j = { class: "att
|
|
|
131
131
|
label: t.label,
|
|
132
132
|
onClick: t.onClick
|
|
133
133
|
}));
|
|
134
|
-
}), (e, t) => (l(),
|
|
134
|
+
}), (e, t) => (l(), s(c, null, [
|
|
135
135
|
a("div", {
|
|
136
136
|
class: "card-list",
|
|
137
137
|
style: z({
|
|
@@ -139,11 +139,11 @@ const V = { class: "content" }, K = { class: "product-list" }, j = { class: "att
|
|
|
139
139
|
"--gap": e.gap + "px"
|
|
140
140
|
})
|
|
141
141
|
}, [
|
|
142
|
-
(l(!0),
|
|
142
|
+
(l(!0), s(c, null, _(d.value, (n, f) => (l(), s("div", {
|
|
143
143
|
class: "card-list-item",
|
|
144
|
-
key:
|
|
144
|
+
key: f
|
|
145
145
|
}, [
|
|
146
|
-
|
|
146
|
+
S(J, {
|
|
147
147
|
data: n,
|
|
148
148
|
btns: k.value
|
|
149
149
|
}, null, 8, ["data", "btns"])
|
|
@@ -153,11 +153,11 @@ const V = { class: "content" }, K = { class: "product-list" }, j = { class: "att
|
|
|
153
153
|
class: "card-list-footer",
|
|
154
154
|
onClick: u
|
|
155
155
|
}, [
|
|
156
|
-
a("span", null,
|
|
156
|
+
a("span", null, h(e.footerText), 1)
|
|
157
157
|
])
|
|
158
158
|
], 64));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), Y = /* @__PURE__ */ R(Q, [["__scopeId", "data-v-5365ff23"]]);
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
Y as default
|
|
163
163
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as S, useModel as T, inject as K, resolveComponent as p, resolveDirective as w, openBlock as o, createElementBlock as d, toDisplayString as F, unref as l, Fragment as m, createCommentVNode as N, withDirectives as I, createBlock as y, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
|
|
2
|
-
import { u as $ } from "./index-
|
|
3
|
-
import { u as j } from "./useSelect-
|
|
2
|
+
import { u as $ } from "./index-GtzBrb0u.js";
|
|
3
|
+
import { u as j } from "./useSelect-DHjiJUFb.js";
|
|
4
4
|
const E = { key: 0 }, L = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "font-size": "12px" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as y, unref as u, withDirectives as N, createBlock as k, mergeProps as j, withCtx as b, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
|
|
2
|
-
import { u as L, _ as O, b as T } from "./index-
|
|
3
|
-
import { u as U } from "./useSelect-
|
|
2
|
+
import { u as L, _ as O, b as T } from "./index-GtzBrb0u.js";
|
|
3
|
+
import { u as U } from "./useSelect-DHjiJUFb.js";
|
|
4
4
|
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "search-select-wrapper"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, mergeModels as k, useModel as B, inject as f, computed as D, resolveComponent as y, resolveDirective as S, openBlock as r, createElementBlock as i, toDisplayString as v, createBlock as b, mergeProps as A, withCtx as g, withDirectives as F, Fragment as j, renderList as w, unref as h, createTextVNode as I } from "vue";
|
|
2
|
-
import { u as N } from "./index-
|
|
3
|
-
import { u as P } from "./useSelect-
|
|
2
|
+
import { u as N } from "./index-GtzBrb0u.js";
|
|
3
|
+
import { u as P } from "./useSelect-DHjiJUFb.js";
|
|
4
4
|
const E = { key: 0 }, L = { style: { "min-height": "32px" } }, $ = /* @__PURE__ */ _({
|
|
5
5
|
__name: "Select",
|
|
6
6
|
props: /* @__PURE__ */ k({
|