cnhis-design-vue 3.0.3 → 3.0.4
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/CHANGELOG.md +12 -0
- package/env.d.ts +0 -2
- package/es/big-table/index.css +12 -206
- package/es/big-table/index.js +70 -507
- package/es/button-print/index.css +43 -237
- package/es/drag-layout/index.css +43 -237
- package/es/field-set/index.css +1044 -0
- package/es/field-set/index.js +351 -0
- package/es/grid/index.css +241 -237
- package/es/index.css +40 -36
- package/es/index.js +11 -107
- package/package.json +1 -1
- package/packages/big-table/index.ts +0 -5
- package/packages/big-table/src/BigTable.vue +1 -1
- package/packages/big-table/src/assets/iconfont/iconfont.less +3 -2
- package/packages/big-table/src/assets/style/table-global.less +4 -0
- package/packages/field-set/index.ts +15 -0
- package/packages/{big-table → field-set}/src/FieldSet.vue +0 -6
- package/packages/index.ts +3 -0
package/es/index.css
CHANGED
|
@@ -394,11 +394,11 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
394
394
|
width: var(--tableImageWidth);
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
+
/*
|
|
397
398
|
@font-face {
|
|
398
399
|
font-family: "iconfont";
|
|
399
|
-
/* Project id */
|
|
400
400
|
src: url('iconfont.ttf?t=1631151904509') format('truetype');
|
|
401
|
-
}
|
|
401
|
+
}*/
|
|
402
402
|
.iconfont {
|
|
403
403
|
font-family: "iconfont" !important;
|
|
404
404
|
font-size: 16px;
|
|
@@ -438,6 +438,16 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
438
438
|
overflow: hidden;
|
|
439
439
|
-webkit-transition: width 2s;
|
|
440
440
|
transition: width 2s;
|
|
441
|
+
/*
|
|
442
|
+
.sort-icon-asc {
|
|
443
|
+
background-image: url('../img/icon-asc.png');
|
|
444
|
+
}
|
|
445
|
+
*/
|
|
446
|
+
/*
|
|
447
|
+
.sort-icon-desc {
|
|
448
|
+
background-image: url('../img/icon-desc.png');
|
|
449
|
+
}
|
|
450
|
+
*/
|
|
441
451
|
}
|
|
442
452
|
.big-table-filter-wrap .sort-list {
|
|
443
453
|
margin-top: 6px;
|
|
@@ -464,18 +474,12 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
464
474
|
background-size: contain;
|
|
465
475
|
display: inline-block;
|
|
466
476
|
}
|
|
467
|
-
.big-table-filter-wrap .sort-icon-asc {
|
|
468
|
-
background-image: url('../img/icon-asc.png');
|
|
469
|
-
}
|
|
470
477
|
.big-table-filter-wrap .sort-text {
|
|
471
478
|
margin-left: 11px;
|
|
472
479
|
font-size: 14px;
|
|
473
480
|
line-height: 32px;
|
|
474
481
|
color: rgba(0, 0, 0, 0.8);
|
|
475
482
|
}
|
|
476
|
-
.big-table-filter-wrap .sort-icon-desc {
|
|
477
|
-
background-image: url('../img/icon-desc.png');
|
|
478
|
-
}
|
|
479
483
|
.big-table-filter-wrap .filter-header {
|
|
480
484
|
padding: 0 13px;
|
|
481
485
|
cursor: initial;
|
|
@@ -582,11 +586,11 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
582
586
|
height: 20px;
|
|
583
587
|
}
|
|
584
588
|
|
|
585
|
-
ul[data-v-
|
|
589
|
+
ul[data-v-726261b7] {
|
|
586
590
|
margin: 0;
|
|
587
591
|
padding: 0;
|
|
588
592
|
}
|
|
589
|
-
.fields-set-content[data-v-
|
|
593
|
+
.fields-set-content[data-v-726261b7] {
|
|
590
594
|
height: 100%;
|
|
591
595
|
display: -webkit-box;
|
|
592
596
|
display: -webkit-flex;
|
|
@@ -599,7 +603,7 @@ ul[data-v-5cd39776] {
|
|
|
599
603
|
flex-direction: column;
|
|
600
604
|
overflow: hidden;
|
|
601
605
|
}
|
|
602
|
-
.fields-set-content[data-v-
|
|
606
|
+
.fields-set-content[data-v-726261b7] .fields-table[data-v-726261b7] {
|
|
603
607
|
-webkit-box-flex: 1;
|
|
604
608
|
-webkit-flex: 1;
|
|
605
609
|
-ms-flex: 1;
|
|
@@ -615,42 +619,42 @@ ul[data-v-5cd39776] {
|
|
|
615
619
|
flex-direction: column;
|
|
616
620
|
overflow: auto;
|
|
617
621
|
}
|
|
618
|
-
.setting-view[data-v-
|
|
622
|
+
.setting-view[data-v-726261b7] {
|
|
619
623
|
height: 100%;
|
|
620
624
|
position: relative;
|
|
621
625
|
}
|
|
622
|
-
.setting-view[data-v-
|
|
626
|
+
.setting-view[data-v-726261b7] [data-v-726261b7] .n-spin-container {
|
|
623
627
|
width: 100%;
|
|
624
628
|
height: 100%;
|
|
625
629
|
}
|
|
626
|
-
.setting-view[data-v-
|
|
630
|
+
.setting-view[data-v-726261b7] [data-v-726261b7] .n-spin-content {
|
|
627
631
|
height: 100%;
|
|
628
632
|
}
|
|
629
|
-
.setting-view[data-v-
|
|
633
|
+
.setting-view[data-v-726261b7] .setting-title[data-v-726261b7] {
|
|
630
634
|
background: #f2f2f4;
|
|
631
635
|
border: 1px solid #f2f2f2;
|
|
632
636
|
height: 52px;
|
|
633
637
|
line-height: 52px;
|
|
634
638
|
}
|
|
635
|
-
.setting-view[data-v-
|
|
639
|
+
.setting-view[data-v-726261b7] .setting-title[data-v-726261b7] span[data-v-726261b7] {
|
|
636
640
|
display: inline-block;
|
|
637
641
|
}
|
|
638
|
-
.setting-view[data-v-
|
|
642
|
+
.setting-view[data-v-726261b7] .setting-title[data-v-726261b7].seting-title-api[data-v-726261b7] .width-large[data-v-726261b7] {
|
|
639
643
|
width: 15%;
|
|
640
644
|
}
|
|
641
|
-
.setting-view[data-v-
|
|
645
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] {
|
|
642
646
|
min-height: 100px;
|
|
643
647
|
overflow-y: auto;
|
|
644
648
|
}
|
|
645
|
-
.setting-view[data-v-
|
|
649
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7].set-show-api[data-v-726261b7] .width-large[data-v-726261b7] {
|
|
646
650
|
width: 15%;
|
|
647
651
|
}
|
|
648
|
-
.setting-view[data-v-
|
|
652
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .left-style.sortable-chosen[data-v-726261b7] {
|
|
649
653
|
background: #fafafa;
|
|
650
654
|
-webkit-box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
651
655
|
box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
652
656
|
}
|
|
653
|
-
.setting-view[data-v-
|
|
657
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] li[data-v-726261b7] {
|
|
654
658
|
padding: 5px 0;
|
|
655
659
|
display: -webkit-box;
|
|
656
660
|
display: -webkit-flex;
|
|
@@ -664,7 +668,7 @@ ul[data-v-5cd39776] {
|
|
|
664
668
|
height: 52px;
|
|
665
669
|
line-height: 52px;
|
|
666
670
|
}
|
|
667
|
-
.setting-view[data-v-
|
|
671
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .alias-style[data-v-726261b7] {
|
|
668
672
|
outline: none;
|
|
669
673
|
border-radius: 4px 4px 4px 4px;
|
|
670
674
|
border: solid 1px #d5d5d5;
|
|
@@ -673,7 +677,7 @@ ul[data-v-5cd39776] {
|
|
|
673
677
|
color: #38454f;
|
|
674
678
|
width: 100%;
|
|
675
679
|
}
|
|
676
|
-
.setting-view[data-v-
|
|
680
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .is-sort-style[data-v-726261b7] {
|
|
677
681
|
outline: none;
|
|
678
682
|
border-radius: 4px 4px 4px 4px;
|
|
679
683
|
border: solid 1px #d5d5d5;
|
|
@@ -683,14 +687,14 @@ ul[data-v-5cd39776] {
|
|
|
683
687
|
width: 87px;
|
|
684
688
|
margin-right: 5px;
|
|
685
689
|
}
|
|
686
|
-
.setting-view[data-v-
|
|
690
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .is-sort-style[data-v-726261b7][data-v-726261b7]:disabled {
|
|
687
691
|
cursor: not-allowed;
|
|
688
692
|
background: #f5f5f5;
|
|
689
693
|
}
|
|
690
|
-
.setting-view[data-v-
|
|
694
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .col-width-style[data-v-726261b7] {
|
|
691
695
|
width: 70px;
|
|
692
696
|
}
|
|
693
|
-
.setting-view[data-v-
|
|
697
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .title-item[data-v-726261b7] {
|
|
694
698
|
display: -webkit-inline-box;
|
|
695
699
|
display: -webkit-inline-flex;
|
|
696
700
|
display: -ms-inline-flexbox;
|
|
@@ -705,14 +709,14 @@ ul[data-v-5cd39776] {
|
|
|
705
709
|
align-items: center;
|
|
706
710
|
text-align: left;
|
|
707
711
|
}
|
|
708
|
-
.setting-view[data-v-
|
|
712
|
+
.setting-view[data-v-726261b7] .set-show[data-v-726261b7] .title-item[data-v-726261b7] > span[data-v-726261b7] {
|
|
709
713
|
display: inline-block;
|
|
710
714
|
max-width: calc(100% - 20px);
|
|
711
715
|
overflow: hidden;
|
|
712
716
|
white-space: nowrap;
|
|
713
717
|
text-overflow: ellipsis;
|
|
714
718
|
}
|
|
715
|
-
.setting-view[data-v-
|
|
719
|
+
.setting-view[data-v-726261b7] .alias-style[data-v-726261b7] {
|
|
716
720
|
outline: none;
|
|
717
721
|
border-radius: 4px 4px 4px 4px;
|
|
718
722
|
border: solid 1px #d4dee5;
|
|
@@ -720,43 +724,43 @@ ul[data-v-5cd39776] {
|
|
|
720
724
|
text-indent: 16px;
|
|
721
725
|
color: #38454f;
|
|
722
726
|
}
|
|
723
|
-
.setting-view[data-v-
|
|
727
|
+
.setting-view[data-v-726261b7] .btn-operate[data-v-726261b7] {
|
|
724
728
|
border-top: 1px solid #d5d5d5;
|
|
725
729
|
padding: 12px 0 12px;
|
|
726
730
|
}
|
|
727
|
-
.setting-view[data-v-
|
|
731
|
+
.setting-view[data-v-726261b7] .width-show[data-v-726261b7] {
|
|
728
732
|
display: inline-block;
|
|
729
733
|
width: 10%;
|
|
730
734
|
overflow: hidden;
|
|
731
735
|
white-space: nowrap;
|
|
732
736
|
text-overflow: ellipsis;
|
|
733
737
|
}
|
|
734
|
-
.setting-view[data-v-
|
|
738
|
+
.setting-view[data-v-726261b7] .drag-icon-wrap[data-v-726261b7] {
|
|
735
739
|
width: 5% !important;
|
|
736
740
|
cursor: pointer;
|
|
737
741
|
text-align: center;
|
|
738
742
|
}
|
|
739
|
-
.setting-view[data-v-
|
|
743
|
+
.setting-view[data-v-726261b7] .width-showed[data-v-726261b7] {
|
|
740
744
|
display: inline-block;
|
|
741
745
|
width: 15%;
|
|
742
746
|
overflow: hidden;
|
|
743
747
|
white-space: nowrap;
|
|
744
748
|
text-overflow: ellipsis;
|
|
745
749
|
}
|
|
746
|
-
.setting-view[data-v-
|
|
750
|
+
.setting-view[data-v-726261b7] .width-showed[data-v-726261b7] select[data-v-726261b7] {
|
|
747
751
|
width: 90% !important;
|
|
748
752
|
}
|
|
749
|
-
.setting-view[data-v-
|
|
753
|
+
.setting-view[data-v-726261b7] .width-word[data-v-726261b7] {
|
|
750
754
|
display: inline-block;
|
|
751
755
|
width: 20%;
|
|
752
756
|
line-height: 52px;
|
|
753
757
|
overflow: hidden;
|
|
754
758
|
white-space: nowrap;
|
|
755
759
|
}
|
|
756
|
-
.setting-view[data-v-
|
|
760
|
+
.setting-view[data-v-726261b7] .width-word[data-v-726261b7] input[data-v-726261b7] {
|
|
757
761
|
width: 90% !important;
|
|
758
762
|
}
|
|
759
|
-
.setting-view[data-v-
|
|
763
|
+
.setting-view[data-v-726261b7] .width-large[data-v-726261b7] {
|
|
760
764
|
display: inline-block;
|
|
761
765
|
width: 20%;
|
|
762
766
|
overflow: hidden;
|
package/es/index.js
CHANGED
|
@@ -39810,7 +39810,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
39810
39810
|
}
|
|
39811
39811
|
};
|
|
39812
39812
|
const getEditBtn = (row, col, index) => {
|
|
39813
|
-
return col.tileBtnList
|
|
39813
|
+
return col.tileBtnList?.map((btn) => {
|
|
39814
39814
|
if (btn.settingObj[0].trigger_type === "DELETE") {
|
|
39815
39815
|
return createVNode(NPopconfirm, {
|
|
39816
39816
|
"onPositiveClick": () => deleteRow(row, col, index)
|
|
@@ -41539,100 +41539,11 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
41539
41539
|
|
|
41540
41540
|
script$6.__file = "packages/big-table/src/BigTable.vue";
|
|
41541
41541
|
|
|
41542
|
-
|
|
41543
|
-
|
|
41544
|
-
|
|
41545
|
-
* @license MIT
|
|
41546
|
-
*/
|
|
41547
|
-
|
|
41548
|
-
const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
41549
|
-
const PolySymbol = (name) =>
|
|
41550
|
-
// vr = vue router
|
|
41551
|
-
hasSymbol
|
|
41552
|
-
? Symbol((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' + name : name)
|
|
41553
|
-
: ((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' : '_vr_') + name;
|
|
41554
|
-
// rvlm = Router View Location Matched
|
|
41555
|
-
/**
|
|
41556
|
-
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
41557
|
-
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
41558
|
-
* Location Matched
|
|
41559
|
-
*
|
|
41560
|
-
* @internal
|
|
41561
|
-
*/
|
|
41562
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : 'rvlm');
|
|
41563
|
-
/**
|
|
41564
|
-
* Allows overriding the router view depth to control which component in
|
|
41565
|
-
* `matched` is rendered. rvd stands for Router View Depth
|
|
41566
|
-
*
|
|
41567
|
-
* @internal
|
|
41568
|
-
*/
|
|
41569
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : 'rvd');
|
|
41570
|
-
/**
|
|
41571
|
-
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
41572
|
-
* stands for router
|
|
41573
|
-
*
|
|
41574
|
-
* @internal
|
|
41575
|
-
*/
|
|
41576
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router' : 'r');
|
|
41577
|
-
/**
|
|
41578
|
-
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
41579
|
-
* stands for route location
|
|
41580
|
-
*
|
|
41581
|
-
* @internal
|
|
41582
|
-
*/
|
|
41583
|
-
const routeLocationKey = /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'route location' : 'rl');
|
|
41584
|
-
/**
|
|
41585
|
-
* Allows overriding the current route used by router-view. Internally this is
|
|
41586
|
-
* used when the `route` prop is passed.
|
|
41587
|
-
*
|
|
41588
|
-
* @internal
|
|
41589
|
-
*/
|
|
41590
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location' : 'rvl');
|
|
41591
|
-
|
|
41592
|
-
var NavigationType;
|
|
41593
|
-
(function (NavigationType) {
|
|
41594
|
-
NavigationType["pop"] = "pop";
|
|
41595
|
-
NavigationType["push"] = "push";
|
|
41596
|
-
})(NavigationType || (NavigationType = {}));
|
|
41597
|
-
var NavigationDirection;
|
|
41598
|
-
(function (NavigationDirection) {
|
|
41599
|
-
NavigationDirection["back"] = "back";
|
|
41600
|
-
NavigationDirection["forward"] = "forward";
|
|
41601
|
-
NavigationDirection["unknown"] = "";
|
|
41602
|
-
})(NavigationDirection || (NavigationDirection = {}));
|
|
41603
|
-
|
|
41604
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : 'nf');
|
|
41605
|
-
/**
|
|
41606
|
-
* Enumeration with all possible types for navigation failures. Can be passed to
|
|
41607
|
-
* {@link isNavigationFailure} to check for specific failures.
|
|
41608
|
-
*/
|
|
41609
|
-
var NavigationFailureType;
|
|
41610
|
-
(function (NavigationFailureType) {
|
|
41611
|
-
/**
|
|
41612
|
-
* An aborted navigation is a navigation that failed because a navigation
|
|
41613
|
-
* guard returned `false` or called `next(false)`
|
|
41614
|
-
*/
|
|
41615
|
-
NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
|
|
41616
|
-
/**
|
|
41617
|
-
* A cancelled navigation is a navigation that failed because a more recent
|
|
41618
|
-
* navigation finished started (not necessarily finished).
|
|
41619
|
-
*/
|
|
41620
|
-
NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
|
|
41621
|
-
/**
|
|
41622
|
-
* A duplicated navigation is a navigation that failed because it was
|
|
41623
|
-
* initiated while already being at the exact same location.
|
|
41624
|
-
*/
|
|
41625
|
-
NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
|
|
41626
|
-
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
41627
|
-
/**
|
|
41628
|
-
* Returns the current route location. Equivalent to using `$route` inside
|
|
41629
|
-
* templates.
|
|
41630
|
-
*/
|
|
41631
|
-
function useRoute() {
|
|
41632
|
-
return inject(routeLocationKey);
|
|
41633
|
-
}
|
|
41542
|
+
script$6.install = function (app) {
|
|
41543
|
+
app.component(script$6.name, script$6);
|
|
41544
|
+
};
|
|
41634
41545
|
|
|
41635
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
41546
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-726261b7"), n = n(), popScopeId(), n);
|
|
41636
41547
|
const _hoisted_1$4 = { class: "fields-set-content" };
|
|
41637
41548
|
const _hoisted_2$4 = { class: "fields-table" };
|
|
41638
41549
|
const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", {
|
|
@@ -41706,7 +41617,6 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
41706
41617
|
emits: ["onSave", "onClose"],
|
|
41707
41618
|
setup(__props, { emit }) {
|
|
41708
41619
|
const props = __props;
|
|
41709
|
-
const route = useRoute();
|
|
41710
41620
|
const settingView = ref(null);
|
|
41711
41621
|
const state = reactive({
|
|
41712
41622
|
spinning: false,
|
|
@@ -41723,9 +41633,6 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
41723
41633
|
};
|
|
41724
41634
|
};
|
|
41725
41635
|
const isMiddleAndAdmin = computed(() => props.menuSource == "middle");
|
|
41726
|
-
computed(() => {
|
|
41727
|
-
return route.fullPath.includes("middleListDetail");
|
|
41728
|
-
});
|
|
41729
41636
|
const showCheckBox = (key) => {
|
|
41730
41637
|
return state.fields.some((i) => Object.prototype.hasOwnProperty.call(i, key));
|
|
41731
41638
|
};
|
|
@@ -41968,16 +41875,12 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
41968
41875
|
}
|
|
41969
41876
|
});
|
|
41970
41877
|
|
|
41971
|
-
script$5.__scopeId = "data-v-
|
|
41972
|
-
script$5.__file = "packages/
|
|
41878
|
+
script$5.__scopeId = "data-v-726261b7";
|
|
41879
|
+
script$5.__file = "packages/field-set/src/FieldSet.vue";
|
|
41973
41880
|
|
|
41974
|
-
script$
|
|
41975
|
-
app.component(script$6.name, script$6);
|
|
41881
|
+
script$5.install = function (app) {
|
|
41976
41882
|
app.component(script$5.name, script$5);
|
|
41977
|
-
};
|
|
41978
|
-
Object.assign(script$6, {
|
|
41979
|
-
FieldSet: script$5
|
|
41980
|
-
});
|
|
41883
|
+
};
|
|
41981
41884
|
|
|
41982
41885
|
const _hoisted_1$3 = { class: "DragFormLeftItem" };
|
|
41983
41886
|
const _hoisted_2$3 = {
|
|
@@ -45745,6 +45648,7 @@ script.install = function (app) {
|
|
|
45745
45648
|
const components = [
|
|
45746
45649
|
Grid,
|
|
45747
45650
|
script$6,
|
|
45651
|
+
script$5,
|
|
45748
45652
|
script$2,
|
|
45749
45653
|
script
|
|
45750
45654
|
];
|
|
@@ -45758,4 +45662,4 @@ var index = {
|
|
|
45758
45662
|
...components
|
|
45759
45663
|
};
|
|
45760
45664
|
|
|
45761
|
-
export { script$6 as CBigTable, script as CButtonPrint, script$2 as CDragLayout, Grid as CGrid, index as default };
|
|
45665
|
+
export { script$6 as CBigTable, script as CButtonPrint, script$2 as CDragLayout, script$5 as CFieldSet, Grid as CGrid, index as default };
|
package/package.json
CHANGED
|
@@ -2,21 +2,16 @@ import type { App } from "vue";
|
|
|
2
2
|
// import XEUtils from "xe-utils";
|
|
3
3
|
// 导入组件
|
|
4
4
|
import BigTable from "./src/BigTable.vue"
|
|
5
|
-
import FieldSet from './src/FieldSet.vue'
|
|
6
5
|
|
|
7
6
|
// type SFCWithInstall<T> = T & { install(app: App): void }; // vue 安装
|
|
8
7
|
|
|
9
8
|
// 为组件提供 install 安装方法,供按需引入
|
|
10
9
|
BigTable.install = function(app: App) {
|
|
11
10
|
app.component(BigTable.name, BigTable);
|
|
12
|
-
app.component(FieldSet.name, FieldSet)
|
|
13
11
|
// app.config.globalProperties.$utils = XEUtils;
|
|
14
12
|
};
|
|
15
13
|
|
|
16
14
|
// const CBigTable: SFCWithInstall<typeof BigTable> = BigTable; // 增加类型
|
|
17
15
|
|
|
18
|
-
Object.assign(BigTable, {
|
|
19
|
-
FieldSet
|
|
20
|
-
});
|
|
21
16
|
// 默认导出组件
|
|
22
17
|
export default BigTable;
|
|
@@ -729,7 +729,7 @@ const formatterEdit = (params: any, col: any) => {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
const getEditBtn = (row: any, col: any, index: number) => {
|
|
732
|
-
return col.tileBtnList
|
|
732
|
+
return col.tileBtnList?.map((btn: any) => {
|
|
733
733
|
if (btn.settingObj[0].trigger_type === 'DELETE') {
|
|
734
734
|
return <NPopconfirm
|
|
735
735
|
onPositiveClick={() => deleteRow(row, col, index)}
|
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
display: inline-block;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/*
|
|
44
45
|
.sort-icon-asc {
|
|
45
46
|
background-image: url('../img/icon-asc.png');
|
|
46
47
|
}
|
|
48
|
+
*/
|
|
47
49
|
|
|
48
50
|
.sort-text {
|
|
49
51
|
margin-left: 11px;
|
|
@@ -52,9 +54,11 @@
|
|
|
52
54
|
color: rgba(0, 0, 0, 0.8);
|
|
53
55
|
}
|
|
54
56
|
|
|
57
|
+
/*
|
|
55
58
|
.sort-icon-desc {
|
|
56
59
|
background-image: url('../img/icon-desc.png');
|
|
57
60
|
}
|
|
61
|
+
*/
|
|
58
62
|
|
|
59
63
|
.filter-header {
|
|
60
64
|
padding: 0 13px;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { App } from "vue";
|
|
2
|
+
// 导入组件
|
|
3
|
+
import FieldSet from './src/FieldSet.vue'
|
|
4
|
+
|
|
5
|
+
// type SFCWithInstall<T> = T & { install(app: App): void }; // vue 安装
|
|
6
|
+
|
|
7
|
+
// 为组件提供 install 安装方法,供按需引入
|
|
8
|
+
FieldSet.install = function(app: App) {
|
|
9
|
+
app.component(FieldSet.name, FieldSet);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// const CBigTable: SFCWithInstall<typeof BigTable> = BigTable; // 增加类型
|
|
13
|
+
|
|
14
|
+
// 默认导出组件
|
|
15
|
+
export default FieldSet;
|
|
@@ -128,7 +128,6 @@ export default create({
|
|
|
128
128
|
</script>
|
|
129
129
|
<script lang="ts" setup>
|
|
130
130
|
import { reactive, onMounted, computed, ref, toRefs } from "vue";
|
|
131
|
-
import { useRoute, useRouter } from "vue-router";
|
|
132
131
|
import draggable from "vuedraggable";
|
|
133
132
|
import { NButton, NCheckbox, NSpin, NTooltip } from "naive-ui";
|
|
134
133
|
|
|
@@ -170,7 +169,6 @@ type Istate = {
|
|
|
170
169
|
};
|
|
171
170
|
fields: Ifields[];
|
|
172
171
|
};
|
|
173
|
-
const route = useRoute();
|
|
174
172
|
|
|
175
173
|
const emit = defineEmits(["onSave", "onClose"]);
|
|
176
174
|
|
|
@@ -216,10 +214,6 @@ const leftStyle = (ele: Ifields) => {
|
|
|
216
214
|
|
|
217
215
|
const isMiddleAndAdmin = computed(() => props.menuSource == "middle");
|
|
218
216
|
|
|
219
|
-
const isMenuSource = computed(() => {
|
|
220
|
-
return route.fullPath.includes("middleListDetail");
|
|
221
|
-
});
|
|
222
|
-
|
|
223
217
|
const showCheckBox = (key: string) => {
|
|
224
218
|
return state.fields.some((i: Ifields) => Object.prototype.hasOwnProperty.call(i, key));
|
|
225
219
|
};
|
package/packages/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { App } from "vue";
|
|
|
2
2
|
// 导入组件
|
|
3
3
|
import { default as CGrid } from './grid';
|
|
4
4
|
import { default as CBigTable } from './big-table';
|
|
5
|
+
import { default as CFieldSet } from './field-set';
|
|
5
6
|
import { default as CDragLayout } from './drag-layout';
|
|
6
7
|
import { default as CButtonPrint } from './button-print';
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ import { default as CButtonPrint } from './button-print';
|
|
|
9
10
|
const components: any[] = [
|
|
10
11
|
CGrid,
|
|
11
12
|
CBigTable,
|
|
13
|
+
CFieldSet,
|
|
12
14
|
CDragLayout,
|
|
13
15
|
CButtonPrint
|
|
14
16
|
];
|
|
@@ -23,6 +25,7 @@ const install = function(app: App) {
|
|
|
23
25
|
export {
|
|
24
26
|
CGrid,
|
|
25
27
|
CBigTable,
|
|
28
|
+
CFieldSet,
|
|
26
29
|
CDragLayout,
|
|
27
30
|
CButtonPrint
|
|
28
31
|
}
|