cd-form 1.0.3 → 1.0.4

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/cd-form.js CHANGED
@@ -288,7 +288,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
288
288
  for (const [w, r] of j)
289
289
  s[w] = r;
290
290
  return s;
291
- }, ft = /* @__PURE__ */ ye(ct, [["__scopeId", "data-v-12c41f64"]]), vt = { class: "avatar-crop-container" }, mt = ["src"], gt = { class: "crop-preview" }, ht = { class: "crop-footer" }, pt = /* @__PURE__ */ pe({
291
+ }, ft = /* @__PURE__ */ ye(ct, [["__scopeId", "data-v-df37fd5c"]]), vt = { class: "avatar-crop-container" }, mt = ["src"], gt = { class: "crop-preview" }, ht = { class: "crop-footer" }, pt = /* @__PURE__ */ pe({
292
292
  name: "AvatarCropDialog",
293
293
  __name: "AvatarCropDialog",
294
294
  props: {
@@ -559,7 +559,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
559
559
  }, 8, ["visible"]);
560
560
  };
561
561
  }
562
- }), _t = /* @__PURE__ */ ye(pt, [["__scopeId", "data-v-de18acb9"]]), bt = { class: "cd-usercard-panel" }, yt = { class: "profile" }, kt = { class: "profile__header" }, Ct = { class: "profile__avatar-wrapper" }, wt = ["src"], $t = { class: "profile__title" }, xt = { class: "profile__name" }, Vt = {
562
+ }), _t = /* @__PURE__ */ ye(pt, [["__scopeId", "data-v-bf9fcb25"]]), bt = { class: "cd-usercard-panel" }, yt = { class: "profile" }, kt = { class: "profile__header" }, Ct = { class: "profile__avatar-wrapper" }, wt = ["src"], $t = { class: "profile__title" }, xt = { class: "profile__name" }, Vt = {
563
563
  key: 0,
564
564
  class: "profile__alias editable"
565
565
  }, Dt = {
@@ -875,7 +875,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
875
875
  ], 64);
876
876
  };
877
877
  }
878
- }), bl = /* @__PURE__ */ ye(Yt, [["__scopeId", "data-v-90d70395"]]), Kt = {
878
+ }), bl = /* @__PURE__ */ ye(Yt, [["__scopeId", "data-v-c41100af"]]), Kt = {
879
879
  key: 0,
880
880
  class: "cd-usercard-user-center__nav"
881
881
  }, Gt = { class: "cd-usercard-nav-header" }, Xt = { class: "cd-usercard-nav-list" }, Qt = ["onClick"], Jt = {
@@ -1163,7 +1163,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
1163
1163
  ], 64);
1164
1164
  };
1165
1165
  }
1166
- }), pa = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-35310e99"]]), _a = { class: "cd-ps-container" }, ba = {
1166
+ }), pa = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-42962883"]]), _a = { class: "cd-ps-container" }, ba = {
1167
1167
  key: 0,
1168
1168
  class: "cd-ps-tips"
1169
1169
  }, ya = {
@@ -1666,6 +1666,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
1666
1666
  avatarSize: { default: 32 },
1667
1667
  maxDisplay: { default: 999 },
1668
1668
  edit: { type: Boolean, default: !1 },
1669
+ mode: { default: "display" },
1669
1670
  personTabs: {},
1670
1671
  personOrganizations: {},
1671
1672
  deptMembersData: {}
@@ -1673,8 +1674,8 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
1673
1674
  emits: ["user-click", "action", "email-click", "mobile-view", "person-select", "load-users", "search", "dept-click"],
1674
1675
  setup(l, { emit: j }) {
1675
1676
  Pl((Q) => ({
1676
- v9664498e: `${U.value}px`,
1677
- v6bd72bd6: `-${U.value}px`
1677
+ v2e8fe560: `${U.value}px`,
1678
+ v959986c2: `-${U.value}px`
1678
1679
  }));
1679
1680
  const s = l, w = j, r = P(!1), i = P(null), o = P("bottom"), u = P({}), k = P(!1), $ = P(!1), f = P([]), p = P(!1), g = P(null), c = P({}), b = P([]), F = ee(() => ({
1680
1681
  width: `${s.avatarSize}px`,
@@ -2052,7 +2053,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2052
2053
  _: 1
2053
2054
  })
2054
2055
  ])),
2055
- (l.edit || Q.mode === "input") && l.personTabs && l.personTabs.length > 0 && $.value ? (t(), B(ll(ns), {
2056
+ (l.edit || l.mode === "input") && l.personTabs && l.personTabs.length > 0 && $.value ? (t(), B(ll(ns), {
2056
2057
  key: 0,
2057
2058
  visible: $.value,
2058
2059
  "onUpdate:visible": R[8] || (R[8] = (Z) => $.value = Z),
@@ -2070,7 +2071,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2070
2071
  ]);
2071
2072
  };
2072
2073
  }
2073
- }), Ns = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-9d22150f"]]), Os = { class: "language-display" }, qs = ["src", "alt"], Hs = { class: "current-language" }, Ws = {
2074
+ }), Ns = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-1a31b242"]]), Os = { class: "language-display" }, qs = ["src", "alt"], Hs = { class: "current-language" }, Ws = {
2074
2075
  key: 1,
2075
2076
  class: "internet-icon",
2076
2077
  viewBox: "0 0 24 24",
@@ -2158,7 +2159,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2158
2159
  ])) : C("", !0)
2159
2160
  ], 4));
2160
2161
  }
2161
- }), kl = /* @__PURE__ */ ye(Xs, [["__scopeId", "data-v-e5a2d887"]]), Qs = { class: "password-dialog-content" }, Js = { class: "method-tabs" }, Zs = {
2162
+ }), kl = /* @__PURE__ */ ye(Xs, [["__scopeId", "data-v-de3f6343"]]), Qs = { class: "password-dialog-content" }, Js = { class: "method-tabs" }, Zs = {
2162
2163
  key: 0,
2163
2164
  class: "form-content"
2164
2165
  }, en = { class: "form-item" }, ln = { class: "form-item" }, tn = { class: "form-item" }, an = {
@@ -2373,7 +2374,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2373
2374
  }, 8, ["visible", "header"]);
2374
2375
  };
2375
2376
  }
2376
- }), fn = /* @__PURE__ */ ye(cn, [["__scopeId", "data-v-36f562a5"]]), vn = { class: "token-dialog-content" }, mn = {
2377
+ }), fn = /* @__PURE__ */ ye(cn, [["__scopeId", "data-v-dcb0708e"]]), vn = { class: "token-dialog-content" }, mn = {
2377
2378
  key: 0,
2378
2379
  class: "enable-section"
2379
2380
  }, gn = { class: "qrcode-section" }, hn = { class: "qrcode-box" }, pn = ["src"], _n = {
@@ -2535,7 +2536,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2535
2536
  }, 8, ["visible", "header"]);
2536
2537
  };
2537
2538
  }
2538
- }), xn = /* @__PURE__ */ ye($n, [["__scopeId", "data-v-f3589bea"]]), Vn = { class: "lock-dialog-content" }, Dn = { class: "form-item" }, Sn = { class: "form-item" }, Mn = { class: "dialog-actions" }, An = /* @__PURE__ */ pe({
2539
+ }), xn = /* @__PURE__ */ ye($n, [["__scopeId", "data-v-22bfca30"]]), Vn = { class: "lock-dialog-content" }, Dn = { class: "form-item" }, Sn = { class: "form-item" }, Mn = { class: "dialog-actions" }, An = /* @__PURE__ */ pe({
2539
2540
  name: "CdScreenLockDialog",
2540
2541
  __name: "ScreenLockDialog",
2541
2542
  props: {
@@ -2676,7 +2677,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2676
2677
  }, 8, ["visible", "header"]);
2677
2678
  };
2678
2679
  }
2679
- }), Pn = /* @__PURE__ */ ye(An, [["__scopeId", "data-v-937525c7"]]), zn = { class: "shortcut-dialog-content" }, Fn = { class: "form-item" }, Un = { class: "form-item" }, In = { class: "current-keys" }, En = { class: "form-item" }, Rn = {
2680
+ }), Pn = /* @__PURE__ */ ye(An, [["__scopeId", "data-v-c92db49c"]]), zn = { class: "shortcut-dialog-content" }, Fn = { class: "form-item" }, Un = { class: "form-item" }, In = { class: "current-keys" }, En = { class: "form-item" }, Rn = {
2680
2681
  key: 1,
2681
2682
  class: "placeholder"
2682
2683
  }, Tn = { class: "dialog-actions" }, Bn = /* @__PURE__ */ pe({
@@ -2807,7 +2808,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2807
2808
  }, 8, ["visible", "header"]);
2808
2809
  };
2809
2810
  }
2810
- }), Ln = /* @__PURE__ */ ye(Bn, [["__scopeId", "data-v-5d627204"]]), Nn = { class: "cd-usercard-panel" }, On = { class: "calendar" }, qn = {
2811
+ }), Ln = /* @__PURE__ */ ye(Bn, [["__scopeId", "data-v-446bcaee"]]), Nn = { class: "cd-usercard-panel" }, On = { class: "calendar" }, qn = {
2811
2812
  key: 0,
2812
2813
  class: "calendar__legend"
2813
2814
  }, Hn = { class: "calendar__list" }, Wn = ["onClick"], jn = { class: "calendar__time" }, Yn = { class: "date" }, Kn = { class: "time" }, Gn = { class: "calendar__content" }, Xn = { class: "title" }, Qn = {
@@ -2838,7 +2839,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2838
2839
  ]),
2839
2840
  e("div", On, [
2840
2841
  l.showLegend ? (t(), a("div", qn, [...u[1] || (u[1] = [
2841
- _l('<span class="legend-item" data-v-42cd6172><span class="dot dot--meeting" data-v-42cd6172></span> 会议</span><span class="legend-item" data-v-42cd6172><span class="dot dot--task" data-v-42cd6172></span> 待办</span><span class="legend-item" data-v-42cd6172><span class="dot dot--reminder" data-v-42cd6172></span> 提醒</span>', 3)
2842
+ _l('<span class="legend-item" data-v-cea2996a><span class="dot dot--meeting" data-v-cea2996a></span> 会议</span><span class="legend-item" data-v-cea2996a><span class="dot dot--task" data-v-cea2996a></span> 待办</span><span class="legend-item" data-v-cea2996a><span class="dot dot--reminder" data-v-cea2996a></span> 提醒</span>', 3)
2842
2843
  ])])) : C("", !0),
2843
2844
  e("div", Hn, [
2844
2845
  (t(!0), a(K, null, le(l.data, (f) => (t(), a("div", {
@@ -2890,7 +2891,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
2890
2891
  ]);
2891
2892
  };
2892
2893
  }
2893
- }), lo = /* @__PURE__ */ ye(eo, [["__scopeId", "data-v-42cd6172"]]), to = { class: "cd-usercard-panel" }, ao = { class: "tasks" }, so = {
2894
+ }), lo = /* @__PURE__ */ ye(eo, [["__scopeId", "data-v-cea2996a"]]), to = { class: "cd-usercard-panel" }, ao = { class: "tasks" }, so = {
2894
2895
  key: 0,
2895
2896
  class: "tasks__filters"
2896
2897
  }, no = { class: "tasks__list" }, oo = ["onClick"], io = { class: "task__checkbox" }, ro = { class: "task__main" }, uo = { class: "task__header" }, co = { class: "task__left" }, fo = { class: "task__right" }, vo = {
@@ -3023,7 +3024,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3023
3024
  ]);
3024
3025
  };
3025
3026
  }
3026
- }), po = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-87522dcd"]]), _o = { class: "cd-usercard-panel favorites-panel" }, bo = {
3027
+ }), po = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-d6881f8b"]]), _o = { class: "cd-usercard-panel favorites-panel" }, bo = {
3027
3028
  key: 0,
3028
3029
  class: "favorites-tabs"
3029
3030
  }, yo = ["onClick"], ko = { class: "favorites-list" }, Co = ["onClick"], wo = { class: "item-info" }, $o = { class: "item-title" }, xo = { class: "item-desc" }, Vo = { class: "item-time" }, Do = ["onClick"], So = {
@@ -3084,7 +3085,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3084
3085
  ])
3085
3086
  ]));
3086
3087
  }
3087
- }), Ao = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-542c65ef"]]), Po = { class: "cd-usercard-panel qrcode-panel" }, zo = { class: "qrcode-cards" }, Fo = { class: "qrcode-box" }, Uo = ["src", "alt"], Io = {
3088
+ }), Ao = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-6b819e4a"]]), Po = { class: "cd-usercard-panel qrcode-panel" }, zo = { class: "qrcode-cards" }, Fo = { class: "qrcode-box" }, Uo = ["src", "alt"], Io = {
3088
3089
  key: 1,
3089
3090
  class: "ri-qr-code-line qrcode-placeholder"
3090
3091
  }, Eo = { class: "qrcode-info" }, Ro = { class: "qrcode-title" }, To = { class: "qrcode-desc" }, Bo = { class: "qrcode-actions" }, Lo = ["onClick"], No = ["onClick"], Oo = {
@@ -3161,7 +3162,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3161
3162
  ]);
3162
3163
  };
3163
3164
  }
3164
- }), jo = /* @__PURE__ */ ye(Wo, [["__scopeId", "data-v-6369d366"]]), Yo = { class: "cd-usercard-panel accounts-panel" }, Ko = { class: "bind-section" }, Go = { class: "bind-list" }, Xo = { class: "bind-info" }, Qo = { class: "bind-name" }, Jo = { class: "bind-desc" }, Zo = ["onClick"], ei = ["onClick"], li = {
3165
+ }), jo = /* @__PURE__ */ ye(Wo, [["__scopeId", "data-v-89f388c8"]]), Yo = { class: "cd-usercard-panel accounts-panel" }, Ko = { class: "bind-section" }, Go = { class: "bind-list" }, Xo = { class: "bind-info" }, Qo = { class: "bind-name" }, Jo = { class: "bind-desc" }, Zo = ["onClick"], ei = ["onClick"], li = {
3165
3166
  key: 0,
3166
3167
  class: "switch-section"
3167
3168
  }, ti = {
@@ -3266,13 +3267,13 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3266
3267
  class: "account-card add-account",
3267
3268
  onClick: s[0] || (s[0] = (r) => j.$emit("add"))
3268
3269
  }, [...s[6] || (s[6] = [
3269
- _l('<div class="account-avatar add" data-v-f36d0ea1><i class="ri-add-line" data-v-f36d0ea1></i></div><div class="account-info" data-v-f36d0ea1><div class="account-name" data-v-f36d0ea1>添加账号</div><div class="account-email" data-v-f36d0ea1>登录其他账号</div></div>', 2)
3270
+ _l('<div class="account-avatar add" data-v-36d182f7><i class="ri-add-line" data-v-36d182f7></i></div><div class="account-info" data-v-36d182f7><div class="account-name" data-v-36d182f7>添加账号</div><div class="account-email" data-v-36d182f7>登录其他账号</div></div>', 2)
3270
3271
  ])])
3271
3272
  ])) : C("", !0)
3272
3273
  ]);
3273
3274
  };
3274
3275
  }
3275
- }), gi = /* @__PURE__ */ ye(mi, [["__scopeId", "data-v-f36d0ea1"]]), hi = { class: "cd-usercard-panel settings-panel" }, pi = { class: "group-title" }, _i = { class: "setting-info" }, bi = { class: "setting-label" }, yi = {
3276
+ }), gi = /* @__PURE__ */ ye(mi, [["__scopeId", "data-v-36d182f7"]]), hi = { class: "cd-usercard-panel settings-panel" }, pi = { class: "group-title" }, _i = { class: "setting-info" }, bi = { class: "setting-label" }, yi = {
3276
3277
  key: 0,
3277
3278
  class: "setting-desc"
3278
3279
  }, ki = ["value", "onChange"], Ci = ["value"], wi = {
@@ -3346,7 +3347,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3346
3347
  ]))), 128))
3347
3348
  ]));
3348
3349
  }
3349
- }), Si = /* @__PURE__ */ ye(Di, [["__scopeId", "data-v-8e4bdbe8"]]), Mi = { class: "cd-usercard-panel security-panel" }, Ai = {
3350
+ }), Si = /* @__PURE__ */ ye(Di, [["__scopeId", "data-v-9df669f9"]]), Mi = { class: "cd-usercard-panel security-panel" }, Ai = {
3350
3351
  key: 0,
3351
3352
  class: "group-title"
3352
3353
  }, Pi = { class: "security-icon" }, zi = { class: "security-content" }, Fi = { class: "security-header" }, Ui = { class: "security-info" }, Ii = { class: "security-label" }, Ei = {
@@ -3406,7 +3407,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3406
3407
  ]))), 128))
3407
3408
  ]));
3408
3409
  }
3409
- }), Li = /* @__PURE__ */ ye(Bi, [["__scopeId", "data-v-d44765fe"]]), Ni = { class: "cd-usercard-panel help-panel" }, Oi = {
3410
+ }), Li = /* @__PURE__ */ ye(Bi, [["__scopeId", "data-v-171da489"]]), Ni = { class: "cd-usercard-panel help-panel" }, Oi = {
3410
3411
  key: 0,
3411
3412
  class: "help-categories"
3412
3413
  }, qi = ["href"], Hi = {
@@ -3481,7 +3482,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3481
3482
  ]);
3482
3483
  };
3483
3484
  }
3484
- }), Ji = /* @__PURE__ */ ye(Qi, [["__scopeId", "data-v-d9c3d7da"]]), Zi = { class: "cd-usercard-panel shortcuts-panel" }, ed = { class: "shortcuts-list" }, ld = ["onClick"], td = { class: "shortcut-label" }, ad = { class: "shortcut-keys" }, sd = {
3485
+ }), Ji = /* @__PURE__ */ ye(Qi, [["__scopeId", "data-v-7a41d616"]]), Zi = { class: "cd-usercard-panel shortcuts-panel" }, ed = { class: "shortcuts-list" }, ld = ["onClick"], td = { class: "shortcut-label" }, ad = { class: "shortcut-keys" }, sd = {
3485
3486
  key: 0,
3486
3487
  class: "shortcuts-empty"
3487
3488
  }, nd = /* @__PURE__ */ pe({
@@ -3522,7 +3523,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3522
3523
  ]);
3523
3524
  };
3524
3525
  }
3525
- }), od = /* @__PURE__ */ ye(nd, [["__scopeId", "data-v-d3f55b97"]]), id = { class: "cd-usercard-panel about-panel" }, dd = { class: "about-logo" }, rd = ["src", "alt"], ud = { class: "app-name" }, cd = { class: "app-version" }, fd = { class: "about-info" }, vd = { class: "info-item" }, md = { class: "info-value" }, gd = {
3526
+ }), od = /* @__PURE__ */ ye(nd, [["__scopeId", "data-v-56b77109"]]), id = { class: "cd-usercard-panel about-panel" }, dd = { class: "about-logo" }, rd = ["src", "alt"], ud = { class: "app-name" }, cd = { class: "app-version" }, fd = { class: "about-info" }, vd = { class: "info-item" }, md = { class: "info-value" }, gd = {
3526
3527
  key: 0,
3527
3528
  class: "info-item"
3528
3529
  }, hd = { class: "info-value" }, pd = {
@@ -3594,7 +3595,7 @@ const Rl = { class: "cd-usercard__header" }, Tl = { class: "cd-usercard__avatar-
3594
3595
  ]);
3595
3596
  };
3596
3597
  }
3597
- }), wd = /* @__PURE__ */ ye(Cd, [["__scopeId", "data-v-66317485"]]);
3598
+ }), wd = /* @__PURE__ */ ye(Cd, [["__scopeId", "data-v-3bbea5ac"]]);
3598
3599
  xe(bl);
3599
3600
  xe(lo);
3600
3601
  xe(po);