@fmdeui/fmui 1.0.170 → 1.0.172

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 (37) hide show
  1. package/es/component.mjs +3 -1
  2. package/es/components/fm-inputdropdown/index.d.ts +9 -0
  3. package/es/components/fm-inputdropdown/index.vue.d.ts +9 -0
  4. package/es/components/fm-tooltip/index.d.ts +58 -0
  5. package/es/components/fm-tooltip/index.vue.d.ts +59 -0
  6. package/es/components/index.d.ts +1 -0
  7. package/es/packages/components/fm-inputdropdown/index2.vue.mjs +10 -3
  8. package/es/packages/components/fm-tooltip/index.mjs +6 -0
  9. package/es/packages/components/fm-tooltip/index.vue.mjs +5 -0
  10. package/es/packages/components/fm-tooltip/index2.vue.mjs +107 -0
  11. package/es/packages/components/index.mjs +1 -0
  12. package/index.js +233 -120
  13. package/index.min.js +6 -6
  14. package/index.min.mjs +7 -7
  15. package/index.mjs +234 -121
  16. package/lib/component.js +3 -1
  17. package/lib/components/fm-inputdropdown/index.d.ts +9 -0
  18. package/lib/components/fm-inputdropdown/index.vue.d.ts +9 -0
  19. package/lib/components/fm-tooltip/index.d.ts +58 -0
  20. package/lib/components/fm-tooltip/index.vue.d.ts +59 -0
  21. package/lib/components/index.d.ts +1 -0
  22. package/lib/packages/components/fm-inputdropdown/index2.vue.js +10 -3
  23. package/lib/packages/components/fm-tooltip/index.js +8 -0
  24. package/lib/packages/components/fm-tooltip/index.vue.js +9 -0
  25. package/lib/packages/components/fm-tooltip/index2.vue.js +111 -0
  26. package/lib/packages/components/index.js +8 -6
  27. package/locale/en.js +1 -1
  28. package/locale/en.min.js +1 -1
  29. package/locale/en.min.mjs +1 -1
  30. package/locale/en.mjs +1 -1
  31. package/locale/zh-cn.js +1 -1
  32. package/locale/zh-cn.min.js +1 -1
  33. package/locale/zh-cn.min.mjs +1 -1
  34. package/locale/zh-cn.mjs +1 -1
  35. package/package.json +1 -1
  36. /package/es/{index.css → defaults.css} +0 -0
  37. /package/lib/{component.css → index.css} +0 -0
package/es/component.mjs CHANGED
@@ -18,6 +18,7 @@ import { FmAutocomplete, FmAutocompleteExt } from './packages/components/fm-auto
18
18
  import { FmSelect } from './packages/components/fm-select/index.mjs';
19
19
  import { Fmdatepicker } from './packages/components/fm-datepicker/index.mjs';
20
20
  import { FmPeriod } from './packages/components/fm-period/index.mjs';
21
+ import { FmTooltip } from './packages/components/fm-tooltip/index.mjs';
21
22
 
22
23
  const plugins = [
23
24
  FButton,
@@ -40,7 +41,8 @@ const plugins = [
40
41
  FmAutocompleteExt,
41
42
  FmSelect,
42
43
  Fmdatepicker,
43
- FmPeriod
44
+ FmPeriod,
45
+ FmTooltip
44
46
  ];
45
47
 
46
48
  export { plugins as default };
@@ -82,6 +82,10 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
82
82
  type: BooleanConstructor;
83
83
  default: boolean;
84
84
  };
85
+ disabled: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
85
89
  id: {
86
90
  type: PropType<number>;
87
91
  };
@@ -175,6 +179,10 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
175
179
  type: BooleanConstructor;
176
180
  default: boolean;
177
181
  };
182
+ disabled: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
178
186
  id: {
179
187
  type: PropType<number>;
180
188
  };
@@ -186,6 +194,7 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
186
194
  "onUpdate:id"?: ((value: number) => any) | undefined;
187
195
  "onUpdate:name"?: ((value: string) => any) | undefined;
188
196
  }>, {
197
+ disabled: boolean;
189
198
  placeholder: string;
190
199
  optionData: any[];
191
200
  bvalue: string;
@@ -106,6 +106,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
106
106
  type: BooleanConstructor;
107
107
  default: boolean;
108
108
  };
109
+ disabled: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
109
113
  id: {
110
114
  type: PropType<number>;
111
115
  };
@@ -223,6 +227,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
223
227
  type: BooleanConstructor;
224
228
  default: boolean;
225
229
  };
230
+ disabled: {
231
+ type: BooleanConstructor;
232
+ default: boolean;
233
+ };
226
234
  id: {
227
235
  type: PropType<number>;
228
236
  };
@@ -234,6 +242,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
234
242
  "onUpdate:id"?: ((value: number) => any) | undefined;
235
243
  "onUpdate:name"?: ((value: string) => any) | undefined;
236
244
  }>, {
245
+ disabled: boolean;
237
246
  placeholder: string;
238
247
  optionData: any[];
239
248
  bvalue: string;
@@ -0,0 +1,58 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export declare const FmTooltip: DefineComponent<ExtractPropTypes<{
3
+ label: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ tipdata: {
8
+ type: {
9
+ (arrayLength: number): any[];
10
+ (...items: any[]): any[];
11
+ new (arrayLength: number): any[];
12
+ new (...items: any[]): any[];
13
+ isArray(arg: any): arg is any[];
14
+ readonly prototype: any[];
15
+ from<T>(arrayLike: ArrayLike<T>): T[];
16
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
17
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
18
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
19
+ of<T>(...items: T[]): T[];
20
+ readonly [Symbol.species]: ArrayConstructor;
21
+ };
22
+ default: never[];
23
+ };
24
+ content: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
29
+ label: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tipdata: {
34
+ type: {
35
+ (arrayLength: number): any[];
36
+ (...items: any[]): any[];
37
+ new (arrayLength: number): any[];
38
+ new (...items: any[]): any[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
44
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
45
+ of<T>(...items: T[]): T[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ default: never[];
49
+ };
50
+ content: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{}>, {
55
+ content: string;
56
+ label: string;
57
+ tipdata: any[];
58
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -0,0 +1,59 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ label: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ tipdata: {
8
+ type: {
9
+ (arrayLength: number): any[];
10
+ (...items: any[]): any[];
11
+ new (arrayLength: number): any[];
12
+ new (...items: any[]): any[];
13
+ isArray(arg: any): arg is any[];
14
+ readonly prototype: any[];
15
+ from<T>(arrayLike: ArrayLike<T>): T[];
16
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
17
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
18
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
19
+ of<T>(...items: T[]): T[];
20
+ readonly [Symbol.species]: ArrayConstructor;
21
+ };
22
+ default: never[];
23
+ };
24
+ content: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
29
+ label: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tipdata: {
34
+ type: {
35
+ (arrayLength: number): any[];
36
+ (...items: any[]): any[];
37
+ new (arrayLength: number): any[];
38
+ new (...items: any[]): any[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
44
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
45
+ of<T>(...items: T[]): T[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ default: never[];
49
+ };
50
+ content: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{}>, {
55
+ content: string;
56
+ label: string;
57
+ tipdata: any[];
58
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
59
+ export default _default;
@@ -17,3 +17,4 @@ export * from './fm-inputnumber';
17
17
  export * from './fm-autocomplete';
18
18
  export * from './fm-datepicker';
19
19
  export * from './fm-period';
20
+ export * from './fm-tooltip';
@@ -89,6 +89,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  autoLoadData: {
90
90
  type: Boolean,
91
91
  default: true
92
+ },
93
+ disabled: {
94
+ type: Boolean,
95
+ default: false
92
96
  }
93
97
  }, {
94
98
  "id": { default: 0, required: false },
@@ -141,6 +145,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
141
145
  class: "fminputdropdown",
142
146
  placement: "bottom-start",
143
147
  trigger: "click",
148
+ disabled: __props.disabled,
144
149
  style: { "width": "100%" },
145
150
  onCommand: handCommand
146
151
  }, {
@@ -183,6 +188,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
183
188
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
184
189
  placeholder: props.placeholder,
185
190
  style: normalizeStyle({ width: __props.inputWidth }),
191
+ disabled: __props.disabled,
186
192
  onInput: handelChange,
187
193
  onChange: handelChange,
188
194
  onClick: handClick
@@ -191,6 +197,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
191
197
  createVNode(_component_el_icon, {
192
198
  color: "#13c2c2",
193
199
  size: __props.freshSize,
200
+ disabled: __props.disabled,
194
201
  onClick: handRestdata,
195
202
  style: { "cursor": "pointer" }
196
203
  }, {
@@ -199,15 +206,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
199
206
  ]),
200
207
  _: 1
201
208
  /* STABLE */
202
- }, 8, ["size"])
209
+ }, 8, ["size", "disabled"])
203
210
  ]),
204
211
  _: 1
205
212
  /* STABLE */
206
- }, 8, ["modelValue", "placeholder", "style"])
213
+ }, 8, ["modelValue", "placeholder", "style", "disabled"])
207
214
  ]),
208
215
  _: 1
209
216
  /* STABLE */
210
- });
217
+ }, 8, ["disabled"]);
211
218
  };
212
219
  }
213
220
  });
@@ -0,0 +1,6 @@
1
+ import './index.vue.mjs';
2
+ import _sfc_main from './index2.vue.mjs';
3
+
4
+ const FmTooltip = _sfc_main;
5
+
6
+ export { FmTooltip };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './index2.vue.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,107 @@
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createVNode, withCtx, unref, Fragment, renderList, createElementVNode } from 'vue';
2
+ import { Opportunity } from '@element-plus/icons-vue';
3
+
4
+ const _hoisted_1 = ["innerHTML"];
5
+ var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ ...{
7
+ name: "FmTooltip"
8
+ },
9
+ __name: "index",
10
+ props: {
11
+ label: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ tipdata: {
16
+ type: Array,
17
+ default: []
18
+ },
19
+ content: {
20
+ type: String,
21
+ default: ""
22
+ }
23
+ },
24
+ setup(__props) {
25
+ return (_ctx, _cache) => {
26
+ const _component_el_icon = resolveComponent("el-icon");
27
+ const _component_el_tooltip = resolveComponent("el-tooltip");
28
+ return openBlock(), createElementBlock("div", null, [
29
+ createTextVNode(
30
+ toDisplayString(__props.label) + " ",
31
+ 1
32
+ /* TEXT */
33
+ ),
34
+ createVNode(_component_el_tooltip, {
35
+ "raw-content": "",
36
+ placement: "top",
37
+ effect: "light"
38
+ }, {
39
+ content: withCtx(() => [
40
+ __props.tipdata.length > 0 ? (openBlock(true), createElementBlock(
41
+ Fragment,
42
+ { key: 0 },
43
+ renderList(__props.tipdata, (value) => {
44
+ return openBlock(), createElementBlock("p", null, [
45
+ _cache[0] || (_cache[0] = createTextVNode(
46
+ " \u4ECE\u3010",
47
+ -1
48
+ /* CACHED */
49
+ )),
50
+ createElementVNode(
51
+ "strong",
52
+ null,
53
+ toDisplayString(value.oldValue),
54
+ 1
55
+ /* TEXT */
56
+ ),
57
+ _cache[1] || (_cache[1] = createTextVNode(
58
+ "\u3011\u4FEE\u6539\u4E3A\u3010",
59
+ -1
60
+ /* CACHED */
61
+ )),
62
+ createElementVNode(
63
+ "strong",
64
+ null,
65
+ toDisplayString(value.newValue),
66
+ 1
67
+ /* TEXT */
68
+ ),
69
+ _cache[2] || (_cache[2] = createTextVNode(
70
+ "\u3011\uFF0C",
71
+ -1
72
+ /* CACHED */
73
+ )),
74
+ createElementVNode(
75
+ "strong",
76
+ null,
77
+ toDisplayString(value.opUser) + " " + toDisplayString(value.opDate),
78
+ 1
79
+ /* TEXT */
80
+ )
81
+ ]);
82
+ }),
83
+ 256
84
+ /* UNKEYED_FRAGMENT */
85
+ )) : (openBlock(), createElementBlock("p", {
86
+ key: 1,
87
+ innerHTML: __props.content
88
+ }, null, 8, _hoisted_1))
89
+ ]),
90
+ default: withCtx(() => [
91
+ createVNode(_component_el_icon, { color: "#ff4d4f" }, {
92
+ default: withCtx(() => [
93
+ createVNode(unref(Opportunity))
94
+ ]),
95
+ _: 1
96
+ /* STABLE */
97
+ })
98
+ ]),
99
+ _: 1
100
+ /* STABLE */
101
+ })
102
+ ]);
103
+ };
104
+ }
105
+ });
106
+
107
+ export { _sfc_main as default };
@@ -17,3 +17,4 @@ export { FmInputNumber } from './fm-inputnumber/index.mjs';
17
17
  export { FmAutocomplete, FmAutocompleteExt } from './fm-autocomplete/index.mjs';
18
18
  export { Fmdatepicker } from './fm-datepicker/index.mjs';
19
19
  export { FmPeriod } from './fm-period/index.mjs';
20
+ export { FmTooltip } from './fm-tooltip/index.mjs';