@fmdevui/fm-dev 1.0.105 → 1.0.107

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.
@@ -1,5 +1,14 @@
1
1
  import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ append?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
3
12
  placeholder: {
4
13
  type: StringConstructor;
5
14
  default: string;
@@ -122,4 +131,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
122
131
  fName: string;
123
132
  qId: number;
124
133
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
134
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
125
135
  export default _default;
136
+ type __VLS_WithTemplateSlots<T, S> = T & {
137
+ new (): {
138
+ $slots: S;
139
+ };
140
+ };
@@ -525,49 +525,124 @@ declare const Fmselect: DefineComponent<ExtractPropTypes<{
525
525
  elabel: string;
526
526
  isshowelabel: boolean;
527
527
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
528
- declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
529
- placeholder: {
530
- type: StringConstructor;
531
- default: string;
532
- };
533
- apiService: {
534
- type: StringConstructor;
535
- default: string;
536
- };
537
- apiAction: {
538
- type: StringConstructor;
539
- default: string;
540
- };
541
- top: {
542
- type: NumberConstructor;
543
- default: number;
544
- };
545
- fId: {
546
- type: StringConstructor;
547
- default: string;
548
- };
549
- fName: {
550
- type: StringConstructor;
551
- default: string;
552
- };
553
- qId: {
554
- type: NumberConstructor;
555
- default: number;
556
- };
557
- name: {
558
- type: PropType<string>;
559
- required: true;
560
- };
561
- id: {
562
- type: PropType<Number>;
563
- required: true;
564
- };
565
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
566
- reset: (...args: any[]) => void;
567
- select: (...args: any[]) => void;
568
- "update:id": (value: Number) => void;
569
- "update:name": (value: string) => void;
570
- }, string, PublicProps, Readonly< ExtractPropTypes<{
528
+ declare const FmAutocomplete: {
529
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
530
+ placeholder: {
531
+ type: StringConstructor;
532
+ default: string;
533
+ };
534
+ apiService: {
535
+ type: StringConstructor;
536
+ default: string;
537
+ };
538
+ apiAction: {
539
+ type: StringConstructor;
540
+ default: string;
541
+ };
542
+ top: {
543
+ type: NumberConstructor;
544
+ default: number;
545
+ };
546
+ fId: {
547
+ type: StringConstructor;
548
+ default: string;
549
+ };
550
+ fName: {
551
+ type: StringConstructor;
552
+ default: string;
553
+ };
554
+ qId: {
555
+ type: NumberConstructor;
556
+ default: number;
557
+ };
558
+ name: {
559
+ type: PropType<string>;
560
+ required: true;
561
+ };
562
+ id: {
563
+ type: PropType<Number>;
564
+ required: true;
565
+ };
566
+ }>> & Readonly<{
567
+ onReset?: ((...args: any[]) => any) | undefined;
568
+ onSelect?: ((...args: any[]) => any) | undefined;
569
+ "onUpdate:id"?: ((value: Number) => any) | undefined;
570
+ "onUpdate:name"?: ((value: string) => any) | undefined;
571
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
572
+ reset: (...args: any[]) => void;
573
+ select: (...args: any[]) => void;
574
+ "update:id": (value: Number) => void;
575
+ "update:name": (value: string) => void;
576
+ }, PublicProps, {
577
+ placeholder: string;
578
+ top: number;
579
+ apiService: string;
580
+ apiAction: string;
581
+ fId: string;
582
+ fName: string;
583
+ qId: number;
584
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
585
+ P: {};
586
+ B: {};
587
+ D: {};
588
+ C: {};
589
+ M: {};
590
+ Defaults: {};
591
+ }, Readonly< ExtractPropTypes<{
592
+ placeholder: {
593
+ type: StringConstructor;
594
+ default: string;
595
+ };
596
+ apiService: {
597
+ type: StringConstructor;
598
+ default: string;
599
+ };
600
+ apiAction: {
601
+ type: StringConstructor;
602
+ default: string;
603
+ };
604
+ top: {
605
+ type: NumberConstructor;
606
+ default: number;
607
+ };
608
+ fId: {
609
+ type: StringConstructor;
610
+ default: string;
611
+ };
612
+ fName: {
613
+ type: StringConstructor;
614
+ default: string;
615
+ };
616
+ qId: {
617
+ type: NumberConstructor;
618
+ default: number;
619
+ };
620
+ name: {
621
+ type: PropType<string>;
622
+ required: true;
623
+ };
624
+ id: {
625
+ type: PropType<Number>;
626
+ required: true;
627
+ };
628
+ }>> & Readonly<{
629
+ onReset?: ((...args: any[]) => any) | undefined;
630
+ onSelect?: ((...args: any[]) => any) | undefined;
631
+ "onUpdate:id"?: ((value: Number) => any) | undefined;
632
+ "onUpdate:name"?: ((value: string) => any) | undefined;
633
+ }>, {}, {}, {}, {}, {
634
+ placeholder: string;
635
+ top: number;
636
+ apiService: string;
637
+ apiAction: string;
638
+ fId: string;
639
+ fName: string;
640
+ qId: number;
641
+ }>;
642
+ __isFragment?: never;
643
+ __isTeleport?: never;
644
+ __isSuspense?: never;
645
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
571
646
  placeholder: {
572
647
  type: StringConstructor;
573
648
  default: string;
@@ -609,7 +684,12 @@ declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
609
684
  onSelect?: ((...args: any[]) => any) | undefined;
610
685
  "onUpdate:id"?: ((value: Number) => any) | undefined;
611
686
  "onUpdate:name"?: ((value: string) => any) | undefined;
612
- }>, {
687
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
688
+ reset: (...args: any[]) => void;
689
+ select: (...args: any[]) => void;
690
+ "update:id": (value: Number) => void;
691
+ "update:name": (value: string) => void;
692
+ }, string, {
613
693
  placeholder: string;
614
694
  top: number;
615
695
  apiService: string;
@@ -617,7 +697,11 @@ declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
617
697
  fId: string;
618
698
  fName: string;
619
699
  qId: number;
620
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
700
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
701
+ $slots: {
702
+ append?(_: {}): any;
703
+ };
704
+ });
621
705
  declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
622
706
  optionData: {
623
707
  type: {
@@ -656,6 +740,10 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
656
740
  type: StringConstructor;
657
741
  default: string;
658
742
  };
743
+ dropHeight: {
744
+ type: StringConstructor;
745
+ default: string;
746
+ };
659
747
  apiService: {
660
748
  type: StringConstructor;
661
749
  default: string;
@@ -716,6 +804,10 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
716
804
  type: StringConstructor;
717
805
  default: string;
718
806
  };
807
+ dropHeight: {
808
+ type: StringConstructor;
809
+ default: string;
810
+ };
719
811
  apiService: {
720
812
  type: StringConstructor;
721
813
  default: string;
@@ -747,6 +839,7 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
747
839
  apiAction: string;
748
840
  inputWidth: string;
749
841
  dropWidth: string;
842
+ dropHeight: string;
750
843
  basecode: string;
751
844
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
752
845
  declare const Fminputtable: {
@@ -43,6 +43,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
43
43
  type: StringConstructor;
44
44
  default: string;
45
45
  };
46
+ dropHeight: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
46
50
  /**
47
51
  * api service name
48
52
  */
@@ -118,6 +122,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
118
122
  type: StringConstructor;
119
123
  default: string;
120
124
  };
125
+ dropHeight: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
121
129
  /**
122
130
  * api service name
123
131
  */
@@ -158,6 +166,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
158
166
  apiAction: string;
159
167
  inputWidth: string;
160
168
  dropWidth: string;
169
+ dropHeight: string;
161
170
  basecode: string;
162
171
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
163
172
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useModel, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, toDisplayString, mergeModels } from 'vue';
1
+ import { defineComponent, useModel, resolveComponent, createBlock, openBlock, createSlots, withCtx, createElementVNode, toDisplayString, renderSlot, mergeModels } from 'vue';
2
2
  import { useBaseApi } from '../../../api/base/index.mjs';
3
3
 
4
4
  const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
@@ -104,8 +104,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
104
104
  "trigger-on-focus": false,
105
105
  onSelect: handleSelect,
106
106
  style: { "margin-top": "-2px" }
107
- }, {
108
- prepend: withCtx(() => [..._cache[1] || (_cache[1] = [])]),
107
+ }, createSlots({
109
108
  default: withCtx(({ item }) => [
110
109
  createElementVNode(
111
110
  "div",
@@ -115,10 +114,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
115
114
  /* TEXT */
116
115
  )
117
116
  ]),
118
- append: withCtx(() => [..._cache[2] || (_cache[2] = [])]),
119
- _: 1
120
- /* STABLE */
121
- }, 8, ["modelValue", "placeholder"]);
117
+ _: 2
118
+ /* DYNAMIC */
119
+ }, [
120
+ _ctx.$slots.append ? {
121
+ name: "append",
122
+ fn: withCtx(() => [
123
+ renderSlot(_ctx.$slots, "append")
124
+ ]),
125
+ key: "0"
126
+ } : void 0
127
+ ]), 1032, ["modelValue", "placeholder"]);
122
128
  };
123
129
  }
124
130
  });
@@ -39,6 +39,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  type: String,
40
40
  default: "90px"
41
41
  },
42
+ dropHeight: {
43
+ type: String,
44
+ default: "300px"
45
+ },
42
46
  /**
43
47
  * api service name
44
48
  */
@@ -114,7 +118,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
114
118
  }, {
115
119
  dropdown: withCtx(() => [
116
120
  createVNode(_component_el_dropdown_menu, {
117
- style: normalizeStyle({ width: __props.dropWidth })
121
+ style: normalizeStyle({ width: __props.dropWidth, height: __props.dropHeight })
118
122
  }, {
119
123
  default: withCtx(() => [
120
124
  (openBlock(true), createElementBlock(
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.105 */
1
+ /*! fm-dev v1.0.107 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
@@ -23975,8 +23975,7 @@
23975
23975
  "trigger-on-focus": false,
23976
23976
  onSelect: handleSelect,
23977
23977
  style: { "margin-top": "-2px" }
23978
- }, {
23979
- prepend: vue.withCtx(() => [..._cache[1] || (_cache[1] = [])]),
23978
+ }, vue.createSlots({
23980
23979
  default: vue.withCtx(({ item }) => [
23981
23980
  vue.createElementVNode(
23982
23981
  "div",
@@ -23986,10 +23985,17 @@
23986
23985
  /* TEXT */
23987
23986
  )
23988
23987
  ]),
23989
- append: vue.withCtx(() => [..._cache[2] || (_cache[2] = [])]),
23990
- _: 1
23991
- /* STABLE */
23992
- }, 8, ["modelValue", "placeholder"]);
23988
+ _: 2
23989
+ /* DYNAMIC */
23990
+ }, [
23991
+ _ctx.$slots.append ? {
23992
+ name: "append",
23993
+ fn: vue.withCtx(() => [
23994
+ vue.renderSlot(_ctx.$slots, "append")
23995
+ ]),
23996
+ key: "0"
23997
+ } : void 0
23998
+ ]), 1032, ["modelValue", "placeholder"]);
23993
23999
  };
23994
24000
  }
23995
24001
  });
@@ -35408,6 +35414,10 @@
35408
35414
  type: String,
35409
35415
  default: "90px"
35410
35416
  },
35417
+ dropHeight: {
35418
+ type: String,
35419
+ default: "300px"
35420
+ },
35411
35421
  /**
35412
35422
  * api service name
35413
35423
  */
@@ -35483,7 +35493,7 @@
35483
35493
  }, {
35484
35494
  dropdown: vue.withCtx(() => [
35485
35495
  vue.createVNode(_component_el_dropdown_menu, {
35486
- style: vue.normalizeStyle({ width: __props.dropWidth })
35496
+ style: vue.normalizeStyle({ width: __props.dropWidth, height: __props.dropHeight })
35487
35497
  }, {
35488
35498
  default: vue.withCtx(() => [
35489
35499
  (vue.openBlock(true), vue.createElementBlock(