@airpower/web 2.0.1 → 2.0.3
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.
|
@@ -30,6 +30,9 @@ declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<
|
|
|
30
30
|
attrs: any;
|
|
31
31
|
slots: {
|
|
32
32
|
icon?(_: {}): any;
|
|
33
|
+
beforeSearch?(_: {}): any;
|
|
34
|
+
afterSearch?(_: {}): any;
|
|
35
|
+
afterTree?(_: {}): any;
|
|
33
36
|
default?(_: {}): any;
|
|
34
37
|
};
|
|
35
38
|
emit: (evt: "change", data: T | undefined) => void;
|
package/dist/main.js
CHANGED
|
@@ -882,7 +882,7 @@ class Transformer {
|
|
|
882
882
|
* @param fields 属性列表
|
|
883
883
|
*/
|
|
884
884
|
expose(...fields) {
|
|
885
|
-
const copy = this
|
|
885
|
+
const copy = this;
|
|
886
886
|
const fieldList = Object.keys(copy);
|
|
887
887
|
for (const field of fieldList) {
|
|
888
888
|
if (!fields.includes(field)) {
|
|
@@ -895,7 +895,7 @@ class Transformer {
|
|
|
895
895
|
* @param fields 属性列表
|
|
896
896
|
*/
|
|
897
897
|
exclude(...fields) {
|
|
898
|
-
const copy = this
|
|
898
|
+
const copy = this;
|
|
899
899
|
const fieldList = Object.keys(copy);
|
|
900
900
|
for (const field of fieldList) {
|
|
901
901
|
if (fields.includes(field)) {
|
|
@@ -18349,6 +18349,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18349
18349
|
renderSlot(_ctx.$slots, "icon")
|
|
18350
18350
|
]),
|
|
18351
18351
|
default: withCtx(() => [
|
|
18352
|
+
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
18352
18353
|
__props.searchable ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
18353
18354
|
createVNode(unref(ElInput), {
|
|
18354
18355
|
modelValue: searchKeyword.value,
|
|
@@ -18357,6 +18358,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18357
18358
|
clearable: ""
|
|
18358
18359
|
}, null, 8, ["modelValue", "placeholder"])
|
|
18359
18360
|
])) : createCommentVNode("", true),
|
|
18361
|
+
renderSlot(_ctx.$slots, "afterSearch"),
|
|
18360
18362
|
withDirectives(createVNode(unref(ElTree), {
|
|
18361
18363
|
ref_key: "treeRef",
|
|
18362
18364
|
ref: treeRef,
|
|
@@ -18371,7 +18373,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18371
18373
|
onNodeClick: treeSelectChanged
|
|
18372
18374
|
}, null, 8, ["current-node-key", "data", "default-expand-all", "props"]), [
|
|
18373
18375
|
[_directive_loading, __props.isTreeLoading]
|
|
18374
|
-
])
|
|
18376
|
+
]),
|
|
18377
|
+
renderSlot(_ctx.$slots, "afterTree")
|
|
18375
18378
|
]),
|
|
18376
18379
|
_: 3
|
|
18377
18380
|
}, 8, ["hide-icon", "show-title", "title"]), [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airpower/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "AirPower-Web",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hamm",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@airpower/enum": "^1.6.0",
|
|
43
43
|
"@airpower/i18n": "^1.6.0",
|
|
44
|
-
"@airpower/transformer": "^2.0.
|
|
44
|
+
"@airpower/transformer": "^2.0.1",
|
|
45
45
|
"@airpower/util": "^1.6.0",
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.2",
|
|
47
47
|
"axios": "1.13.2",
|