@vrojs/element-plus 0.0.8 → 0.0.10
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/style/css.js +0 -2
- package/dist/style/deps.js +20 -33
- package/dist/style/index.js +2 -37
- package/dist/vro-el-checkbox-group/style/css.js +0 -2
- package/dist/vro-el-checkbox-group/style/deps.js +2 -2
- package/dist/vro-el-checkbox-group/style/index.js +2 -5
- package/dist/vro-el-config-provider/style/css.js +0 -2
- package/dist/vro-el-config-provider/style/deps.js +0 -1
- package/dist/vro-el-config-provider/style/index.js +2 -3
- package/dist/vro-el-file-upload/style/css.js +0 -2
- package/dist/vro-el-file-upload/style/deps.js +2 -2
- package/dist/vro-el-file-upload/style/index.js +2 -6
- package/dist/vro-el-icon/style/css.js +1 -3
- package/dist/vro-el-icon/style/deps.js +0 -1
- package/dist/vro-el-icon/style/index.js +2 -4
- package/dist/vro-el-image/style/css.js +2 -5
- package/dist/vro-el-image/style/deps.js +2 -1
- package/dist/vro-el-image/style/index.js +2 -8
- package/dist/vro-el-image-upload/style/css.js +1 -7
- package/dist/vro-el-image-upload/style/deps.js +4 -4
- package/dist/vro-el-image-upload/style/index.js +2 -13
- package/dist/vro-el-radio-group/style/css.js +0 -2
- package/dist/vro-el-radio-group/style/deps.js +2 -2
- package/dist/vro-el-radio-group/style/index.js +2 -5
- package/dist/vro-el-schema-filter/style/css.js +1 -20
- package/dist/vro-el-schema-filter/style/deps.js +4 -22
- package/dist/vro-el-schema-filter/style/index.js +2 -44
- package/dist/vro-el-schema-form/style/css.js +7 -18
- package/dist/vro-el-schema-form/style/deps.js +20 -22
- package/dist/vro-el-schema-form/style/index.js +2 -42
- package/dist/vro-el-schema-form/types.d.ts +1 -0
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +8 -5
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +3 -1
- package/dist/vro-el-schema-form-dialog/style/css.js +2 -22
- package/dist/vro-el-schema-form-dialog/style/deps.js +4 -24
- package/dist/vro-el-schema-form-dialog/style/index.js +2 -48
- package/dist/vro-el-schema-form-drawer/style/css.js +2 -22
- package/dist/vro-el-schema-form-drawer/style/deps.js +4 -24
- package/dist/vro-el-schema-form-drawer/style/index.js +2 -48
- package/dist/vro-el-select/style/css.js +0 -2
- package/dist/vro-el-select/style/deps.js +2 -2
- package/dist/vro-el-select/style/index.js +2 -5
- package/dist/vro-el-skeleton/style/css.js +1 -3
- package/dist/vro-el-skeleton/style/deps.js +3 -3
- package/dist/vro-el-skeleton/style/index.js +2 -8
- package/dist/vro-el-table/createUseVroElTable.d.ts +2 -4
- package/dist/vro-el-table/index.d.ts +159 -0
- package/dist/vro-el-table/style/css.js +2 -27
- package/dist/vro-el-table/style/deps.js +5 -28
- package/dist/vro-el-table/style/index.js +2 -57
- package/dist/vro-el-table/useVroElTable.d.ts +7 -6
- package/dist/vro-el-table/useVroElTable.js +3 -1
- package/dist/vro-el-table/vro-el-table.vue.d.ts +95 -0
- package/dist/vro-el-table/vro-el-table.vue.js +27 -27
- package/dist/vro-el-table-actions-column/style/css.js +0 -2
- package/dist/vro-el-table-actions-column/style/deps.js +5 -5
- package/dist/vro-el-table-actions-column/style/index.js +2 -9
- package/dist/vro-el-table-column/style/css.js +1 -4
- package/dist/vro-el-table-column/style/deps.js +2 -1
- package/dist/vro-el-table-column/style/index.js +2 -7
- package/dist/vro-el-table-column-group/style/css.js +2 -8
- package/dist/vro-el-table-column-group/style/deps.js +3 -5
- package/dist/vro-el-table-column-group/style/index.js +2 -14
- package/dist/vro-el-tags/style/css.js +0 -2
- package/dist/vro-el-tags/style/deps.js +3 -3
- package/dist/vro-el-tags/style/index.js +2 -7
- package/dist/vro-el-tree/style/css.js +0 -2
- package/dist/vro-el-tree/style/deps.js +1 -1
- package/dist/vro-el-tree/style/index.js +2 -5
- package/dist/vro-el-with-config/style/css.js +1 -3
- package/dist/vro-el-with-config/style/deps.js +2 -1
- package/dist/vro-el-with-config/style/index.js +2 -5
- package/package.json +4 -4
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { TableInstance } from 'element-plus';
|
|
2
|
+
import { VroElTableSlots } from './types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<VroElTableSlots> & VroElTableSlots;
|
|
6
|
+
refs: {
|
|
7
|
+
refElTable: unknown;
|
|
8
|
+
};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
filterable: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
filterProps: import('vue').PropType<Partial<import('..').VroElSchemaFilterProps>>;
|
|
18
|
+
columns: {
|
|
19
|
+
type: import('vue').PropType<import('..').VroElTableColumnGroupColumn[]>;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
data: {
|
|
23
|
+
type: import('vue').PropType<any[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
loading: BooleanConstructor;
|
|
27
|
+
tableProps: import('vue').PropType<Partial<import('element-plus').TableProps<any>>>;
|
|
28
|
+
pageable: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
paginationProps: import('vue').PropType<Partial<import('element-plus').PaginationProps>>;
|
|
33
|
+
showRefresh: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
showHeader: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>, {
|
|
42
|
+
elTable: TableInstance;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
request: (payload?: import('./types').VroElTableRequestPayload | undefined) => any;
|
|
45
|
+
"selection-change": (selection: any[]) => any;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
filterable: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
filterProps: import('vue').PropType<Partial<import('..').VroElSchemaFilterProps>>;
|
|
52
|
+
columns: {
|
|
53
|
+
type: import('vue').PropType<import('..').VroElTableColumnGroupColumn[]>;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
data: {
|
|
57
|
+
type: import('vue').PropType<any[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
loading: BooleanConstructor;
|
|
61
|
+
tableProps: import('vue').PropType<Partial<import('element-plus').TableProps<any>>>;
|
|
62
|
+
pageable: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
paginationProps: import('vue').PropType<Partial<import('element-plus').PaginationProps>>;
|
|
67
|
+
showRefresh: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
showHeader: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{
|
|
76
|
+
onRequest?: ((payload?: import('./types').VroElTableRequestPayload | undefined) => any) | undefined;
|
|
77
|
+
"onSelection-change"?: ((selection: any[]) => any) | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
data: any[];
|
|
80
|
+
loading: boolean;
|
|
81
|
+
filterable: boolean;
|
|
82
|
+
columns: import('..').VroElTableColumnGroupColumn[];
|
|
83
|
+
showHeader: boolean;
|
|
84
|
+
pageable: boolean;
|
|
85
|
+
showRefresh: boolean;
|
|
86
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
87
|
+
refElTable: unknown;
|
|
88
|
+
}, HTMLDivElement>;
|
|
89
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
90
|
+
export default _default;
|
|
91
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
92
|
+
new (): {
|
|
93
|
+
$slots: S;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isEmptyObject as
|
|
3
|
-
import { RefreshRight as
|
|
4
|
-
import { ElButton as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
import { VroElSchemaFilter as
|
|
7
|
-
import { VroElTableColumnGroup as
|
|
8
|
-
import { vroElTableProps as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as y, useTemplateRef as k, computed as P, resolveDirective as T, createElementBlock as i, openBlock as l, createBlock as n, createCommentVNode as a, createElementVNode as d, unref as r, mergeProps as u, withDirectives as $, renderSlot as s, withCtx as p, createTextVNode as V, toDisplayString as q, createVNode as C } from "vue";
|
|
2
|
+
import { isEmptyObject as S } from "@daysnap/utils";
|
|
3
|
+
import { RefreshRight as w } from "@element-plus/icons-vue";
|
|
4
|
+
import { ElButton as z, ElTable as B, ElPagination as N } from "element-plus";
|
|
5
|
+
import { useLocale as R } from "../locale/useLocale.js";
|
|
6
|
+
import { VroElSchemaFilter as D } from "../vro-el-schema-filter/index.js";
|
|
7
|
+
import { VroElTableColumnGroup as j } from "../vro-el-table-column-group/index.js";
|
|
8
|
+
import { vroElTableProps as U } from "./types.js";
|
|
9
|
+
const F = { class: "vro-el-table" }, G = { class: "vro-el-table-inner" }, H = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "vro-el-table-header"
|
|
12
|
-
},
|
|
12
|
+
}, L = { class: "vro-el-table-actions" }, O = { class: "vro-el-table-content" }, Y = /* @__PURE__ */ y({
|
|
13
13
|
name: "VroElTable",
|
|
14
14
|
__name: "vro-el-table",
|
|
15
|
-
props:
|
|
15
|
+
props: U,
|
|
16
16
|
emits: ["request", "selection-change"],
|
|
17
17
|
setup(f, { expose: g }) {
|
|
18
|
-
const b = f, { t:
|
|
18
|
+
const b = f, { t: c } = R(), v = B, m = k("refElTable"), E = P(() => {
|
|
19
19
|
const { filterable: e, filterProps: o } = b;
|
|
20
|
-
return !!(e && o?.schema && !
|
|
20
|
+
return !!(e && o?.schema && !S(o.schema));
|
|
21
21
|
});
|
|
22
22
|
return g({
|
|
23
23
|
get elTable() {
|
|
24
24
|
return m.value;
|
|
25
25
|
}
|
|
26
26
|
}), (e, o) => {
|
|
27
|
-
const h =
|
|
28
|
-
return l(), i("div",
|
|
29
|
-
|
|
27
|
+
const h = T("loading");
|
|
28
|
+
return l(), i("div", F, [
|
|
29
|
+
E.value ? (l(), n(r(D), u({ key: 0 }, e.filterProps, {
|
|
30
30
|
loading: e.loading,
|
|
31
31
|
class: "vro-el-table-filter",
|
|
32
32
|
onQuery: o[0] || (o[0] = (t) => e.$emit("request", { query: t, currentPage: 1 }))
|
|
33
33
|
}), null, 16, ["loading"])) : a("", !0),
|
|
34
|
-
d("div",
|
|
35
|
-
e.showHeader ? (l(), i("div",
|
|
34
|
+
d("div", G, [
|
|
35
|
+
e.showHeader ? (l(), i("div", H, [
|
|
36
36
|
s(e.$slots, "title"),
|
|
37
|
-
d("div",
|
|
38
|
-
e.showRefresh ? (l(), n(r(
|
|
37
|
+
d("div", L, [
|
|
38
|
+
e.showRefresh ? (l(), n(r(z), {
|
|
39
39
|
key: 0,
|
|
40
40
|
plain: "",
|
|
41
|
-
icon: r(
|
|
41
|
+
icon: r(w),
|
|
42
42
|
loading: e.loading,
|
|
43
43
|
onClick: o[1] || (o[1] = (t) => e.$emit("request"))
|
|
44
44
|
}, {
|
|
45
45
|
default: p(() => [
|
|
46
|
-
|
|
46
|
+
V(q(r(c)("table.refresh")), 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["icon", "loading"])) : a("", !0),
|
|
50
50
|
s(e.$slots, "actions")
|
|
51
51
|
])
|
|
52
52
|
])) : a("", !0),
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
$((l(), i("div", O, [
|
|
54
|
+
C(r(v), u({
|
|
55
55
|
ref_key: "refElTable",
|
|
56
56
|
ref: m,
|
|
57
57
|
width: "100%",
|
|
@@ -62,7 +62,7 @@ const U = { class: "vro-el-table" }, F = { class: "vro-el-table-inner" }, G = {
|
|
|
62
62
|
}), {
|
|
63
63
|
default: p(() => [
|
|
64
64
|
s(e.$slots, "content-prefix"),
|
|
65
|
-
e.columns.length ? (l(), n(r(
|
|
65
|
+
e.columns.length ? (l(), n(r(j), {
|
|
66
66
|
key: 0,
|
|
67
67
|
columns: e.columns
|
|
68
68
|
}, null, 8, ["columns"])) : a("", !0),
|
|
@@ -73,7 +73,7 @@ const U = { class: "vro-el-table" }, F = { class: "vro-el-table-inner" }, G = {
|
|
|
73
73
|
])), [
|
|
74
74
|
[h, e.loading]
|
|
75
75
|
]),
|
|
76
|
-
e.pageable ? (l(), n(r(
|
|
76
|
+
e.pageable ? (l(), n(r(N), u({
|
|
77
77
|
key: 1,
|
|
78
78
|
class: "vro-el-table-pagination",
|
|
79
79
|
layout: "total, prev, pager, next, sizes, jumper",
|
|
@@ -90,5 +90,5 @@ const U = { class: "vro-el-table" }, F = { class: "vro-el-table-inner" }, G = {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
Y as default
|
|
94
94
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import 'element-plus/es/components/button/style/css';
|
|
2
|
+
import 'element-plus/es/components/dropdown-item/style/css';
|
|
3
|
+
import 'element-plus/es/components/dropdown-menu/style/css';
|
|
4
|
+
import 'element-plus/es/components/dropdown/style/css';
|
|
5
|
+
import 'element-plus/es/components/table-column/style/css';
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import './
|
|
3
|
-
import "element-plus/es/components/button/style/css";
|
|
4
|
-
import "element-plus/es/components/dropdown-item/style/css";
|
|
5
|
-
import "element-plus/es/components/dropdown-menu/style/css";
|
|
6
|
-
import "element-plus/es/components/dropdown/style/css";
|
|
7
|
-
import "element-plus/es/components/table-column/style/css";
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
1
|
+
import './deps.js';
|
|
2
|
+
import './css.js';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '../../vro-el-icon/style/deps.js';
|
|
2
|
+
import 'element-plus/es/components/table-column/style/css';
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import '../../style/base.css';
|
|
2
|
-
import '../../vro-el-table-actions-column/style/
|
|
3
|
-
import '../../vro-el-table-column/style/
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
import "@vrojs/base/src/vro-icon/style/css";
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
2
|
+
import '../../vro-el-table-actions-column/style/css.js';
|
|
3
|
+
import '../../vro-el-table-column/style/css.js';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import "element-plus/es/components/dropdown/style/css";
|
|
5
|
-
import "element-plus/es/components/table-column/style/css";
|
|
1
|
+
import '../../vro-el-table-actions-column/style/deps.js';
|
|
2
|
+
import '../../vro-el-table-column/style/deps.js';
|
|
3
|
+
import 'element-plus/es/components/table-column/style/css';
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import '../../vro-el-table-column/style/index.css';
|
|
4
|
-
import "element-plus/es/components/button/style/css";
|
|
5
|
-
import "element-plus/es/components/dropdown-item/style/css";
|
|
6
|
-
import "element-plus/es/components/dropdown-menu/style/css";
|
|
7
|
-
import "element-plus/es/components/dropdown/style/css";
|
|
8
|
-
import "element-plus/es/components/table-column/style/css";
|
|
9
|
-
/* empty css */
|
|
10
|
-
/* empty css */
|
|
11
|
-
import "@vrojs/base/src/vro-icon/style/css";
|
|
12
|
-
/* empty css */
|
|
13
|
-
/* empty css */
|
|
14
|
-
/* empty css */
|
|
1
|
+
import './deps.js';
|
|
2
|
+
import './css.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import 'element-plus/es/components/button/style/css';
|
|
2
|
+
import 'element-plus/es/components/input/style/css';
|
|
3
|
+
import 'element-plus/es/components/tag/style/css';
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import './
|
|
3
|
-
import "element-plus/es/components/button/style/css";
|
|
4
|
-
import "element-plus/es/components/input/style/css";
|
|
5
|
-
import "element-plus/es/components/tag/style/css";
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
1
|
+
import './deps.js';
|
|
2
|
+
import './css.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'element-plus/es/components/tree/style/css';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '../../vro-el-config-provider/style/deps.js';
|
|
2
|
+
import 'element-plus/es/components/config-provider/style/css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vrojs/element-plus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "vrojs ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@element-plus/icons-vue": ">=2.3.2",
|
|
40
40
|
"element-plus": ">=2.11.9",
|
|
41
41
|
"vue": ">=3.0.0",
|
|
42
|
-
"@vrojs/base": "0.0.
|
|
42
|
+
"@vrojs/base": "0.0.5",
|
|
43
43
|
"@vrojs/use": "0.0.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vite": "^7.1.12",
|
|
54
54
|
"vite-plugin-dts": "^4.5.4",
|
|
55
55
|
"vue": "^3.5.22",
|
|
56
|
-
"@vrojs/
|
|
57
|
-
"@vrojs/
|
|
56
|
+
"@vrojs/use": "0.0.3",
|
|
57
|
+
"@vrojs/base": "0.0.5"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "npm run clean && vite build",
|