vue-2024-ui 0.2.24 → 0.2.25
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/index.es.js +34 -33
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -471,7 +471,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
471
471
|
"default-placeholder": !0,
|
|
472
472
|
style: {
|
|
473
473
|
display: "flex",
|
|
474
|
-
flexWrap: "wrap"
|
|
474
|
+
flexWrap: "wrap",
|
|
475
|
+
padding: "20px"
|
|
475
476
|
},
|
|
476
477
|
// 表单底部属性
|
|
477
478
|
footer: {
|
|
@@ -1473,7 +1474,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1473
1474
|
ref: e,
|
|
1474
1475
|
model: f.value,
|
|
1475
1476
|
style: {
|
|
1476
|
-
width: "
|
|
1477
|
+
width: "100%",
|
|
1477
1478
|
padding: 0,
|
|
1478
1479
|
margin: 0,
|
|
1479
1480
|
"box-sizing": "border-box"
|
|
@@ -1654,7 +1655,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1654
1655
|
]);
|
|
1655
1656
|
};
|
|
1656
1657
|
}
|
|
1657
|
-
}), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-
|
|
1658
|
+
}), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-3b3ffd4d"]]), Bt = {
|
|
1658
1659
|
__name: "g-query-item",
|
|
1659
1660
|
props: /* @__PURE__ */ tt(["more"], {
|
|
1660
1661
|
modelValue: { required: !0 },
|
|
@@ -2056,10 +2057,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2056
2057
|
], 64);
|
|
2057
2058
|
};
|
|
2058
2059
|
}
|
|
2059
|
-
}, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "
|
|
2060
|
+
}, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "15px", "box-sizing": "border-box" } }, Xl = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Ql = { style: { display: "flex", flex: "1", "align-items": "center" } }, Zl = {
|
|
2060
2061
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2061
2062
|
id: "excelSortEl"
|
|
2062
|
-
},
|
|
2063
|
+
}, Jl = ["textContent"], Kl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ea = {
|
|
2063
2064
|
__name: "check-excel-item",
|
|
2064
2065
|
props: {
|
|
2065
2066
|
items: Array,
|
|
@@ -2102,9 +2103,9 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2102
2103
|
}), (D, c) => {
|
|
2103
2104
|
const v = L("el-divider"), u = L("el-icon"), d = L("el-text"), $ = L("el-checkbox"), le = L("el-button");
|
|
2104
2105
|
return p(), Y("div", Gl, [
|
|
2105
|
-
X("div",
|
|
2106
|
-
X("div",
|
|
2107
|
-
X("div",
|
|
2106
|
+
X("div", null, [
|
|
2107
|
+
X("div", Xl, [
|
|
2108
|
+
X("div", Ql, [
|
|
2108
2109
|
X("a", {
|
|
2109
2110
|
onClick: e,
|
|
2110
2111
|
style: { cursor: "pointer" }
|
|
@@ -2134,7 +2135,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2134
2135
|
])
|
|
2135
2136
|
]),
|
|
2136
2137
|
c[1] || (c[1] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2137
|
-
X("div",
|
|
2138
|
+
X("div", Zl, [
|
|
2138
2139
|
(p(!0), Y(te, null, W(r.value, (B) => (p(), A($, {
|
|
2139
2140
|
class: "check-box-hover",
|
|
2140
2141
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
@@ -2148,13 +2149,13 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2148
2149
|
X("span", {
|
|
2149
2150
|
textContent: Ee(B.label),
|
|
2150
2151
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2151
|
-
}, null, 8,
|
|
2152
|
+
}, null, 8, Jl)
|
|
2152
2153
|
]),
|
|
2153
2154
|
_: 2
|
|
2154
2155
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2155
2156
|
])
|
|
2156
2157
|
]),
|
|
2157
|
-
X("div",
|
|
2158
|
+
X("div", Kl, [
|
|
2158
2159
|
ee(le, {
|
|
2159
2160
|
type: "primary",
|
|
2160
2161
|
onClick: f,
|
|
@@ -2170,8 +2171,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2170
2171
|
]);
|
|
2171
2172
|
};
|
|
2172
2173
|
}
|
|
2173
|
-
},
|
|
2174
|
-
ve.version(
|
|
2174
|
+
}, ta = /* @__PURE__ */ at(ea, [["__scopeId", "data-v-13575747"]]), la = "vue-gyc-ui", aa = 1, ve = new Sl(la);
|
|
2175
|
+
ve.version(aa).stores({
|
|
2175
2176
|
// 记录表格项设置信息
|
|
2176
2177
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2177
2178
|
// 记录表格分页条数
|
|
@@ -2193,7 +2194,7 @@ async function $t(n, s, a) {
|
|
|
2193
2194
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${s}, state: ${a}):`, t), t;
|
|
2194
2195
|
}
|
|
2195
2196
|
}
|
|
2196
|
-
async function
|
|
2197
|
+
async function ra(n, s, a) {
|
|
2197
2198
|
ut(n);
|
|
2198
2199
|
try {
|
|
2199
2200
|
const t = await ve.tableWidths.where({ page: n, key: s }).first();
|
|
@@ -2202,7 +2203,7 @@ async function oa(n, s, a) {
|
|
|
2202
2203
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${s}):`, t), t;
|
|
2203
2204
|
}
|
|
2204
2205
|
}
|
|
2205
|
-
async function
|
|
2206
|
+
async function oa(n) {
|
|
2206
2207
|
ut(n);
|
|
2207
2208
|
try {
|
|
2208
2209
|
return await ve.tableWidths.where({ page: n }).toArray();
|
|
@@ -2210,7 +2211,7 @@ async function na(n) {
|
|
|
2210
2211
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, s), s;
|
|
2211
2212
|
}
|
|
2212
2213
|
}
|
|
2213
|
-
async function
|
|
2214
|
+
async function na(n) {
|
|
2214
2215
|
ut(n);
|
|
2215
2216
|
try {
|
|
2216
2217
|
const s = await ve.tableColsState.where({ page: n }).toArray();
|
|
@@ -2219,7 +2220,7 @@ async function ua(n) {
|
|
|
2219
2220
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, s), s;
|
|
2220
2221
|
}
|
|
2221
2222
|
}
|
|
2222
|
-
async function
|
|
2223
|
+
async function ua(n) {
|
|
2223
2224
|
ut(n);
|
|
2224
2225
|
try {
|
|
2225
2226
|
return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
|
|
@@ -2234,7 +2235,7 @@ async function sa(n) {
|
|
|
2234
2235
|
throw console.error(`删除页面"${n}"的表格设置信息时出错:`, s), s;
|
|
2235
2236
|
}
|
|
2236
2237
|
}
|
|
2237
|
-
async function
|
|
2238
|
+
async function sa({ page: n, size: s }) {
|
|
2238
2239
|
ut(n);
|
|
2239
2240
|
try {
|
|
2240
2241
|
const a = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2243,7 +2244,7 @@ async function ia({ page: n, size: s }) {
|
|
|
2243
2244
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, a), a;
|
|
2244
2245
|
}
|
|
2245
2246
|
}
|
|
2246
|
-
async function
|
|
2247
|
+
async function ia(n) {
|
|
2247
2248
|
ut(n);
|
|
2248
2249
|
try {
|
|
2249
2250
|
const s = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2252,7 +2253,7 @@ async function da(n) {
|
|
|
2252
2253
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, s), s;
|
|
2253
2254
|
}
|
|
2254
2255
|
}
|
|
2255
|
-
async function
|
|
2256
|
+
async function da(n, s) {
|
|
2256
2257
|
ut(n);
|
|
2257
2258
|
try {
|
|
2258
2259
|
const a = await ve.sorts.where({ page: n }).first();
|
|
@@ -2261,7 +2262,7 @@ async function ca(n, s) {
|
|
|
2261
2262
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, a), a;
|
|
2262
2263
|
}
|
|
2263
2264
|
}
|
|
2264
|
-
async function
|
|
2265
|
+
async function ca(n) {
|
|
2265
2266
|
ut(n);
|
|
2266
2267
|
try {
|
|
2267
2268
|
const s = await ve.sorts.where({ page: n }).first();
|
|
@@ -2270,7 +2271,7 @@ async function fa(n) {
|
|
|
2270
2271
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, s), s;
|
|
2271
2272
|
}
|
|
2272
2273
|
}
|
|
2273
|
-
const
|
|
2274
|
+
const fa = { style: { padding: "15px", "box-sizing": "border-box" } }, va = { style: { display: "flex", "align-items": "center", height: "30px" } }, pa = {
|
|
2274
2275
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2275
2276
|
class: "allcheck"
|
|
2276
2277
|
}, ma = {
|
|
@@ -2301,7 +2302,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2301
2302
|
onEnd: async () => {
|
|
2302
2303
|
let $ = d.toArray();
|
|
2303
2304
|
try {
|
|
2304
|
-
|
|
2305
|
+
da(a.tuid, $).then((le) => {
|
|
2305
2306
|
t("setting-drag-end");
|
|
2306
2307
|
});
|
|
2307
2308
|
} catch (le) {
|
|
@@ -2346,7 +2347,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2346
2347
|
cancelButtonText: "取消",
|
|
2347
2348
|
type: "warning"
|
|
2348
2349
|
}).then(() => {
|
|
2349
|
-
|
|
2350
|
+
ua(a.tuid).then((u) => {
|
|
2350
2351
|
window.location.reload();
|
|
2351
2352
|
}).catch((u) => {
|
|
2352
2353
|
console.error("复位操作出错:", u), et({
|
|
@@ -2367,7 +2368,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2367
2368
|
})).sort((u, d) => u.sort - d.sort), f();
|
|
2368
2369
|
}), (u, d) => {
|
|
2369
2370
|
const $ = L("el-divider"), le = L("el-icon"), B = L("el-text"), G = L("el-checkbox");
|
|
2370
|
-
return p(), Y("div",
|
|
2371
|
+
return p(), Y("div", fa, [
|
|
2371
2372
|
X("div", va, [
|
|
2372
2373
|
X("div", pa, [
|
|
2373
2374
|
X("a", { onClick: D }, "全选"),
|
|
@@ -2416,7 +2417,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2416
2417
|
]);
|
|
2417
2418
|
};
|
|
2418
2419
|
}
|
|
2419
|
-
}, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-
|
|
2420
|
+
}, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-428381ae"]]), ba = { class: "title" }, $a = { class: "content" }, wa = {
|
|
2420
2421
|
__name: "g-cell-toopTip",
|
|
2421
2422
|
props: {
|
|
2422
2423
|
content: {
|
|
@@ -2657,7 +2658,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2657
2658
|
fit: !1,
|
|
2658
2659
|
type: "hidden",
|
|
2659
2660
|
load: async () => {
|
|
2660
|
-
e.value.table.page.pageSize = await
|
|
2661
|
+
e.value.table.page.pageSize = await ia(ce.value);
|
|
2661
2662
|
let { currentPage: l, pageSize: o } = e.value.table.page;
|
|
2662
2663
|
try {
|
|
2663
2664
|
r(
|
|
@@ -2682,7 +2683,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2682
2683
|
}
|
|
2683
2684
|
},
|
|
2684
2685
|
onHeaderDragend: (l, o, m) => {
|
|
2685
|
-
|
|
2686
|
+
ra(ce.value, m.property, l);
|
|
2686
2687
|
},
|
|
2687
2688
|
onRowDblclick: (l, o, m) => {
|
|
2688
2689
|
e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ? V(l, o, m, e) : e.value.table.dblclickType == "delete" ? i(l, o, m, e) : e.value.table.dblclickType(l, o, m, e);
|
|
@@ -2705,7 +2706,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2705
2706
|
e.value.table.page.currentPage = l, e.value.table.load();
|
|
2706
2707
|
},
|
|
2707
2708
|
onSizeChange: (l) => {
|
|
2708
|
-
|
|
2709
|
+
sa({ page: ce.value, size: l }).then(() => {
|
|
2709
2710
|
e.value.table.page.pageSize = l, e.value.table.load();
|
|
2710
2711
|
});
|
|
2711
2712
|
}
|
|
@@ -3024,7 +3025,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3024
3025
|
size: o.control.download(l, o).size || 480,
|
|
3025
3026
|
width: o.control.download(l, o).width || 600,
|
|
3026
3027
|
slots: {
|
|
3027
|
-
default: () => we(
|
|
3028
|
+
default: () => we(ta, {
|
|
3028
3029
|
items: m,
|
|
3029
3030
|
commitText: o.control.download(l, o).excelLabel,
|
|
3030
3031
|
onExcel: (U, N) => {
|
|
@@ -3142,9 +3143,9 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3142
3143
|
const xe = async () => {
|
|
3143
3144
|
try {
|
|
3144
3145
|
const [l, o, m] = await Promise.all([
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3146
|
+
oa(ce.value),
|
|
3147
|
+
ca(ce.value),
|
|
3148
|
+
na(ce.value)
|
|
3148
3149
|
]);
|
|
3149
3150
|
l && Array.isArray(l) && l.forEach((b) => {
|
|
3150
3151
|
const F = e.value[b.key];
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-ecd28c07]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-ecd28c07] .custom-upload img{width:100%;height:100%}[data-v-ecd28c07] .custom-upload .el-upload--picture-card,[data-v-ecd28c07] .custom-upload .el-upload-dragger,[data-v-ecd28c07] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-ecd28c07] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-ecd28c07] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-ecd28c07] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-ecd28c07]:hover{background-color:#0003}.g-form-container[data-v-
|
|
1
|
+
.custom-upload[data-v-ecd28c07]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-ecd28c07] .custom-upload img{width:100%;height:100%}[data-v-ecd28c07] .custom-upload .el-upload--picture-card,[data-v-ecd28c07] .custom-upload .el-upload-dragger,[data-v-ecd28c07] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-ecd28c07] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-ecd28c07] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-ecd28c07] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-ecd28c07]:hover{background-color:#0003}.g-form-container[data-v-3b3ffd4d]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-fbc339ad]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-fbc339ad]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-fbc339ad]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-fbc339ad],.nested-leave-active[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-leave-active[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from[data-v-fbc339ad],.nested-leave-to[data-v-fbc339ad]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-fbc339ad],.nested-leave-active .inner[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from .inner[data-v-fbc339ad],.nested-leave-to .inner[data-v-fbc339ad]{transform:translateY(-100px);opacity:.001}.query-form[data-v-fbc339ad]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-13575747]:hover,.check-box-hover[data-v-428381ae]:hover{background:var(--el-border-color)}.allcheck a[data-v-428381ae]{cursor:pointer}.filtered[data-v-428381ae]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.control .el-button[data-v-fb74c643]{padding:0 3px;margin:0 3px}.g-table-container[data-v-fb74c643]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-fb74c643]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-fb74c643]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-fb74c643]{cursor:pointer;color:var(--el-text-color)}.max[data-v-fb74c643]:hover{color:var(--el-color-primary)}.btns[data-v-fb74c643]{display:flex}[data-v-fb74c643] .drag-dialog{resize:both;overflow:auto}[data-v-fb74c643] .el-dialog__header,[data-v-fb74c643] .el-dialog__body{pointer-events:auto!important}.g-tree-table[data-v-c888e4fc]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c888e4fc]{display:flex;width:100%;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%;border:1px solid var(--el-border-color-lighter)}.g-tree-table-container[data-v-c888e4fc]{display:flex;flex:1;overflow:auto}.g-tree-left[data-v-c888e4fc]{display:flex;flex-direction:column;box-sizing:border-box;margin-right:10px;overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|