@ecan-bi/datav 1.2.1 → 1.2.2
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 +11 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
1
|
+
/*! @ecan-bi/datav@1.2.2 */
|
|
2
2
|
import { watch as ee, inject as V, computed as j, unref as w, watchEffect as ko, defineComponent as te, shallowRef as Ot, toRefs as Jn, onMounted as Je, onUnmounted as kt, h as St, nextTick as At, createVNode as U, resolveComponent as Z, openBlock as O, createElementBlock as z, createBlock as ze, renderSlot as rt, withCtx as K, ref as T, normalizeStyle as q, createCommentVNode as ke, provide as je, onBeforeUnmount as Bt, toDisplayString as Ce, Fragment as De, renderList as Fe, createElementVNode as X, normalizeClass as Ut, pushScopeId as _t, popScopeId as Tt, resolveDynamicComponent as Yn, mergeProps as Ao, toHandlers as Qn, createTextVNode as ct, withModifiers as _o, reactive as Kn, withDirectives as Xn, vShow as ea } from "vue";
|
|
3
3
|
import { throttle as ta, init as oa, use as Ke, registerMap as na } from "echarts/core";
|
|
4
4
|
import { addListener as aa, removeListener as la } from "resize-detector";
|
|
@@ -2966,9 +2966,15 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
|
|
|
2966
2966
|
u.value = !0;
|
|
2967
2967
|
try {
|
|
2968
2968
|
const S = await n();
|
|
2969
|
-
a.value = c(((v = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : v.rows) || [])
|
|
2970
|
-
|
|
2971
|
-
|
|
2969
|
+
if (a.value = c(((v = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : v.rows) || []), e.selectFirstOption) {
|
|
2970
|
+
console.log(w(a));
|
|
2971
|
+
let M = w(a)[0];
|
|
2972
|
+
if (i.options) {
|
|
2973
|
+
const x = M[i.options];
|
|
2974
|
+
x && x.length && (M = x[0]);
|
|
2975
|
+
}
|
|
2976
|
+
l.value = M[i.value];
|
|
2977
|
+
}
|
|
2972
2978
|
} catch (S) {
|
|
2973
2979
|
console.error(S);
|
|
2974
2980
|
} finally {
|
|
@@ -3043,7 +3049,7 @@ function ms(e, o, t, n, a, l) {
|
|
|
3043
3049
|
}, null, 8, ["value", "placeholder", "options", "mode", "getPopupContainer", "fieldNames", "maxTagCount", "filterOption", "loading", "autoClearSearchValue", "onChange"])
|
|
3044
3050
|
], 4);
|
|
3045
3051
|
}
|
|
3046
|
-
const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-
|
|
3052
|
+
const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-2e86a327"]]), gs = ae(hs), vn = {
|
|
3047
3053
|
...me,
|
|
3048
3054
|
name: "树形下拉框选择器",
|
|
3049
3055
|
keyName: "树形下拉框选择器",
|