gzhr-ui 1.0.6 → 1.0.8
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/es/{button-SNw2ksf8.mjs → button-CJ1kU7r2.mjs} +1 -1
- package/dist/es/{icon-CeMk3Ylp.mjs → icon-DOZyC-Pg.mjs} +2 -2
- package/dist/es/index.mjs +5 -5
- package/dist/es/{table-COZEu-I0.mjs → table-D0LUBbI6.mjs} +65 -46
- package/dist/es/{utils-Dd9X6z8S.mjs → utils-T1zvC3Cf.mjs} +1 -1
- package/dist/es/{vendor-KKVz0fCP.mjs → vendor-WGaPw_tu.mjs} +1 -2
- package/dist/index.css +1 -1
- package/dist/types/components/table/index.d.ts +8223 -3
- package/dist/types/components/table/src/index.vue.d.ts +2742 -2
- package/dist/types/core/index.d.ts +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.js +8 -8
- package/package.json +1 -1
- package/dist/types/components/button/demo.d.ts +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as e, defineComponent as r, createVNode as _ } from "vue";
|
|
2
|
-
import { _ as n, w as s } from "./utils-
|
|
2
|
+
import { _ as n, w as s } from "./utils-T1zvC3Cf.mjs";
|
|
3
3
|
const a = {};
|
|
4
4
|
function m(o, c) {
|
|
5
5
|
return t(), e("div", null, "demo");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as s, unref as l, openBlock as t, createBlock as p, normalizeClass as i, withCtx as h, createElementBlock as c, normalizeStyle as k, createElementVNode as I, mergeProps as z } from "vue";
|
|
2
|
-
import { E as C, I as _ } from "./vendor-
|
|
3
|
-
import { w as $ } from "./utils-
|
|
2
|
+
import { E as C, I as _ } from "./vendor-WGaPw_tu.mjs";
|
|
3
|
+
import { w as $ } from "./utils-T1zvC3Cf.mjs";
|
|
4
4
|
const H = { key: 0 }, E = ["xlink:href"], S = /* @__PURE__ */ g({
|
|
5
5
|
name: "HrIcon",
|
|
6
6
|
__name: "icon",
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as o } from "./utils-
|
|
1
|
+
import { m as o } from "./utils-T1zvC3Cf.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import { H as r } from "./button-
|
|
4
|
-
import { H as t } from "./table-
|
|
5
|
-
import { H as m } from "./icon-
|
|
6
|
-
import { A as a } from "./vendor-
|
|
3
|
+
import { H as r } from "./button-CJ1kU7r2.mjs";
|
|
4
|
+
import { H as t } from "./table-D0LUBbI6.mjs";
|
|
5
|
+
import { H as m } from "./icon-DOZyC-Pg.mjs";
|
|
6
|
+
import { A as a } from "./vendor-WGaPw_tu.mjs";
|
|
7
7
|
const s = [r, t, m, a], H = o(s);
|
|
8
8
|
export {
|
|
9
9
|
r as HrButton,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-
|
|
1
|
+
import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-WGaPw_tu.mjs";
|
|
2
2
|
import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, resolveComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, normalizeProps, mergeProps, resolveDirective, onBeforeUnmount, reactive } from "vue";
|
|
3
|
-
import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-
|
|
3
|
+
import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-T1zvC3Cf.mjs";
|
|
4
4
|
const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" }, _hoisted_3$3 = { class: "flex flex-col gap3" }, _hoisted_4$1 = { class: "flex justify-between" }, _sfc_main$x = {
|
|
5
5
|
__name: "filter-date",
|
|
6
6
|
props: {
|
|
@@ -709,7 +709,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
|
|
|
709
709
|
if (v[4] && (g = parseFloat(v[4])), y === 0)
|
|
710
710
|
i = d = f = k * 255;
|
|
711
711
|
else {
|
|
712
|
-
const V = (
|
|
712
|
+
const V = (O, E, j) => (j < 0 && (j += 1), j > 1 && (j -= 1), j < 0.16666666666666666 ? O + (E - O) * 6 * j : j < 0.5 ? E : j < 0.6666666666666666 ? O + (E - O) * (0.6666666666666666 - j) * 6 : O), x = k < 0.5 ? k * (1 + y) : k + y - k * y, C = 2 * k - x;
|
|
713
713
|
i = V(C, x, w + 1 / 3) * 255, d = V(C, x, w) * 255, f = V(C, x, w - 1 / 3) * 255;
|
|
714
714
|
}
|
|
715
715
|
}
|
|
@@ -829,6 +829,24 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
|
|
|
829
829
|
}
|
|
830
830
|
function handleChoose(row, column, gridRef) {
|
|
831
831
|
var r;
|
|
832
|
+
const { onBeforeClickFunc } = column.params;
|
|
833
|
+
if (onBeforeClickFunc)
|
|
834
|
+
try {
|
|
835
|
+
const e = new Function(`return (${onBeforeClickFunc})`)();
|
|
836
|
+
if (typeof e == "function") {
|
|
837
|
+
const t = e();
|
|
838
|
+
if (!(typeof t == "boolean")) {
|
|
839
|
+
layer.alert("onBeforeClickFunc 事件返回值必须为布尔值"), console.error("onBeforeClickFunc 必须返回布尔类型");
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
if (t) return;
|
|
843
|
+
} else {
|
|
844
|
+
layer.alert("onBeforeClickFunc 函数解析有误");
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
} catch (e) {
|
|
848
|
+
throw new Error("onBeforeClickFunc 解析失败:", e);
|
|
849
|
+
}
|
|
832
850
|
if ((r = column.params) != null && r.disabled) return;
|
|
833
851
|
let { ChoosePageType, ChoosePageOID, StoredValueField, ReturnValueField, URLParamsObject, URLParamsHook } = props.column.params, urlParams = {}, selectedData = [], layerOptions = {};
|
|
834
852
|
URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(`(${URLParamsHook})({ urlParams, selectedData, layerOptions, row, column, gridRef })`)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (e, t) => {
|
|
@@ -857,7 +875,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
|
|
|
857
875
|
}))
|
|
858
876
|
]));
|
|
859
877
|
}
|
|
860
|
-
}), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
878
|
+
}), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1b305ffe"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
861
879
|
__proto__: null,
|
|
862
880
|
default: chooseFrameRender
|
|
863
881
|
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = { class: "size-full color-picker" }, _sfc_main$m = /* @__PURE__ */ Object.assign({
|
|
@@ -1865,6 +1883,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
|
|
|
1865
1883
|
class: "z-1 vxe-table--ignore-clear",
|
|
1866
1884
|
modelValue: n.value,
|
|
1867
1885
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
|
|
1886
|
+
"allow-create": "",
|
|
1868
1887
|
"automatic-dropdown": "",
|
|
1869
1888
|
placeholder: c.placeholder,
|
|
1870
1889
|
"popper-class": "select-dropdown",
|
|
@@ -1885,7 +1904,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
|
|
|
1885
1904
|
_: 1
|
|
1886
1905
|
}, 8, ["modelValue", "placeholder", "loading"]));
|
|
1887
1906
|
}
|
|
1888
|
-
}), selectRemoteEditor = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
1907
|
+
}), selectRemoteEditor = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e300cf04"]]), __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1889
1908
|
__proto__: null,
|
|
1890
1909
|
default: selectRemoteEditor
|
|
1891
1910
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$4 = /* @__PURE__ */ Object.assign({
|
|
@@ -2109,7 +2128,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2109
2128
|
"RemoteMethod"
|
|
2110
2129
|
],
|
|
2111
2130
|
setup(r, { expose: e, emit: t }) {
|
|
2112
|
-
|
|
2131
|
+
var R;
|
|
2132
|
+
const o = r;
|
|
2133
|
+
console.log(o.config);
|
|
2134
|
+
const {
|
|
2113
2135
|
CheckboxRender: n,
|
|
2114
2136
|
ColorPickerRender: c,
|
|
2115
2137
|
IconPickerRender: l,
|
|
@@ -2129,75 +2151,72 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2129
2151
|
} = comps$1, {
|
|
2130
2152
|
InputEditor: x,
|
|
2131
2153
|
TreeSelectEditor: C,
|
|
2132
|
-
SelectEditor:
|
|
2154
|
+
SelectEditor: O,
|
|
2133
2155
|
TextareaEditor: E,
|
|
2134
2156
|
DatePickerEditor: j,
|
|
2135
2157
|
SelectMultipleEditor: S,
|
|
2136
2158
|
TreeMultipleSelectEditor: F,
|
|
2137
2159
|
InputNumberEditor: P,
|
|
2138
2160
|
SelectRemoteEditor: N
|
|
2139
|
-
} = comps, b = ref(), D = computed(() => ((o.pagination.Page || 1) - 1) * (o.pagination.PageSize || 1e3)), $ =
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
}
|
|
2162
|
-
};
|
|
2163
|
-
}), O = t;
|
|
2161
|
+
} = comps, b = ref(), D = computed(() => ((o.pagination.Page || 1) - 1) * (o.pagination.PageSize || 1e3)), $ = reactive({
|
|
2162
|
+
keepSource: !0,
|
|
2163
|
+
showOverflow: "title",
|
|
2164
|
+
seqConfig: {
|
|
2165
|
+
seqMethod: (h) => D.value + h.$rowIndex + 1
|
|
2166
|
+
},
|
|
2167
|
+
exportConfig: {},
|
|
2168
|
+
importConfig: {},
|
|
2169
|
+
printConfig: {},
|
|
2170
|
+
columns: [],
|
|
2171
|
+
...o.config,
|
|
2172
|
+
data: [...o.data],
|
|
2173
|
+
editConfig: {
|
|
2174
|
+
trigger: "click",
|
|
2175
|
+
mode: "cell",
|
|
2176
|
+
showStatus: !0,
|
|
2177
|
+
// 只对 keep-source 开启有效,是否显示单元格新增与修改状态
|
|
2178
|
+
showIcon: !1,
|
|
2179
|
+
// 因为对过滤行进行了修改 该属性必须为false
|
|
2180
|
+
...(R = o.config) == null ? void 0 : R.editConfig
|
|
2181
|
+
}
|
|
2182
|
+
}), B = t;
|
|
2164
2183
|
e({
|
|
2165
2184
|
gridRef: b,
|
|
2166
2185
|
gridOptions: $
|
|
2167
2186
|
});
|
|
2168
2187
|
function Y(...h) {
|
|
2169
|
-
|
|
2188
|
+
B("PickPeople", ...h);
|
|
2170
2189
|
}
|
|
2171
2190
|
function T(h) {
|
|
2172
|
-
|
|
2191
|
+
B("ActionClick", h);
|
|
2173
2192
|
}
|
|
2174
2193
|
function M(...h) {
|
|
2175
|
-
|
|
2194
|
+
B("PageChange", ...h);
|
|
2176
2195
|
}
|
|
2177
2196
|
function I(...h) {
|
|
2178
|
-
|
|
2197
|
+
B("Refresh", ...h);
|
|
2179
2198
|
}
|
|
2180
2199
|
function z(...h) {
|
|
2181
|
-
|
|
2200
|
+
B("FilterSearch", ...h);
|
|
2182
2201
|
}
|
|
2183
2202
|
function A(...h) {
|
|
2184
|
-
|
|
2203
|
+
B("SortChange", ...h);
|
|
2185
2204
|
}
|
|
2186
2205
|
function U(...h) {
|
|
2187
|
-
|
|
2206
|
+
B("ActionRenderBefore", ...h);
|
|
2188
2207
|
}
|
|
2189
2208
|
function L(...h) {
|
|
2190
|
-
|
|
2209
|
+
B("FileClick", ...h);
|
|
2191
2210
|
}
|
|
2192
2211
|
function H(...h) {
|
|
2193
|
-
|
|
2212
|
+
B("RemoteMethod", ...h);
|
|
2194
2213
|
}
|
|
2195
|
-
return (h,
|
|
2214
|
+
return (h, q) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2196
2215
|
createVNode(unref(VxeGrid), mergeProps({
|
|
2197
2216
|
class: "grid-table",
|
|
2198
2217
|
ref_key: "gridRef",
|
|
2199
2218
|
ref: b
|
|
2200
|
-
}, {
|
|
2219
|
+
}, { ...$, ...h.$attrs }), {
|
|
2201
2220
|
FilterRows: withCtx(({ column: p }) => [
|
|
2202
2221
|
createVNode(_sfc_main$r, {
|
|
2203
2222
|
column: p,
|
|
@@ -2337,7 +2356,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2337
2356
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2338
2357
|
]),
|
|
2339
2358
|
SelectEditor: withCtx(({ row: p, column: _ }) => [
|
|
2340
|
-
createVNode(unref(
|
|
2359
|
+
createVNode(unref(O), {
|
|
2341
2360
|
row: p,
|
|
2342
2361
|
column: _,
|
|
2343
2362
|
"grid-ref": b.value
|
|
@@ -2389,7 +2408,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2389
2408
|
pager: withCtx(() => [
|
|
2390
2409
|
createVNode(_sfc_main$1, {
|
|
2391
2410
|
pagination: r.pagination,
|
|
2392
|
-
gridOptions:
|
|
2411
|
+
gridOptions: $,
|
|
2393
2412
|
onPageChange: M,
|
|
2394
2413
|
onRefresh: I
|
|
2395
2414
|
}, null, 8, ["pagination", "gridOptions"])
|
|
@@ -2398,7 +2417,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2398
2417
|
}, 16)
|
|
2399
2418
|
]));
|
|
2400
2419
|
}
|
|
2401
|
-
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
2420
|
+
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e644a422"]]);
|
|
2402
2421
|
VxeUI.setConfig({
|
|
2403
2422
|
size: "small",
|
|
2404
2423
|
table: {
|
|
@@ -20847,8 +20847,7 @@ const FO = ld, Ti = Re({
|
|
|
20847
20847
|
class: "vxe-date-picker--panel-wrapper"
|
|
20848
20848
|
}, Ns())), i(fs, {
|
|
20849
20849
|
to: "body",
|
|
20850
|
-
|
|
20851
|
-
disabled: !1
|
|
20850
|
+
disabled: st ? !qe : !0
|
|
20852
20851
|
}, [
|
|
20853
20852
|
i("div", {
|
|
20854
20853
|
ref: x,
|