@fangzhongya/fang-ui 0.0.47 → 0.0.49
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/components/array/src/index2.cjs +9 -6
- package/dist/components/array/src/index2.js +9 -6
- package/dist/components/box-teleport/src/index2.cjs +1 -1
- package/dist/components/box-teleport/src/index2.js +1 -1
- package/dist/components/checks/src/index2.cjs +4 -4
- package/dist/components/checks/src/index2.js +4 -4
- package/dist/components/common/list.cjs +3 -2
- package/dist/components/common/list.js +3 -2
- package/dist/components/common/use.cjs +11 -11
- package/dist/components/common/use.js +11 -11
- package/dist/components/forms/src/index2.cjs +2 -2
- package/dist/components/forms/src/index2.js +2 -2
- package/dist/components/forms/src/setup.cjs +8 -5
- package/dist/components/forms/src/setup.js +8 -5
- package/dist/components/forms/src/util.cjs +2 -1
- package/dist/components/forms/src/util.js +2 -1
- package/dist/components/forms-drag/src/index2.cjs +2 -2
- package/dist/components/forms-drag/src/index2.js +2 -2
- package/dist/components/forms-item/src/index2.cjs +1 -1
- package/dist/components/forms-item/src/index2.js +1 -1
- package/dist/components/forms-items/src/index2.cjs +2 -2
- package/dist/components/forms-items/src/index2.js +2 -2
- package/dist/components/global-config/src/index.cjs +1 -1
- package/dist/components/global-config/src/index.js +1 -1
- package/dist/components/icon-picker/src/index2.cjs +6 -4
- package/dist/components/icon-picker/src/index2.js +6 -4
- package/dist/components/iframe/index.cjs +1 -0
- package/dist/components/iframe/index.css +18 -0
- package/dist/components/iframe/index.js +1 -0
- package/dist/components/iframe/index.scss +7 -0
- package/dist/components/index.cjs +82 -80
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.scss +2 -0
- package/dist/components/index2.scss +2 -0
- package/dist/components/input-select/src/index2.cjs +1 -1
- package/dist/components/input-select/src/index2.js +1 -1
- package/dist/components/keep-com/index.cjs +9 -0
- package/dist/components/keep-com/index.d.ts +2 -0
- package/dist/components/keep-com/index.js +9 -0
- package/dist/components/keep-com/index.scss +5 -0
- package/dist/components/keep-com/src/data.cjs +42 -0
- package/dist/components/keep-com/src/data.d.ts +71 -0
- package/dist/components/keep-com/src/data.js +42 -0
- package/dist/components/keep-com/src/index.cjs +4 -0
- package/dist/components/keep-com/src/index.js +4 -0
- package/dist/components/keep-com/src/index2.cjs +77 -0
- package/dist/components/keep-com/src/index2.js +77 -0
- package/dist/components/labels/src/index2.cjs +2 -1
- package/dist/components/labels/src/index2.js +2 -1
- package/dist/components/menus/src/menu-ll2.cjs +1 -1
- package/dist/components/menus/src/menu-ll2.js +1 -1
- package/dist/components/page/src/index2.cjs +85 -65
- package/dist/components/page/src/index2.js +85 -65
- package/dist/components/paging/src/index2.cjs +8 -4
- package/dist/components/paging/src/index2.js +8 -4
- package/dist/components/seamless-scroll/src/index2.cjs +2 -2
- package/dist/components/seamless-scroll/src/index2.js +2 -2
- package/dist/components/selects/src/index2.cjs +1 -1
- package/dist/components/selects/src/index2.js +1 -1
- package/dist/components/stick-window/src/index2.cjs +1 -1
- package/dist/components/stick-window/src/index2.js +1 -1
- package/dist/components/switchs/src/index2.cjs +4 -4
- package/dist/components/switchs/src/index2.js +4 -4
- package/dist/components/tables/common/pagin.cjs +57 -40
- package/dist/components/tables/common/pagin.js +57 -40
- package/dist/components/tables/common/table-but2.cjs +2 -1
- package/dist/components/tables/common/table-but2.js +2 -1
- package/dist/components/tables/common/table-color2.cjs +5 -4
- package/dist/components/tables/common/table-color2.js +5 -4
- package/dist/components/tables/common/table-list2.cjs +2 -1
- package/dist/components/tables/common/table-list2.js +2 -1
- package/dist/components/tables/common/util.cjs +3 -2
- package/dist/components/tables/common/util.js +3 -2
- package/dist/components/tables/src/columns3.cjs +1 -1
- package/dist/components/tables/src/columns3.js +1 -1
- package/dist/components/tables/src/index2.cjs +3 -2
- package/dist/components/tables/src/index2.js +3 -2
- package/dist/components/tablesp/src/index2.cjs +4 -3
- package/dist/components/tablesp/src/index2.js +4 -3
- package/dist/components/tabless/src/index2.cjs +5 -4
- package/dist/components/tabless/src/index2.js +5 -4
- package/dist/components/tablesv/src/columns3.cjs +1 -1
- package/dist/components/tablesv/src/columns3.js +1 -1
- package/dist/components/tablesv/src/index2.cjs +3 -2
- package/dist/components/tablesv/src/index2.js +3 -2
- package/dist/components/tablesvp/src/index2.cjs +3 -2
- package/dist/components/tablesvp/src/index2.js +3 -2
- package/dist/css/iframe.css +18 -0
- package/dist/css/index.css +5 -0
- package/dist/directives/adjust/index.cjs +2 -1
- package/dist/directives/adjust/index.js +2 -1
- package/dist/expand/{chunk-SJZOTUWF.cjs → chunk-LSKJOV4K.cjs} +3 -0
- package/dist/expand/{chunk-QTEP33RI.js → chunk-ZS2GF6MH.js} +3 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/event-aliass/index.cjs +2 -1
- package/dist/hooks/event-aliass/index.js +2 -1
- package/dist/hooks/global-config/index.cjs +6 -3
- package/dist/hooks/global-config/index.js +6 -3
- package/dist/icons/index.css +7 -7
- package/dist/icons/index.json +3 -3
- package/dist/index.cjs +100 -98
- package/dist/index.css +5 -0
- package/dist/index.js +2 -0
- package/dist/utils/vues/common.cjs +2 -1
- package/dist/utils/vues/common.js +2 -1
- package/package.json +5 -5
- /package/dist/components/{input → transfer}/index.css +0 -0
- /package/dist/css/{input.css → transfer.css} +0 -0
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
props: dataProps,
|
|
19
19
|
emits: dataEmits,
|
|
20
20
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
|
+
var _a, _b;
|
|
21
22
|
const { getLocale } = useLocale();
|
|
22
23
|
const cs = useCssName("icon-picker");
|
|
23
24
|
const props = __props;
|
|
@@ -25,10 +26,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
26
|
let ac = "";
|
|
26
27
|
if (props.icons) {
|
|
27
28
|
if (props.icons instanceof Array) {
|
|
28
|
-
ac = props.icons[0]
|
|
29
|
+
ac = (_a = props.icons[0]) == null ? void 0 : _a.prefix;
|
|
29
30
|
} else {
|
|
30
31
|
const k = Object.keys(props.icons)[0];
|
|
31
|
-
ac = props.icons[k]
|
|
32
|
+
ac = (_b = props.icons[k]) == null ? void 0 : _b.prefix;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
const activeName = ref(ac);
|
|
@@ -36,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
37
|
const search = ref("");
|
|
37
38
|
const value = ref("");
|
|
38
39
|
const currentIconList = computed(() => {
|
|
40
|
+
var _a2;
|
|
39
41
|
let arr = {};
|
|
40
42
|
if (activeName.value) {
|
|
41
43
|
if (props.icons instanceof Array) {
|
|
@@ -43,12 +45,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
45
|
const element = props.icons[index];
|
|
44
46
|
const name = element.prefix;
|
|
45
47
|
if (name == activeName.value) {
|
|
46
|
-
arr = element
|
|
48
|
+
arr = (element == null ? void 0 : element.icons) || [];
|
|
47
49
|
break;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
} else {
|
|
51
|
-
arr = props.icons[activeName.value]
|
|
53
|
+
arr = ((_a2 = props.icons[activeName.value]) == null ? void 0 : _a2.icons) || [];
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
if (search.value) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
3
4
|
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
4
5
|
require("./src/index.cjs");
|
|
5
6
|
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.iframe {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
@@ -72,46 +72,47 @@ const index$14 = require("./global-config/index.cjs");
|
|
|
72
72
|
const index$15 = require("./icon-picker/index.cjs");
|
|
73
73
|
const index$16 = require("./icon/index.cjs");
|
|
74
74
|
const index$17 = require("./iframe/index.cjs");
|
|
75
|
-
const index$18 = require("./
|
|
76
|
-
const index$19 = require("./
|
|
77
|
-
const index$1a = require("./
|
|
78
|
-
const index$1b = require("./
|
|
79
|
-
const index$1c = require("./
|
|
80
|
-
const index$1d = require("./
|
|
81
|
-
const index$1e = require("./
|
|
82
|
-
const index$1f = require("./
|
|
83
|
-
const index$1g = require("./select
|
|
84
|
-
const index$1h = require("./select-
|
|
85
|
-
const index$1i = require("./
|
|
86
|
-
const index$1j = require("./
|
|
87
|
-
const index$1k = require("./
|
|
88
|
-
const index$1l = require("./
|
|
89
|
-
const index$1m = require("./
|
|
90
|
-
const index$1n = require("./
|
|
91
|
-
const index$1o = require("./
|
|
92
|
-
const index$1p = require("./dates-
|
|
93
|
-
const index$1q = require("./dates/index.cjs");
|
|
94
|
-
const index$1r = require("./
|
|
95
|
-
const index$1s = require("./edit/index.cjs");
|
|
96
|
-
const index$1t = require("./
|
|
97
|
-
const index$1u = require("./
|
|
98
|
-
const index$1v = require("./
|
|
99
|
-
const index$1w = require("./input-
|
|
100
|
-
const index$1x = require("./input-
|
|
101
|
-
const index$1y = require("./input-
|
|
102
|
-
const index$1z = require("./
|
|
103
|
-
const index$1A = require("./
|
|
104
|
-
const index$1B = require("./
|
|
105
|
-
const index$1C = require("./
|
|
106
|
-
const index$1D = require("./
|
|
107
|
-
const index$1E = require("./
|
|
108
|
-
const index$1F = require("./
|
|
109
|
-
const index$1G = require("./
|
|
110
|
-
const index$1H = require("./
|
|
111
|
-
const index$1I = require("./
|
|
112
|
-
const index$1J = require("./
|
|
113
|
-
const index$1K = require("./
|
|
114
|
-
const index$1L = require("./
|
|
75
|
+
const index$18 = require("./keep-com/index.cjs");
|
|
76
|
+
const index$19 = require("./lists/index.cjs");
|
|
77
|
+
const index$1a = require("./menus/index.cjs");
|
|
78
|
+
const index$1b = require("./page/index.cjs");
|
|
79
|
+
const index$1c = require("./retract/index.cjs");
|
|
80
|
+
const index$1d = require("./choice-select/index.cjs");
|
|
81
|
+
const index$1e = require("./company-select/index.cjs");
|
|
82
|
+
const index$1f = require("./department-select/index.cjs");
|
|
83
|
+
const index$1g = require("./role-select/index.cjs");
|
|
84
|
+
const index$1h = require("./select-dialog/index.cjs");
|
|
85
|
+
const index$1i = require("./select-popover/index.cjs");
|
|
86
|
+
const index$1j = require("./tree-select-box/index.cjs");
|
|
87
|
+
const index$1k = require("./user-select/index.cjs");
|
|
88
|
+
const index$1l = require("./array/index.cjs");
|
|
89
|
+
const index$1m = require("./buttons/index.cjs");
|
|
90
|
+
const index$1n = require("./cascaders/index.cjs");
|
|
91
|
+
const index$1o = require("./checks/index.cjs");
|
|
92
|
+
const index$1p = require("./dates-divide/index.cjs");
|
|
93
|
+
const index$1q = require("./dates-picker/index.cjs");
|
|
94
|
+
const index$1r = require("./dates/index.cjs");
|
|
95
|
+
const index$1s = require("./edit-float/index.cjs");
|
|
96
|
+
const index$1t = require("./edit/index.cjs");
|
|
97
|
+
const index$1u = require("./history/index.cjs");
|
|
98
|
+
const index$1v = require("./images/index.cjs");
|
|
99
|
+
const index$1w = require("./input-array/index.cjs");
|
|
100
|
+
const index$1x = require("./input-history/index.cjs");
|
|
101
|
+
const index$1y = require("./input-num/index.cjs");
|
|
102
|
+
const index$1z = require("./input-select/index.cjs");
|
|
103
|
+
const index$1A = require("./inputs/index.cjs");
|
|
104
|
+
const index$1B = require("./labels/index.cjs");
|
|
105
|
+
const index$1C = require("./select-scroll/index.cjs");
|
|
106
|
+
const index$1D = require("./selector/index.cjs");
|
|
107
|
+
const index$1E = require("./selects/index.cjs");
|
|
108
|
+
const index$1F = require("./switchs/index.cjs");
|
|
109
|
+
const index$1G = require("./text/index.cjs");
|
|
110
|
+
const index$1H = require("./paging/index.cjs");
|
|
111
|
+
const index$1I = require("./tables/index.cjs");
|
|
112
|
+
const index$1J = require("./tablesp/index.cjs");
|
|
113
|
+
const index$1K = require("./tabless/index.cjs");
|
|
114
|
+
const index$1L = require("./tablesv/index.cjs");
|
|
115
|
+
const index$1M = require("./tablesvp/index.cjs");
|
|
115
116
|
const index$b = require("./loading/src/index.cjs");
|
|
116
117
|
exports.Button = index.Button;
|
|
117
118
|
exports.Card = index$1.Card;
|
|
@@ -184,44 +185,45 @@ exports.GlobalConfig = index$14.GlobalConfig;
|
|
|
184
185
|
exports.IconPicker = index$15.IconPicker;
|
|
185
186
|
exports.Icon = index$16.Icon;
|
|
186
187
|
exports.Iframe = index$17.Iframe;
|
|
187
|
-
exports.
|
|
188
|
-
exports.
|
|
189
|
-
exports.
|
|
190
|
-
exports.
|
|
191
|
-
exports.
|
|
192
|
-
exports.
|
|
193
|
-
exports.
|
|
194
|
-
exports.
|
|
195
|
-
exports.
|
|
196
|
-
exports.
|
|
197
|
-
exports.
|
|
198
|
-
exports.
|
|
199
|
-
exports.
|
|
200
|
-
exports.
|
|
201
|
-
exports.
|
|
202
|
-
exports.
|
|
203
|
-
exports.
|
|
204
|
-
exports.
|
|
205
|
-
exports.
|
|
206
|
-
exports.
|
|
207
|
-
exports.
|
|
208
|
-
exports.
|
|
209
|
-
exports.
|
|
210
|
-
exports.
|
|
211
|
-
exports.
|
|
212
|
-
exports.
|
|
213
|
-
exports.
|
|
214
|
-
exports.
|
|
215
|
-
exports.
|
|
216
|
-
exports.
|
|
217
|
-
exports.
|
|
218
|
-
exports.
|
|
219
|
-
exports.
|
|
220
|
-
exports.
|
|
221
|
-
exports.
|
|
222
|
-
exports.
|
|
223
|
-
exports.
|
|
224
|
-
exports.
|
|
225
|
-
exports.
|
|
226
|
-
exports.
|
|
188
|
+
exports.KeepCom = index$18.KeepCom;
|
|
189
|
+
exports.Lists = index$19.Lists;
|
|
190
|
+
exports.Menus = index$1a.Menus;
|
|
191
|
+
exports.Page = index$1b.Page;
|
|
192
|
+
exports.Retract = index$1c.Retract;
|
|
193
|
+
exports.ChoiceSelect = index$1d.ChoiceSelect;
|
|
194
|
+
exports.CompanySelect = index$1e.CompanySelect;
|
|
195
|
+
exports.DepartmentSelect = index$1f.DepartmentSelect;
|
|
196
|
+
exports.RoleSelect = index$1g.RoleSelect;
|
|
197
|
+
exports.SelectDialog = index$1h.SelectDialog;
|
|
198
|
+
exports.SelectPopover = index$1i.SelectPopover;
|
|
199
|
+
exports.TreeSelectBox = index$1j.TreeSelectBox;
|
|
200
|
+
exports.UserSelect = index$1k.UserSelect;
|
|
201
|
+
exports.Array = index$1l.Array;
|
|
202
|
+
exports.Buttons = index$1m.Buttons;
|
|
203
|
+
exports.Cascaders = index$1n.Cascaders;
|
|
204
|
+
exports.Checks = index$1o.Checks;
|
|
205
|
+
exports.DatesDivide = index$1p.DatesDivide;
|
|
206
|
+
exports.DatesPicker = index$1q.DatesPicker;
|
|
207
|
+
exports.Dates = index$1r.Dates;
|
|
208
|
+
exports.EditFloat = index$1s.EditFloat;
|
|
209
|
+
exports.Edit = index$1t.Edit;
|
|
210
|
+
exports.History = index$1u.History;
|
|
211
|
+
exports.Images = index$1v.Images;
|
|
212
|
+
exports.InputArray = index$1w.InputArray;
|
|
213
|
+
exports.InputHistory = index$1x.InputHistory;
|
|
214
|
+
exports.InputNum = index$1y.InputNum;
|
|
215
|
+
exports.InputSelect = index$1z.InputSelect;
|
|
216
|
+
exports.Inputs = index$1A.Inputs;
|
|
217
|
+
exports.Labels = index$1B.Labels;
|
|
218
|
+
exports.SelectScroll = index$1C.SelectScroll;
|
|
219
|
+
exports.Selector = index$1D.Selector;
|
|
220
|
+
exports.Selects = index$1E.Selects;
|
|
221
|
+
exports.Switchs = index$1F.Switchs;
|
|
222
|
+
exports.Text = index$1G.Text;
|
|
223
|
+
exports.Paging = index$1H.Paging;
|
|
224
|
+
exports.Tables = index$1I.Tables;
|
|
225
|
+
exports.Tablesp = index$1J.Tablesp;
|
|
226
|
+
exports.Tabless = index$1K.Tabless;
|
|
227
|
+
exports.Tablesv = index$1L.Tablesv;
|
|
228
|
+
exports.Tablesvp = index$1M.Tablesvp;
|
|
227
229
|
exports.vLoading = index$b.vLoading;
|
|
@@ -69,6 +69,7 @@ export * from './global-config/index';
|
|
|
69
69
|
export * from './icon-picker/index';
|
|
70
70
|
export * from './icon/index';
|
|
71
71
|
export * from './iframe/index';
|
|
72
|
+
export * from './keep-com/index';
|
|
72
73
|
export * from './lists/index';
|
|
73
74
|
export * from './menus/index';
|
|
74
75
|
export * from './page/index';
|
package/dist/components/index.js
CHANGED
|
@@ -70,6 +70,7 @@ import { GlobalConfig } from "./global-config/index.js";
|
|
|
70
70
|
import { IconPicker } from "./icon-picker/index.js";
|
|
71
71
|
import { Icon } from "./icon/index.js";
|
|
72
72
|
import { Iframe } from "./iframe/index.js";
|
|
73
|
+
import { KeepCom } from "./keep-com/index.js";
|
|
73
74
|
import { Lists } from "./lists/index.js";
|
|
74
75
|
import { Menus } from "./menus/index.js";
|
|
75
76
|
import { Page } from "./page/index.js";
|
|
@@ -172,6 +173,7 @@ export {
|
|
|
172
173
|
InputSelect,
|
|
173
174
|
InputTag,
|
|
174
175
|
Inputs,
|
|
176
|
+
KeepCom,
|
|
175
177
|
Labels,
|
|
176
178
|
Lists,
|
|
177
179
|
Loading,
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
@use './window/index.scss' as *;
|
|
60
60
|
@use './global-config/index.scss' as *;
|
|
61
61
|
@use './icon/index.scss' as *;
|
|
62
|
+
@use './iframe/index.scss' as *;
|
|
63
|
+
@use './keep-com/index.scss' as *;
|
|
62
64
|
@use './lists/index.scss' as *;
|
|
63
65
|
@use './menus/index.scss' as *;
|
|
64
66
|
@use './page/index.scss' as *;
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
@use './window/style/index.scss' as *;
|
|
60
60
|
@use './global-config/style/index.scss' as *;
|
|
61
61
|
@use './icon/style/index2.scss' as *;
|
|
62
|
+
@use './iframe/style/index.scss' as *;
|
|
63
|
+
@use './keep-com/style/index.scss' as *;
|
|
62
64
|
@use './lists/style/index.scss' as *;
|
|
63
65
|
@use './menus/style/index2.scss' as *;
|
|
64
66
|
@use './page/style/index2.scss' as *;
|
|
@@ -189,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
189
189
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
190
190
|
class: vue.normalizeClass([
|
|
191
191
|
vue.unref(cs).z("select-li"),
|
|
192
|
-
vue.unref(cs).is("disabled", item
|
|
192
|
+
vue.unref(cs).is("disabled", item == null ? void 0 : item.disabled),
|
|
193
193
|
getSelected(item)
|
|
194
194
|
]),
|
|
195
195
|
onClick: vue.withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
@@ -187,7 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
187
|
return openBlock(), createElementBlock("li", {
|
|
188
188
|
class: normalizeClass([
|
|
189
189
|
unref(cs).z("select-li"),
|
|
190
|
-
unref(cs).is("disabled", item
|
|
190
|
+
unref(cs).is("disabled", item == null ? void 0 : item.disabled),
|
|
191
191
|
getSelected(item)
|
|
192
192
|
]),
|
|
193
193
|
onClick: withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
5
|
+
require("./src/index.cjs");
|
|
6
|
+
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
7
|
+
const KeepCom = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "KeepCom");
|
|
8
|
+
exports.KeepCom = KeepCom;
|
|
9
|
+
exports.default = KeepCom;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
+
const dataProps = buildProps.buildProps({
|
|
5
|
+
/**
|
|
6
|
+
* @props { String } is= ( )
|
|
7
|
+
* component 的 is 属性
|
|
8
|
+
*/
|
|
9
|
+
is: {
|
|
10
|
+
type: [String],
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
/**
|
|
14
|
+
* @props { Array<string> } include= ( )
|
|
15
|
+
* 缓存数组
|
|
16
|
+
*/
|
|
17
|
+
include: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default() {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* @props { Array<string> } hides= ( )
|
|
25
|
+
* 使用隐藏方式的组
|
|
26
|
+
*/
|
|
27
|
+
hides: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default() {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const dataEmits = {};
|
|
35
|
+
const dataSlot = {
|
|
36
|
+
default: "default"
|
|
37
|
+
};
|
|
38
|
+
const dataExpose = {};
|
|
39
|
+
exports.dataEmits = dataEmits;
|
|
40
|
+
exports.dataExpose = dataExpose;
|
|
41
|
+
exports.dataProps = dataProps;
|
|
42
|
+
exports.dataSlot = dataSlot;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
export declare const dataProps: {
|
|
3
|
+
/**
|
|
4
|
+
* @props { String } is= ( )
|
|
5
|
+
* component 的 is 属性
|
|
6
|
+
*/
|
|
7
|
+
is: {
|
|
8
|
+
type: StringConstructor[];
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @props { Array<string> } include= ( )
|
|
13
|
+
* 缓存数组
|
|
14
|
+
*/
|
|
15
|
+
include: {
|
|
16
|
+
type: {
|
|
17
|
+
(arrayLength: number): string[];
|
|
18
|
+
(...items: string[]): string[];
|
|
19
|
+
new (arrayLength: number): string[];
|
|
20
|
+
new (...items: string[]): string[];
|
|
21
|
+
isArray(arg: any): arg is any[];
|
|
22
|
+
readonly prototype: any[];
|
|
23
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
24
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
25
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
26
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
27
|
+
of<T>(...items: T[]): T[];
|
|
28
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
29
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
30
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
31
|
+
};
|
|
32
|
+
default(): never[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @props { Array<string> } hides= ( )
|
|
36
|
+
* 使用隐藏方式的组
|
|
37
|
+
*/
|
|
38
|
+
hides: {
|
|
39
|
+
type: {
|
|
40
|
+
(arrayLength: number): string[];
|
|
41
|
+
(...items: string[]): string[];
|
|
42
|
+
new (arrayLength: number): string[];
|
|
43
|
+
new (...items: string[]): string[];
|
|
44
|
+
isArray(arg: any): arg is any[];
|
|
45
|
+
readonly prototype: any[];
|
|
46
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
47
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
48
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
49
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
50
|
+
of<T>(...items: T[]): T[];
|
|
51
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
52
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
53
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
54
|
+
};
|
|
55
|
+
default(): never[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
59
|
+
/**
|
|
60
|
+
*/
|
|
61
|
+
export declare const dataEmits: {};
|
|
62
|
+
export type DataEmits = typeof dataEmits;
|
|
63
|
+
/**
|
|
64
|
+
* @slot default 默认插槽
|
|
65
|
+
*/
|
|
66
|
+
export declare const dataSlot: {
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
*/
|
|
71
|
+
export declare const dataExpose: {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
+
const dataProps = buildProps({
|
|
3
|
+
/**
|
|
4
|
+
* @props { String } is= ( )
|
|
5
|
+
* component 的 is 属性
|
|
6
|
+
*/
|
|
7
|
+
is: {
|
|
8
|
+
type: [String],
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
/**
|
|
12
|
+
* @props { Array<string> } include= ( )
|
|
13
|
+
* 缓存数组
|
|
14
|
+
*/
|
|
15
|
+
include: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default() {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* @props { Array<string> } hides= ( )
|
|
23
|
+
* 使用隐藏方式的组
|
|
24
|
+
*/
|
|
25
|
+
hides: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default() {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const dataEmits = {};
|
|
33
|
+
const dataSlot = {
|
|
34
|
+
default: "default"
|
|
35
|
+
};
|
|
36
|
+
const dataExpose = {};
|
|
37
|
+
export {
|
|
38
|
+
dataEmits,
|
|
39
|
+
dataExpose,
|
|
40
|
+
dataProps,
|
|
41
|
+
dataSlot
|
|
42
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const data = require("./data.cjs");
|
|
5
|
+
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
6
|
+
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
7
|
+
const index = require("../../../hooks/inherit/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: data.dataProps,
|
|
11
|
+
emits: data.dataEmits,
|
|
12
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
14
|
+
const { getLocale } = index$1.useLocale();
|
|
15
|
+
const cs = index$2.useCssName("keep-com");
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
18
|
+
const hideComs = vue.reactive([]);
|
|
19
|
+
const value = vue.computed(() => {
|
|
20
|
+
return props.is;
|
|
21
|
+
});
|
|
22
|
+
const sethideComs = () => {
|
|
23
|
+
const name = props.is;
|
|
24
|
+
if (props.hides.includes(name)) {
|
|
25
|
+
if (!hideComs.map((o) => o.name).includes(name)) {
|
|
26
|
+
hideComs.push({
|
|
27
|
+
name,
|
|
28
|
+
component: vue.h(vue.resolveComponent(name), {
|
|
29
|
+
...attrs.assem,
|
|
30
|
+
style: {
|
|
31
|
+
display: value.value != name ? "block" : "none"
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
vue.watch(
|
|
39
|
+
[
|
|
40
|
+
() => props.is,
|
|
41
|
+
() => props.hides,
|
|
42
|
+
() => props.hides.length,
|
|
43
|
+
() => props.include,
|
|
44
|
+
() => props.include.length
|
|
45
|
+
],
|
|
46
|
+
() => {
|
|
47
|
+
sethideComs();
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
immediate: true,
|
|
51
|
+
deep: true
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
const HideComponent = vue.defineComponent({
|
|
55
|
+
props: {},
|
|
56
|
+
setup() {
|
|
57
|
+
return vue.h("div", {}, hideComs);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
__expose({
|
|
61
|
+
...data.dataExpose
|
|
62
|
+
});
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
65
|
+
class: vue.unref(cs).z()
|
|
66
|
+
}, vue.unref(attrs).root), [
|
|
67
|
+
vue.withDirectives(vue.createVNode(vue.unref(HideComponent), null, null, 512), [
|
|
68
|
+
[vue.vShow, props.hides.includes(props.is)]
|
|
69
|
+
]),
|
|
70
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.is), vue.normalizeProps(vue.guardReactiveProps(vue.unref(attrs).assem)), null, 16)), [
|
|
71
|
+
[vue.vShow, !props.hides.includes(props.is)]
|
|
72
|
+
])
|
|
73
|
+
], 16);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
exports.default = _sfc_main;
|