@ecan-bi/datav 1.3.98 → 1.3.99

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.3.98 */
1
+ /*! @ecan-bi/datav@1.3.99 */
2
2
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, onBeforeUnmount, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1, createElementVNode, createCommentVNode, Fragment, renderList, provide, useCssVars, toDisplayString, pushScopeId, popScopeId, createSlots, withModifiers, createTextVNode, Teleport, resolveDynamicComponent, mergeProps, normalizeProps, toHandlers, withDirectives, vShow, reactive, vModelText, getCurrentInstance, onDeactivated, isRef, onActivated, isVNode, Transition, onBeforeUpdate, Comment } from "vue";
3
3
  import { throttle, init, use, registerMap } from "echarts/core";
4
4
  import { addListener, removeListener } from "resize-detector";
@@ -11996,7 +11996,8 @@ const TreeSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_r
11996
11996
  tabBarGutter: "24px",
11997
11997
  tabFlexDirection: "row",
11998
11998
  graphicConfig: {},
11999
- tabTextAlign: ""
11999
+ tabTextAlign: "",
12000
+ selectFirstOption: !1
12000
12001
  }, radioComponentProps = transformToComponentProps(radioProps), radioEvents = ["checkboxChange", "click"], _sfc_main$h = defineComponent({
12001
12002
  name: "EcanRadio",
12002
12003
  components: {
@@ -12010,12 +12011,13 @@ const TreeSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_r
12010
12011
  setup(e, { expose: r }) {
12011
12012
  const { pageMode: n } = inject(GLOBAL_CONFIG, {
12012
12013
  pageMode: "normal"
12013
- }), i = usePickComponentStyle(e), a = ref([]), o = ref(""), s = (w) => {
12014
+ }), i = usePickComponentStyle(e), a = ref([]), o = ref(""), s = (w = []) => {
12015
+ var P;
12014
12016
  const T = e.value;
12015
12017
  let k = [];
12016
- typeof T == "string" && T !== "" ? k = k.concat(T.split(",")) : Array.isArray(T) && (k = k.concat(T)), a.value = w, o.value = k[0] || "", console.log(a.value, o.value, " myValue.value");
12018
+ typeof T == "string" && T !== "" ? k = k.concat(T.split(",")) : Array.isArray(T) && (k = k.concat(T)), a.value = w, e.selectFirstOption ? o.value = ((P = w[0]) == null ? void 0 : P.value) || "" : o.value = k[0] || "";
12017
12019
  };
12018
- watch(() => [e.data, e.value], ([w]) => {
12020
+ watch(() => [e.data, e.value, e.selectFirstOption], ([w]) => {
12019
12021
  unref(n) === "design" && s(w);
12020
12022
  }, {
12021
12023
  immediate: !0,
@@ -12115,7 +12117,7 @@ const TreeSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_r
12115
12117
  tabChange: v
12116
12118
  };
12117
12119
  }
12118
- }), Radio_vue_vue_type_style_index_0_lang = "", Radio_vue_vue_type_style_index_1_scoped_b9a5fb2e_lang = "", _hoisted_1$9 = ["onClick"];
12120
+ }), Radio_vue_vue_type_style_index_0_lang = "", Radio_vue_vue_type_style_index_1_scoped_a5829fe5_lang = "", _hoisted_1$9 = ["onClick"];
12119
12121
  function _sfc_render$j(e, r, n, i, a, o) {
12120
12122
  const s = resolveComponent("a-radio"), l = resolveComponent("a-radio-button"), c = resolveComponent("a-radio-group");
12121
12123
  return openBlock(), createElementBlock("div", {
@@ -12184,7 +12186,7 @@ function _sfc_render$j(e, r, n, i, a, o) {
12184
12186
  }, 8, ["value"]))
12185
12187
  ], 6);
12186
12188
  }
12187
- const Radio = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$j], ["__scopeId", "data-v-b9a5fb2e"]]), EcanRadio = withInstall$1(Radio), pieProps = {
12189
+ const Radio = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$j], ["__scopeId", "data-v-a5829fe5"]]), EcanRadio = withInstall$1(Radio), pieProps = {
12188
12190
  ...props,
12189
12191
  id: "",
12190
12192
  name: "饼图",