@vrojs/element-plus 0.0.7 → 0.0.8
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/index.d.ts +5 -0
- package/dist/index.js +125 -83
- package/dist/locale/index.js +6 -7
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/en.js +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-cn.js +8 -0
- package/dist/locale/useLocale.d.ts +1 -48
- package/dist/locale/useLocale.js +16 -17
- package/dist/style/deps.js +7 -0
- package/dist/style/index.css +1 -1
- package/dist/style/index.js +7 -0
- package/dist/utils/elTableColumnProps.d.ts +149 -0
- package/dist/utils/elTableColumnProps.js +152 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -2
- package/dist/vro-el-checkbox-group/index.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
- package/dist/vro-el-config-provider/config.d.ts +14 -0
- package/dist/vro-el-config-provider/config.js +36 -0
- package/dist/vro-el-config-provider/index.d.ts +16 -0
- package/dist/vro-el-config-provider/index.js +8 -2
- package/dist/vro-el-config-provider/types.d.ts +7 -0
- package/dist/vro-el-config-provider/types.js +7 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
- package/dist/vro-el-file-upload/index.d.ts +6 -6
- package/dist/vro-el-file-upload/style/index.css +1 -1
- package/dist/vro-el-file-upload/types.d.ts +9 -2
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
- package/dist/vro-el-icon/index.d.ts +28 -40
- package/dist/vro-el-icon/style/css.js +1 -0
- package/dist/vro-el-icon/style/deps.js +1 -1
- package/dist/vro-el-icon/style/index.js +1 -1
- package/dist/vro-el-icon/types.d.ts +16 -13
- package/dist/vro-el-icon/types.js +8 -1
- package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
- package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
- package/dist/vro-el-image/index.d.ts +10 -4
- package/dist/vro-el-image/style/css.js +4 -0
- package/dist/vro-el-image/style/index.css +1 -0
- package/dist/vro-el-image/style/index.js +4 -0
- package/dist/vro-el-image/types.d.ts +35 -0
- package/dist/vro-el-image/types.js +24 -1
- package/dist/vro-el-image/utils.d.ts +1 -1
- package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
- package/dist/vro-el-image/vro-el-image.vue.js +55 -24
- package/dist/vro-el-image-upload/index.d.ts +1 -1
- package/dist/vro-el-image-upload/style/css.js +4 -0
- package/dist/vro-el-image-upload/style/index.css +1 -1
- package/dist/vro-el-image-upload/style/index.js +4 -0
- package/dist/vro-el-image-upload/types.d.ts +24 -7
- package/dist/vro-el-image-upload/types.js +21 -7
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
- package/dist/vro-el-radio-group/index.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
- package/dist/vro-el-schema-filter/index.d.ts +27 -31
- package/dist/vro-el-schema-filter/style/css.js +5 -0
- package/dist/vro-el-schema-filter/style/index.css +1 -1
- package/dist/vro-el-schema-filter/style/index.js +5 -0
- package/dist/vro-el-schema-filter/types.d.ts +17 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
- package/dist/vro-el-schema-form/index.d.ts +16 -18
- package/dist/vro-el-schema-form/style/css.js +5 -0
- package/dist/vro-el-schema-form/style/index.css +1 -1
- package/dist/vro-el-schema-form/style/index.js +5 -0
- package/dist/vro-el-schema-form/types.d.ts +65 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +33 -37
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
- package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
- package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
- package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
- package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
- package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
- package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
- package/dist/vro-el-schema-form-dialog/types.js +6 -11
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
- package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
- package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
- package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
- package/dist/vro-el-schema-form-drawer/index.js +16 -0
- package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
- package/dist/vro-el-schema-form-drawer/injection.js +9 -0
- package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
- package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
- package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
- package/dist/vro-el-schema-form-drawer/types.js +75 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
- package/dist/vro-el-select/index.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.js +11 -11
- package/dist/vro-el-skeleton/index.d.ts +9 -73
- package/dist/vro-el-skeleton/style/index.css +1 -1
- package/dist/vro-el-skeleton/types.d.ts +32 -24
- package/dist/vro-el-skeleton/types.js +3 -23
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
- package/dist/vro-el-table/createUseVroElTable.d.ts +9 -0
- package/dist/vro-el-table/createUseVroElTable.js +7 -0
- package/dist/vro-el-table/index.js +13 -0
- package/dist/vro-el-table/style/css.d.ts +0 -0
- package/dist/vro-el-table/style/css.js +29 -0
- package/dist/vro-el-table/style/deps.d.ts +0 -0
- package/dist/vro-el-table/style/deps.js +28 -0
- package/dist/vro-el-table/style/index.css +1 -0
- package/dist/vro-el-table/style/index.d.ts +0 -0
- package/dist/vro-el-table/style/index.js +57 -0
- package/dist/vro-el-table/types.d.ts +97 -0
- package/dist/vro-el-table/types.js +66 -0
- package/dist/vro-el-table/useVroElTable.d.ts +43 -0
- package/dist/vro-el-table/useVroElTable.js +47 -0
- package/dist/vro-el-table/vro-el-table.vue.js +94 -0
- package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
- package/dist/vro-el-table-actions-column/index.d.ts +269 -0
- package/dist/vro-el-table-actions-column/index.js +9 -0
- package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/css.js +4 -0
- package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/deps.js +5 -0
- package/dist/vro-el-table-actions-column/style/index.css +1 -0
- package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/index.js +9 -0
- package/dist/vro-el-table-actions-column/types.d.ts +139 -0
- package/dist/vro-el-table-actions-column/types.js +37 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
- package/dist/vro-el-table-column/index.d.ts +257 -0
- package/dist/vro-el-table-column/index.js +9 -0
- package/dist/vro-el-table-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-column/style/css.js +6 -0
- package/dist/vro-el-table-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column/style/deps.js +1 -0
- package/dist/vro-el-table-column/style/index.css +1 -0
- package/dist/vro-el-table-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-column/style/index.js +7 -0
- package/dist/vro-el-table-column/types.d.ts +141 -0
- package/dist/vro-el-table-column/types.js +43 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
- package/dist/vro-el-table-column-group/index.d.ts +23 -0
- package/dist/vro-el-table-column-group/index.js +13 -0
- package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/css.js +9 -0
- package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/deps.js +5 -0
- package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/index.js +14 -0
- package/dist/vro-el-table-column-group/types.d.ts +87 -0
- package/dist/vro-el-table-column-group/types.js +12 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
- package/dist/vro-el-tags/index.d.ts +234 -187
- package/dist/vro-el-tags/style/css.js +1 -0
- package/dist/vro-el-tags/style/index.css +1 -0
- package/dist/vro-el-tags/style/index.js +1 -0
- package/dist/vro-el-tags/types.d.ts +37 -1
- package/dist/vro-el-tags/types.js +17 -1
- package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
- package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
- package/dist/vro-el-tree/index.d.ts +3235 -32
- package/dist/vro-el-tree/style/index.css +1 -1
- package/dist/vro-el-tree/types.d.ts +124 -5
- package/dist/vro-el-tree/types.js +12 -6
- package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
- package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
- package/package.json +6 -6
|
@@ -1,56 +1,74 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isUndefined as
|
|
3
|
-
import { ElTree as
|
|
4
|
-
import { vroElTreeProps as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as P, useTemplateRef as R, computed as d, watch as T, nextTick as V, createBlock as $, openBlock as E, unref as _, mergeProps as w, createSlots as g, withCtx as m, renderSlot as k, normalizeProps as B, guardReactiveProps as S } from "vue";
|
|
2
|
+
import { pick as z, typedKeys as D, isUndefined as y } from "@daysnap/utils";
|
|
3
|
+
import { treeProps as M, ElTree as N } from "element-plus";
|
|
4
|
+
import { vroElTreeProps as U } from "./types.js";
|
|
5
|
+
const A = /* @__PURE__ */ P({
|
|
6
6
|
name: "VroElTree",
|
|
7
7
|
__name: "vro-el-tree",
|
|
8
|
-
props:
|
|
9
|
-
emits: ["update:modelValue"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
const { modelValue:
|
|
13
|
-
(s,
|
|
8
|
+
props: U,
|
|
9
|
+
emits: ["update:modelValue", "check"],
|
|
10
|
+
setup(v, { emit: I }) {
|
|
11
|
+
const l = I, n = v, u = R("treeRef"), C = d(() => z(n, D(M))), p = d(() => n.options ? n.options : n.data), f = d(() => {
|
|
12
|
+
const { modelValue: e, rootId: r } = n, { childIds: o, mapping: t } = i(p.value), a = e.reduce(
|
|
13
|
+
(s, c) => (s[c] = !0, s),
|
|
14
14
|
{}
|
|
15
|
-
),
|
|
16
|
-
if (s ===
|
|
15
|
+
), h = (s) => {
|
|
16
|
+
if (s === r)
|
|
17
17
|
return !0;
|
|
18
|
-
if (!
|
|
18
|
+
if (!a[s])
|
|
19
19
|
return !1;
|
|
20
|
-
const
|
|
21
|
-
return !
|
|
20
|
+
const c = t[s];
|
|
21
|
+
return !y(c) && h(c);
|
|
22
22
|
};
|
|
23
|
-
return
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
f
|
|
23
|
+
return o.filter(h);
|
|
24
|
+
});
|
|
25
|
+
T(
|
|
26
|
+
f,
|
|
27
|
+
async (e) => {
|
|
28
|
+
await V(), u.value?.setCheckedKeys(e);
|
|
29
|
+
},
|
|
30
|
+
{ immediate: !0 }
|
|
31
|
+
);
|
|
32
|
+
const K = (e, r) => {
|
|
33
|
+
const { checkedKeys: o, halfCheckedKeys: t } = r;
|
|
34
|
+
l("check", e, r), l("update:modelValue", [...t, ...o]);
|
|
27
35
|
};
|
|
28
|
-
function
|
|
36
|
+
function i(e, r = {}) {
|
|
29
37
|
const o = [];
|
|
30
|
-
return
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
o.push(...
|
|
38
|
+
return e.forEach((t) => {
|
|
39
|
+
if (y(t.parentId) || (r[t.id] = t.parentId), t.children && t.children.length > 0) {
|
|
40
|
+
const a = i(t.children ?? [], r);
|
|
41
|
+
o.push(...a.childIds);
|
|
34
42
|
} else
|
|
35
|
-
o.push(
|
|
36
|
-
}), { childIds: o, mapping:
|
|
43
|
+
o.push(t.id);
|
|
44
|
+
}), { childIds: o, mapping: r };
|
|
37
45
|
}
|
|
38
|
-
return (
|
|
46
|
+
return (e, r) => (E(), $(_(N), w({
|
|
47
|
+
ref_key: "treeRef",
|
|
48
|
+
ref: u
|
|
49
|
+
}, C.value, {
|
|
39
50
|
class: "vro-el-tree",
|
|
40
|
-
data:
|
|
41
|
-
"default-checked-keys":
|
|
42
|
-
onCheck:
|
|
43
|
-
}),
|
|
44
|
-
|
|
51
|
+
data: p.value,
|
|
52
|
+
"default-checked-keys": f.value,
|
|
53
|
+
onCheck: K
|
|
54
|
+
}), g({ _: 2 }, [
|
|
55
|
+
e.$slots.default ? {
|
|
45
56
|
name: "default",
|
|
46
|
-
fn:
|
|
47
|
-
|
|
57
|
+
fn: m((o) => [
|
|
58
|
+
k(e.$slots, "default", B(S(o)))
|
|
48
59
|
]),
|
|
49
60
|
key: "0"
|
|
61
|
+
} : void 0,
|
|
62
|
+
e.$slots.empty ? {
|
|
63
|
+
name: "empty",
|
|
64
|
+
fn: m(() => [
|
|
65
|
+
k(e.$slots, "empty")
|
|
66
|
+
]),
|
|
67
|
+
key: "1"
|
|
50
68
|
} : void 0
|
|
51
69
|
]), 1040, ["data", "default-checked-keys"]));
|
|
52
70
|
}
|
|
53
71
|
});
|
|
54
72
|
export {
|
|
55
|
-
|
|
73
|
+
A as default
|
|
56
74
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vrojs/element-plus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "vrojs ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
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.
|
|
43
|
-
"@vrojs/use": "0.0.
|
|
42
|
+
"@vrojs/base": "0.0.4",
|
|
43
|
+
"@vrojs/use": "0.0.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@daysnap/banana": "^0.0.15",
|
|
47
|
-
"@daysnap/utils": "^0.1.
|
|
47
|
+
"@daysnap/utils": "^0.1.36",
|
|
48
48
|
"@element-plus/icons-vue": "^2.3.2",
|
|
49
49
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
50
50
|
"element-plus": "^2.11.9",
|
|
@@ -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/base": "0.0.
|
|
57
|
-
"@vrojs/use": "0.0.
|
|
56
|
+
"@vrojs/base": "0.0.4",
|
|
57
|
+
"@vrojs/use": "0.0.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "npm run clean && vite build",
|