@94ai/common-ui 1.1.19 → 1.1.20
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.
|
@@ -2507,6 +2507,45 @@ var stringify$2 = parent$h;
|
|
|
2507
2507
|
var stringify$1 = stringify$2;
|
|
2508
2508
|
var stringify2 = stringify$1;
|
|
2509
2509
|
const _JSON$stringify = /* @__PURE__ */ getDefaultExportFromCjs(stringify2);
|
|
2510
|
+
function _extends() {
|
|
2511
|
+
return _extends = Object.assign ? Object.assign.bind() : function(a) {
|
|
2512
|
+
for (var b, c = 1; c < arguments.length; c++)
|
|
2513
|
+
for (var d in b = arguments[c], b)
|
|
2514
|
+
Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
|
|
2515
|
+
return a;
|
|
2516
|
+
}, _extends.apply(this, arguments);
|
|
2517
|
+
}
|
|
2518
|
+
var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "style", "directives"], functionalMerge = ["on", "nativeOn"], mergeJsxProps = function(a) {
|
|
2519
|
+
return a.reduce(function(c, a2) {
|
|
2520
|
+
for (var b in a2)
|
|
2521
|
+
if (!c[b])
|
|
2522
|
+
c[b] = a2[b];
|
|
2523
|
+
else if (-1 !== normalMerge.indexOf(b))
|
|
2524
|
+
c[b] = _extends({}, c[b], a2[b]);
|
|
2525
|
+
else if (-1 !== toArrayMerge.indexOf(b)) {
|
|
2526
|
+
var d = c[b] instanceof Array ? c[b] : [c[b]], e = a2[b] instanceof Array ? a2[b] : [a2[b]];
|
|
2527
|
+
c[b] = [].concat(d, e);
|
|
2528
|
+
} else if (-1 !== functionalMerge.indexOf(b)) {
|
|
2529
|
+
for (var f in a2[b])
|
|
2530
|
+
if (c[b][f]) {
|
|
2531
|
+
var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]], h2 = a2[b][f] instanceof Array ? a2[b][f] : [a2[b][f]];
|
|
2532
|
+
c[b][f] = [].concat(g, h2);
|
|
2533
|
+
} else
|
|
2534
|
+
c[b][f] = a2[b][f];
|
|
2535
|
+
} else if ("hook" === b)
|
|
2536
|
+
for (var i in a2[b])
|
|
2537
|
+
c[b][i] = c[b][i] ? mergeFn(c[b][i], a2[b][i]) : a2[b][i];
|
|
2538
|
+
else
|
|
2539
|
+
c[b] = a2[b];
|
|
2540
|
+
return c;
|
|
2541
|
+
}, {});
|
|
2542
|
+
}, mergeFn = function(a, b) {
|
|
2543
|
+
return function() {
|
|
2544
|
+
a && a.apply(this, arguments), b && b.apply(this, arguments);
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
var helper = mergeJsxProps;
|
|
2548
|
+
const _mergeJSXProps = /* @__PURE__ */ getDefaultExportFromCjs(helper);
|
|
2510
2549
|
const _sfc_main$3 = defineComponent({
|
|
2511
2550
|
name: "nf-infinite-menu",
|
|
2512
2551
|
props: {
|
|
@@ -2554,29 +2593,34 @@ const _sfc_main$3 = defineComponent({
|
|
|
2554
2593
|
return !_.hidden;
|
|
2555
2594
|
})) {
|
|
2556
2595
|
var _item$meta;
|
|
2557
|
-
return
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
},
|
|
2596
|
+
return h("el-submenu", {
|
|
2597
|
+
"attrs": {
|
|
2598
|
+
"index": props.indexPrefix + item[props.index]
|
|
2599
|
+
}
|
|
2600
|
+
}, [h("template", {
|
|
2601
|
+
"slot": "title"
|
|
2602
|
+
}, [(_item$meta = item.meta) !== null && _item$meta !== void 0 && _item$meta.icon ? h("i", {
|
|
2562
2603
|
"class": item.meta.icon
|
|
2563
|
-
}) : null,
|
|
2604
|
+
}) : null, h("span", [props.name + ":name:" + _JSON$stringify(item) + item[props.name]])]), renderMenu2(item[props.children])]);
|
|
2564
2605
|
}
|
|
2565
|
-
return
|
|
2566
|
-
|
|
2567
|
-
|
|
2606
|
+
return h("el-menu-item", {
|
|
2607
|
+
"attrs": {
|
|
2608
|
+
"index": props.indexPrefix + item[props.index]
|
|
2609
|
+
}
|
|
2610
|
+
}, [(_item$meta2 = item.meta) !== null && _item$meta2 !== void 0 && _item$meta2.icon ? h("i", {
|
|
2568
2611
|
"class": item.meta.icon
|
|
2569
|
-
}) : null,
|
|
2612
|
+
}) : null, h("span", [props.name + ":name:" + _JSON$stringify(item) + item[props.name]])]);
|
|
2570
2613
|
}
|
|
2571
2614
|
return "";
|
|
2572
2615
|
});
|
|
2573
2616
|
};
|
|
2574
2617
|
var attrs = useAttrs();
|
|
2575
2618
|
return function() {
|
|
2576
|
-
return
|
|
2577
|
-
"class": "nf-infinite-menu"
|
|
2578
|
-
|
|
2579
|
-
|
|
2619
|
+
return h("el-menu", _mergeJSXProps([{
|
|
2620
|
+
"class": "nf-infinite-menu"
|
|
2621
|
+
}, {
|
|
2622
|
+
"props": attrs
|
|
2623
|
+
}]), [renderMenu(props.data)]);
|
|
2580
2624
|
};
|
|
2581
2625
|
}
|
|
2582
2626
|
});
|
|
@@ -2510,6 +2510,45 @@
|
|
|
2510
2510
|
var stringify$1 = stringify$2;
|
|
2511
2511
|
var stringify = stringify$1;
|
|
2512
2512
|
const _JSON$stringify = /* @__PURE__ */ getDefaultExportFromCjs(stringify);
|
|
2513
|
+
function _extends() {
|
|
2514
|
+
return _extends = Object.assign ? Object.assign.bind() : function(a) {
|
|
2515
|
+
for (var b, c = 1; c < arguments.length; c++)
|
|
2516
|
+
for (var d in b = arguments[c], b)
|
|
2517
|
+
Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
|
|
2518
|
+
return a;
|
|
2519
|
+
}, _extends.apply(this, arguments);
|
|
2520
|
+
}
|
|
2521
|
+
var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "style", "directives"], functionalMerge = ["on", "nativeOn"], mergeJsxProps = function(a) {
|
|
2522
|
+
return a.reduce(function(c, a2) {
|
|
2523
|
+
for (var b in a2)
|
|
2524
|
+
if (!c[b])
|
|
2525
|
+
c[b] = a2[b];
|
|
2526
|
+
else if (-1 !== normalMerge.indexOf(b))
|
|
2527
|
+
c[b] = _extends({}, c[b], a2[b]);
|
|
2528
|
+
else if (-1 !== toArrayMerge.indexOf(b)) {
|
|
2529
|
+
var d = c[b] instanceof Array ? c[b] : [c[b]], e = a2[b] instanceof Array ? a2[b] : [a2[b]];
|
|
2530
|
+
c[b] = [].concat(d, e);
|
|
2531
|
+
} else if (-1 !== functionalMerge.indexOf(b)) {
|
|
2532
|
+
for (var f in a2[b])
|
|
2533
|
+
if (c[b][f]) {
|
|
2534
|
+
var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]], h = a2[b][f] instanceof Array ? a2[b][f] : [a2[b][f]];
|
|
2535
|
+
c[b][f] = [].concat(g, h);
|
|
2536
|
+
} else
|
|
2537
|
+
c[b][f] = a2[b][f];
|
|
2538
|
+
} else if ("hook" === b)
|
|
2539
|
+
for (var i2 in a2[b])
|
|
2540
|
+
c[b][i2] = c[b][i2] ? mergeFn(c[b][i2], a2[b][i2]) : a2[b][i2];
|
|
2541
|
+
else
|
|
2542
|
+
c[b] = a2[b];
|
|
2543
|
+
return c;
|
|
2544
|
+
}, {});
|
|
2545
|
+
}, mergeFn = function(a, b) {
|
|
2546
|
+
return function() {
|
|
2547
|
+
a && a.apply(this, arguments), b && b.apply(this, arguments);
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
var helper = mergeJsxProps;
|
|
2551
|
+
const _mergeJSXProps = /* @__PURE__ */ getDefaultExportFromCjs(helper);
|
|
2513
2552
|
const _sfc_main$3 = Vue.defineComponent({
|
|
2514
2553
|
name: "nf-infinite-menu",
|
|
2515
2554
|
props: {
|
|
@@ -2557,29 +2596,34 @@
|
|
|
2557
2596
|
return !_.hidden;
|
|
2558
2597
|
})) {
|
|
2559
2598
|
var _item$meta;
|
|
2560
|
-
return
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
},
|
|
2599
|
+
return Vue.h("el-submenu", {
|
|
2600
|
+
"attrs": {
|
|
2601
|
+
"index": props.indexPrefix + item[props.index]
|
|
2602
|
+
}
|
|
2603
|
+
}, [Vue.h("template", {
|
|
2604
|
+
"slot": "title"
|
|
2605
|
+
}, [(_item$meta = item.meta) !== null && _item$meta !== void 0 && _item$meta.icon ? Vue.h("i", {
|
|
2565
2606
|
"class": item.meta.icon
|
|
2566
|
-
}) : null,
|
|
2607
|
+
}) : null, Vue.h("span", [props.name + ":name:" + _JSON$stringify(item) + item[props.name]])]), renderMenu2(item[props.children])]);
|
|
2567
2608
|
}
|
|
2568
|
-
return
|
|
2569
|
-
|
|
2570
|
-
|
|
2609
|
+
return Vue.h("el-menu-item", {
|
|
2610
|
+
"attrs": {
|
|
2611
|
+
"index": props.indexPrefix + item[props.index]
|
|
2612
|
+
}
|
|
2613
|
+
}, [(_item$meta2 = item.meta) !== null && _item$meta2 !== void 0 && _item$meta2.icon ? Vue.h("i", {
|
|
2571
2614
|
"class": item.meta.icon
|
|
2572
|
-
}) : null,
|
|
2615
|
+
}) : null, Vue.h("span", [props.name + ":name:" + _JSON$stringify(item) + item[props.name]])]);
|
|
2573
2616
|
}
|
|
2574
2617
|
return "";
|
|
2575
2618
|
});
|
|
2576
2619
|
};
|
|
2577
2620
|
var attrs = Vue.useAttrs();
|
|
2578
2621
|
return function() {
|
|
2579
|
-
return
|
|
2580
|
-
"class": "nf-infinite-menu"
|
|
2581
|
-
|
|
2582
|
-
|
|
2622
|
+
return Vue.h("el-menu", _mergeJSXProps([{
|
|
2623
|
+
"class": "nf-infinite-menu"
|
|
2624
|
+
}, {
|
|
2625
|
+
"props": attrs
|
|
2626
|
+
}]), [renderMenu(props.data)]);
|
|
2583
2627
|
};
|
|
2584
2628
|
}
|
|
2585
2629
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/common-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "94智能公共组件库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"组件库"
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@94ai/nf-button-demo": "^1.1.
|
|
20
|
-
"@94ai/nf-double-time": "^1.1.
|
|
21
|
-
"@94ai/nf-infinite-menu": "^1.1.
|
|
22
|
-
"@94ai/nf-menu": "^1.1.
|
|
23
|
-
"@94ai/nf-theme-chalk": "^1.1.
|
|
24
|
-
"@94ai/nf-toast-demo": "^1.1.
|
|
19
|
+
"@94ai/nf-button-demo": "^1.1.20",
|
|
20
|
+
"@94ai/nf-double-time": "^1.1.20",
|
|
21
|
+
"@94ai/nf-infinite-menu": "^1.1.20",
|
|
22
|
+
"@94ai/nf-menu": "^1.1.20",
|
|
23
|
+
"@94ai/nf-theme-chalk": "^1.1.20",
|
|
24
|
+
"@94ai/nf-toast-demo": "^1.1.20"
|
|
25
25
|
},
|
|
26
26
|
"main": "lib/common-ui.cjs.js",
|
|
27
27
|
"module": "lib/common-ui.esm-bundler.js",
|