epic-designer-gold 1.0.0 → 1.0.2

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.
Files changed (54) hide show
  1. package/dist/{attributeView-BhPj8bSe.js → attributeView-B-IswSw7.js} +1 -1
  2. package/dist/{attributeView-C9gY9X-c.cjs → attributeView-CQBVIMGW.cjs} +1 -1
  3. package/dist/{col-0rmM8on4.js → col-D4hvKfJ6.js} +1 -3
  4. package/dist/col-Dy6oYMf5.js +41 -0
  5. package/dist/col-RWuL5Zuz.cjs +1 -0
  6. package/dist/index-B4ido7VJ.cjs +1 -0
  7. package/dist/{index-DMDLjlCJ.js → index-BGvqo4s7.js} +1 -1
  8. package/dist/{index-DpitV6qp.cjs → index-BMtRXkSh.cjs} +1 -1
  9. package/dist/{index-CvF1WVts.cjs → index-BXO8Zj1H.cjs} +1 -1
  10. package/dist/{index-DNuLy9hB.js → index-B_9x_cPH.js} +6 -6
  11. package/dist/{index-efmvTLGJ.js → index-B_TFfRwe.js} +1 -1
  12. package/dist/{index-N_JBxsiO.js → index-C3_E7xcD.js} +1 -1
  13. package/dist/{index-C2HMY2I2.cjs → index-C3a1hfUC.cjs} +2 -2
  14. package/dist/{index-CE9DjYAW.cjs → index-CYDtBJTI.cjs} +1 -1
  15. package/dist/{index-BmqAqj29.cjs → index-CvEzOhT_.cjs} +1 -1
  16. package/dist/{index-3ndHV3fl.js → index-DJxuHxdI.js} +1 -1
  17. package/dist/{index-DtWX93JN.js → index-DKVv0PbJ.js} +1 -1
  18. package/dist/{index-Cw3VVR9A.js → index-DLMH0OSJ.js} +1 -1
  19. package/dist/{index-G-yqaciQ.cjs → index-DSzJgAzW.cjs} +1 -1
  20. package/dist/index-DkyxbMHi.js +742 -0
  21. package/dist/{index-F6atymcD.cjs → index-Dyo12Kua.cjs} +1 -1
  22. package/dist/{index-BA5cmAC5.cjs → index-Dz1OM1dD.cjs} +1 -1
  23. package/dist/index-aBofZ4Mk.js +4 -0
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/row-Bm8OjIsU.cjs +1 -0
  27. package/dist/row-qOviQw5w.js +45 -0
  28. package/dist/select-BvJWp4t6.cjs +1 -0
  29. package/dist/select-CjWTf5kk.js +45 -0
  30. package/dist/{sign-Cn6LXVcp.cjs → sign--js815Se.cjs} +1 -1
  31. package/dist/{sign-BJBURbHk.js → sign-CO47QOTw.js} +1 -1
  32. package/dist/style.css +1 -1
  33. package/dist/{styleView-SPW99MRS.js → styleView-BLVqzqPV.js} +1 -1
  34. package/dist/{styleView-Dew56dxa.cjs → styleView-C1zTBeyd.cjs} +1 -1
  35. package/dist/table-CnBJm7Bx.js +43 -0
  36. package/dist/table-DM2-xHlv.cjs +1 -0
  37. package/dist/text-C-52xLjs.js +33 -0
  38. package/dist/text-X9fl5oe8.cjs +1 -0
  39. package/dist/ui/elementPlus/index.cjs +1 -1
  40. package/dist/ui/elementPlus/index.js +347 -27
  41. package/dist/ui/elementPlus/table/index.d.ts +3 -0
  42. package/dist/ui/elementPlus/table/table.d.ts +20 -0
  43. package/dist/ui/elementPlus/table-col/col.d.ts +20 -0
  44. package/dist/ui/elementPlus/table-col/index.d.ts +3 -0
  45. package/dist/ui/elementPlus/table-row/index.d.ts +3 -0
  46. package/dist/ui/elementPlus/table-row/row.d.ts +20 -0
  47. package/dist/ui/elementPlus/text/index.d.ts +3 -0
  48. package/dist/ui/elementPlus/text/text.d.ts +20 -0
  49. package/package.json +1 -1
  50. package/dist/index-B45xlt7e.js +0 -4
  51. package/dist/index-CshPxldv.js +0 -675
  52. package/dist/index-iQ5ZEvrv.cjs +0 -1
  53. package/dist/select-BCX_FOhw.js +0 -36
  54. package/dist/select-Cnp3LxNc.cjs +0 -1
@@ -901,8 +901,8 @@ const h = {
901
901
  // },
902
902
  ]
903
903
  }
904
- }, V = {
905
- component: () => import("../../col-0rmM8on4.js"),
904
+ }, C = {
905
+ component: () => import("../../col-D4hvKfJ6.js"),
906
906
  defaultSchema: {
907
907
  label: "栅格布局-列",
908
908
  type: "col",
@@ -913,15 +913,15 @@ const h = {
913
913
  },
914
914
  config: {
915
915
  attribute: [
916
- {
917
- label: "占位格数",
918
- type: "number",
919
- field: "componentProps.span"
920
- }
916
+ // {
917
+ // label: '占位格数',
918
+ // type: 'number',
919
+ // field: 'componentProps.span'
920
+ // }
921
921
  ]
922
922
  }
923
- }, C = {
924
- component: () => import("../../select-BCX_FOhw.js"),
923
+ }, V = {
924
+ component: () => import("../../select-CjWTf5kk.js"),
925
925
  groupName: "表单",
926
926
  icon: "icon--epic--select",
927
927
  sort: 900,
@@ -1194,7 +1194,7 @@ const h = {
1194
1194
  }
1195
1195
  ]
1196
1196
  }
1197
- }, k = {
1197
+ }, T = {
1198
1198
  component: () => import("../../radio-Ducbqo4d.js"),
1199
1199
  groupName: "表单",
1200
1200
  icon: "icon--epic--radio-button-checked-outline",
@@ -1317,7 +1317,7 @@ const h = {
1317
1317
  }
1318
1318
  ]
1319
1319
  }
1320
- }, T = {
1320
+ }, k = {
1321
1321
  component: () => import("../../checkbox-BMXONqwy.js"),
1322
1322
  groupName: "表单",
1323
1323
  icon: "icon--epic--dialogs-outline-rounded",
@@ -1458,7 +1458,7 @@ const h = {
1458
1458
  }
1459
1459
  ]
1460
1460
  }
1461
- }, D = {
1461
+ }, I = {
1462
1462
  component: async () => (await import("element-plus")).ElSlider,
1463
1463
  groupName: "表单",
1464
1464
  icon: "icon--epic--switches",
@@ -1679,7 +1679,7 @@ const h = {
1679
1679
  }
1680
1680
  ]
1681
1681
  }
1682
- }, I = {
1682
+ }, D = {
1683
1683
  component: async () => (await import("element-plus")).ElColorPicker,
1684
1684
  groupName: "表单",
1685
1685
  icon: "icon--epic--palette-outline",
@@ -1930,7 +1930,7 @@ function n(e) {
1930
1930
  defaultValue: l
1931
1931
  };
1932
1932
  }
1933
- const F = {
1933
+ const N = {
1934
1934
  component: async () => (await import("element-plus")).ElCascader,
1935
1935
  groupName: "表单",
1936
1936
  icon: "icon--epic--full-coverage-outline",
@@ -2146,7 +2146,7 @@ const F = {
2146
2146
  }
2147
2147
  ]
2148
2148
  }
2149
- }, N = {
2149
+ }, F = {
2150
2150
  component: () => import("../../collapse-I4H1VTFf.js"),
2151
2151
  icon: "epic-icon-xiala",
2152
2152
  defaultSchema: {
@@ -2576,7 +2576,7 @@ const F = {
2576
2576
  }
2577
2577
  }, W = {
2578
2578
  // component: async () => await import("../../../../packages/core/components/designer/src"),
2579
- component: async () => await import("../../sign-BJBURbHk.js"),
2579
+ component: async () => await import("../../sign-CO47QOTw.js"),
2580
2580
  icon: "icon--epic--insert-text-outline-rounded",
2581
2581
  groupName: "表单",
2582
2582
  sort: 705,
@@ -2678,42 +2678,362 @@ const F = {
2678
2678
  // },
2679
2679
  // ],
2680
2680
  }
2681
+ }, j = {
2682
+ component: () => import("../../table-CnBJm7Bx.js"),
2683
+ groupName: "",
2684
+ icon: "icon--epic--width-normal-outline",
2685
+ sort: 800,
2686
+ defaultSchema: {
2687
+ label: "表格",
2688
+ type: "table",
2689
+ children: [
2690
+ {
2691
+ type: "table-row",
2692
+ children: [
2693
+ {
2694
+ type: "table-col",
2695
+ children: [],
2696
+ componentProps: {
2697
+ span: 12
2698
+ }
2699
+ },
2700
+ {
2701
+ type: "table-col",
2702
+ children: [],
2703
+ componentProps: {
2704
+ span: 12
2705
+ }
2706
+ }
2707
+ ],
2708
+ componentProps: {
2709
+ span: 24
2710
+ }
2711
+ }
2712
+ // {
2713
+ // type: "col",
2714
+ // children: [],
2715
+ // componentProps: {
2716
+ // span: 12,
2717
+ // },
2718
+ // },
2719
+ ]
2720
+ },
2721
+ editConstraints: {
2722
+ childImmovable: !0
2723
+ },
2724
+ config: {
2725
+ attribute: [
2726
+ {
2727
+ label: "垂直对齐方式",
2728
+ type: "select",
2729
+ componentProps: {
2730
+ style: { width: "100%" },
2731
+ options: [
2732
+ {
2733
+ label: "top",
2734
+ value: "top"
2735
+ },
2736
+ {
2737
+ label: "middle",
2738
+ value: "middle"
2739
+ },
2740
+ {
2741
+ label: "bottom",
2742
+ value: "bottom"
2743
+ }
2744
+ ],
2745
+ placeholder: "请选择"
2746
+ },
2747
+ field: "componentProps.align"
2748
+ },
2749
+ {
2750
+ label: "水平排列方式",
2751
+ type: "select",
2752
+ componentProps: {
2753
+ style: { width: "100%" },
2754
+ options: [
2755
+ {
2756
+ label: "start",
2757
+ value: "start"
2758
+ },
2759
+ {
2760
+ label: "end",
2761
+ value: "end"
2762
+ },
2763
+ {
2764
+ label: "center",
2765
+ value: "center"
2766
+ },
2767
+ {
2768
+ label: "space-around",
2769
+ value: "space-around"
2770
+ },
2771
+ {
2772
+ label: "space-between",
2773
+ value: "space-between"
2774
+ }
2775
+ ],
2776
+ placeholder: "请选择"
2777
+ },
2778
+ field: "componentProps.justify"
2779
+ }
2780
+ ]
2781
+ }
2782
+ }, G = {
2783
+ component: async () => await import("../../text-C-52xLjs.js"),
2784
+ groupName: "表单",
2785
+ icon: "icon--epic--insert-text-outline-rounded",
2786
+ sort: 1e3,
2787
+ defaultSchema: {
2788
+ label: "静态文字",
2789
+ type: "text",
2790
+ position: "left",
2791
+ fontSize: "14"
2792
+ },
2793
+ config: {
2794
+ attribute: [
2795
+ // {
2796
+ // label: "字段名",
2797
+ // type: "input",
2798
+ // field: "field",
2799
+ // },
2800
+ {
2801
+ label: "静态文字",
2802
+ type: "input",
2803
+ field: "label"
2804
+ },
2805
+ {
2806
+ label: "标签位置",
2807
+ type: "radio",
2808
+ field: "position",
2809
+ componentProps: {
2810
+ clearable: !1,
2811
+ radioButton: !0,
2812
+ options: [
2813
+ {
2814
+ label: "居左",
2815
+ value: "left"
2816
+ },
2817
+ {
2818
+ label: "居中",
2819
+ value: "center"
2820
+ },
2821
+ {
2822
+ label: "居右",
2823
+ value: "right"
2824
+ }
2825
+ ]
2826
+ }
2827
+ },
2828
+ {
2829
+ label: "字体大小(px)",
2830
+ type: "input",
2831
+ field: "fontSize"
2832
+ }
2833
+ ],
2834
+ event: [
2835
+ {
2836
+ type: "input",
2837
+ describe: "输入值时"
2838
+ },
2839
+ {
2840
+ type: "change",
2841
+ describe: "值修改时"
2842
+ },
2843
+ {
2844
+ type: "focus",
2845
+ describe: "获取焦点时"
2846
+ },
2847
+ {
2848
+ type: "blur",
2849
+ describe: "失去焦点时"
2850
+ },
2851
+ {
2852
+ type: "clear",
2853
+ describe: "点击清空按钮时"
2854
+ }
2855
+ ],
2856
+ action: [
2857
+ {
2858
+ type: "focus",
2859
+ describe: "使 input 获取焦点"
2860
+ },
2861
+ {
2862
+ type: "blur",
2863
+ describe: "使 input 失去焦点"
2864
+ },
2865
+ {
2866
+ type: "clear",
2867
+ describe: "清除 input 值"
2868
+ },
2869
+ {
2870
+ type: "select",
2871
+ describe: "选中 input 中的文字"
2872
+ }
2873
+ ]
2874
+ }
2875
+ }, H = {
2876
+ component: () => import("../../row-qOviQw5w.js"),
2877
+ icon: "icon--epic--width-normal-outline",
2878
+ sort: 800,
2879
+ defaultSchema: {
2880
+ label: "表格-行",
2881
+ type: "table-row",
2882
+ children: [
2883
+ {
2884
+ type: "col",
2885
+ children: [],
2886
+ componentProps: {
2887
+ span: 12
2888
+ }
2889
+ },
2890
+ {
2891
+ type: "col",
2892
+ children: [],
2893
+ componentProps: {
2894
+ span: 12
2895
+ }
2896
+ }
2897
+ ]
2898
+ },
2899
+ editConstraints: {
2900
+ childImmovable: !0
2901
+ },
2902
+ config: {
2903
+ attribute: [
2904
+ {
2905
+ label: "垂直对齐方式",
2906
+ type: "select",
2907
+ componentProps: {
2908
+ style: { width: "100%" },
2909
+ options: [
2910
+ {
2911
+ label: "top",
2912
+ value: "top"
2913
+ },
2914
+ {
2915
+ label: "middle",
2916
+ value: "middle"
2917
+ },
2918
+ {
2919
+ label: "bottom",
2920
+ value: "bottom"
2921
+ }
2922
+ ],
2923
+ placeholder: "请选择"
2924
+ },
2925
+ field: "componentProps.align"
2926
+ },
2927
+ {
2928
+ label: "水平排列方式",
2929
+ type: "select",
2930
+ componentProps: {
2931
+ style: { width: "100%" },
2932
+ options: [
2933
+ {
2934
+ label: "start",
2935
+ value: "start"
2936
+ },
2937
+ {
2938
+ label: "end",
2939
+ value: "end"
2940
+ },
2941
+ {
2942
+ label: "center",
2943
+ value: "center"
2944
+ },
2945
+ {
2946
+ label: "space-around",
2947
+ value: "space-around"
2948
+ },
2949
+ {
2950
+ label: "space-between",
2951
+ value: "space-between"
2952
+ }
2953
+ ],
2954
+ placeholder: "请选择"
2955
+ },
2956
+ field: "componentProps.justify"
2957
+ },
2958
+ {
2959
+ label: "栅格间距",
2960
+ type: "number",
2961
+ field: "componentProps.gutter",
2962
+ componentProps: {
2963
+ placeholder: "请输入"
2964
+ }
2965
+ },
2966
+ {
2967
+ label: "列编辑(一行几列)",
2968
+ type: "EColEditor",
2969
+ field: "children"
2970
+ }
2971
+ // {
2972
+ // label: "隐藏",
2973
+ // type: "switch",
2974
+ // field: "componentProps.hidden",
2975
+ // },
2976
+ ]
2977
+ }
2978
+ }, q = {
2979
+ component: () => import("../../col-Dy6oYMf5.js"),
2980
+ defaultSchema: {
2981
+ label: "表格-列",
2982
+ type: "table-col",
2983
+ children: []
2984
+ // componentProps: {
2985
+ // span: 6,
2986
+ // },
2987
+ },
2988
+ config: {
2989
+ attribute: [
2990
+ // {
2991
+ // label: '占位格数',
2992
+ // type: 'number',
2993
+ // field: 'componentProps.span'
2994
+ // }
2995
+ ]
2996
+ }
2681
2997
  };
2682
- function j(e = r) {
2998
+ function K(e = r) {
2683
2999
  e.component("FormItem", i), e.component("Form", c), e.component("RadioGroup", s), e.component("RadioButton", d), e.component("Tabs", u), e.component("TabPane", m), e.component("Collapse", b), e.component("CollapseItem", f), e.component("Drawer", y), e.component("Dialog", P), [
2684
3000
  w,
2685
3001
  E,
2686
3002
  h,
2687
3003
  v,
2688
3004
  g,
2689
- k,
2690
3005
  T,
3006
+ k,
2691
3007
  B,
2692
- C,
3008
+ V,
2693
3009
  z,
2694
- I,
2695
- F,
2696
3010
  D,
3011
+ N,
3012
+ I,
2697
3013
  M,
2698
3014
  L,
2699
3015
  S,
2700
3016
  x,
2701
3017
  Y,
2702
- V,
2703
- N,
3018
+ C,
3019
+ F,
2704
3020
  R,
2705
3021
  O,
2706
- W
3022
+ W,
3023
+ j,
3024
+ G,
3025
+ H,
3026
+ q
2707
3027
  ].forEach((o) => {
2708
3028
  e.registerComponent(o), e.addBaseComponentTypes(o.defaultSchema.type);
2709
3029
  }), e.setInitialized(!0);
2710
3030
  }
2711
- function q(e) {
3031
+ function J(e) {
2712
3032
  import("element-plus").then(({ provideGlobalConfig: l }) => {
2713
3033
  l(e);
2714
3034
  });
2715
3035
  }
2716
3036
  export {
2717
- q as provideGlobalConfig,
2718
- j as setupElementPlus
3037
+ J as provideGlobalConfig,
3038
+ K as setupElementPlus
2719
3039
  };
@@ -0,0 +1,3 @@
1
+ import { ComponentConfigModel } from '../../../utils';
2
+ declare const _default: ComponentConfigModel;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { ComponentSchema } from '../../../core/types/epic-designer';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ componentSchema: {
5
+ type: PropType<ComponentSchema>;
6
+ require: boolean;
7
+ default: () => {};
8
+ };
9
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ componentSchema: {
13
+ type: PropType<ComponentSchema>;
14
+ require: boolean;
15
+ default: () => {};
16
+ };
17
+ }>> & Readonly<{}>, {
18
+ componentSchema: ComponentSchema;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { ComponentSchema } from '../../../core/types/epic-designer';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ componentSchema: {
5
+ type: PropType<ComponentSchema>;
6
+ required: true;
7
+ default: () => {};
8
+ };
9
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ componentSchema: {
13
+ type: PropType<ComponentSchema>;
14
+ required: true;
15
+ default: () => {};
16
+ };
17
+ }>> & Readonly<{}>, {
18
+ componentSchema: ComponentSchema;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentConfigModel } from '../../../utils';
2
+ declare const _default: ComponentConfigModel;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentConfigModel } from '../../../utils';
2
+ declare const _default: ComponentConfigModel;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { ComponentSchema } from '../../../core/types/epic-designer';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ componentSchema: {
5
+ type: PropType<ComponentSchema>;
6
+ required: true;
7
+ default: () => {};
8
+ };
9
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ componentSchema: {
13
+ type: PropType<ComponentSchema>;
14
+ required: true;
15
+ default: () => {};
16
+ };
17
+ }>> & Readonly<{}>, {
18
+ componentSchema: ComponentSchema;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentConfigModel } from '../../../utils';
2
+ declare const _default: ComponentConfigModel;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { ComponentSchema } from '../../../core/types/epic-designer';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ componentSchema: {
5
+ type: PropType<ComponentSchema>;
6
+ required: true;
7
+ default: () => {};
8
+ };
9
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ componentSchema: {
13
+ type: PropType<ComponentSchema>;
14
+ required: true;
15
+ default: () => {};
16
+ };
17
+ }>> & Readonly<{}>, {
18
+ componentSchema: ComponentSchema;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "epic-designer-gold",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-DNuLy9hB.js";
2
- export {
3
- f as default
4
- };