liyu-pc-base 1.0.2 → 1.0.8

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.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Z, ref as H, resolveComponent as k, openBlock as i, createBlock as C, withCtx as c, createVNode as O, createElementBlock as E, Fragment as A, renderList as K, createElementVNode as I, toDisplayString as G, reactive as P, computed as ce, watch as Y, onMounted as Me, createTextVNode as J, createCommentVNode as N, withDirectives as re, vShow as ue, pushScopeId as Ae, popScopeId as Ie, createSlots as Ve, onUnmounted as qe, onActivated as Be, normalizeStyle as de, withModifiers as le } from "vue";
2
- import { _ as x, h as Fe, F as De } from "../SearchRender-4500beb0.js";
3
- import { B as Cl, e as Ol, S as Sl, i as El } from "../SearchRender-4500beb0.js";
2
+ import { _ as x, h as Fe, F as De } from "../SearchRender-48437a40.js";
3
+ import { B as Cl, e as Ol, S as Sl, i as El } from "../SearchRender-48437a40.js";
4
4
  import { message as L, Modal as be } from "ant-design-vue";
5
5
  import { get_operator_type_map as se, isNotEmpty as ve, copyValue as Ke } from "../utils/function.js";
6
6
  import { CloseOutlined as Ne, LeftOutlined as Re, RightOutlined as Te, CloseCircleOutlined as Ge, CaretRightOutlined as Le, PlusOutlined as Je, SettingOutlined as ze, ExclamationCircleOutlined as we } from "@ant-design/icons-vue";
@@ -70,7 +70,7 @@ const o = (t, a) => {
70
70
  globalSearch: { name: "全局数据变化获取函数", type: "any", tab: "查询", editable: !1 },
71
71
  formModalConfig: { name: "新建弹框表单配置", type: "any", tab: "操作按钮" },
72
72
  updateFormModalConfig: { name: "修改弹框表单配置", type: "any", tab: "操作按钮" },
73
- titleList: { name: "默认按钮名称、权限", type: "any", tab: "操作按钮" },
73
+ titleList: { name: "默认按钮配置", type: "any", tab: "操作按钮" },
74
74
  api_fields: { name: "默认按钮字段转换", type: "{[key: string]: any}", tab: "操作按钮" },
75
75
  btn_list: { name: "操作列自定义按钮", type: "any", tab: "操作按钮", editable: !0 },
76
76
  head_btn_list: { name: "顶部自定义按钮", type: "any", tab: "操作按钮", editable: !0 },
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { e as _, g, b as q, u as v, r as n, a as j, c as C, d as M, l as T, s as x, f as A, h as F } from "./init-plugin-3dcd1452.js";
2
- import { F as m, A as a, a as u, S as t, R as c, b as S, c as d, d as l, J as b, e as f, f as I, g as R } from "./SearchRender-4500beb0.js";
2
+ import { F as m, A as a, a as u, S as t, R as c, b as S, c as d, d as l, J as b, e as f, f as I, g as R } from "./SearchRender-48437a40.js";
3
3
  import "vue";
4
4
  import "@ant-design/icons-vue";
5
5
  import "ant-design-vue";
@@ -112,7 +112,7 @@ const N = (e) => (e && (e = e.substring(0, 5)), e), M = (e) => (e && (e = e.subs
112
112
  props: {}
113
113
  };
114
114
  return ((n = e == null ? void 0 : e.meta_data) == null ? void 0 : n.rowSpan) != null && (s.props.rowSpan = e.meta_data.rowSpan), s;
115
- }, f = (e) => e === null || e == null || e === "", y = (e, s) => {
115
+ }, l = (e) => e === null || e == null || e === "", y = (e, s) => {
116
116
  let n;
117
117
  if (s == "int")
118
118
  p(e) && e instanceof Array ? (n = [], e.forEach((t) => {
@@ -153,34 +153,34 @@ const N = (e) => (e && (e = e.substring(0, 5)), e), M = (e) => (e && (e = e.subs
153
153
  e.sort((s, n) => (s.order || 0) - (n.order || 0)), e.forEach((s) => {
154
154
  s.children && S(s.children);
155
155
  });
156
- }, c = (e, s = "YYYY-MM-DD") => i(e, s, !0).isValid(), Z = ({
156
+ }, d = (e, s = "YYYY-MM-DD") => i(e, s, !0).isValid(), Z = ({
157
157
  record: e,
158
158
  conditions: s,
159
159
  dataSource: n,
160
160
  selectedRowKeys: t
161
- }) => !s || s.length === 0 ? !0 : s.map((a) => !a || a.length === 0 ? !0 : a.map((d) => {
162
- if (!d)
161
+ }) => !s || s.length === 0 ? !0 : s.map((a) => !a || a.length === 0 ? !0 : a.map((c) => {
162
+ if (!c)
163
163
  return !1;
164
164
  let r = null;
165
- t instanceof Array ? r = n.filter((l) => t.includes(l.id)).map((l) => l[l.flag]) : r = e[d.flag];
166
- let o = y(d.value, d.type);
167
- switch (o instanceof Array || (o = [o]), d.operator) {
165
+ t instanceof Array ? r = n.filter((f) => t.includes(f.id)).map((f) => f[c.flag]) : r = e[c.flag];
166
+ let o = y(c.value, c.type);
167
+ switch (o instanceof Array || (o = [o]), c.operator) {
168
168
  case "lt":
169
- return typeof o[0] == "number" ? !f(r) && r < o[0] : c(o[0]) ? !f(r) && i(r).isBefore(i(o[0])) : !1;
169
+ return typeof o[0] == "number" ? !l(r) && r < o[0] : d(o[0]) ? !l(r) && i(r).isBefore(i(o[0])) : !1;
170
170
  case "lte":
171
- return typeof o[0] == "number" ? !f(r) && r <= o[0] : c(o[0]) ? !f(r) && (i(r).isBefore(i(o[0])) || i(r).isSame(i(o[0]))) : !1;
171
+ return typeof o[0] == "number" ? !l(r) && r <= o[0] : d(o[0]) ? !l(r) && (i(r).isBefore(i(o[0])) || i(r).isSame(i(o[0]))) : !1;
172
172
  case "gt":
173
- return typeof o[0] == "number" ? !f(r) && r > o[0] : c(o[0]) ? !f(r) && i(r).isAfter(i(o[0])) : !1;
173
+ return typeof o[0] == "number" ? !l(r) && r > o[0] : d(o[0]) ? !l(r) && i(r).isAfter(i(o[0])) : !1;
174
174
  case "gte":
175
- return typeof o[0] == "number" ? !f(r) && r >= o[0] : c(o[0]) ? !f(r) && (i(r).isAfter(i(o[0])) || i(r).isSame(i(o[0]))) : !1;
175
+ return typeof o[0] == "number" ? !l(r) && r >= o[0] : d(o[0]) ? !l(r) && (i(r).isAfter(i(o[0])) || i(r).isSame(i(o[0]))) : !1;
176
176
  case "between":
177
- return typeof o[0] == "number" && typeof o[1] == "number" ? !f(r) && r >= o[0] && r <= o[1] : c(o[0]) && c(o[1]) ? !f(r) && (i(r).isAfter(i(o[0])) || i(r).isSame(i(o[0]))) && (i(r).isBefore(i(o[1])) || i(r).isSame(i(o[1]))) : !1;
177
+ return typeof o[0] == "number" && typeof o[1] == "number" ? !l(r) && r >= o[0] && r <= o[1] : d(o[0]) && d(o[1]) ? !l(r) && (i(r).isAfter(i(o[0])) || i(r).isSame(i(o[0]))) && (i(r).isBefore(i(o[1])) || i(r).isSame(i(o[1]))) : !1;
178
178
  case "notbetween":
179
- return typeof o[0] == "number" && typeof o[1] == "number" ? !f(r) && (r < o[0] || r > o[1]) : c(o[0]) && c(o[1]) ? !f(r) && (i(r).isBefore(i(o[0])) || i(r).isAfter(i(o[1]))) : !1;
179
+ return typeof o[0] == "number" && typeof o[1] == "number" ? !l(r) && (r < o[0] || r > o[1]) : d(o[0]) && d(o[1]) ? !l(r) && (i(r).isBefore(i(o[0])) || i(r).isAfter(i(o[1]))) : !1;
180
180
  case "in":
181
- return r instanceof Array ? o.some((l) => r.includes(l)) : o.some((l) => r == l);
181
+ return r instanceof Array ? o.some((f) => r.includes(f)) : o.some((f) => r == f);
182
182
  case "notin":
183
- return r instanceof Array ? !o.some((l) => r.includes(l)) : !o.some((l) => r == l);
183
+ return r instanceof Array ? !o.some((f) => r.includes(f)) : !o.some((f) => r == f);
184
184
  case "eq":
185
185
  return r === o[0];
186
186
  case "not_eq":
@@ -210,7 +210,7 @@ const N = (e) => (e && (e = e.substring(0, 5)), e), M = (e) => (e && (e = e.subs
210
210
  default:
211
211
  return !1;
212
212
  }
213
- }).every((d) => d)).some((a) => a);
213
+ }).every((c) => c)).some((a) => a);
214
214
  export {
215
215
  Z as checkCondition,
216
216
  y as convertValueByClassName,
@@ -238,9 +238,9 @@ export {
238
238
  K as get_page_tree_data,
239
239
  J as get_remote_tree_data,
240
240
  G as get_tag_color_by_slots,
241
- f as isEmpty,
241
+ l as isEmpty,
242
242
  p as isNotEmpty,
243
- c as isValidDate,
243
+ d as isValidDate,
244
244
  S as nested_sort_list,
245
245
  I as showGroupFormat,
246
246
  T as toFixed0,
package/package.json CHANGED
@@ -2,10 +2,11 @@
2
2
  "name": "liyu-pc-base",
3
3
  "type": "module",
4
4
  "license": "MIT",
5
- "version": "1.0.2",
5
+ "version": "1.0.8",
6
6
  "scripts": {
7
7
  "dev": "vite",
8
8
  "build": "vite build",
9
+ "build:watch": "vite build --watch",
9
10
  "preview": "vite preview",
10
11
  "gen_version": "node scripts/version.js"
11
12
  },