@yetuzi/vue3-query-components 1.5.0 → 1.5.1

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 (43) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.d.ts +109 -338
  4. package/dist/index.js +1062 -1029
  5. package/dist/version-info.json +7 -7
  6. package/package.json +1 -1
  7. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  8. package/dist/components/CommonButton/index.vue.js +0 -40
  9. package/dist/components/CommonButton/index.vue2.js +0 -4
  10. package/dist/components/CommonCascader/index.vue.js +0 -46
  11. package/dist/components/CommonCascader/index.vue2.js +0 -4
  12. package/dist/components/CommonCheckbox/index.vue.js +0 -38
  13. package/dist/components/CommonCheckbox/index.vue2.js +0 -4
  14. package/dist/components/CommonConfigProvider/index.vue.js +0 -19
  15. package/dist/components/CommonConfigProvider/index.vue2.js +0 -4
  16. package/dist/components/CommonDatePicker/index.vue.js +0 -74
  17. package/dist/components/CommonDatePicker/index.vue2.js +0 -4
  18. package/dist/components/CommonForm/index.vue.js +0 -7
  19. package/dist/components/CommonForm/index.vue2.js +0 -148
  20. package/dist/components/CommonInput/index.vue.js +0 -38
  21. package/dist/components/CommonInput/index.vue2.js +0 -4
  22. package/dist/components/CommonInputNumber/index.vue.js +0 -45
  23. package/dist/components/CommonInputNumber/index.vue2.js +0 -4
  24. package/dist/components/CommonPagination/index.vue.js +0 -88
  25. package/dist/components/CommonPagination/index.vue2.js +0 -4
  26. package/dist/components/CommonQueryTable/index.vue.js +0 -7
  27. package/dist/components/CommonQueryTable/index.vue2.js +0 -132
  28. package/dist/components/CommonRadio/index.vue.js +0 -37
  29. package/dist/components/CommonRadio/index.vue2.js +0 -4
  30. package/dist/components/CommonSelect/index.vue.js +0 -44
  31. package/dist/components/CommonSelect/index.vue2.js +0 -4
  32. package/dist/components/CommonSwitch/index.vue.js +0 -51
  33. package/dist/components/CommonSwitch/index.vue2.js +0 -4
  34. package/dist/components/CommonTable/config.js +0 -57
  35. package/dist/components/CommonTable/index.vue.js +0 -7
  36. package/dist/components/CommonTable/index.vue2.js +0 -139
  37. package/dist/components/CommonTimePicker/index.vue.js +0 -72
  38. package/dist/components/CommonTimePicker/index.vue2.js +0 -4
  39. package/dist/hooks/useGetComponentsChildrenSlots.js +0 -58
  40. package/dist/hooks/useResettable.js +0 -20
  41. package/dist/provide/index.js +0 -10
  42. package/dist/provide/key.js +0 -4
  43. package/dist/utils/index.js +0 -14
@@ -1,132 +0,0 @@
1
- import { defineComponent as q, ref as A, createElementBlock as b, openBlock as i, Fragment as B, renderList as c, normalizeClass as w, renderSlot as l, createBlock as z, withDirectives as x, unref as e, mergeProps as m, isRef as y, createSlots as h, withCtx as P } from "vue";
2
- import "../../index.js";
3
- import { useRequest as G } from "vue-hooks-plus";
4
- import { ElLoading as j } from "element-plus";
5
- /* empty css */
6
- /* empty css */
7
- import { useGetComponentsChildrenSlots as O, useGetComponentsChildrenAttrs as Q } from "../../hooks/useGetComponentsChildrenSlots.js";
8
- import { useResettableReactive as T } from "../../hooks/useResettable.js";
9
- import V from "../CommonForm/index.vue.js";
10
- import H from "../CommonTable/index.vue.js";
11
- import I from "../CommonPagination/index.vue.js";
12
- import { filterNullAndUndefined as J } from "../../utils/index.js";
13
- import { getCommonProviderConfig as K } from "../../provide/index.js";
14
- const M = { class: "common-query-table" }, se = /* @__PURE__ */ q({
15
- name: "CommonQueryTable",
16
- __name: "index",
17
- props: {
18
- fetch: {},
19
- form: { default() {
20
- return [];
21
- } },
22
- columns: {},
23
- layouts: { default() {
24
- return ["form", "table", "pagination"];
25
- } }
26
- },
27
- setup(p, { expose: R }) {
28
- const $ = j.directive, k = p, N = A(), C = O(["table", "form", "pagination"]), S = Q(["table", "form", "pagination"]), F = Object.fromEntries(k.form.map((o) => [o.prop, o.initialValue])), u = K(), [n, D] = T({
29
- pageNo: u.component.pagination.defaultPageCount,
30
- pageSize: u.component.pagination.defaultPageSize
31
- }), { data: g, loading: d, run: E } = G(k.fetch, {
32
- /** 默认请求参数,包含分页和表单初始值 */
33
- defaultParams: [
34
- {
35
- ...n,
36
- ...F
37
- }
38
- ],
39
- /** 初始数据,避免undefined问题 */
40
- initialData: {
41
- list: [],
42
- total: 0
43
- },
44
- /** 错误处理,重置数据 */
45
- onError() {
46
- g.value.total = 0, g.value.list = [];
47
- }
48
- });
49
- function L() {
50
- v();
51
- }
52
- function U() {
53
- n.pageNo === u.component.pagination.defaultPageCount && n.pageSize === u.component.pagination.defaultPageSize ? v() : D();
54
- }
55
- function _(o) {
56
- n.pageNo = o.pageNo, n.pageSize = o.pageSize, v();
57
- }
58
- function v() {
59
- const o = N.value?.[0]?.formData || {};
60
- E(
61
- J({
62
- ...n,
63
- ...o
64
- })
65
- );
66
- }
67
- return R({}), (o, a) => (i(), b("div", M, [
68
- (i(!0), b(B, null, c(p.layouts, (r) => (i(), b("div", {
69
- class: w([`common-query-table-${r}`]),
70
- key: r
71
- }, [
72
- l(o.$slots, r, {}, () => [
73
- r === "form" ? (i(), z(e(V), m({
74
- key: 0,
75
- ref_for: !0,
76
- ref_key: "CommonFormRef",
77
- ref: N,
78
- inline: "",
79
- form: p.form
80
- }, { ref_for: !0 }, e(S).form, {
81
- loading: e(d),
82
- "onUpdate:loading": a[0] || (a[0] = (t) => y(d) ? d.value = t : null),
83
- onSubmit: L,
84
- onReset: U
85
- }), h({ _: 2 }, [
86
- c(e(C)?.[r], (t, f) => ({
87
- name: f,
88
- fn: P((s) => [
89
- l(o.$slots, t, m({ ref_for: !0 }, s), void 0, !0)
90
- ])
91
- }))
92
- ]), 1040, ["form", "loading"])) : r === "table" ? x((i(), z(e(H), m({
93
- key: 1,
94
- ref_for: !0
95
- }, e(S).table, {
96
- columns: p.columns,
97
- data: e(g)?.list
98
- }), h({ _: 2 }, [
99
- c(e(C)?.[r], (t, f) => ({
100
- name: f,
101
- fn: P((s) => [
102
- l(o.$slots, t, m({ ref_for: !0 }, s), void 0, !0)
103
- ])
104
- }))
105
- ]), 1040, ["columns", "data"])), [
106
- [e($), e(d)]
107
- ]) : r === "pagination" ? (i(), z(e(I), m({
108
- key: 2,
109
- ref_for: !0
110
- }, e(S).pagination, {
111
- "page-no": e(n).pageNo,
112
- "onUpdate:pageNo": a[1] || (a[1] = (t) => e(n).pageNo = t),
113
- "page-size": e(n).pageSize,
114
- "onUpdate:pageSize": a[2] || (a[2] = (t) => e(n).pageSize = t),
115
- total: Number(e(g)?.total),
116
- onChange: _
117
- }), h({ _: 2 }, [
118
- c(e(C)?.[r], (t, f) => ({
119
- name: f,
120
- fn: P((s) => [
121
- l(o.$slots, t, m({ ref_for: !0 }, s), void 0, !0)
122
- ])
123
- }))
124
- ]), 1040, ["page-no", "page-size", "total"])) : l(o.$slots, r, { key: 3 }, void 0, !0)
125
- ], !0)
126
- ], 2))), 128))
127
- ]));
128
- }
129
- });
130
- export {
131
- se as default
132
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as t, mergeModels as d, useModel as r, createBlock as i, openBlock as n, unref as p, mergeProps as u } from "vue";
2
- import { ElRadioGroup as s } from "element-plus";
3
- /* empty css */
4
- /* empty css */
5
- /* empty css */
6
- const M = /* @__PURE__ */ t({
7
- name: "CommonRadio",
8
- __name: "index",
9
- props: /* @__PURE__ */ d({
10
- ariaLabel: {},
11
- id: {},
12
- size: {},
13
- disabled: {},
14
- modelValue: {},
15
- fill: {},
16
- textColor: {},
17
- name: {},
18
- validateEvent: {},
19
- options: {},
20
- props: {},
21
- type: {}
22
- }, {
23
- modelValue: {},
24
- modelModifiers: {}
25
- }),
26
- emits: ["update:modelValue"],
27
- setup(e) {
28
- const a = e, o = r(e, "modelValue");
29
- return (f, l) => (n(), i(p(s), u(a, {
30
- modelValue: o.value,
31
- "onUpdate:modelValue": l[0] || (l[0] = (m) => o.value = m)
32
- }), null, 16, ["modelValue"]));
33
- }
34
- });
35
- export {
36
- M as default
37
- };
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,44 +0,0 @@
1
- import { defineComponent as u, mergeModels as p, useModel as i, createBlock as d, openBlock as l, unref as m, mergeProps as s, withCtx as f, renderSlot as c, createElementBlock as b, Fragment as V, renderList as v } from "vue";
2
- import { ElSelect as k, ElOption as g } from "element-plus";
3
- /* empty css */
4
- /* empty css */
5
- /* empty css */
6
- /* empty css */
7
- /* empty css */
8
- /* empty css */
9
- /* empty css */
10
- const F = /* @__PURE__ */ u({
11
- name: "CommonSelect",
12
- __name: "index",
13
- props: /* @__PURE__ */ p({
14
- options: { default() {
15
- return [];
16
- } }
17
- }, {
18
- modelValue: {},
19
- modelModifiers: {}
20
- }),
21
- emits: ["update:modelValue"],
22
- setup(o) {
23
- const t = o, r = i(o, "modelValue");
24
- return (n, a) => (l(), d(m(k), s(t, {
25
- modelValue: r.value,
26
- "onUpdate:modelValue": a[0] || (a[0] = (e) => r.value = e)
27
- }), {
28
- default: f(() => [
29
- c(n.$slots, "default", {}, () => [
30
- (l(!0), b(V, null, v(t.options, (e) => (l(), d(m(g), {
31
- key: e.label,
32
- value: e.value,
33
- label: e.label,
34
- disabled: e.disabled
35
- }, null, 8, ["value", "label", "disabled"]))), 128))
36
- ])
37
- ]),
38
- _: 3
39
- }, 16, ["modelValue"]));
40
- }
41
- });
42
- export {
43
- F as default
44
- };
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,51 +0,0 @@
1
- import { defineComponent as n, mergeModels as c, useModel as d, computed as m, createBlock as s, openBlock as u, unref as v, mergeProps as p } from "vue";
2
- import { ElSwitch as f } from "element-plus";
3
- /* empty css */
4
- /* empty css */
5
- const w = /* @__PURE__ */ n({
6
- name: "CommonSwitch",
7
- __name: "index",
8
- props: /* @__PURE__ */ c({
9
- activeColor: {},
10
- inactiveColor: {},
11
- borderColor: {},
12
- ariaLabel: {},
13
- modelValue: {},
14
- disabled: {},
15
- loading: {},
16
- size: {},
17
- width: {},
18
- inlinePrompt: {},
19
- inactiveActionIcon: {},
20
- activeActionIcon: {},
21
- activeIcon: {},
22
- inactiveIcon: {},
23
- activeText: {},
24
- inactiveText: {},
25
- activeValue: {},
26
- inactiveValue: {},
27
- name: {},
28
- validateEvent: {},
29
- beforeChange: {},
30
- id: {},
31
- tabindex: {}
32
- }, {
33
- modelValue: {},
34
- modelModifiers: {}
35
- }),
36
- emits: ["update:modelValue"],
37
- setup(l) {
38
- const e = l, t = d(l, "modelValue"), a = m(() => {
39
- const o = {};
40
- return e.activeColor && (o["--el-switch-on-color"] = e.activeColor), e.inactiveColor && (o["--el-switch-off-color"] = e.inactiveColor), e.borderColor && (o["--el-switch-border-color"] = e.borderColor), o;
41
- });
42
- return (o, i) => (u(), s(v(f), p({ class: "common-switch" }, e, {
43
- modelValue: t.value,
44
- "onUpdate:modelValue": i[0] || (i[0] = (r) => t.value = r),
45
- style: a.value
46
- }), null, 16, ["modelValue", "style"]));
47
- }
48
- });
49
- export {
50
- w as default
51
- };
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,57 +0,0 @@
1
- import i from "dayjs";
2
- function a(n) {
3
- return { label: "序号" };
4
- }
5
- function m(n) {
6
- return {};
7
- }
8
- function c(n) {
9
- return {};
10
- }
11
- function f(n) {
12
- return {
13
- width: "140px",
14
- formatter(o, t, r) {
15
- return i(r).format("YYYY-MM-DD");
16
- }
17
- };
18
- }
19
- function l(n) {
20
- return {
21
- width: "180px",
22
- formatter(o, t, r) {
23
- return i(r).format("YYYY-MM-DD HH:mm:ss");
24
- }
25
- };
26
- }
27
- function p(n) {
28
- return {
29
- width: "120px",
30
- formatter: C(
31
- n
32
- )
33
- };
34
- }
35
- function C(n) {
36
- return function(t, r, e, g) {
37
- return n?.options && Array.isArray(n.options) ? n.options.find(
38
- (u) => u.value === e
39
- )?.label ?? e : e;
40
- };
41
- }
42
- const d = /* @__PURE__ */ new Map([
43
- ["index", a],
44
- ["selection", m],
45
- ["expand", c],
46
- ["date", f],
47
- ["dateTime", l],
48
- ["dict", p]
49
- ]);
50
- function D(n, o) {
51
- const t = d.get(n);
52
- if (t)
53
- return t(o);
54
- }
55
- export {
56
- D as getColumnSupplementType
57
- };
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.js";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3c13d282"]]);
5
- export {
6
- _ as default
7
- };
@@ -1,139 +0,0 @@
1
- import { defineComponent as C, getCurrentInstance as b, useAttrs as T, ref as v, watch as S, computed as _, createElementBlock as m, openBlock as n, createVNode as d, unref as o, mergeProps as u, withCtx as p, Fragment as N, renderList as E, createBlock as R, createSlots as k, renderSlot as c, createCommentVNode as O, createTextVNode as A, toDisplayString as V } from "vue";
2
- import { ElTable as F, ElTableColumn as P, ElEmpty as B } from "element-plus";
3
- /* empty css */
4
- /* empty css */
5
- /* empty css */
6
- import "../../node_modules/element-plus/theme-chalk/el-tooltip.css.js";
7
- /* empty css */
8
- /* empty css */
9
- /* empty css */
10
- /* empty css */
11
- /* empty css */
12
- import "../../index.js";
13
- import { getColumnSupplementType as K } from "./config.js";
14
- import { getFirstValidValue as $ } from "../../utils/index.js";
15
- import { getCommonProviderConfig as j } from "../../provide/index.js";
16
- const z = { class: "common-table" }, te = /* @__PURE__ */ C({
17
- name: "CommonTable",
18
- __name: "index",
19
- props: {
20
- columns: {},
21
- data: { default() {
22
- return [];
23
- } },
24
- size: {},
25
- width: {},
26
- height: {},
27
- maxHeight: {},
28
- fit: {},
29
- stripe: {},
30
- border: {},
31
- rowKey: {},
32
- context: {},
33
- showHeader: {},
34
- showSummary: {},
35
- sumText: {},
36
- summaryMethod: {},
37
- rowClassName: {},
38
- rowStyle: {},
39
- cellClassName: {},
40
- cellStyle: {},
41
- headerRowClassName: {},
42
- headerRowStyle: {},
43
- headerCellClassName: {},
44
- highlightCurrentRow: {},
45
- currentRowKey: {},
46
- emptyText: {},
47
- expandRowKeys: {},
48
- defaultExpandAll: {},
49
- defaultSort: {},
50
- tooltipEffect: {},
51
- tooltipOptions: {},
52
- spanMethod: {},
53
- selectOnIndeterminate: {},
54
- indent: {},
55
- treeProps: {},
56
- lazy: {},
57
- load: {},
58
- className: {},
59
- style: {},
60
- tableLayout: {},
61
- scrollbarAlwaysOn: {},
62
- flexible: {},
63
- showOverflowTooltip: {},
64
- tooltipFormatter: {},
65
- appendFilterPanelTo: {},
66
- scrollbarTabindex: {},
67
- nativeScrollbar: {}
68
- },
69
- setup(f, { expose: y }) {
70
- const h = j(), l = f, s = b(), w = T(), i = v();
71
- S(
72
- () => l.data,
73
- () => {
74
- i.value?.scrollTo({
75
- top: 0,
76
- left: 0,
77
- behavior: "smooth"
78
- });
79
- }
80
- );
81
- const x = _(() => {
82
- let t = l.columns;
83
- return Array.isArray(t) || (t = Object.entries(t).map(([r, e]) => ({
84
- ...e,
85
- prop: r
86
- }))), t.map((r) => {
87
- if (r.type) {
88
- const e = K(r.type, r);
89
- if (e)
90
- return Object.assign(e, {
91
- ...r,
92
- prop: r.prop
93
- });
94
- }
95
- return {
96
- ...r,
97
- prop: r.prop
98
- };
99
- });
100
- });
101
- function g(t) {
102
- s?.exposed && t && (s.exposed = t), i.value = t;
103
- }
104
- return y(), (t, r) => (n(), m("div", z, [
105
- d(o(F), u({ ref: g }, { ...l, ...o(w) }, { height: "100%" }), {
106
- empty: p(() => [
107
- c(t.$slots, "empty", {}, () => [
108
- d(o(B), { description: "暂无数据" })
109
- ], !0)
110
- ]),
111
- default: p(() => [
112
- (n(!0), m(N, null, E(x.value, (e) => (n(), R(o(P), u({ ref_for: !0 }, e, {
113
- key: e.prop
114
- }), k({ _: 2 }, [
115
- e.formatter ? void 0 : {
116
- name: "default",
117
- fn: p((a) => [
118
- !e.type || !["index", "selection", "expand"].includes(e.type) ? c(t.$slots, e.prop, {
119
- key: 0,
120
- row: a.row,
121
- column: a.column,
122
- index: a.$index,
123
- value: a.row[e.prop]
124
- }, () => [
125
- A(V(o($)(a.row[e.prop], o(h).component.placeholder)), 1)
126
- ], !0) : O("", !0)
127
- ]),
128
- key: "0"
129
- }
130
- ]), 1040))), 128))
131
- ]),
132
- _: 3
133
- }, 16)
134
- ]));
135
- }
136
- });
137
- export {
138
- te as default
139
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as r, mergeModels as n, useModel as p, createBlock as m, openBlock as d, unref as i, mergeProps as s } from "vue";
2
- import { ElTimePicker as u } from "element-plus";
3
- /* empty css */
4
- /* empty css */
5
- /* empty css */
6
- /* empty css */
7
- /* empty css */
8
- const w = /* @__PURE__ */ r({
9
- name: "CommonTimePicker",
10
- __name: "index",
11
- props: /* @__PURE__ */ n({
12
- type: {},
13
- showNow: { type: Boolean },
14
- showConfirm: { type: Boolean },
15
- showFooter: { type: Boolean },
16
- showWeekNumber: { type: Boolean },
17
- ariaLabel: {},
18
- emptyValues: {},
19
- valueOnClear: {},
20
- disabledDate: {},
21
- cellClassName: {},
22
- shortcuts: {},
23
- arrowControl: { type: Boolean },
24
- tabindex: {},
25
- validateEvent: { type: Boolean },
26
- unlinkPanels: { type: Boolean },
27
- placement: {},
28
- fallbackPlacements: {},
29
- disabledHours: {},
30
- disabledMinutes: {},
31
- disabledSeconds: {},
32
- automaticDropdown: { type: Boolean },
33
- id: {},
34
- name: {},
35
- popperClass: {},
36
- popperStyle: {},
37
- format: {},
38
- valueFormat: {},
39
- dateFormat: {},
40
- timeFormat: {},
41
- clearable: { type: Boolean },
42
- clearIcon: {},
43
- editable: { type: Boolean },
44
- prefixIcon: {},
45
- size: {},
46
- readonly: { type: Boolean },
47
- disabled: { type: Boolean },
48
- placeholder: {},
49
- popperOptions: {},
50
- modelValue: {},
51
- rangeSeparator: {},
52
- startPlaceholder: {},
53
- endPlaceholder: {},
54
- defaultValue: {},
55
- defaultTime: {},
56
- isRange: { type: Boolean }
57
- }, {
58
- modelValue: {},
59
- modelModifiers: {}
60
- }),
61
- emits: ["update:modelValue"],
62
- setup(e) {
63
- const l = e, o = p(e, "modelValue");
64
- return (c, a) => (d(), m(i(u), s(l, {
65
- modelValue: o.value,
66
- "onUpdate:modelValue": a[0] || (a[0] = (t) => o.value = t)
67
- }), null, 16, ["modelValue"]));
68
- }
69
- });
70
- export {
71
- w as default
72
- };
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,58 +0,0 @@
1
- import { useSlots as d, computed as u, useAttrs as x } from "vue";
2
- import { kebabCase as y, merge as O, camelCase as h } from "lodash-es";
3
- function K(c) {
4
- const o = d();
5
- return u(() => {
6
- const n = Object.fromEntries(c.map((t) => [t, {}]));
7
- for (const t in o) {
8
- if (!Object.prototype.hasOwnProperty.call(o, t) && !c.some((f) => f.startsWith(t)))
9
- continue;
10
- const i = y(t), r = o[t], e = i.indexOf("-");
11
- if (e === -1 && !r) return;
12
- const a = i.slice(0, e), l = i.slice(e + 1);
13
- O(n, {
14
- [a]: {
15
- [h(l)]: t
16
- }
17
- });
18
- }
19
- return n;
20
- });
21
- }
22
- function P(c) {
23
- const o = x();
24
- return u(() => {
25
- const n = Object.fromEntries(c.map((t) => [t, {}]));
26
- for (const t in o) {
27
- if (!Object.prototype.hasOwnProperty.call(o, t))
28
- continue;
29
- const i = o[t], r = h(t);
30
- for (const e of c) {
31
- const a = e.charAt(0).toUpperCase() + e.slice(1), l = r.toLowerCase(), f = a.toLowerCase();
32
- if (l.includes(f)) {
33
- const p = l.indexOf(f), C = r.startsWith("on") && p === 2;
34
- let m;
35
- if (C) {
36
- const s = r.slice(p + a.length);
37
- m = "on" + (s.charAt(0).toUpperCase() + s.slice(1));
38
- } else {
39
- const s = r.slice(p + a.length);
40
- if (!s)
41
- continue;
42
- m = s.charAt(0).toLowerCase() + s.slice(1);
43
- }
44
- n[e] = {
45
- ...n[e],
46
- [m]: i
47
- };
48
- break;
49
- }
50
- }
51
- }
52
- return n;
53
- });
54
- }
55
- export {
56
- P as useGetComponentsChildrenAttrs,
57
- K as useGetComponentsChildrenSlots
58
- };
@@ -1,20 +0,0 @@
1
- import { cloneDeep as n } from "lodash-es";
2
- import { reactive as i, ref as a } from "vue";
3
- function l(s, t = n) {
4
- const r = t(s), e = a(s);
5
- return [e, () => {
6
- e.value = t(r);
7
- }];
8
- }
9
- function p(s, t = n) {
10
- const r = t(s), e = i(r);
11
- return [e, () => {
12
- Object.keys(e).forEach((c) => {
13
- Reflect.deleteProperty(e, c);
14
- }), Object.assign(e, t(r));
15
- }];
16
- }
17
- export {
18
- p as useResettableReactive,
19
- l as useResettableRef
20
- };
@@ -1,10 +0,0 @@
1
- import { configInjectKey as o } from "./key.js";
2
- import { config as r } from "../index.js";
3
- import { inject as i } from "vue";
4
- function e() {
5
- return i(o, r);
6
- }
7
- export {
8
- o as configInjectKey,
9
- e as getCommonProviderConfig
10
- };
@@ -1,4 +0,0 @@
1
- const o = Symbol();
2
- export {
3
- o as configInjectKey
4
- };
@@ -1,14 +0,0 @@
1
- function i(...t) {
2
- return t.find((n) => n != null && n !== "");
3
- }
4
- function r(t) {
5
- return Object.fromEntries(
6
- Object.entries(t).filter(
7
- ([n, e]) => e != null && e !== ""
8
- )
9
- );
10
- }
11
- export {
12
- r as filterNullAndUndefined,
13
- i as getFirstValidValue
14
- };