sprintify-ui 0.0.61 → 0.0.63
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/sprintify-ui.es.js +8 -7
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +3 -3
- package/dist/types/src/types/Notification.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/BaseDataTable.vue +1 -0
- package/src/components/BaseTable.vue +2 -2
- package/src/components/BaseTableColumn.vue +7 -3
- package/src/types/Notification.ts +1 -1
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -6233,7 +6233,7 @@ const Wu = {
|
|
|
6233
6233
|
function Ju(e, n, r, l, o, a) {
|
|
6234
6234
|
return b(), T("svg", Wu, Yu);
|
|
6235
6235
|
}
|
|
6236
|
-
const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f9"]]), Zu = (e) => (Il("data-v-
|
|
6236
|
+
const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f9"]]), Zu = (e) => (Il("data-v-225c4996"), e = e(), El(), e), Xu = { class: "relative w-full overflow-hidden" }, ec = { class: "flex flex-col" }, tc = { class: "inline-block min-w-full align-middle" }, nc = { class: "relative min-h-[300px]" }, rc = { class: "min-w-full border-separate border-spacing-0" }, oc = {
|
|
6237
6237
|
key: 0,
|
|
6238
6238
|
class: "th"
|
|
6239
6239
|
}, lc = {
|
|
@@ -6335,7 +6335,7 @@ const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
|
|
|
6335
6335
|
function y() {
|
|
6336
6336
|
L.value && (S.value = L.value.clientHeight);
|
|
6337
6337
|
}
|
|
6338
|
-
const A = E(() => w.value), t = E(() => A.value ? A.value.filter((N) => N.
|
|
6338
|
+
const A = E(() => w.value), t = E(() => A.value ? A.value.filter((N) => N.toggle === !1 ? !!N.visible : !!(!Xe(l.visibleColumns) || l.visibleColumns.includes(N.newKey))) : A.value), O = E(() => {
|
|
6339
6339
|
let N = t.value.length;
|
|
6340
6340
|
return N += l.checkable ? 1 : 0, N += l.detailed ? 1 : 0, N;
|
|
6341
6341
|
}), D = E(() => l.detailed);
|
|
@@ -6710,7 +6710,7 @@ const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
|
|
|
6710
6710
|
};
|
|
6711
6711
|
}
|
|
6712
6712
|
});
|
|
6713
|
-
const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-
|
|
6713
|
+
const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-225c4996"]]), Jo = K({
|
|
6714
6714
|
name: "BaseTableColumn",
|
|
6715
6715
|
props: {
|
|
6716
6716
|
label: {
|
|
@@ -6750,8 +6750,8 @@ const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-756da018"]]), Jo = K({
|
|
|
6750
6750
|
type: Boolean
|
|
6751
6751
|
},
|
|
6752
6752
|
visible: {
|
|
6753
|
-
|
|
6754
|
-
|
|
6753
|
+
default: !0,
|
|
6754
|
+
type: Boolean
|
|
6755
6755
|
},
|
|
6756
6756
|
toggle: {
|
|
6757
6757
|
type: Boolean,
|
|
@@ -6799,7 +6799,7 @@ const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-756da018"]]), Jo = K({
|
|
|
6799
6799
|
}
|
|
6800
6800
|
},
|
|
6801
6801
|
created() {
|
|
6802
|
-
this.newKey = this.nextSequence(), this.addColumn(this);
|
|
6802
|
+
this.customKey ? this.newKey = this.customKey + "" : this.newKey = this.nextSequence(), this.addColumn(this);
|
|
6803
6803
|
},
|
|
6804
6804
|
beforeUnmount() {
|
|
6805
6805
|
this.removeColumn(this);
|
|
@@ -7061,7 +7061,8 @@ const Dc = /* @__PURE__ */ Ne(Lc, [["render", Fc]]), Pc = { class: "flex justify
|
|
|
7061
7061
|
Y(u.$slots, "default"),
|
|
7062
7062
|
z(Jo, {
|
|
7063
7063
|
visible: e.editButton || e.deleteButton || u.$slots.rowActions != null,
|
|
7064
|
-
toggle: !1
|
|
7064
|
+
toggle: !1,
|
|
7065
|
+
"custom-key": "actions"
|
|
7065
7066
|
}, {
|
|
7066
7067
|
default: H(({ row: se }) => [
|
|
7067
7068
|
v("div", Pc, [
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@charset "UTF-8";.spinner[data-v-945515f9]{animation:rotate-945515f9 1s linear infinite;-webkit-animation:rotate-945515f9 1s linear infinite;-moz-animation:rotate-945515f9 1s linear infinite}@keyframes rotate-945515f9{to{transform:rotate(360deg)}}.path[data-v-945515f9]{stroke-dasharray:170;stroke-dashoffset:20}.th[data-v-
|
|
1
|
+
@charset "UTF-8";.spinner[data-v-945515f9]{animation:rotate-945515f9 1s linear infinite;-webkit-animation:rotate-945515f9 1s linear infinite;-moz-animation:rotate-945515f9 1s linear infinite}@keyframes rotate-945515f9{to{transform:rotate(360deg)}}.path[data-v-945515f9]{stroke-dasharray:170;stroke-dashoffset:20}.th[data-v-225c4996]{background-color:rgb(248 250 252 / var(--tw-bg-opacity));position:sticky;top:0px;z-index:1;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity));--tw-bg-opacity: .75;--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}circle[data-v-e5ae83e3]{transition:stroke-dashoffset .35s;transform:rotate(-90deg);transform-origin:50% 50%}/*!
|
|
2
2
|
* Pikaday
|
|
3
3
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/
|
|
4
4
|
*/.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.pika-single:before,.pika-single:after{content:" ";display:table}.pika-single:after{clear:both}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px #00000080}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;opacity:0}.pika-prev,.pika-next{display:block;cursor:pointer;position:relative;outline:none;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5}.pika-prev:hover,.pika-next:hover{opacity:1}.pika-prev,.is-rtl .pika-next{float:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==)}.pika-next,.is-rtl .pika-prev{float:right;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=)}.pika-select{display:inline-block}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table th,.pika-table td{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:none;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5;height:initial}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.is-selected .pika-button,.has-event .pika-button{color:#fff;font-weight:700;background:#33aaff;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.has-event .pika-button{background:#005da9;box-shadow:inset 0 1px 3px #0076c9}.is-disabled .pika-button,.is-inrange .pika-button{background:#D5E9F7}.is-startrange .pika-button{color:#fff;background:#6CB31D;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#33aaff;box-shadow:none;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.is-outside-current-month .pika-button{color:#999;opacity:.3}.is-selection-disabled{pointer-events:none;cursor:default}.pika-button:hover,.pika-row.pick-whole-week:hover .pika-button{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:none;cursor:help}.pikaday-white{--backgroundColor: #ffffff;--textColor: #718096;--currentDateTextColor: #3182ce;--selectedDateBackgroundColor: #3182ce;--selectedDateTextColor: #ffffff;--labelTextColor: #4a5568;--weekDaysTextColor: #a0aec0;font-family:inherit;background-color:var(--backgroundColor);padding:.5rem;z-index:2000;margin:6px 0 0;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:.5rem}.pikaday-white .pika-title{width:100%;text-align:center;display:flex;justify-content:flex-start;margin-bottom:5px}.pikaday-white .pika-prev,.pikaday-white .pika-next{position:absolute;outline:none;padding:0;width:26px;height:26px;top:-1px;display:inline-block;margin-top:0;cursor:pointer;text-indent:-9999px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;opacity:.7}.pikaday-white .pika-prev:hover,.pikaday-white .pika-next:hover{opacity:1}.pikaday-white .pika-prev{right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'%3E%3C/path%3E%3C/svg%3E")}.pikaday-white .pika-next{right:2px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E")}.pika-prev.is-disabled,.pika-next.is-disabled{cursor:default;opacity:.2}.pikaday-white .pika-label{margin-right:.375rem;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity));padding:.25rem .5rem;font-size:14px;font-weight:500;line-height:1}.pikaday-white .pika-label{position:relative}.pikaday-white .pika-select-month,.pikaday-white .pika-select-year{width:100%;cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:0;opacity:0;padding:0}.pikaday-white table{width:100%;border-collapse:collapse}.pikaday-white table th{width:2em;height:2em;font-weight:400;color:var(--weekDaysTextColor);text-align:center}.pikaday-white table th abbr{text-decoration:none}.pikaday-white table td{padding:1px}.pikaday-white table td button{width:2em;height:2em;text-align:center;border-radius:9999px;background-color:var(--backgroundColor)}.pikaday-white table td button:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.pikaday-white table td.is-today button{color:var(--currentDateTextColor)}.pikaday-white table td.is-selected button{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));font-weight:400}.pikaday-white table td button{color:var(--textColor)}[aria-label][role~=tooltip]{position:relative}[aria-label][role~=tooltip]:before,[aria-label][role~=tooltip]:after{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;transition:all var(--microtip-transition-duration, .18s) var(--microtip-transition-easing, ease-in-out) var(--microtip-transition-delay, 0s);position:absolute;box-sizing:border-box;z-index:10;transform-origin:top}[aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}[aria-label][role~=tooltip]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size, 13px);font-weight:var(--microtip-font-weight, normal);text-transform:var(--microtip-text-transform, none);padding:.5em 1em;white-space:nowrap;box-sizing:content-box}[aria-label][role~=tooltip]:hover:before,[aria-label][role~=tooltip]:hover:after,[aria-label][role~=tooltip]:focus:before,[aria-label][role~=tooltip]:focus:after{opacity:1;pointer-events:auto}[role~=tooltip][data-microtip-position|=top]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-bottom:5px}[role~=tooltip][data-microtip-position|=top]:after{margin-bottom:11px}[role~=tooltip][data-microtip-position|=top]:before{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position|=top]:after{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position=top]:hover:after{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position=top-left]:after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}[role~=tooltip][data-microtip-position=top-right]:after{transform:translate3d(calc(0% - 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(calc(0% - 16px),-5px,0)}[role~=tooltip][data-microtip-position|=bottom]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0}[role~=tooltip][data-microtip-position|=bottom]:after{margin-top:11px}[role~=tooltip][data-microtip-position|=bottom]:before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%}[role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position|=bottom]:after{transform:translate3d(-50%,-10px,0);top:100%;left:50%}[role~=tooltip][data-microtip-position=bottom]:hover:after{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position=bottom-left]:after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}[role~=tooltip][data-microtip-position=bottom-right]:after{transform:translate3d(calc(0% - 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(calc(0% - 16px),0,0)}[role~=tooltip][data-microtip-position=left]:before,[role~=tooltip][data-microtip-position=left]:after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}[role~=tooltip][data-microtip-position=left]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0}[role~=tooltip][data-microtip-position=left]:after{margin-right:11px}[role~=tooltip][data-microtip-position=left]:hover:before,[role~=tooltip][data-microtip-position=left]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-position=right]:before,[role~=tooltip][data-microtip-position=right]:after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}[role~=tooltip][data-microtip-position=right]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px}[role~=tooltip][data-microtip-position=right]:after{margin-left:11px}[role~=tooltip][data-microtip-position=right]:hover:before,[role~=tooltip][data-microtip-position=right]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-size=small]:after{white-space:initial;width:80px}[role~=tooltip][data-microtip-size=medium]:after{white-space:initial;width:150px}[role~=tooltip][data-microtip-size=large]:after{white-space:initial;width:260px}input::-moz-placeholder,textarea::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(148 163 184 / var(--tw-placeholder-opacity))}input::placeholder,textarea::placeholder{--tw-placeholder-opacity: 1;color:rgb(148 163 184 / var(--tw-placeholder-opacity))}[aria-label][role~=tooltip]:after{white-space:pre-line}
|
|
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
};
|
|
39
39
|
visible: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
40
|
default: boolean;
|
|
41
|
+
type: BooleanConstructor;
|
|
42
42
|
};
|
|
43
43
|
toggle: {
|
|
44
44
|
type: BooleanConstructor;
|
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
addColumn: any;
|
|
72
72
|
removeColumn: any;
|
|
73
73
|
}, {
|
|
74
|
-
newKey: undefined;
|
|
74
|
+
newKey: string | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
style(): {
|
|
77
77
|
width: string | undefined;
|
|
@@ -114,8 +114,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
114
|
type: BooleanConstructor;
|
|
115
115
|
};
|
|
116
116
|
visible: {
|
|
117
|
-
type: BooleanConstructor;
|
|
118
117
|
default: boolean;
|
|
118
|
+
type: BooleanConstructor;
|
|
119
119
|
};
|
|
120
120
|
toggle: {
|
|
121
121
|
type: BooleanConstructor;
|
package/package.json
CHANGED
|
@@ -419,8 +419,8 @@ const visibleColumns = computed(() => {
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
return newColumns.value.filter((column: BaseTableColumn) => {
|
|
422
|
-
if (column.
|
|
423
|
-
return
|
|
422
|
+
if (column.toggle === false) {
|
|
423
|
+
return !!column.visible;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
if (!isArray(props.visibleColumns)) {
|
|
@@ -41,8 +41,8 @@ export default defineComponent({
|
|
|
41
41
|
type: Boolean,
|
|
42
42
|
},
|
|
43
43
|
visible: {
|
|
44
|
-
type: Boolean,
|
|
45
44
|
default: true,
|
|
45
|
+
type: Boolean,
|
|
46
46
|
},
|
|
47
47
|
toggle: {
|
|
48
48
|
type: Boolean,
|
|
@@ -84,7 +84,7 @@ export default defineComponent({
|
|
|
84
84
|
},
|
|
85
85
|
data() {
|
|
86
86
|
return {
|
|
87
|
-
newKey: undefined,
|
|
87
|
+
newKey: undefined as string | undefined,
|
|
88
88
|
};
|
|
89
89
|
},
|
|
90
90
|
computed: {
|
|
@@ -95,7 +95,11 @@ export default defineComponent({
|
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
97
|
created() {
|
|
98
|
-
|
|
98
|
+
if (this.customKey) {
|
|
99
|
+
this.newKey = this.customKey + '';
|
|
100
|
+
} else {
|
|
101
|
+
this.newKey = this.nextSequence();
|
|
102
|
+
}
|
|
99
103
|
this.addColumn(this);
|
|
100
104
|
},
|
|
101
105
|
beforeUnmount() {
|