@unizhen/ui 0.0.29 → 0.0.30

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.
@@ -7,7 +7,6 @@ import { Theme } from 'naive-ui/es/_mixins';
7
7
  import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
8
8
  import { BinderInst } from 'vueuc';
9
9
  type ICircle = {
10
- fill: string;
11
10
  backgroundBg: string;
12
11
  processBg: string;
13
12
  pointBg: string;
@@ -22,6 +21,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
22
21
  type: PropType<string>;
23
22
  default: string;
24
23
  };
24
+ circleTxtFill: {
25
+ type: PropType<string>;
26
+ default: string;
27
+ };
28
+ circleTxtSize: {
29
+ type: PropType<number>;
30
+ default: number;
31
+ };
25
32
  pointSize: {
26
33
  type: PropType<number>;
27
34
  default: number;
@@ -29,7 +36,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
29
36
  styles: {
30
37
  type: PropType<ICircle>;
31
38
  default: () => {
32
- fill: string;
33
39
  backgroundBg: string;
34
40
  processBg: string;
35
41
  pointBg: string;
@@ -64,6 +70,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
64
70
  type: PropType<string>;
65
71
  default: string;
66
72
  };
73
+ circleTxtFill: {
74
+ type: PropType<string>;
75
+ default: string;
76
+ };
77
+ circleTxtSize: {
78
+ type: PropType<number>;
79
+ default: number;
80
+ };
67
81
  pointSize: {
68
82
  type: PropType<number>;
69
83
  default: number;
@@ -71,7 +85,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
71
85
  styles: {
72
86
  type: PropType<ICircle>;
73
87
  default: () => {
74
- fill: string;
75
88
  backgroundBg: string;
76
89
  processBg: string;
77
90
  pointBg: string;
@@ -80,6 +93,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
80
93
  }>> & Readonly<{}>, {
81
94
  circle: string | number;
82
95
  circleTxt: string;
96
+ circleTxtFill: string;
97
+ circleTxtSize: number;
83
98
  pointSize: number;
84
99
  styles: ICircle;
85
100
  }, {}, {
package/lib/ui.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Hc = Object.defineProperty;
2
2
  var Kc = (e, t, r) => t in e ? Hc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var It = (e, t, r) => Kc(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as ie, createElementBlock as m, openBlock as c, createStaticVNode as U, createElementVNode as l, ref as I, watch as we, nextTick as Le, h as Y, reactive as Ia, resolveComponent as $, createBlock as F, withCtx as v, toDisplayString as P, createVNode as T, createCommentVNode as G, normalizeStyle as Ie, inject as Ke, computed as bt, normalizeClass as de, createSlots as Fe, createTextVNode as K, Fragment as le, renderList as Ce, provide as ka, onMounted as We, resolveDirective as Rl, withDirectives as vt, mergeProps as ba, withModifiers as Dt, watchEffect as Fl, onBeforeUnmount as Da, withKeys as Gc, renderSlot as Te, markRaw as Wc, defineAsyncComponent as Jc, onUnmounted as Bl, vShow as _a, resolveDynamicComponent as mo } from "vue";
4
+ import { defineComponent as ie, createElementBlock as m, openBlock as c, createStaticVNode as U, createElementVNode as l, ref as I, watch as we, nextTick as Le, h as Y, reactive as Ia, resolveComponent as $, createBlock as F, withCtx as v, toDisplayString as P, createVNode as T, createCommentVNode as G, normalizeStyle as Ne, inject as Ke, computed as bt, normalizeClass as de, createSlots as Fe, createTextVNode as K, Fragment as le, renderList as Ce, provide as ka, onMounted as We, resolveDirective as Rl, withDirectives as vt, mergeProps as ba, withModifiers as Dt, watchEffect as Fl, onBeforeUnmount as Da, withKeys as Gc, renderSlot as Te, markRaw as Wc, defineAsyncComponent as Jc, onUnmounted as Bl, vShow as _a, resolveDynamicComponent as mo } from "vue";
5
5
  import { createDiscreteApi as Qc, NPopover as ct, NFlex as Vl, NButton as _e, NPopconfirm as ja, NTooltip as Ul, NIcon as be, NDropdown as Xc, NCascader as Pl, NCheckboxGroup as Oa, NCheckbox as Aa, NColorPicker as Yc, NSwitch as Zc, NTimePicker as ed, NDatePicker as td, NInputNumber as rd, NSelect as El, NInput as nd, NDivider as za, NFormItem as qa, NForm as Ra, NInputGroup as Fa, NUploadDragger as ad, NImage as Ll, NUpload as Hl, useNotification as zt, NImageGroup as od, NModal as sd, NInputGroupLabel as Kl, NGridItem as Gl, NGrid as Wl, NButtonGroup as ld, NDrawerContent as Ba, NDrawer as Va, NTag as id, NEllipsis as ud, NSpin as Ua, NRadioGroup as Jl, NSkeleton as Ql, NDataTable as Pa, NPagination as cd, NRadio as dd, NTabPane as fd, NTabs as pd, darkTheme as me, NConfigProvider as hd, dateZhCN as wd, zhCN as md } from "naive-ui";
6
6
  import Ea from "axios";
7
7
  import { createRouter as vd, createWebHistory as gd, useRouter as yd, useRoute as qt } from "vue-router";
@@ -3130,6 +3130,14 @@ const Qm = /* @__PURE__ */ _(Wm, [["render", Jm]]), Xm = ie({
3130
3130
  type: String,
3131
3131
  default: ""
3132
3132
  },
3133
+ circleTxtFill: {
3134
+ type: String,
3135
+ default: "rgb(var(--font))"
3136
+ },
3137
+ circleTxtSize: {
3138
+ type: Number,
3139
+ default: 8
3140
+ },
3133
3141
  pointSize: {
3134
3142
  type: Number,
3135
3143
  default: 3
@@ -3137,7 +3145,6 @@ const Qm = /* @__PURE__ */ _(Wm, [["render", Jm]]), Xm = ie({
3137
3145
  styles: {
3138
3146
  type: Object,
3139
3147
  default: () => ({
3140
- fill: "rgb(var(--font))",
3141
3148
  backgroundBg: "rgba(255, 255, 255, 0.1)",
3142
3149
  processBg: "rgba(0, 134, 255)",
3143
3150
  pointBg: "#fff"
@@ -3159,7 +3166,7 @@ const Qm = /* @__PURE__ */ _(Wm, [["render", Jm]]), Xm = ie({
3159
3166
  calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
3160
3167
  };
3161
3168
  }
3162
- }), Ym = { viewBox: "40 20 120 120" }, Zm = ["stroke"], ev = ["stroke"], tv = ["r", "transform", "fill"], rv = ["fill"], nv = ["fill"];
3169
+ }), Ym = { viewBox: "40 20 120 120" }, Zm = ["stroke"], ev = ["stroke"], tv = ["r", "transform", "fill"], rv = ["dy", "fill"], nv = ["fill"];
3163
3170
  function av(e, t, r, n, a, o) {
3164
3171
  return c(), m("svg", Ym, [
3165
3172
  t[0] || (t[0] = l("defs", null, [
@@ -3202,7 +3209,7 @@ function av(e, t, r, n, a, o) {
3202
3209
  r: "50",
3203
3210
  fill: "none",
3204
3211
  "stroke-width": "10",
3205
- style: Ie(e.calculateCircle()),
3212
+ style: Ne(e.calculateCircle()),
3206
3213
  stroke: e.styles.processBg
3207
3214
  }, null, 12, ev),
3208
3215
  l("circle", {
@@ -3217,19 +3224,19 @@ function av(e, t, r, n, a, o) {
3217
3224
  }, null, 8, tv),
3218
3225
  l("text", {
3219
3226
  dx: "100",
3220
- dy: "90",
3221
- fill: e.styles.fill,
3227
+ dy: e.circleTxt ? 80 : 90,
3228
+ fill: e.circleTxtFill,
3222
3229
  "text-anchor": "middle",
3223
3230
  style: { "font-size": "28px" }
3224
3231
  }, P(e.circle), 9, rv),
3225
3232
  e.circleTxt ? (c(), m("text", {
3226
3233
  key: 0,
3227
3234
  dx: "100",
3228
- dy: "105",
3229
- fill: e.styles.fill,
3235
+ dy: "100",
3236
+ fill: e.circleTxtFill,
3230
3237
  "text-anchor": "middle",
3231
- style: { "font-size": "8px" }
3232
- }, P(e.circleTxt), 9, nv)) : G("", !0)
3238
+ style: Ne(`font-size: ${e.circleTxtSize}px`)
3239
+ }, P(e.circleTxt), 13, nv)) : G("", !0)
3233
3240
  ]);
3234
3241
  }
3235
3242
  const ov = /* @__PURE__ */ _(Xm, [["render", av]]);
@@ -4431,8 +4438,8 @@ var sa, xl;
4431
4438
  function bg() {
4432
4439
  if (xl) return sa;
4433
4440
  xl = 1;
4434
- var e = zv(), t = qv(), r = gc(), n = Gv(), a = Qv(), o = Xv(), s = Yv(), u = eg(), h = tg(), w = rg(), b = ng(), D = uo(), g = ig(), d = hg(), y = mg(), i = ro(), k = yc(), f = gg(), p = Qe(), C = kg(), N = so(), B = lo(), E = 1, R = 2, O = 4, j = "[object Arguments]", x = "[object Array]", S = "[object Boolean]", q = "[object Date]", z = "[object Error]", A = "[object Function]", H = "[object GeneratorFunction]", W = "[object Map]", ue = "[object Number]", se = "[object Object]", pe = "[object RegExp]", Ve = "[object Set]", Ne = "[object String]", ve = "[object Symbol]", at = "[object WeakMap]", Mt = "[object ArrayBuffer]", St = "[object DataView]", Xt = "[object Float32Array]", Yt = "[object Float64Array]", Zt = "[object Int8Array]", er = "[object Int16Array]", tr = "[object Int32Array]", ge = "[object Uint8Array]", rr = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", ar = "[object Uint32Array]", ne = {};
4435
- ne[j] = ne[x] = ne[Mt] = ne[St] = ne[S] = ne[q] = ne[Xt] = ne[Yt] = ne[Zt] = ne[er] = ne[tr] = ne[W] = ne[ue] = ne[se] = ne[pe] = ne[Ve] = ne[Ne] = ne[ve] = ne[ge] = ne[rr] = ne[nr] = ne[ar] = !0, ne[z] = ne[A] = ne[at] = !1;
4441
+ var e = zv(), t = qv(), r = gc(), n = Gv(), a = Qv(), o = Xv(), s = Yv(), u = eg(), h = tg(), w = rg(), b = ng(), D = uo(), g = ig(), d = hg(), y = mg(), i = ro(), k = yc(), f = gg(), p = Qe(), C = kg(), N = so(), B = lo(), E = 1, R = 2, O = 4, j = "[object Arguments]", x = "[object Array]", S = "[object Boolean]", q = "[object Date]", z = "[object Error]", A = "[object Function]", H = "[object GeneratorFunction]", W = "[object Map]", ue = "[object Number]", se = "[object Object]", pe = "[object RegExp]", Ve = "[object Set]", Ie = "[object String]", ve = "[object Symbol]", at = "[object WeakMap]", Mt = "[object ArrayBuffer]", St = "[object DataView]", Xt = "[object Float32Array]", Yt = "[object Float64Array]", Zt = "[object Int8Array]", er = "[object Int16Array]", tr = "[object Int32Array]", ge = "[object Uint8Array]", rr = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", ar = "[object Uint32Array]", ne = {};
4442
+ ne[j] = ne[x] = ne[Mt] = ne[St] = ne[S] = ne[q] = ne[Xt] = ne[Yt] = ne[Zt] = ne[er] = ne[tr] = ne[W] = ne[ue] = ne[se] = ne[pe] = ne[Ve] = ne[Ie] = ne[ve] = ne[ge] = ne[rr] = ne[nr] = ne[ar] = !0, ne[z] = ne[A] = ne[at] = !1;
4436
4443
  function ot(Z, Ue, Pe, or, qe, $e) {
4437
4444
  var he, Re = Ue & E, Xe = Ue & R, Tt = Ue & O;
4438
4445
  if (Pe && (he = qe ? Pe(Z, or, qe, $e) : Pe(Z)), he !== void 0)
@@ -5305,7 +5312,7 @@ function Ng(e, t, r, n, a, o) {
5305
5312
  key: 0,
5306
5313
  path: k.key,
5307
5314
  rule: k.input === "subTable" ? void 0 : (p = k.form.rule) != null && p.required ? k.form.rule : void 0,
5308
- style: Ie(`grid-column: span ${k.form.span || 6} / span ${k.form.span || 6};`),
5315
+ style: Ne(`grid-column: span ${k.form.span || 6} / span ${k.form.span || 6};`),
5309
5316
  "show-label": k.input !== "divider" && k.input !== "subTable",
5310
5317
  "show-feedback": e.showFeedback && k.input !== "divider"
5311
5318
  }, {
@@ -5558,7 +5565,7 @@ function Og(e, t, r, n, a, o) {
5558
5565
  ]),
5559
5566
  onClick: Dt((N) => e.onModeClick(f, p), ["stop"]),
5560
5567
  key: p,
5561
- style: Ie(`grid-column: span ${f.form.span || 6} / span ${f.form.span || 6};`),
5568
+ style: Ne(`grid-column: span ${f.form.span || 6} / span ${f.form.span || 6};`),
5562
5569
  "show-label": f.input !== "divider" && f.input !== "subTable",
5563
5570
  "show-feedback": e.showFeedback && f.input !== "divider"
5564
5571
  }, {
@@ -5632,7 +5639,7 @@ function Og(e, t, r, n, a, o) {
5632
5639
  ]),
5633
5640
  onClick: Dt((R) => e.onModeClick(N, p, B), ["stop"]),
5634
5641
  key: B,
5635
- style: Ie(`grid-column: span ${N.form.span || 6} / span ${N.form.span || 6};`),
5642
+ style: Ne(`grid-column: span ${N.form.span || 6} / span ${N.form.span || 6};`),
5636
5643
  "show-label": N.input !== "divider" && N.input !== "subTable",
5637
5644
  "show-feedback": e.showFeedback && N.input !== "divider"
5638
5645
  }, {
@@ -6136,7 +6143,7 @@ function Qg(e, t, r, n, a, o) {
6136
6143
  default: v(() => [
6137
6144
  l("div", {
6138
6145
  class: "uz-scan-canvas-main",
6139
- style: Ie({
6146
+ style: Ne({
6140
6147
  width: `${e.width}px`,
6141
6148
  height: `${e.height}px`
6142
6149
  })
@@ -6153,7 +6160,7 @@ function Qg(e, t, r, n, a, o) {
6153
6160
  e.mode === "video" ? (c(), m("div", {
6154
6161
  key: 2,
6155
6162
  class: "uz-scan-canvas-main",
6156
- style: Ie({
6163
+ style: Ne({
6157
6164
  width: `${e.width}px`,
6158
6165
  height: `${e.height}px`
6159
6166
  })
@@ -7639,13 +7646,13 @@ const jc = /* @__PURE__ */ _(y2, [["render", _2], ["__scopeId", "data-v-60472dc1
7639
7646
  fetch: null,
7640
7647
  when_drawer_open: "",
7641
7648
  when_before_save: ""
7642
- }), W = I(ut()), ue = I(!1), se = I(0), pe = I(""), Ve = I(!1), Ne = I([]), ve = I([]), at = I(!1), Mt = I(""), St = I({}), Xt = Ke("modules"), Yt = (M) => M.id, Zt = (M, V) => {
7649
+ }), W = I(ut()), ue = I(!1), se = I(0), pe = I(""), Ve = I(!1), Ie = I([]), ve = I([]), at = I(!1), Mt = I(""), St = I({}), Xt = Ke("modules"), Yt = (M) => M.id, Zt = (M, V) => {
7643
7650
  t("update:rowKeys", {
7644
7651
  keys: M,
7645
7652
  rows: Q(V)
7646
7653
  });
7647
7654
  }, er = (M, V, J) => {
7648
- if (Ne.value = M, J.action === "check" && ve.value.push(J.row), J.action === "uncheck") {
7655
+ if (Ie.value = M, J.action === "check" && ve.value.push(J.row), J.action === "uncheck") {
7649
7656
  const ee = ve.value.findIndex(
7650
7657
  (L) => {
7651
7658
  var te;
@@ -7656,8 +7663,8 @@ const jc = /* @__PURE__ */ _(y2, [["render", _2], ["__scopeId", "data-v-60472dc1
7656
7663
  }
7657
7664
  J.action === "checkAll" && V.forEach((ee) => {
7658
7665
  ee && ve.value.push(ee);
7659
- }), J.action === "uncheckAll" && (ve.value = [], Ne.value = []), t("update:rowKeys", {
7660
- keys: Q(Ne.value),
7666
+ }), J.action === "uncheckAll" && (ve.value = [], Ie.value = []), t("update:rowKeys", {
7667
+ keys: Q(Ie.value),
7661
7668
  rows: Q(ve.value)
7662
7669
  });
7663
7670
  }, tr = (M) => {
@@ -8176,7 +8183,7 @@ const jc = /* @__PURE__ */ _(y2, [["render", _2], ["__scopeId", "data-v-60472dc1
8176
8183
  spinError: Ve,
8177
8184
  isMobile: u,
8178
8185
  mRef: h,
8179
- checkRowKeys: Ne,
8186
+ checkRowKeys: Ie,
8180
8187
  route: a,
8181
8188
  insiderShow: at,
8182
8189
  insiderLink: Mt,
@@ -8475,7 +8482,7 @@ function z2(e, t, r, n, a, o) {
8475
8482
  "min-height": e.minH,
8476
8483
  "max-height": e.maxH,
8477
8484
  "flex-height": e.flexHeight,
8478
- style: Ie(e.style),
8485
+ style: Ne(e.style),
8479
8486
  "row-key": e.rowKey,
8480
8487
  "on-update:page": e.pageChange,
8481
8488
  "on-update:page-size": e.pageSizeChange,
@@ -8706,8 +8713,8 @@ const q2 = /* @__PURE__ */ _(x2, [["render", z2]]), R2 = ie({
8706
8713
  buttonText: "删除",
8707
8714
  confirmText: "确认删除?",
8708
8715
  onClick: () => {
8709
- const Ne = e.item.params.deleteFn;
8710
- Ne && typeof Ne == "string" ? ue = new Function("rowData", "mainFormValue", Ne)(ue, o) : ue.delete = !0;
8716
+ const Ie = e.item.params.deleteFn;
8717
+ Ie && typeof Ie == "string" ? ue = new Function("rowData", "mainFormValue", Ie)(ue, o) : ue.delete = !0;
8711
8718
  }
8712
8719
  };
8713
8720
  return e.item.params.childActions && e.item.params.actions && At(e.item.params.actions).forEach((ve) => {
@@ -9406,7 +9413,7 @@ function ly(e, t, r, n, a, o) {
9406
9413
  (c(!0), m(le, null, Ce(e.tableColumns, (s) => (c(), m("div", {
9407
9414
  key: s.key,
9408
9415
  class: de(["flex overflow-hidden", s.lineBreak ? "flex-col" : ""]),
9409
- style: Ie(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
9416
+ style: Ne(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
9410
9417
  }, [
9411
9418
  s.key === "action" ? (c(), m(le, { key: 0 }, [
9412
9419
  s.render ? (c(), F(mo(
@@ -9494,7 +9501,7 @@ function py(e, t, r, n, a, o) {
9494
9501
  e.checkChange
9495
9502
  ],
9496
9503
  class: "flex flex-col gap-2 uz-table-mobile-group",
9497
- style: Ie({
9504
+ style: Ne({
9498
9505
  minHeight: e.minH,
9499
9506
  maxHeight: e.maxH
9500
9507
  })
@@ -9536,7 +9543,7 @@ function py(e, t, r, n, a, o) {
9536
9543
  e.radioChange
9537
9544
  ],
9538
9545
  class: "flex! flex-col gap-2 uz-table-mobile-group",
9539
- style: Ie({
9546
+ style: Ne({
9540
9547
  minHeight: e.minH,
9541
9548
  maxHeight: e.maxH
9542
9549
  })
@@ -9573,7 +9580,7 @@ function py(e, t, r, n, a, o) {
9573
9580
  }, 8, ["value", "style", "onUpdate:value"])) : (c(), m("div", {
9574
9581
  key: 2,
9575
9582
  class: "flex flex-col gap-2 uz-table-mobile-group",
9576
- style: Ie({
9583
+ style: Ne({
9577
9584
  minHeight: e.minH,
9578
9585
  maxHeight: e.maxH
9579
9586
  })
@@ -10299,7 +10306,7 @@ function mk(e, t, r) {
10299
10306
  refetch: p
10300
10307
  };
10301
10308
  }
10302
- const zy = "0.0.29";
10309
+ const zy = "0.0.30";
10303
10310
  let Ec;
10304
10311
  async function Lc() {
10305
10312
  const e = await fetch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },