fancy-plugins-components 1.0.32 → 1.0.34
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/es/components.d.ts +1 -0
- package/dist/es/components.js +6 -4
- package/dist/es/fancy-card/index.vue.js +43 -47
- package/dist/es/fancy-select-table/index.d.ts +2 -0
- package/dist/es/fancy-select-table/index.js +4 -0
- package/dist/es/fancy-select-table/index.vue.d.ts +49 -0
- package/dist/es/fancy-select-table/index.vue.js +502 -0
- package/dist/es/fancy-select-table/index.vue2.js +4 -0
- package/dist/es/fancy-select-table/styles/index.js +1 -0
- package/dist/es/fancy-select-table/styles/index.scss +155 -0
- package/dist/es/fancy-select-table/types.d.ts +61 -0
- package/dist/es/global.d.ts +1 -0
- package/dist/es/index.js +4 -2
- package/dist/es/node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +78 -0
- package/dist/es/node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +23 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/debounce.js +54 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/now.js +7 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/es/styles/index.scss +1 -0
- package/dist/es/types.d.ts +1 -0
- package/package.json +14 -1
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/index.js +0 -106
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/props.js +0 -41
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/style/index.css +0 -1
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-config-provider/components/receiver-view.js +0 -40
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-config-provider/receiver.js +0 -11
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/components/loading-spinner.js +0 -42
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/index.js +0 -59
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/props.js +0 -30
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/style/index.css +0 -1
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-qr-code-svg/components/svg-render.js +0 -154
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-qr-code-svg/qrcodegen.js +0 -79
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-qr-code-svg/util.js +0 -82
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-text/index.js +0 -52
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-text/props.js +0 -25
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-text/style/index.css +0 -1
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-watermark/index.js +0 -128
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-watermark/props.js +0 -40
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-watermark/util.js +0 -129
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/icons/ArrowUp.js +0 -21
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/utils/common.js +0 -25
- package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/utils/hook.js +0 -33
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Placement } from 'element-plus';
|
|
2
|
+
import { VxeGridProps } from 'vxe-table';
|
|
3
|
+
export type SelctTablePageParams = {
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
filter: string;
|
|
7
|
+
};
|
|
8
|
+
export type SelectTableDataSource = (data: SelctTablePageParams) => Promise<{
|
|
9
|
+
list: any[];
|
|
10
|
+
total: number;
|
|
11
|
+
} | undefined>;
|
|
12
|
+
export interface SelectTableProps<T extends object = any> {
|
|
13
|
+
/** 表格数据源
|
|
14
|
+
* 目前只支持接口数据源,并且分页
|
|
15
|
+
* 静态数据源???
|
|
16
|
+
*/
|
|
17
|
+
datasource: SelectTableDataSource;
|
|
18
|
+
/** vxe-grid 表格配置 */
|
|
19
|
+
vxeProps: VxeGridProps<T>;
|
|
20
|
+
/** 类似于el-option 的value */
|
|
21
|
+
valueKey: Extract<keyof T, string | number>;
|
|
22
|
+
/** 类似于el-option 的label */
|
|
23
|
+
labelKey: Extract<keyof T, string | number>;
|
|
24
|
+
/** 回显数据使用 */
|
|
25
|
+
cacheData?: {
|
|
26
|
+
[key in keyof T as key extends Extract<keyof T, string | number> | Extract<keyof T, string | number> ? key : never]?: string;
|
|
27
|
+
}[];
|
|
28
|
+
/** 禁用 */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** 清除按钮 */
|
|
31
|
+
clearable?: boolean;
|
|
32
|
+
/** 可搜索 */
|
|
33
|
+
filterable?: boolean;
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
/** 貌似没啥用 */
|
|
36
|
+
effect?: 'dark' | 'light';
|
|
37
|
+
/** 展示tooltip箭头 */
|
|
38
|
+
showArrow?: boolean;
|
|
39
|
+
/** 下拉框的宽度是否与输入框相同 */
|
|
40
|
+
fitInputWidth?: boolean;
|
|
41
|
+
/** 当下拉选择器未被激活并且persistent设置为false,选择器会被删除 */
|
|
42
|
+
persistent?: boolean;
|
|
43
|
+
fallbackPlacements?: Placement[];
|
|
44
|
+
popperContentWidth?: number;
|
|
45
|
+
popperClass?: string;
|
|
46
|
+
loadingText?: string;
|
|
47
|
+
/** 输入防抖 */
|
|
48
|
+
inputDelay?: number;
|
|
49
|
+
/** 聚焦时自动打开tooltip */
|
|
50
|
+
autoFoucsDropdown?: boolean;
|
|
51
|
+
/** 清除按钮点击是否关闭tooltip */
|
|
52
|
+
closeTooltipOnClickClear?: boolean;
|
|
53
|
+
/** 保留上一次选择的label值进行查询 */
|
|
54
|
+
keepLabelSearch?: boolean;
|
|
55
|
+
/** 上下箭头循环,此时只能左右箭头切换分页 */
|
|
56
|
+
upAndDownArrowLoop?: boolean;
|
|
57
|
+
/** 多选 */
|
|
58
|
+
multiple?: boolean;
|
|
59
|
+
tagType?: '' | 'success' | 'info' | 'warning' | 'danger';
|
|
60
|
+
beforeSelect?: ((row: T) => boolean) | ((row: T) => Promise<boolean>);
|
|
61
|
+
}
|
package/dist/es/global.d.ts
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { installer as t } from "./installer.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as o } from "./fancy-button/index.vue.js";
|
|
3
3
|
import { default as l } from "./fancy-card/index.vue.js";
|
|
4
|
+
import { default as m } from "./fancy-select-table/index.vue.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
o as FancyButton,
|
|
6
7
|
l as FancyCard,
|
|
8
|
+
m as FancySelectTable,
|
|
7
9
|
t as default
|
|
8
10
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { toArray as a, watchImmediate as M, tryOnScopeDispose as O, isClient as E, isObject as $ } from "../../../../../@vueuse_shared@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
2
|
+
import { computed as m, toValue as c, watch as R, shallowRef as z, getCurrentInstance as A, onMounted as C, unref as L } from "vue";
|
|
3
|
+
const h = E ? window : void 0;
|
|
4
|
+
function p(o) {
|
|
5
|
+
var i;
|
|
6
|
+
const u = c(o);
|
|
7
|
+
return (i = u?.$el) !== null && i !== void 0 ? i : u;
|
|
8
|
+
}
|
|
9
|
+
function W(...o) {
|
|
10
|
+
const i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), u = m(() => {
|
|
11
|
+
const e = a(c(o[0])).filter((t) => t != null);
|
|
12
|
+
return e.every((t) => typeof t != "string") ? e : void 0;
|
|
13
|
+
});
|
|
14
|
+
return M(() => {
|
|
15
|
+
var e, t;
|
|
16
|
+
return [
|
|
17
|
+
(e = (t = u.value) === null || t === void 0 ? void 0 : t.map((n) => p(n))) !== null && e !== void 0 ? e : [h].filter((n) => n != null),
|
|
18
|
+
a(c(u.value ? o[1] : o[0])),
|
|
19
|
+
a(L(u.value ? o[2] : o[1])),
|
|
20
|
+
c(u.value ? o[3] : o[2])
|
|
21
|
+
];
|
|
22
|
+
}, ([e, t, n, r], d, f) => {
|
|
23
|
+
if (!e?.length || !t?.length || !n?.length) return;
|
|
24
|
+
const v = $(r) ? { ...r } : r, s = e.flatMap((l) => t.flatMap((b) => n.map((y) => i(l, b, y, v))));
|
|
25
|
+
f(() => {
|
|
26
|
+
s.forEach((l) => l());
|
|
27
|
+
});
|
|
28
|
+
}, { flush: "post" });
|
|
29
|
+
}
|
|
30
|
+
// @__NO_SIDE_EFFECTS__
|
|
31
|
+
function P() {
|
|
32
|
+
const o = z(!1), i = A();
|
|
33
|
+
return i && C(() => {
|
|
34
|
+
o.value = !0;
|
|
35
|
+
}, i), o;
|
|
36
|
+
}
|
|
37
|
+
// @__NO_SIDE_EFFECTS__
|
|
38
|
+
function S(o) {
|
|
39
|
+
const i = /* @__PURE__ */ P();
|
|
40
|
+
return m(() => (i.value, !!o()));
|
|
41
|
+
}
|
|
42
|
+
function g(o, i, u = {}) {
|
|
43
|
+
const { window: e = h, ...t } = u;
|
|
44
|
+
let n;
|
|
45
|
+
const r = /* @__PURE__ */ S(() => e && "ResizeObserver" in e), d = () => {
|
|
46
|
+
n && (n.disconnect(), n = void 0);
|
|
47
|
+
}, f = R(m(() => {
|
|
48
|
+
const s = c(o);
|
|
49
|
+
return Array.isArray(s) ? s.map((l) => p(l)) : [p(s)];
|
|
50
|
+
}), (s) => {
|
|
51
|
+
if (d(), r.value && e) {
|
|
52
|
+
n = new ResizeObserver(i);
|
|
53
|
+
for (const l of s) l && n.observe(l, t);
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
immediate: !0,
|
|
57
|
+
flush: "post"
|
|
58
|
+
}), v = () => {
|
|
59
|
+
d(), f();
|
|
60
|
+
};
|
|
61
|
+
return O(v), {
|
|
62
|
+
isSupported: r,
|
|
63
|
+
stop: v
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
h as defaultWindow,
|
|
68
|
+
E as isClient,
|
|
69
|
+
$ as isObject,
|
|
70
|
+
a as toArray,
|
|
71
|
+
O as tryOnScopeDispose,
|
|
72
|
+
p as unrefElement,
|
|
73
|
+
W as useEventListener,
|
|
74
|
+
P as useMounted,
|
|
75
|
+
g as useResizeObserver,
|
|
76
|
+
S as useSupported,
|
|
77
|
+
M as watchImmediate
|
|
78
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { watch as n, getCurrentScope as r, onScopeDispose as i } from "vue";
|
|
2
|
+
function f(e, t) {
|
|
3
|
+
return r() ? (i(e, t), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const s = typeof window < "u" && typeof document < "u";
|
|
6
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
+
const c = Object.prototype.toString, u = (e) => c.call(e) === "[object Object]";
|
|
8
|
+
function a(e) {
|
|
9
|
+
return Array.isArray(e) ? e : [e];
|
|
10
|
+
}
|
|
11
|
+
function d(e, t, o) {
|
|
12
|
+
return n(e, t, {
|
|
13
|
+
...o,
|
|
14
|
+
immediate: !0
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as isClient,
|
|
19
|
+
u as isObject,
|
|
20
|
+
a as toArray,
|
|
21
|
+
f as tryOnScopeDispose,
|
|
22
|
+
d as watchImmediate
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./_Symbol.js";
|
|
2
|
+
import e from "./_getRawTag.js";
|
|
3
|
+
import o from "./_objectToString.js";
|
|
4
|
+
var i = "[object Null]", f = "[object Undefined]", r = t ? t.toStringTag : void 0;
|
|
5
|
+
function m(n) {
|
|
6
|
+
return n == null ? n === void 0 ? f : i : r && r in Object(n) ? e(n) : o(n);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "./_Symbol.js";
|
|
2
|
+
var o = Object.prototype, c = o.hasOwnProperty, f = o.toString, r = e ? e.toStringTag : void 0;
|
|
3
|
+
function p(t) {
|
|
4
|
+
var a = c.call(t, r), n = t[r];
|
|
5
|
+
try {
|
|
6
|
+
t[r] = void 0;
|
|
7
|
+
var i = !0;
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
var g = f.call(t);
|
|
11
|
+
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
p as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import S from "./isObject.js";
|
|
2
|
+
import h from "./now.js";
|
|
3
|
+
import W from "./toNumber.js";
|
|
4
|
+
var y = "Expected a function", R = Math.max, A = Math.min;
|
|
5
|
+
function _(x, i, u) {
|
|
6
|
+
var a, d, c, f, n, r, l = 0, E = !1, m = !1, g = !0;
|
|
7
|
+
if (typeof x != "function")
|
|
8
|
+
throw new TypeError(y);
|
|
9
|
+
i = W(i) || 0, S(u) && (E = !!u.leading, m = "maxWait" in u, c = m ? R(W(u.maxWait) || 0, i) : c, g = "trailing" in u ? !!u.trailing : g);
|
|
10
|
+
function v(e) {
|
|
11
|
+
var t = a, o = d;
|
|
12
|
+
return a = d = void 0, l = e, f = x.apply(o, t), f;
|
|
13
|
+
}
|
|
14
|
+
function b(e) {
|
|
15
|
+
return l = e, n = setTimeout(s, i), E ? v(e) : f;
|
|
16
|
+
}
|
|
17
|
+
function C(e) {
|
|
18
|
+
var t = e - r, o = e - l, p = i - t;
|
|
19
|
+
return m ? A(p, c - o) : p;
|
|
20
|
+
}
|
|
21
|
+
function k(e) {
|
|
22
|
+
var t = e - r, o = e - l;
|
|
23
|
+
return r === void 0 || t >= i || t < 0 || m && o >= c;
|
|
24
|
+
}
|
|
25
|
+
function s() {
|
|
26
|
+
var e = h();
|
|
27
|
+
if (k(e))
|
|
28
|
+
return I(e);
|
|
29
|
+
n = setTimeout(s, C(e));
|
|
30
|
+
}
|
|
31
|
+
function I(e) {
|
|
32
|
+
return n = void 0, g && a ? v(e) : (a = d = void 0, f);
|
|
33
|
+
}
|
|
34
|
+
function L() {
|
|
35
|
+
n !== void 0 && clearTimeout(n), l = 0, a = r = d = n = void 0;
|
|
36
|
+
}
|
|
37
|
+
function M() {
|
|
38
|
+
return n === void 0 ? f : I(h());
|
|
39
|
+
}
|
|
40
|
+
function T() {
|
|
41
|
+
var e = h(), t = k(e);
|
|
42
|
+
if (a = arguments, d = this, r = e, t) {
|
|
43
|
+
if (n === void 0)
|
|
44
|
+
return b(r);
|
|
45
|
+
if (m)
|
|
46
|
+
return clearTimeout(n), n = setTimeout(s, i), v(r);
|
|
47
|
+
}
|
|
48
|
+
return n === void 0 && (n = setTimeout(s, i)), f;
|
|
49
|
+
}
|
|
50
|
+
return T.cancel = L, T.flush = M, T;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
_ as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import n from "./_baseTrim.js";
|
|
2
|
+
import f from "./isObject.js";
|
|
3
|
+
import o from "./isSymbol.js";
|
|
4
|
+
var s = NaN, m = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, e = /^0o[0-7]+$/i, b = parseInt;
|
|
5
|
+
function O(r) {
|
|
6
|
+
if (typeof r == "number")
|
|
7
|
+
return r;
|
|
8
|
+
if (o(r))
|
|
9
|
+
return s;
|
|
10
|
+
if (f(r)) {
|
|
11
|
+
var t = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
12
|
+
r = f(t) ? t + "" : t;
|
|
13
|
+
}
|
|
14
|
+
if (typeof r != "string")
|
|
15
|
+
return r === 0 ? r : +r;
|
|
16
|
+
r = n(r);
|
|
17
|
+
var i = p.test(r);
|
|
18
|
+
return i || e.test(r) ? b(r.slice(2), i ? 2 : 8) : m.test(r) ? s : +r;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
O as default
|
|
22
|
+
};
|
package/dist/es/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fancy-plugins-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/es/index.js",
|
|
6
6
|
"module": "./dist/es/index.js",
|
|
@@ -45,16 +45,22 @@
|
|
|
45
45
|
"type": "module",
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
48
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
48
49
|
"countup.js": "^2.9.0",
|
|
49
50
|
"cropperjs": "^2.1.0",
|
|
50
51
|
"ele-admin-plus": "^1.5.0",
|
|
51
52
|
"element-plus": "^2.13.0",
|
|
52
53
|
"jsbarcode": "^3.12.1",
|
|
53
54
|
"vuedraggable": "^4.1.0",
|
|
55
|
+
"vxe-pc-ui": "4.12.36",
|
|
56
|
+
"vxe-table": "4.17.48",
|
|
57
|
+
"xe-utils": "3.9.1",
|
|
54
58
|
"xgplayer": "^3.0.23"
|
|
55
59
|
},
|
|
56
60
|
"devDependencies": {
|
|
57
61
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
62
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
63
|
+
"@types/lodash-es": "^4.17.12",
|
|
58
64
|
"countup.js": "^2.9.0",
|
|
59
65
|
"cropperjs": "^2.1.0",
|
|
60
66
|
"ele-admin-plus": "^1.5.0",
|
|
@@ -64,6 +70,13 @@
|
|
|
64
70
|
"sass": "^1.97.1",
|
|
65
71
|
"vite-plugin-static-copy": "^3.1.4",
|
|
66
72
|
"vuedraggable": "^4.1.0",
|
|
73
|
+
"vxe-pc-ui": "4.12.36",
|
|
74
|
+
"vxe-table": "4.17.48",
|
|
75
|
+
"xe-utils": "3.9.1",
|
|
67
76
|
"xgplayer": "^3.0.23"
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@vueuse/core": "^14.2.1",
|
|
80
|
+
"lodash-es": "^4.17.23"
|
|
68
81
|
}
|
|
69
82
|
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as A, watch as T, createElementBlock as s, openBlock as t, normalizeClass as n, createCommentVNode as d, createVNode as f, normalizeStyle as a, createElementVNode as m, renderSlot as r, createTextVNode as p, toDisplayString as v, withModifiers as N, unref as l, withCtx as c, Transition as V, withDirectives as I, vShow as g } from "vue";
|
|
2
|
-
import { ElIcon as z } from "element-plus";
|
|
3
|
-
import D from "../icons/ArrowUp.js";
|
|
4
|
-
import { useCollapseAnim as F } from "../utils/hook.js";
|
|
5
|
-
import { cardEmits as H, cardProps as M } from "./props.js";
|
|
6
|
-
const O = /* @__PURE__ */ B({
|
|
7
|
-
name: "EleCard",
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: M,
|
|
10
|
-
emits: H,
|
|
11
|
-
setup(u, { emit: y }) {
|
|
12
|
-
const i = u, C = y, {
|
|
13
|
-
handleBeforeEnter: E,
|
|
14
|
-
handleEnter: b,
|
|
15
|
-
handleAfterEnter: k,
|
|
16
|
-
handleBeforeLeave: w,
|
|
17
|
-
handleLeave: $,
|
|
18
|
-
handleAfterLeave: L
|
|
19
|
-
} = F(), o = A(!!i.collapse), h = () => {
|
|
20
|
-
o.value = !o.value, C("collapseChange", o.value);
|
|
21
|
-
}, S = () => {
|
|
22
|
-
i.collapsable === "header" && h();
|
|
23
|
-
};
|
|
24
|
-
return T(
|
|
25
|
-
() => i.collapse,
|
|
26
|
-
(e) => {
|
|
27
|
-
o.value !== !!e && (o.value = !!e);
|
|
28
|
-
}
|
|
29
|
-
), (e, P) => (t(), s("div", {
|
|
30
|
-
class: n(["ele-card", [
|
|
31
|
-
{ "is-border": e.bordered },
|
|
32
|
-
{ "is-shadow": e.shadow === "always" },
|
|
33
|
-
{ "is-hover-shadow": e.shadow === "hover" },
|
|
34
|
-
{ "is-collapse": o.value },
|
|
35
|
-
{ "is-flex-table": e.flexTable && e.flexTable !== "auto" },
|
|
36
|
-
{ "is-flex-auto-table": e.flexTable === "auto" },
|
|
37
|
-
{ "is-search-form": e.searchForm }
|
|
38
|
-
]])
|
|
39
|
-
}, [
|
|
40
|
-
e.header || e.$slots.header || e.$slots.extra ? (t(), s("div", {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: n(["ele-card-header", e.headerClass]),
|
|
43
|
-
style: a(e.headerStyle),
|
|
44
|
-
onClick: S
|
|
45
|
-
}, [
|
|
46
|
-
m("div", {
|
|
47
|
-
class: "ele-card-title",
|
|
48
|
-
style: a(e.titleStyle)
|
|
49
|
-
}, [
|
|
50
|
-
r(e.$slots, "header", {}, () => [
|
|
51
|
-
p(v(e.header), 1)
|
|
52
|
-
])
|
|
53
|
-
], 4),
|
|
54
|
-
e.$slots.extra ? r(e.$slots, "extra", { key: 0 }) : d("", !0),
|
|
55
|
-
e.collapsable ? (t(), s("div", {
|
|
56
|
-
key: 1,
|
|
57
|
-
style: a(e.collapseIconStyle),
|
|
58
|
-
class: "ele-card-collapse-icon",
|
|
59
|
-
onClick: N(h, ["stop"])
|
|
60
|
-
}, [
|
|
61
|
-
r(e.$slots, "collapseIcon", { collapse: o.value }, () => [
|
|
62
|
-
f(l(z), null, {
|
|
63
|
-
default: c(() => [
|
|
64
|
-
f(l(D))
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
})
|
|
68
|
-
])
|
|
69
|
-
], 4)) : d("", !0)
|
|
70
|
-
], 6)) : d("", !0),
|
|
71
|
-
f(V, {
|
|
72
|
-
name: "ele-card-slide",
|
|
73
|
-
onBeforeLeave: l(w),
|
|
74
|
-
onLeave: l($),
|
|
75
|
-
onAfterLeave: l(L),
|
|
76
|
-
onBeforeEnter: l(E),
|
|
77
|
-
onEnter: l(b),
|
|
78
|
-
onAfterEnter: l(k)
|
|
79
|
-
}, {
|
|
80
|
-
default: c(() => [
|
|
81
|
-
I(m("div", {
|
|
82
|
-
class: n(["ele-card-body", e.bodyClass]),
|
|
83
|
-
style: a(e.bodyStyle)
|
|
84
|
-
}, [
|
|
85
|
-
r(e.$slots, "default")
|
|
86
|
-
], 6), [
|
|
87
|
-
[g, !o.value]
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
}, 8, ["onBeforeLeave", "onLeave", "onAfterLeave", "onBeforeEnter", "onEnter", "onAfterEnter"]),
|
|
92
|
-
e.footer || e.$slots.footer ? (t(), s("div", {
|
|
93
|
-
key: 1,
|
|
94
|
-
class: n(["ele-card-footer", e.footerClass]),
|
|
95
|
-
style: a(e.footerStyle)
|
|
96
|
-
}, [
|
|
97
|
-
r(e.$slots, "footer", {}, () => [
|
|
98
|
-
p(v(e.footer), 1)
|
|
99
|
-
])
|
|
100
|
-
], 6)) : d("", !0)
|
|
101
|
-
], 2));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
export {
|
|
105
|
-
O as default
|
|
106
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const o = {
|
|
2
|
-
/** 标题 */
|
|
3
|
-
header: String,
|
|
4
|
-
/** 标题类名 */
|
|
5
|
-
headerClass: String,
|
|
6
|
-
/** 页脚 */
|
|
7
|
-
footer: String,
|
|
8
|
-
/** 页脚类名 */
|
|
9
|
-
footerClass: String,
|
|
10
|
-
/** 主体样式 */
|
|
11
|
-
bodyStyle: Object,
|
|
12
|
-
/** 主体类名 */
|
|
13
|
-
bodyClass: String,
|
|
14
|
-
/** 阴影 */
|
|
15
|
-
shadow: String,
|
|
16
|
-
/** 边框 */
|
|
17
|
-
bordered: Boolean,
|
|
18
|
-
/** 标题栏样式 */
|
|
19
|
-
headerStyle: Object,
|
|
20
|
-
/** 标题样式 */
|
|
21
|
-
titleStyle: Object,
|
|
22
|
-
/** 页脚样式 */
|
|
23
|
-
footerStyle: Object,
|
|
24
|
-
/** 是否可折叠 */
|
|
25
|
-
collapsable: [Boolean, String],
|
|
26
|
-
/** 是否折叠 */
|
|
27
|
-
collapse: Boolean,
|
|
28
|
-
/** 折叠按钮样式 */
|
|
29
|
-
collapseIconStyle: Object,
|
|
30
|
-
/** 是否是搜索表单卡片 */
|
|
31
|
-
searchForm: Boolean,
|
|
32
|
-
/** 内部表格是否弹性布局 */
|
|
33
|
-
flexTable: [Boolean, String]
|
|
34
|
-
}, t = {
|
|
35
|
-
/** 折叠展开事件 */
|
|
36
|
-
collapseChange: (e) => !0
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
t as cardEmits,
|
|
40
|
-
o as cardProps
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";.ele-card{--ele-card-padding: 20px;--ele-card-bg: var(--el-bg-color);--ele-card-border: 1px solid var(--el-border-color-light);--ele-card-radius: var(--el-border-radius-base);--ele-card-shadow: var(--el-box-shadow-lighter);--ele-card-hover-shadow: 0 1px 2px -2px rgba(0, 0, 0, .16), 0 3px 6px 0 rgba(0, 0, 0, .12), 0 5px 12px 4px rgba(0, 0, 0, .09);--ele-card-header-padding: 14px 22px;--ele-card-header-color: var(--el-text-color-primary);--ele-card-header-font-size: var(--el-font-size-medium);--ele-card-header-line-height: 24px;--ele-card-header-font-weight: normal;--ele-card-header-border: 1px solid var(--el-border-color-light);--ele-card-footer-padding: 14px 22px;--ele-card-footer-border: 1px solid var(--el-border-color-light);--ele-card-collapse-size: 24px;--ele-card-collapse-font-size: 16px;--ele-card-collapse-color: var(--el-text-color-secondary);--ele-card-collapse-radius: var(--el-border-radius-small);--ele-card-collapse-margin: 1px -6px 0 0;--ele-card-collapse-hover-color: var(--el-text-color-primary);--ele-card-collapse-hover-bg: transparent;--ele-card-search-form-padding: 20px 20px 4px 20px;--ele-card-search-form-space: 16px}.ele-card-body{padding:var(--ele-card-padding);transition:max-height .2s,padding-top .2s,padding-bottom .2s;box-sizing:border-box}.ele-card-header{flex-shrink:0;display:flex;align-items:center;color:var(--ele-card-header-color);font-size:var(--ele-card-header-font-size);font-weight:var(--ele-card-header-font-weight);line-height:var(--ele-card-header-line-height);padding:var(--ele-card-header-padding);border-bottom:var(--ele-card-header-border);box-sizing:border-box}.ele-card-title{flex:1}.ele-card-footer{flex-shrink:0;padding:var(--ele-card-footer-padding);border-top:var(--ele-card-footer-border);box-sizing:border-box}.ele-card-collapse-icon{display:flex;align-items:center;justify-content:center;width:var(--ele-card-collapse-size);height:var(--ele-card-collapse-size);color:var(--ele-card-collapse-color);font-size:var(--ele-card-collapse-font-size);border-radius:var(--ele-card-collapse-radius);margin:var(--ele-card-collapse-margin);transition:all .2s;box-sizing:border-box;-webkit-user-select:none;user-select:none;cursor:pointer}.ele-card-collapse-icon svg.ele-arrow-up path{transition:d .2s}.ele-card-collapse-icon:hover{color:var(--ele-card-collapse-hover-color);background:var(--ele-card-collapse-hover-bg)}.ele-card{box-sizing:border-box;background:var(--ele-card-bg);border-radius:var(--ele-card-radius);transition:border-color .2s,background-color .2s,box-shadow .2s}.ele-card.is-border{border:var(--ele-card-border)}.ele-card.is-shadow{box-shadow:var(--ele-card-shadow)}.ele-card.is-hover-shadow:hover{box-shadow:var(--ele-card-hover-shadow)}.ele-card.is-collapse>.ele-card-header{border-bottom:none}.ele-card.is-collapse>.ele-card-header>.ele-card-collapse-icon svg.ele-arrow-up path{d:path("M10 17 24 31 38 17")}.ele-card.is-search-form>.ele-card-body{overflow:hidden;padding:var(--ele-card-search-form-padding)}.ele-card.is-search-form>.ele-card-body .el-form-item{margin-bottom:var(--ele-card-search-form-space)}.ele-card.is-flex-table{flex:1;display:flex;flex-direction:column;overflow:hidden}.ele-card.is-flex-table>.ele-card-body{flex:1;display:flex;flex-direction:column;overflow:auto}.ele-card.is-flex-table>.ele-card-body>.ele-pro-table{flex:1;display:flex;flex-direction:column;overflow:hidden}.ele-card.is-flex-table>.ele-card-body>.ele-pro-table>.ele-pro-table-view{flex:1;height:100%;overflow:hidden}.ele-card.is-flex-auto-table{flex:auto;display:flex;flex-direction:column}.ele-card.is-flex-auto-table>.ele-card-body{flex:auto;display:flex;flex-direction:column}.ele-card.is-flex-auto-table>.ele-card-body>.ele-pro-table{flex:auto;display:flex;flex-direction:column}.ele-card.is-flex-auto-table>.ele-card-body>.ele-pro-table>.ele-pro-table-view{flex:var(--ele-pro-table-flex);height:var(--ele-pro-table-min-height);overflow:hidden}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, ref as c, computed as h, createVNode as w, watch as x } from "vue";
|
|
2
|
-
import I from "../../ele-watermark/index.js";
|
|
3
|
-
import { getProps as P, svgProp as o, getOption as y } from "../../ele-watermark/util.js";
|
|
4
|
-
import { svgText as e } from "../../ele-qr-code-svg/qrcodegen.js";
|
|
5
|
-
import { modalItemContextKey as m } from "../../utils/hook.js";
|
|
6
|
-
const N = /* @__PURE__ */ v({
|
|
7
|
-
name: "ReceiverView",
|
|
8
|
-
props: {
|
|
9
|
-
wrapHeight: [String, Number]
|
|
10
|
-
},
|
|
11
|
-
setup(p, {
|
|
12
|
-
slots: s
|
|
13
|
-
}) {
|
|
14
|
-
const r = c(), i = e[e.length - 2], {
|
|
15
|
-
svgKey: n,
|
|
16
|
-
svgProps: a,
|
|
17
|
-
svgConfig: d,
|
|
18
|
-
imageId: g
|
|
19
|
-
} = P(m), f = h(() => d.key), l = o[e.findIndex((t) => t === e[e.length - 1])];
|
|
20
|
-
return x(f, (t) => {
|
|
21
|
-
r.value = y(t, l, a, 2, 13, i, n, m, o, o[e.findIndex((u) => u === i)]);
|
|
22
|
-
}, {
|
|
23
|
-
immediate: !0
|
|
24
|
-
}), () => w(I, {
|
|
25
|
-
width: 236,
|
|
26
|
-
height: 74,
|
|
27
|
-
wrapHeight: p.wrapHeight,
|
|
28
|
-
disabled: !!g.value,
|
|
29
|
-
fixed: !r.value,
|
|
30
|
-
content: n.value,
|
|
31
|
-
wrapPosition: !1,
|
|
32
|
-
svgRender: !0
|
|
33
|
-
}, {
|
|
34
|
-
default: () => [s.default?.(a)]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
N as default
|
|
40
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { inject as J } from "vue";
|
|
2
|
-
const U = /* @__PURE__ */ Symbol("config");
|
|
3
|
-
function g() {
|
|
4
|
-
return J(U, {});
|
|
5
|
-
}
|
|
6
|
-
const E = "RWxlQWRtaW5QbHVzJUU5JTlDJTgwJUU4JUE2JTgxJUU2JThFJTg4JUU2JTlEJTgzJUU0JUJEJUJGJUU3JTk0JUE4JTJDJUU4JUFGJUI3JUU1JTg5JThEJUU1JUJFJTgwZWxlYWRtaW4uY29tJUU4JUI0JUFEJUU0JUI5JUIwJUU2JThFJTg4JUU2JTlEJTgz=JUU4JUFGJUI3JUU1JTg1JTg4JUU5JTg1JThEJUU3JUJEJUFFJUU4JTg3JUFBJUU1JUI3JUIxJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC=JUU4JUFGJUI3JUU0JUJEJUJGJUU3JTk0JUE4JUU2JUFEJUEzJUU3JUExJUFFJUU2JUEwJUJDJUU1JUJDJThGJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC=JUU2JThFJTg4JUU2JTlEJTgzJUU3JTg5JTg4JUU2JTlDJUFDJUU1JThGJUI3JUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJUU3JTg5JTg4JUU2JTlDJUFDJTNB=JTJDJTIwJUU1JUFFJTg5JUU4JUEzJTg1JUU3JTg5JTg4JUU2JTlDJUFDJTNB=JUU2JThFJTg4JUU2JTlEJTgzJUU1JUI3JUIyJUU1JUE0JUIxJUU2JTk1JTg4JTJDJTIwJUU1JTg4JUIwJUU2JTlDJTlGJUU2JTk3JUI2JUU5JTk3JUI0JTNB=JUU1JTlGJTlGJUU1JTkwJThEJUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU4JUFGJUI3JUU5JTgzJUE4JUU3JUJEJUIyJUU1JTlDJUE4JTNB=JUU0JUI4JThCJTJDJTIwJUU1JUJEJTkzJUU1JTg5JThEJUU1JTlGJTlGJUU1JTkwJThEJTNB=RWxlQWRtaW5QbHVz=bG9jYWxob3N0=MTI3LjAuMC4x=d3d3=MS41=MDVmZA=LOPMTQRUVS1ij2nklopmXqrYZWd45K967st8xuvyzwh0DABFCGHE3IJabefcNg=RUxFJTIwQURNSU4lMjBQTFVT";
|
|
7
|
-
export {
|
|
8
|
-
U as CONFIG_KEY,
|
|
9
|
-
E as configValues,
|
|
10
|
-
g as useReceiver
|
|
11
|
-
};
|