yc-vep-ui 0.3.65 → 0.3.66

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.
@@ -1206,19 +1206,19 @@ var _hoisted_1$11 = { style: {
1206
1206
  "update:modelValue"
1207
1207
  ],
1208
1208
  setup(e, { expose: n, emit: r }) {
1209
- useCssVars((e) => ({ b708f6c4: unref(p) / 2 }));
1209
+ useCssVars((e) => ({ v45212a72: unref(p) / 2 }));
1210
1210
  let i = r, a = e, { fields: o, labelWidth: s = "100px", valueWidth: c = "auto", omitFields: l = [], rules: u = reactive({}), labelPosition: d = "top", valueModel: f = "default", column: p = 24 } = a, m = ref(0), g = ref(), _ = computed(() => a.modelValue !== void 0), v = reactive({}), y = computed(() => _.value ? a.modelValue : a.model || v), b = computed({
1211
1211
  get: () => y.value,
1212
1212
  set: (e) => {
1213
1213
  _.value && i("update:modelValue", e);
1214
1214
  }
1215
1215
  }), x = computed(() => o.filter((e) => typeof e.prop == "string")), S = computed(() => {
1216
- if (u && Object.keys(u).length) return u;
1217
1216
  let e = {};
1218
- return o.forEach((n) => {
1219
- n.rules && Object.keys(n.rules).length ? e[n.prop] = n.rules : n.required && (e[n.prop] = [{
1217
+ return x.value.forEach((n) => {
1218
+ let r = n.prop;
1219
+ u && u[r] ? e[r] = u[r] : n.rules && Object.keys(n.rules).length ? e[r] = n.rules : n.required && (e[r] = [{
1220
1220
  required: !0,
1221
- message: "请输入" + n.label,
1221
+ message: `请输入${n.label}`,
1222
1222
  trigger: "change"
1223
1223
  }]);
1224
1224
  }), e;
@@ -1369,7 +1369,7 @@ var _hoisted_1$11 = { style: {
1369
1369
  ]))], 64);
1370
1370
  };
1371
1371
  }
1372
- }), Form_exports = /* @__PURE__ */ __exportAll$1({ default: () => Form_default }), Form_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$9, [["__scopeId", "data-v-dba1eead"]]), _hoisted_1$9 = ["disabled"], index_vue_vue_type_script_setup_true_lang_default$8 = /* @__PURE__ */ defineComponent({
1372
+ }), Form_exports = /* @__PURE__ */ __exportAll$1({ default: () => Form_default }), Form_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$9, [["__scopeId", "data-v-d3c1716d"]]), _hoisted_1$9 = ["disabled"], index_vue_vue_type_script_setup_true_lang_default$8 = /* @__PURE__ */ defineComponent({
1373
1373
  __name: "index",
1374
1374
  props: /* @__PURE__ */ mergeModels({
1375
1375
  defaultValue: { default: "" },
@@ -4842,10 +4842,8 @@ function useDetail(e) {
4842
4842
  let e = d.data, r = {
4843
4843
  ...n.query,
4844
4844
  instanceId: e
4845
- }, i = n.mode === "hash" ? `${window.location.hash.split("?")[0]}?${new URLSearchParams(r).toString()}` : `${window.location.pathname}?${new URLSearchParams(r).toString()}`;
4846
- setTimeout(() => {
4847
- window.location.href = i, window.location.reload();
4848
- }, 1500);
4845
+ };
4846
+ n.mode === "hash" ? `${window.location.hash.split("?")[0]}${new URLSearchParams(r).toString()}` : `${window.location.pathname}${new URLSearchParams(r).toString()}`;
4849
4847
  } else VepMessage.error(d?.message || "提交失败");
4850
4848
  }
4851
4849
  async function p(e) {
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-DoOml3Rs.js";
1
+ import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-Dl3ojaXs.js";
2
2
  export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
package/dist/index.css CHANGED
@@ -43,24 +43,24 @@
43
43
  }
44
44
  }
45
45
 
46
- .ui-form-buttons[data-v-dba1eead] {
46
+ .ui-form-buttons[data-v-d3c1716d] {
47
47
  display: flex;
48
48
  justify-content: flex-start;
49
49
  align-items: center;
50
50
  }
51
51
  .ui-form {
52
- &[data-v-dba1eead] {
52
+ &[data-v-d3c1716d] {
53
53
  display: grid;
54
- grid-template-columns: repeat(var(--b708f6c4), minmax(0, 1fr));
54
+ grid-template-columns: repeat(var(--v45212a72), minmax(0, 1fr));
55
55
  gap: 0px 40px;
56
56
  }
57
- &[data-v-dba1eead] .el-form-item__label {
57
+ &[data-v-d3c1716d] .el-form-item__label {
58
58
  margin-bottom: 0;
59
59
  font-weight: bold;
60
60
  font-size: 0.8em;
61
61
  color: #6b7280;
62
62
  }
63
- &[data-v-dba1eead] .el-form-item__content {
63
+ &[data-v-d3c1716d] .el-form-item__content {
64
64
  display: flex;
65
65
  flex-wrap: inherit;
66
66
  width: 100%;
@@ -78,8 +78,8 @@
78
78
 
79
79
  /* 下划线样式 */
80
80
  .underline {
81
- &[data-v-dba1eead] .el-input__wrapper,
82
- &[data-v-dba1eead] .el-textarea__inner {
81
+ &[data-v-d3c1716d] .el-input__wrapper,
82
+ &[data-v-d3c1716d] .el-textarea__inner {
83
83
  box-shadow: 0px 1px 0px var(--el-input-border-color, var(--el-border-color));
84
84
  }
85
85
  }
@@ -1,2 +1,2 @@
1
- import { O as e, _ as t, b as n, v as r, y as i } from "../entry-DoOml3Rs.js";
1
+ import { O as e, _ as t, b as n, v as r, y as i } from "../entry-Dl3ojaXs.js";
2
2
  export { t as baseUrl, n as request, e as tempToRender, r as uniq, i as uniqBy };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-DoOml3Rs.js";
1
+ import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-Dl3ojaXs.js";
2
2
  export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.65",
3
+ "version": "0.3.66",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [
@@ -38,12 +38,6 @@
38
38
  "dist",
39
39
  "README.md"
40
40
  ],
41
- "scripts": {
42
- "dev": "vite",
43
- "build": "vue-tsc && vite build",
44
- "build:lib": "vite build && node scripts/generate-entry-dts.cjs",
45
- "preview": "vite preview"
46
- },
47
41
  "dependencies": {
48
42
  "aieditor": "^1.4.0",
49
43
  "jsencrypt": "^3.5.4",
@@ -73,5 +67,11 @@
73
67
  },
74
68
  "sideEffects": [
75
69
  "**/*.css"
76
- ]
77
- }
70
+ ],
71
+ "scripts": {
72
+ "dev": "vite",
73
+ "build": "vue-tsc && vite build",
74
+ "build:lib": "vite build && node scripts/generate-entry-dts.cjs",
75
+ "preview": "vite preview"
76
+ }
77
+ }