hy-dispatch-ui-v3 0.1.0
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/tailwind.css +1083 -0
- package/es/bussiness/index.mjs +2 -0
- package/es/bussiness/index.mjs.map +1 -0
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +204 -0
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs.map +1 -0
- package/es/components/appConfirmDialog/appConfirmMethod.mjs +73 -0
- package/es/components/appConfirmDialog/appConfirmMethod.mjs.map +1 -0
- package/es/components/appConfirmDialog/index.mjs +8 -0
- package/es/components/appConfirmDialog/index.mjs.map +1 -0
- package/es/components/appConfirmDialog/style/appConfirmDialog.scss +5 -0
- package/es/components/appDatePicker/appDatePicker.vue.mjs +99 -0
- package/es/components/appDatePicker/appDatePicker.vue.mjs.map +1 -0
- package/es/components/appDatePicker/index.mjs +7 -0
- package/es/components/appDatePicker/index.mjs.map +1 -0
- package/es/components/appDatePicker/style/appDatePicker.scss +0 -0
- package/es/components/appForm/appForm.vue.mjs +331 -0
- package/es/components/appForm/appForm.vue.mjs.map +1 -0
- package/es/components/appForm/index.mjs +8 -0
- package/es/components/appForm/index.mjs.map +1 -0
- package/es/components/appForm/js/index.mjs +87 -0
- package/es/components/appForm/js/index.mjs.map +1 -0
- package/es/components/appForm/js/useAppForm.mjs +149 -0
- package/es/components/appForm/js/useAppForm.mjs.map +1 -0
- package/es/components/appForm/style/appForm.scss +16 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs +229 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs.map +1 -0
- package/es/components/appOrgCascader/index.mjs +7 -0
- package/es/components/appOrgCascader/index.mjs.map +1 -0
- package/es/components/appOrgCascader/style/appOrgCascader.scss +0 -0
- package/es/components/appSearch/appSearch.vue.mjs +408 -0
- package/es/components/appSearch/appSearch.vue.mjs.map +1 -0
- package/es/components/appSearch/index.mjs +8 -0
- package/es/components/appSearch/index.mjs.map +1 -0
- package/es/components/appSearch/js/index.mjs +114 -0
- package/es/components/appSearch/js/index.mjs.map +1 -0
- package/es/components/appSearch/js/useAppSearch.mjs +178 -0
- package/es/components/appSearch/js/useAppSearch.mjs.map +1 -0
- package/es/components/appSearch/style/appSearch.scss +53 -0
- package/es/components/appTable/appTable.vue.mjs +578 -0
- package/es/components/appTable/appTable.vue.mjs.map +1 -0
- package/es/components/appTable/cpns/columnSelect.vue.mjs +414 -0
- package/es/components/appTable/cpns/columnSelect.vue.mjs.map +1 -0
- package/es/components/appTable/index.mjs +8 -0
- package/es/components/appTable/index.mjs.map +1 -0
- package/es/components/appTable/js/index.mjs +304 -0
- package/es/components/appTable/js/index.mjs.map +1 -0
- package/es/components/appTable/js/search.mjs +129 -0
- package/es/components/appTable/js/search.mjs.map +1 -0
- package/es/components/appTable/js/useAppTable.mjs +63 -0
- package/es/components/appTable/js/useAppTable.mjs.map +1 -0
- package/es/components/appTable/style/appTable.scss +15 -0
- package/es/components/appTooltip/appTooltip.vue.mjs +94 -0
- package/es/components/appTooltip/appTooltip.vue.mjs.map +1 -0
- package/es/components/appTooltip/index.mjs +7 -0
- package/es/components/appTooltip/index.mjs.map +1 -0
- package/es/components/appTooltip/style/appTooltip.scss +0 -0
- package/es/components/index.mjs +12 -0
- package/es/components/index.mjs.map +1 -0
- package/es/components/svgIcon/iconBox.vue.mjs +99 -0
- package/es/components/svgIcon/iconBox.vue.mjs.map +1 -0
- package/es/components/svgIcon/index.mjs +9 -0
- package/es/components/svgIcon/index.mjs.map +1 -0
- package/es/components/svgIcon/style/iconBox.scss +13 -0
- package/es/components/svgIcon/style/svgIcon.scss +12 -0
- package/es/components/svgIcon/svgIcon.vue.mjs +47 -0
- package/es/components/svgIcon/svgIcon.vue.mjs.map +1 -0
- package/es/config/index.mjs +2 -0
- package/es/config/index.mjs.map +1 -0
- package/es/constants/index.mjs +4 -0
- package/es/constants/index.mjs.map +1 -0
- package/es/constants/keys.mjs +2 -0
- package/es/constants/keys.mjs.map +1 -0
- package/es/hooks/index.mjs +5 -0
- package/es/hooks/index.mjs.map +1 -0
- package/es/hooks/useApi.mjs +10 -0
- package/es/hooks/useApi.mjs.map +1 -0
- package/es/hooks/useGlobalConfig.mjs +56 -0
- package/es/hooks/useGlobalConfig.mjs.map +1 -0
- package/es/hooks/useLocale.mjs +34 -0
- package/es/hooks/useLocale.mjs.map +1 -0
- package/es/hooks/useMixins.mjs +19 -0
- package/es/hooks/useMixins.mjs.map +1 -0
- package/es/index.mjs +30 -0
- package/es/index.mjs.map +1 -0
- package/es/locale/en_US.mjs +67 -0
- package/es/locale/en_US.mjs.map +1 -0
- package/es/locale/index.mjs +3 -0
- package/es/locale/index.mjs.map +1 -0
- package/es/locale/zh_CN.mjs +67 -0
- package/es/locale/zh_CN.mjs.map +1 -0
- package/es/make-installer.mjs +29 -0
- package/es/make-installer.mjs.map +1 -0
- package/es/store/index.mjs +7 -0
- package/es/store/index.mjs.map +1 -0
- package/es/store/maintain.mjs +90 -0
- package/es/store/maintain.mjs.map +1 -0
- package/es/style/index.scss +46 -0
- package/es/style/tailwind.scss +3 -0
- package/es/style/theme.scss +123 -0
- package/es/utils/adaptive.mjs +30 -0
- package/es/utils/adaptive.mjs.map +1 -0
- package/es/utils/bus.mjs +6 -0
- package/es/utils/bus.mjs.map +1 -0
- package/es/utils/crypto.mjs +21 -0
- package/es/utils/crypto.mjs.map +1 -0
- package/es/utils/date.mjs +25 -0
- package/es/utils/date.mjs.map +1 -0
- package/es/utils/handler.mjs +83 -0
- package/es/utils/handler.mjs.map +1 -0
- package/es/utils/index.mjs +7 -0
- package/es/utils/index.mjs.map +1 -0
- package/es/utils/is.mjs +19 -0
- package/es/utils/is.mjs.map +1 -0
- package/es/version.mjs +4 -0
- package/es/version.mjs.map +1 -0
- package/lib/bussiness/index.js +3 -0
- package/lib/bussiness/index.js.map +1 -0
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +208 -0
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js.map +1 -0
- package/lib/components/appConfirmDialog/appConfirmMethod.js +77 -0
- package/lib/components/appConfirmDialog/appConfirmMethod.js.map +1 -0
- package/lib/components/appConfirmDialog/index.js +13 -0
- package/lib/components/appConfirmDialog/index.js.map +1 -0
- package/lib/components/appConfirmDialog/style/appConfirmDialog.scss +5 -0
- package/lib/components/appDatePicker/appDatePicker.vue.js +103 -0
- package/lib/components/appDatePicker/appDatePicker.vue.js.map +1 -0
- package/lib/components/appDatePicker/index.js +12 -0
- package/lib/components/appDatePicker/index.js.map +1 -0
- package/lib/components/appDatePicker/style/appDatePicker.scss +0 -0
- package/lib/components/appForm/appForm.vue.js +335 -0
- package/lib/components/appForm/appForm.vue.js.map +1 -0
- package/lib/components/appForm/index.js +14 -0
- package/lib/components/appForm/index.js.map +1 -0
- package/lib/components/appForm/js/index.js +93 -0
- package/lib/components/appForm/js/index.js.map +1 -0
- package/lib/components/appForm/js/useAppForm.js +152 -0
- package/lib/components/appForm/js/useAppForm.js.map +1 -0
- package/lib/components/appForm/style/appForm.scss +16 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js +233 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js.map +1 -0
- package/lib/components/appOrgCascader/index.js +12 -0
- package/lib/components/appOrgCascader/index.js.map +1 -0
- package/lib/components/appOrgCascader/style/appOrgCascader.scss +0 -0
- package/lib/components/appSearch/appSearch.vue.js +412 -0
- package/lib/components/appSearch/appSearch.vue.js.map +1 -0
- package/lib/components/appSearch/index.js +14 -0
- package/lib/components/appSearch/index.js.map +1 -0
- package/lib/components/appSearch/js/index.js +122 -0
- package/lib/components/appSearch/js/index.js.map +1 -0
- package/lib/components/appSearch/js/useAppSearch.js +181 -0
- package/lib/components/appSearch/js/useAppSearch.js.map +1 -0
- package/lib/components/appSearch/style/appSearch.scss +53 -0
- package/lib/components/appTable/appTable.vue.js +582 -0
- package/lib/components/appTable/appTable.vue.js.map +1 -0
- package/lib/components/appTable/cpns/columnSelect.vue.js +418 -0
- package/lib/components/appTable/cpns/columnSelect.vue.js.map +1 -0
- package/lib/components/appTable/index.js +14 -0
- package/lib/components/appTable/index.js.map +1 -0
- package/lib/components/appTable/js/index.js +311 -0
- package/lib/components/appTable/js/index.js.map +1 -0
- package/lib/components/appTable/js/search.js +131 -0
- package/lib/components/appTable/js/search.js.map +1 -0
- package/lib/components/appTable/js/useAppTable.js +65 -0
- package/lib/components/appTable/js/useAppTable.js.map +1 -0
- package/lib/components/appTable/style/appTable.scss +15 -0
- package/lib/components/appTooltip/appTooltip.vue.js +98 -0
- package/lib/components/appTooltip/appTooltip.vue.js.map +1 -0
- package/lib/components/appTooltip/index.js +12 -0
- package/lib/components/appTooltip/index.js.map +1 -0
- package/lib/components/appTooltip/style/appTooltip.scss +0 -0
- package/lib/components/index.js +29 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/svgIcon/iconBox.vue.js +103 -0
- package/lib/components/svgIcon/iconBox.vue.js.map +1 -0
- package/lib/components/svgIcon/index.js +15 -0
- package/lib/components/svgIcon/index.js.map +1 -0
- package/lib/components/svgIcon/style/iconBox.scss +13 -0
- package/lib/components/svgIcon/style/svgIcon.scss +12 -0
- package/lib/components/svgIcon/svgIcon.vue.js +51 -0
- package/lib/components/svgIcon/svgIcon.vue.js.map +1 -0
- package/lib/config/index.js +3 -0
- package/lib/config/index.js.map +1 -0
- package/lib/constants/index.js +6 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/keys.js +3 -0
- package/lib/constants/keys.js.map +1 -0
- package/lib/hooks/index.js +21 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useApi.js +13 -0
- package/lib/hooks/useApi.js.map +1 -0
- package/lib/hooks/useGlobalConfig.js +59 -0
- package/lib/hooks/useGlobalConfig.js.map +1 -0
- package/lib/hooks/useLocale.js +41 -0
- package/lib/hooks/useLocale.js.map +1 -0
- package/lib/hooks/useMixins.js +21 -0
- package/lib/hooks/useMixins.js.map +1 -0
- package/lib/index.js +85 -0
- package/lib/index.js.map +1 -0
- package/lib/locale/en_US.js +71 -0
- package/lib/locale/en_US.js.map +1 -0
- package/lib/locale/index.js +10 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/zh_CN.js +71 -0
- package/lib/locale/zh_CN.js.map +1 -0
- package/lib/make-installer.js +33 -0
- package/lib/make-installer.js.map +1 -0
- package/lib/store/index.js +10 -0
- package/lib/store/index.js.map +1 -0
- package/lib/store/maintain.js +92 -0
- package/lib/store/maintain.js.map +1 -0
- package/lib/style/index.scss +46 -0
- package/lib/style/tailwind.scss +3 -0
- package/lib/style/theme.scss +123 -0
- package/lib/utils/adaptive.js +35 -0
- package/lib/utils/adaptive.js.map +1 -0
- package/lib/utils/bus.js +8 -0
- package/lib/utils/bus.js.map +1 -0
- package/lib/utils/crypto.js +25 -0
- package/lib/utils/crypto.js.map +1 -0
- package/lib/utils/date.js +27 -0
- package/lib/utils/date.js.map +1 -0
- package/lib/utils/handler.js +89 -0
- package/lib/utils/handler.js.map +1 -0
- package/lib/utils/index.js +38 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/is.js +32 -0
- package/lib/utils/is.js.map +1 -0
- package/lib/version.js +6 -0
- package/lib/version.js.map +1 -0
- package/package.json +102 -0
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var Sortable = require('sortablejs');
|
|
7
|
+
var elementPlus = require('element-plus');
|
|
8
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
+
var index = require('../../appTooltip/index.js');
|
|
10
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
11
|
+
var is = require('../../../utils/is.js');
|
|
12
|
+
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: "columnSelect",
|
|
15
|
+
props: {
|
|
16
|
+
columns: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
columnsEditable: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => ({})
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: ["confirm"],
|
|
26
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const emits = __emit;
|
|
29
|
+
const { t } = useLocale.useLocale();
|
|
30
|
+
const popoverRef = vue.useTemplateRef("popoverRef");
|
|
31
|
+
const listRef = vue.useTemplateRef("listRef");
|
|
32
|
+
const tableColumns = vue.ref([]);
|
|
33
|
+
const tableEditableColumns = vue.ref([]);
|
|
34
|
+
const showColumnsLength = vue.computed(() => {
|
|
35
|
+
return (tableColumns.value || []).reduce((total, column) => {
|
|
36
|
+
return total + (isFilterColumn(column) ? 0 : 1);
|
|
37
|
+
}, 0);
|
|
38
|
+
});
|
|
39
|
+
function isFilterColumn(column) {
|
|
40
|
+
return !column.editable.edit || column.prop === "operator";
|
|
41
|
+
}
|
|
42
|
+
function showPopover() {
|
|
43
|
+
initColumnsInfo();
|
|
44
|
+
rowDrag();
|
|
45
|
+
}
|
|
46
|
+
function closePopover() {
|
|
47
|
+
var _a, _b, _c;
|
|
48
|
+
(_a = sortableInstance == null ? void 0 : sortableInstance.destroy) == null ? void 0 : _a.call(sortableInstance);
|
|
49
|
+
sortableInstance = null;
|
|
50
|
+
(_c = (_b = popoverRef.value) == null ? void 0 : _b.hide) == null ? void 0 : _c.call(_b);
|
|
51
|
+
}
|
|
52
|
+
function initColumnsInfo() {
|
|
53
|
+
const checkedArr = [];
|
|
54
|
+
tableEditableColumns.value = props.columns.reduce((list, column, index) => {
|
|
55
|
+
if (!isFilterColumn(column) && !column.editable.lock) {
|
|
56
|
+
list.push({
|
|
57
|
+
...column,
|
|
58
|
+
sortIndex: index
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return list;
|
|
62
|
+
}, []);
|
|
63
|
+
for (const key in props.columnsEditable || {}) {
|
|
64
|
+
const target = props.columnsEditable[key];
|
|
65
|
+
const { column } = target;
|
|
66
|
+
if (isFilterColumn(column) || column.editable.lock) {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
if (target.checked) {
|
|
70
|
+
checkedArr.push(column.prop);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
checkedList.value = checkedArr;
|
|
74
|
+
}
|
|
75
|
+
const checkedList = vue.ref([]);
|
|
76
|
+
const checkMap = vue.computed(() => {
|
|
77
|
+
return (vue.unref(checkedList) || []).reduce((map, item) => {
|
|
78
|
+
map.set(item);
|
|
79
|
+
return map;
|
|
80
|
+
}, /* @__PURE__ */ new Map());
|
|
81
|
+
});
|
|
82
|
+
function onCheckHandler(target) {
|
|
83
|
+
if (target.editable.lock) return;
|
|
84
|
+
const currentIndex = checkedList.value.findIndex((item) => item === target.prop);
|
|
85
|
+
if (currentIndex !== -1) {
|
|
86
|
+
checkedList.value.splice(currentIndex, 1);
|
|
87
|
+
} else {
|
|
88
|
+
checkedList.value.push(target.prop);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function onConfirmHandler() {
|
|
92
|
+
var _a;
|
|
93
|
+
if (!checkedList.value.length && showColumnsLength.value === ((_a = tableEditableColumns.value) == null ? void 0 : _a.length)) {
|
|
94
|
+
elementPlus.ElMessage.warning(t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (checkedList.value.length >= 15) {
|
|
98
|
+
elementPlus.ElMessage.warning(t("table.maxColumnLimitTip"));
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const editableObj = tableEditableColumns.value.reduce((editableObj2, column) => {
|
|
102
|
+
editableObj2[column.prop].index = column.sortIndex;
|
|
103
|
+
editableObj2[column.prop].checked = checkMap.value.has(column.prop);
|
|
104
|
+
return editableObj2;
|
|
105
|
+
}, { ...props.columnsEditable });
|
|
106
|
+
emits("confirm", editableObj);
|
|
107
|
+
closePopover();
|
|
108
|
+
}
|
|
109
|
+
function onClearHandler() {
|
|
110
|
+
checkedList.value = [];
|
|
111
|
+
}
|
|
112
|
+
let sortableInstance;
|
|
113
|
+
async function rowDrag() {
|
|
114
|
+
await vue.nextTick();
|
|
115
|
+
const tbody = listRef.value;
|
|
116
|
+
if (!tbody) return;
|
|
117
|
+
sortableInstance = Sortable.create(tbody, {
|
|
118
|
+
handle: ".handle",
|
|
119
|
+
animation: 150,
|
|
120
|
+
onEnd(event) {
|
|
121
|
+
const { oldIndex, newIndex } = event;
|
|
122
|
+
if (is.isEmpty(oldIndex) || is.isEmpty(newIndex) || oldIndex === newIndex) return;
|
|
123
|
+
const newSortIndex = tableEditableColumns.value[newIndex].sortIndex;
|
|
124
|
+
tableEditableColumns.value[newIndex].sortIndex = tableEditableColumns.value[oldIndex].sortIndex;
|
|
125
|
+
tableEditableColumns.value[oldIndex].sortIndex = newSortIndex;
|
|
126
|
+
if (oldIndex < newIndex) {
|
|
127
|
+
tableEditableColumns.value.splice(oldIndex, 1, tableEditableColumns.value.splice(newIndex, 1, tableEditableColumns.value[oldIndex])[0]);
|
|
128
|
+
} else {
|
|
129
|
+
tableEditableColumns.value.splice(newIndex, 1, tableEditableColumns.value.splice(oldIndex, 1, tableEditableColumns.value[newIndex])[0]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
vue.watch(() => props.columns, () => {
|
|
135
|
+
tableColumns.value = [...props.columns || []];
|
|
136
|
+
closePopover();
|
|
137
|
+
}, { immediate: true, deep: true });
|
|
138
|
+
__expose({
|
|
139
|
+
close: closePopover
|
|
140
|
+
});
|
|
141
|
+
return (_ctx, _cache) => {
|
|
142
|
+
return vue.openBlock(), vue.createBlock(
|
|
143
|
+
vue.unref(elementPlus.ElPopover),
|
|
144
|
+
{
|
|
145
|
+
ref_key: "popoverRef",
|
|
146
|
+
ref: popoverRef,
|
|
147
|
+
trigger: "click",
|
|
148
|
+
placement: "left-start",
|
|
149
|
+
"popper-class": "!bg-dialog_background !p-0",
|
|
150
|
+
effect: "dark",
|
|
151
|
+
width: "400",
|
|
152
|
+
"show-arrow": false,
|
|
153
|
+
onShow: showPopover,
|
|
154
|
+
onHide: closePopover
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
reference: vue.withCtx(() => [
|
|
158
|
+
vue.createElementVNode("div", { class: "flex items-center gap-[10px] clickBox px-3 rounded hover:bg-backgroundv2" }, [
|
|
159
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
160
|
+
default: vue.withCtx(() => [
|
|
161
|
+
vue.createVNode(vue.unref(iconsVue.Edit))
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
/* STABLE */
|
|
165
|
+
}),
|
|
166
|
+
vue.createElementVNode(
|
|
167
|
+
"span",
|
|
168
|
+
null,
|
|
169
|
+
vue.toDisplayString(vue.unref(t)("table.editColumn")) + " \xB7 " + vue.toDisplayString(showColumnsLength.value),
|
|
170
|
+
1
|
|
171
|
+
/* TEXT */
|
|
172
|
+
)
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
default: vue.withCtx(() => {
|
|
176
|
+
var _a, _b, _c;
|
|
177
|
+
return [
|
|
178
|
+
vue.createElementVNode("div", { class: "column-select-draggable text-sm text-main" }, [
|
|
179
|
+
vue.createElementVNode("div", { class: "h-[38px] flex items-center justify-between pl-[15px] pr-2 border-b border-border" }, [
|
|
180
|
+
vue.createElementVNode(
|
|
181
|
+
"span",
|
|
182
|
+
{ class: "text-main font-bold" },
|
|
183
|
+
vue.toDisplayString(vue.unref(t)("table.editColumn")),
|
|
184
|
+
1
|
|
185
|
+
/* TEXT */
|
|
186
|
+
),
|
|
187
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
188
|
+
class: "clickBox",
|
|
189
|
+
color: "var(--dangerv2)",
|
|
190
|
+
size: "18",
|
|
191
|
+
onClick: closePopover
|
|
192
|
+
}, {
|
|
193
|
+
default: vue.withCtx(() => [
|
|
194
|
+
vue.createVNode(vue.unref(iconsVue.CircleClose))
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
/* STABLE */
|
|
198
|
+
})
|
|
199
|
+
]),
|
|
200
|
+
vue.createElementVNode("div", { class: "h-[364px] px-4 pt-[11px] pb-1 overflow-y-auto" }, [
|
|
201
|
+
vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup), {
|
|
202
|
+
modelValue: checkedList.value,
|
|
203
|
+
"onUpdate:modelValue": ($event) => checkedList.value = $event
|
|
204
|
+
}, {
|
|
205
|
+
default: vue.withCtx(() => [
|
|
206
|
+
vue.createElementVNode(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
class: vue.normalizeClass(["flex flex-col gap-1.5 leading-3 text-info", { "mb-1.5": tableEditableColumns.value.length > 0 }])
|
|
210
|
+
},
|
|
211
|
+
[
|
|
212
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
213
|
+
vue.Fragment,
|
|
214
|
+
null,
|
|
215
|
+
vue.renderList(__props.columns, (item, index$1) => {
|
|
216
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
217
|
+
vue.Fragment,
|
|
218
|
+
{ key: index$1 },
|
|
219
|
+
[
|
|
220
|
+
!isFilterColumn(item) && item.editable.lock ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
221
|
+
key: 0,
|
|
222
|
+
class: "h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-dialog_backgroundv2 hover:bg-dialog_backgroundv3"
|
|
223
|
+
}, [
|
|
224
|
+
item.editable.lock ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
225
|
+
key: 0,
|
|
226
|
+
size: "14",
|
|
227
|
+
color: "var(--info)",
|
|
228
|
+
class: "mr-2"
|
|
229
|
+
}, {
|
|
230
|
+
default: vue.withCtx(() => [
|
|
231
|
+
vue.createVNode(vue.unref(iconsVue.Lock))
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
/* STABLE */
|
|
235
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
236
|
+
vue.createElementVNode("div", { class: "w-0 flex-1" }, [
|
|
237
|
+
vue.createVNode(vue.unref(index.AppTooltip), {
|
|
238
|
+
"over-line": 1,
|
|
239
|
+
content: item.label
|
|
240
|
+
}, null, 8, ["content"])
|
|
241
|
+
])
|
|
242
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
243
|
+
],
|
|
244
|
+
64
|
|
245
|
+
/* STABLE_FRAGMENT */
|
|
246
|
+
);
|
|
247
|
+
}),
|
|
248
|
+
128
|
|
249
|
+
/* KEYED_FRAGMENT */
|
|
250
|
+
))
|
|
251
|
+
],
|
|
252
|
+
2
|
|
253
|
+
/* CLASS */
|
|
254
|
+
),
|
|
255
|
+
vue.createElementVNode(
|
|
256
|
+
"div",
|
|
257
|
+
{
|
|
258
|
+
ref_key: "listRef",
|
|
259
|
+
ref: listRef,
|
|
260
|
+
class: "flex flex-col gap-1.5 leading-3"
|
|
261
|
+
},
|
|
262
|
+
[
|
|
263
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
264
|
+
vue.Fragment,
|
|
265
|
+
null,
|
|
266
|
+
vue.renderList(tableEditableColumns.value, (item, index$1) => {
|
|
267
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
268
|
+
key: item.prop,
|
|
269
|
+
class: "h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-dialog_backgroundv2 hover:bg-dialog_backgroundv3",
|
|
270
|
+
"data-tag": index$1,
|
|
271
|
+
onClick: ($event) => onCheckHandler(item)
|
|
272
|
+
}, [
|
|
273
|
+
item.editable.lock ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
274
|
+
key: 0,
|
|
275
|
+
size: "14",
|
|
276
|
+
color: "var(--info)",
|
|
277
|
+
class: "mr-2"
|
|
278
|
+
}, {
|
|
279
|
+
default: vue.withCtx(() => [
|
|
280
|
+
vue.createVNode(vue.unref(iconsVue.Lock))
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
/* STABLE */
|
|
284
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), {
|
|
285
|
+
key: 1,
|
|
286
|
+
value: item.prop,
|
|
287
|
+
onClick: vue.withModifiers(() => {
|
|
288
|
+
}, ["stop"])
|
|
289
|
+
}, null, 8, ["value", "onClick"])),
|
|
290
|
+
vue.createElementVNode("div", { class: "w-0 flex-1" }, [
|
|
291
|
+
vue.createVNode(vue.unref(index.AppTooltip), {
|
|
292
|
+
"over-line": 1,
|
|
293
|
+
content: item.label
|
|
294
|
+
}, null, 8, ["content"])
|
|
295
|
+
]),
|
|
296
|
+
!item.editable.lock ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
297
|
+
key: 2,
|
|
298
|
+
class: "h-full flex items-center text-auxiliary select-none ml-1"
|
|
299
|
+
}, [
|
|
300
|
+
checkMap.value.has(item.prop) ? (vue.openBlock(), vue.createElementBlock(
|
|
301
|
+
"span",
|
|
302
|
+
{ key: 0 },
|
|
303
|
+
vue.toDisplayString(vue.unref(t)("table.show")),
|
|
304
|
+
1
|
|
305
|
+
/* TEXT */
|
|
306
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
307
|
+
"span",
|
|
308
|
+
{
|
|
309
|
+
key: 1,
|
|
310
|
+
class: "text-info"
|
|
311
|
+
},
|
|
312
|
+
vue.toDisplayString(vue.unref(t)("table.notShown")),
|
|
313
|
+
1
|
|
314
|
+
/* TEXT */
|
|
315
|
+
)),
|
|
316
|
+
tableEditableColumns.value.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
317
|
+
key: 2,
|
|
318
|
+
class: "w-5 h-full flex items-center justify-center handle cursor-grab ml-3",
|
|
319
|
+
onClick: vue.withModifiers(() => {
|
|
320
|
+
}, ["stop"])
|
|
321
|
+
}, [
|
|
322
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
323
|
+
default: vue.withCtx(() => [
|
|
324
|
+
vue.createVNode(vue.unref(iconsVue.DCaret))
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
/* STABLE */
|
|
328
|
+
})
|
|
329
|
+
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
330
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
331
|
+
], 8, ["data-tag", "onClick"]);
|
|
332
|
+
}),
|
|
333
|
+
128
|
|
334
|
+
/* KEYED_FRAGMENT */
|
|
335
|
+
))
|
|
336
|
+
],
|
|
337
|
+
512
|
|
338
|
+
/* NEED_PATCH */
|
|
339
|
+
)
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
/* STABLE */
|
|
343
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
344
|
+
]),
|
|
345
|
+
vue.createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3" }, [
|
|
346
|
+
vue.createElementVNode(
|
|
347
|
+
"span",
|
|
348
|
+
null,
|
|
349
|
+
vue.toDisplayString(vue.unref(t)("table.haveBeenSelected", [((_a = checkedList.value) == null ? void 0 : _a.length) || 0])),
|
|
350
|
+
1
|
|
351
|
+
/* TEXT */
|
|
352
|
+
),
|
|
353
|
+
((_b = checkedList.value) == null ? void 0 : _b.length) > 1 ? (vue.openBlock(), vue.createElementBlock(
|
|
354
|
+
"span",
|
|
355
|
+
{
|
|
356
|
+
key: 0,
|
|
357
|
+
class: "clickBox text-dangerv2 ml-3",
|
|
358
|
+
onClick: onClearHandler
|
|
359
|
+
},
|
|
360
|
+
vue.toDisplayString(vue.unref(t)("table.clear")),
|
|
361
|
+
1
|
|
362
|
+
/* TEXT */
|
|
363
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
364
|
+
vue.createElementVNode("div", { class: "flex items-center ml-auto" }, [
|
|
365
|
+
((_c = checkedList.value) == null ? void 0 : _c.length) >= 8 ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
366
|
+
key: 0,
|
|
367
|
+
class: "flex items-center mr-2 text-auxiliary"
|
|
368
|
+
}, [
|
|
369
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
370
|
+
class: "mr-1.5",
|
|
371
|
+
color: "var(--auxiliary)"
|
|
372
|
+
}, {
|
|
373
|
+
default: vue.withCtx(() => [
|
|
374
|
+
vue.createVNode(vue.unref(iconsVue.Warning))
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
/* STABLE */
|
|
378
|
+
}),
|
|
379
|
+
vue.createElementVNode(
|
|
380
|
+
"span",
|
|
381
|
+
null,
|
|
382
|
+
vue.toDisplayString(vue.unref(t)("table.tooManyFieldsWillAffectReadability")),
|
|
383
|
+
1
|
|
384
|
+
/* TEXT */
|
|
385
|
+
)
|
|
386
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
387
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
388
|
+
type: "primary",
|
|
389
|
+
size: "small",
|
|
390
|
+
onClick: onConfirmHandler
|
|
391
|
+
}, {
|
|
392
|
+
default: vue.withCtx(() => [
|
|
393
|
+
vue.createTextVNode(
|
|
394
|
+
vue.toDisplayString(vue.unref(t)("hy.configrm")),
|
|
395
|
+
1
|
|
396
|
+
/* TEXT */
|
|
397
|
+
)
|
|
398
|
+
]),
|
|
399
|
+
_: 1
|
|
400
|
+
/* STABLE */
|
|
401
|
+
})
|
|
402
|
+
])
|
|
403
|
+
])
|
|
404
|
+
])
|
|
405
|
+
];
|
|
406
|
+
}),
|
|
407
|
+
_: 1
|
|
408
|
+
/* STABLE */
|
|
409
|
+
},
|
|
410
|
+
512
|
|
411
|
+
/* NEED_PATCH */
|
|
412
|
+
);
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
exports.default = _sfc_main;
|
|
418
|
+
//# sourceMappingURL=columnSelect.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columnSelect.vue.js","sources":["../../../../packages/components/appTable/cpns/columnSelect.vue"],"sourcesContent":["<script setup>\nimport Sortable from 'sortablejs'\nimport { computed, nextTick, ref, unref, useTemplateRef, watch } from 'vue'\nimport { ElButton, ElIcon, ElPopover, ElCheckboxGroup, ElCheckbox, ElMessage } from 'element-plus'\nimport { Edit, CircleClose, Lock, Warning, DCaret } from '@element-plus/icons-vue'\nimport { useLocale } from '@hy-dispatch-ui-v3/hooks'\nimport { isEmpty } from '@hy-dispatch-ui-v3/utils'\nimport AppTooltip from '../../appTooltip'\n\nconst props = defineProps({\n columns: {\n type: Array,\n default: () => []\n },\n columnsEditable: {\n type: Object,\n default: () => ({})\n }\n})\nconst emits = defineEmits(['confirm'])\n\nconst { t } = useLocale()\nconst popoverRef = useTemplateRef('popoverRef')\nconst listRef = useTemplateRef('listRef')\n\nconst tableColumns = ref([])\nconst tableEditableColumns = ref([])\nconst showColumnsLength = computed(() => {\n return (tableColumns.value || []).reduce((total, column) => {\n return total + (isFilterColumn(column) ? 0 : 1)\n }, 0)\n})\n// 是否过滤不排序\nfunction isFilterColumn(column) {\n return !column.editable.edit || column.prop === 'operator'\n}\n\n// 弹出框\nfunction showPopover() {\n initColumnsInfo()\n rowDrag()\n}\nfunction closePopover() {\n sortableInstance?.destroy?.()\n sortableInstance = null\n popoverRef.value?.hide?.()\n}\nfunction initColumnsInfo() {\n const checkedArr = []\n tableEditableColumns.value = props.columns.reduce((list, column, index) => {\n if (!isFilterColumn(column) && !column.editable.lock) {\n list.push({\n ...column,\n sortIndex: index,\n })\n }\n return list\n }, [])\n for (const key in (props.columnsEditable || {})) {\n const target = props.columnsEditable[key]\n const { column } = target\n if (isFilterColumn(column) || column.editable.lock) {\n continue\n }\n if (target.checked) {\n checkedArr.push(column.prop)\n }\n }\n checkedList.value = checkedArr\n}\n\n// 选择框\nconst checkedList = ref([])\nconst checkMap = computed(() => {\n return (unref(checkedList) || []).reduce((map, item) => {\n map.set(item)\n return map\n }, new Map())\n})\nfunction onCheckHandler(target) {\n if (target.editable.lock) return\n const currentIndex = checkedList.value.findIndex((item) => item === target.prop)\n if (currentIndex !== -1) {\n checkedList.value.splice(currentIndex, 1)\n } else {\n checkedList.value.push(target.prop)\n }\n}\nfunction onConfirmHandler() {\n if (!checkedList.value.length && showColumnsLength.value === tableEditableColumns.value?.length) {\n ElMessage.warning(t('table.theColumnsDisplayedInTheTableCannotBeLeftBlank'))\n return\n }\n if (checkedList.value.length >= 15) {\n ElMessage.warning(t('table.maxColumnLimitTip'))\n return\n }\n const editableObj = tableEditableColumns.value.reduce((editableObj, column) => {\n editableObj[column.prop].index = column.sortIndex\n editableObj[column.prop].checked = checkMap.value.has(column.prop)\n return editableObj\n }, { ...props.columnsEditable })\n emits('confirm', editableObj)\n closePopover()\n}\nfunction onClearHandler() {\n checkedList.value = []\n}\n\n// 行拖拽排序\nlet sortableInstance\nasync function rowDrag() {\n await nextTick()\n // 要拖拽元素的父容器\n const tbody = listRef.value\n if (!tbody) return;\n sortableInstance = Sortable.create(tbody, {\n handle: '.handle',\n animation: 150,\n onEnd(event) {\n const { oldIndex, newIndex } = event\n if (isEmpty(oldIndex) || isEmpty(newIndex) || oldIndex === newIndex) return\n\n const newSortIndex = tableEditableColumns.value[newIndex].sortIndex\n tableEditableColumns.value[newIndex].sortIndex = tableEditableColumns.value[oldIndex].sortIndex\n tableEditableColumns.value[oldIndex].sortIndex = newSortIndex\n\n if (oldIndex < newIndex) {\n tableEditableColumns.value.splice(oldIndex, 1, tableEditableColumns.value.splice(newIndex, 1, tableEditableColumns.value[oldIndex])[0])\n } else {\n tableEditableColumns.value.splice(newIndex, 1, tableEditableColumns.value.splice(oldIndex, 1, tableEditableColumns.value[newIndex])[0])\n }\n },\n })\n}\n\nwatch(() => props.columns, () => {\n tableColumns.value = [...(props.columns || [])]\n closePopover()\n}, { immediate: true, deep: true })\n\ndefineExpose({\n close: closePopover\n})\n</script>\n\n<template>\n <el-popover\n ref=\"popoverRef\"\n trigger=\"click\"\n placement=\"left-start\"\n popper-class=\"!bg-dialog_background !p-0\"\n effect=\"dark\"\n width=\"400\"\n :show-arrow=\"false\"\n @show=\"showPopover\"\n @hide=\"closePopover\"\n >\n <template #reference>\n <div class=\"flex items-center gap-[10px] clickBox px-3 rounded hover:bg-backgroundv2\">\n <el-icon><Edit /></el-icon>\n <span>{{ t('table.editColumn') }} · {{ showColumnsLength }}</span>\n </div>\n </template>\n <template #default>\n <div class=\"column-select-draggable text-sm text-main\">\n <div\n class=\"h-[38px] flex items-center justify-between pl-[15px] pr-2 border-b border-border\"\n >\n <span class=\"text-main font-bold\">{{ t('table.editColumn') }}</span>\n <el-icon class=\"clickBox\" color=\"var(--dangerv2)\" size=\"18\" @click=\"closePopover\">\n <CircleClose />\n </el-icon>\n </div>\n <div class=\"h-[364px] px-4 pt-[11px] pb-1 overflow-y-auto\">\n <el-checkbox-group v-model=\"checkedList\">\n <div\n class=\"flex flex-col gap-1.5 leading-3 text-info\"\n :class=\"{ 'mb-1.5': tableEditableColumns.length > 0 }\"\n >\n <template\n v-for=\"(item, index) in columns\"\n :key=\"index\"\n >\n <div\n v-if=\"!isFilterColumn(item) && item.editable.lock\"\n class=\"h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-dialog_backgroundv2 hover:bg-dialog_backgroundv3\"\n >\n <el-icon v-if=\"item.editable.lock\" size=\"14\" color=\"var(--info)\" class=\"mr-2\">\n <Lock />\n </el-icon>\n <div class=\"w-0 flex-1\">\n <AppTooltip :over-line=\"1\" :content=\"item.label\" />\n </div>\n </div>\n </template>\n </div>\n <div ref=\"listRef\" class=\"flex flex-col gap-1.5 leading-3\">\n <div\n v-for=\"(item, index) in tableEditableColumns\"\n :key=\"item.prop\"\n class=\"h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-dialog_backgroundv2 hover:bg-dialog_backgroundv3\"\n :data-tag=\"index\"\n @click=\"onCheckHandler(item, index)\"\n >\n <el-icon v-if=\"item.editable.lock\" size=\"14\" color=\"var(--info)\" class=\"mr-2\">\n <Lock />\n </el-icon>\n <el-checkbox v-else :value=\"item.prop\" @click.stop />\n <div class=\"w-0 flex-1\">\n <AppTooltip :over-line=\"1\" :content=\"item.label\" />\n </div>\n <div v-if=\"!item.editable.lock\" class=\"h-full flex items-center text-auxiliary select-none ml-1\">\n <span v-if=\"checkMap.has(item.prop)\">{{ t('table.show') }}</span>\n <span v-else class=\"text-info\">{{ t('table.notShown') }}</span>\n <div\n v-if=\"tableEditableColumns.length > 1\"\n class=\"w-5 h-full flex items-center justify-center handle cursor-grab ml-3\"\n @click.stop\n >\n <el-icon><DCaret /></el-icon>\n </div>\n </div>\n </div>\n </div>\n </el-checkbox-group>\n </div>\n <div class=\"flex items-center pt-[5px] pb-4 pl-[14px] pr-3\">\n <span>{{ t('table.haveBeenSelected', [checkedList?.length || 0]) }}</span>\n <span\n v-if=\"checkedList?.length > 1\"\n class=\"clickBox text-dangerv2 ml-3\"\n @click=\"onClearHandler\"\n >{{ t('table.clear') }}</span>\n <div class=\"flex items-center ml-auto\">\n <span v-if=\"checkedList?.length >= 8\" class=\"flex items-center mr-2 text-auxiliary\">\n <el-icon class=\"mr-1.5\" color=\"var(--auxiliary)\"><Warning /></el-icon>\n <span>{{ t('table.tooManyFieldsWillAffectReadability') }}</span>\n </span>\n <el-button type=\"primary\" size=\"small\" @click=\"onConfirmHandler\">{{ t('hy.configrm') }}</el-button>\n </div>\n </div>\n </div>\n </template>\n </el-popover>\n</template>\n"],"names":["useTemplateRef","ref","computed","unref","ElMessage","nextTick","isEmpty","watch","_openBlock","_createBlock","_unref","ElPopover"],"mappings":";;;;;;;;;;;;AAOK,MAAC,SAAS,GAAG;;;;;;;;;;;;;;;;;;AAElB,IAAI,MAAM,OAAI,GAAAA,kBAAA,CAAA,SAAA,CAAA;AAUd,IAAI,MAAM,YAAI,GAAAC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J,IAAIC,SAAK,CAAC,MAAM,KAAK,CAAC,OAAO,EAAE,MAAM;;AAErC,MAAM,YAAY,EAAE;AACpB,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACvC,IAAI,QAAQ,CAAC;;AAEb,KAAK,CAAC;AACN,IAAI,OAAO,CAAC,IAAI,EAAE,MAAM,KAAK;AAC7B,MAAM,OAAOC,aAAA,EAAA,EAAAC,eAAA;AACb,QAAQC,SAAM,CAACC,qBAAS,CAAC;AACzB,QAAM;AACN,UAAK,OAAA,EAAA,YAAA;AACL,UAAG,GAAA,EAAA,UAAA;AACH,UAAA,OAAA,EAAA,OAAA;;AAEA,UAAU,cAAc,EAAE,4BAAO;AACjC,UAAU,MAAM,EAAE,MAAM;AACxB,UAAU,KAAK,EAAA,KAAA;AACf,UAAU,YAAY,EAAE,KAAK;;AAE7B,UAAa,MAAA,EAAA;AACb,SAAS;AACT,QAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var appTable = require('./appTable.vue.js');
|
|
6
|
+
var useAppTable = require('./js/useAppTable.js');
|
|
7
|
+
var handler = require('../../utils/handler.js');
|
|
8
|
+
|
|
9
|
+
const AppTable = handler.withInstall(appTable.default);
|
|
10
|
+
|
|
11
|
+
exports.useAppTable = useAppTable.useAppTable;
|
|
12
|
+
exports.AppTable = AppTable;
|
|
13
|
+
exports.default = AppTable;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../packages/components/appTable/index.js"],"sourcesContent":["import componnet from './appTable.vue'\nimport { withInstall } from '@hy-dispatch-ui-v3/utils'\n\nconst AppTable = withInstall(componnet)\n\nexport { AppTable }\n\nexport { useAppTable } from './js/useAppTable.js'\n\nexport default AppTable\n"],"names":["withInstall","componnet"],"mappings":";;;;;;;;AAEK,MAAC,QAAQ,GAAGA,mBAAW,CAACC,gBAAS;;;;;;"}
|