@10yun/cv-pc-ui 0.3.4 → 0.3.6

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/lib/cv-pc-ui.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { resolveComponent as m, openBlock as o, createBlock as b, mergeProps as L, withCtx as p, renderSlot as V, toHandlers as Ci, createElementBlock as d, createCommentVNode as w, createElementVNode as r, createTextVNode as $, createVNode as g, normalizeClass as E, toDisplayString as S, Fragment as D, renderList as N, normalizeStyle as U, normalizeProps as H, guardReactiveProps as q, resolveDirective as ne, withDirectives as R, vShow as G, TransitionGroup as Ji, pushScopeId as fe, popScopeId as ge, withModifiers as Xi, ref as F, unref as k, reactive as Jt, computed as Z, inject as ie, watch as ki, onMounted as Xt, withKeys as ue, Transition as Yi, nextTick as pe, useCssVars as en, onUnmounted as tn, h as Si, readonly as nn, getCurrentScope as ln, onScopeDispose as sn, getCurrentInstance as an, toRefs as on, provide as oe, useSlots as rn, resolveDynamicComponent as cn, vModelText as dn, render as Qt } from "vue";
2
2
  import { ElButton as ce, ElForm as oi, ElFormItem as fi, ElInput as Gt, ElInputNumber as un, ElRadio as hn, ElRadioButton as pn, ElRadioGroup as mn, ElCheckbox as fn, ElCheckboxButton as gn, ElCheckboxGroup as _n, ElMessage as X, ElOption as gi, ElSelect as $i, ElCascader as vn, ElTimePicker as yn, ElDatePicker as bn, ElSwitch as wn, ElTag as Cn, ElTable as kn, ElTableColumn as Q, ElPopover as ri, ElScrollbar as ci, ElImage as di, ClickOutside as Sn, ElAvatar as Vi, ElPagination as $n, ElDialog as Vn, ElMessageBox as xi, ElDrawer as xn } from "element-plus";
3
3
  import { JSONEditor as Tn } from "https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.18.2/index.js";
4
- /*! cvPcUI v0.3.4 */
4
+ /*! cvPcUI v0.3.5 */
5
5
  const v = (e, t) => {
6
6
  const i = e.__vccOpts || e;
7
7
  for (const [s, n] of t)
@@ -389,6 +389,7 @@ xe.install = function(e) {
389
389
  };
390
390
  const Y = {
391
391
  extends: Gt,
392
+ emits: ["update:modelValue", "change"],
392
393
  props: {
393
394
  ...Gt.props,
394
395
  // 提示文本
@@ -872,6 +873,7 @@ const je = /* @__PURE__ */ v(wl, [["render", $l], ["__file", "/Users/zhuanghuang
872
873
  const Vl = {
873
874
  name: "cvInputBtn",
874
875
  mixins: [Y],
876
+ emits: ["btnClick"],
875
877
  components: {},
876
878
  props: {
877
879
  btnText: {
@@ -2770,7 +2772,7 @@ const Rs = {
2770
2772
  initHandle() {
2771
2773
  if (this.localVal) {
2772
2774
  var e = this.$refs[this.refID + "tree"].getNode(this.localVal);
2773
- e && (this.localTitle = this.$refs[this.refID + "tree"].getNode(this.localVal).data[this.dataField.label], this.$refs[this.refID + "tree"].setCurrentKey(this.localVal), this.defaultExpandedKey = [this.localVal]);
2775
+ e && (this.localTitle = e.data[this.dataField.label], this.$refs[this.refID + "tree"].setCurrentKey(this.localVal), this.defaultExpandedKey = [this.localVal]);
2774
2776
  } else
2775
2777
  this.clearHandle();
2776
2778
  this.initScroll();
@@ -2799,13 +2801,15 @@ const Rs = {
2799
2801
  },
2800
2802
  // 对传入的数据进行处理用于设置选项
2801
2803
  _parseLocalOpt() {
2802
- let e = this.dataLists, t = this.dataField && this.dataField.value || "value", i = this.dataDisabled;
2803
- s(e);
2804
- function s(n) {
2805
- for (let l in n)
2806
- i.map((a) => {
2807
- n[l][t] == a[t] && (n[l].disabled = !0);
2808
- }), n[l].children && s(n[l].children);
2804
+ let e = this.dataLists;
2805
+ this.dataField && this.dataField.label;
2806
+ let t = this.dataField && this.dataField.value || "value", i = this.dataField && this.dataField.children || "children", s = this.dataDisabled;
2807
+ n(e);
2808
+ function n(l) {
2809
+ for (let a in l)
2810
+ s.map((c) => {
2811
+ l[a][t] == c[t] && (l[a].disabled = !0);
2812
+ }), l[a][i] && n(l[a][i]);
2809
2813
  }
2810
2814
  this.localOpt = e;
2811
2815
  }
@@ -2816,7 +2820,7 @@ function Ms(e, t, i, s, n, l) {
2816
2820
  return o(), b(h, L(e.$props, {
2817
2821
  ref: i.refID,
2818
2822
  "popper-class": "cv-select-tree",
2819
- value: n.localTitle,
2823
+ modelValue: n.localTitle,
2820
2824
  onClear: l.clearHandle
2821
2825
  }), {
2822
2826
  default: p(() => [
@@ -2843,7 +2847,7 @@ function Ms(e, t, i, s, n, l) {
2843
2847
  }, 8, ["value", "label"])
2844
2848
  ]),
2845
2849
  _: 1
2846
- }, 16, ["value", "onClear"]);
2850
+ }, 16, ["modelValue", "onClear"]);
2847
2851
  }
2848
2852
  const et = /* @__PURE__ */ v(Rs, [["render", Ms], ["__scopeId", "data-v-604c350d"], ["__file", "/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);
2849
2853
  Xe.install = function(e) {