3h1-ui 2.1.18 → 2.1.20

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.
Files changed (3) hide show
  1. package/es/index.js +18 -10
  2. package/lib/index.js +18 -10
  3. package/package.json +3 -3
package/es/index.js CHANGED
@@ -6,6 +6,7 @@ import { zxcvbn } from "@zxcvbn-ts/core";
6
6
  import Iconify from "@purge-icons/generated";
7
7
  import Sortablejs from "sortablejs";
8
8
  import "xe-utils";
9
+ import { VxeTable, VxeColumn } from "vxe-table";
9
10
  const windiBase = "";
10
11
  const windiComponents = "";
11
12
  const windiUtilities = "";
@@ -10270,7 +10271,6 @@ function useForm(props2) {
10270
10271
  "The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"
10271
10272
  );
10272
10273
  }
10273
- await nextTick();
10274
10274
  return form;
10275
10275
  }
10276
10276
  function register(instance) {
@@ -20217,6 +20217,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20217
20217
  ...getFormConfig.value
20218
20218
  });
20219
20219
  const formSearch = ref({});
20220
+ const handleSearchFormSubmit = (form) => {
20221
+ formSearch.value = getProps.value.transSearchInfoBeforeReload(form);
20222
+ reload();
20223
+ };
20220
20224
  const params = computed(() => {
20221
20225
  return {
20222
20226
  ...getProps.value.searchInfo,
@@ -20271,15 +20275,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20271
20275
  };
20272
20276
  emits("register", tableAction, formActions);
20273
20277
  return (_ctx, _cache) => {
20274
- const _component_vxe_column = resolveComponent("vxe-column");
20275
- const _component_vxe_table = resolveComponent("vxe-table");
20276
20278
  return openBlock(), createElementBlock("div", {
20277
20279
  class: normalizeClass(getClassName("wrapper"))
20278
20280
  }, [
20279
20281
  unref(getProps).isShowSearch ? (openBlock(), createElementBlock("div", {
20280
20282
  key: 0,
20281
20283
  class: normalizeClass(getClassName("search"))
20282
- }, null, 2)) : createCommentVNode("", true),
20284
+ }, [
20285
+ createVNode(unref(BasicForm), mergeProps({
20286
+ onRegister: unref(registerForm),
20287
+ onSubmit: handleSearchFormSubmit,
20288
+ onReset: handleSearchFormSubmit
20289
+ }, unref(getFormConfig)), null, 16, ["onRegister"])
20290
+ ], 2)) : createCommentVNode("", true),
20283
20291
  unref(getProps).isShowToolbar ? (openBlock(), createElementBlock("div", {
20284
20292
  key: 1,
20285
20293
  class: normalizeClass(getClassName("toolbar"))
@@ -20289,7 +20297,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20289
20297
  createElementVNode("div", {
20290
20298
  class: normalizeClass(getClassName("body"))
20291
20299
  }, [
20292
- createVNode(_component_vxe_table, mergeProps({
20300
+ createVNode(unref(VxeTable), mergeProps({
20293
20301
  ref_key: "tableRef",
20294
20302
  ref: tableRef
20295
20303
  }, unref(getBindValues), {
@@ -20305,19 +20313,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20305
20313
  default: withCtx(() => {
20306
20314
  var _a2, _b, _c, _d, _e, _f;
20307
20315
  return [
20308
- ((_b = (_a2 = unref(getProps)) == null ? void 0 : _a2.configRowSelection) == null ? void 0 : _b.type) === "checkbox" && ((_c = unref(getProps)) == null ? void 0 : _c.isShowRowSelection) ? (openBlock(), createBlock(_component_vxe_column, {
20316
+ ((_b = (_a2 = unref(getProps)) == null ? void 0 : _a2.configRowSelection) == null ? void 0 : _b.type) === "checkbox" && ((_c = unref(getProps)) == null ? void 0 : _c.isShowRowSelection) ? (openBlock(), createBlock(unref(VxeColumn), {
20309
20317
  key: 0,
20310
20318
  type: "checkbox",
20311
20319
  width: "60",
20312
20320
  align: "center"
20313
20321
  })) : createCommentVNode("", true),
20314
- ((_e = (_d = unref(getProps)) == null ? void 0 : _d.configRowSelection) == null ? void 0 : _e.type) === "radio" && ((_f = unref(getProps)) == null ? void 0 : _f.isShowRowSelection) ? (openBlock(), createBlock(_component_vxe_column, {
20322
+ ((_e = (_d = unref(getProps)) == null ? void 0 : _d.configRowSelection) == null ? void 0 : _e.type) === "radio" && ((_f = unref(getProps)) == null ? void 0 : _f.isShowRowSelection) ? (openBlock(), createBlock(unref(VxeColumn), {
20315
20323
  key: 1,
20316
20324
  type: "radio",
20317
20325
  width: "60",
20318
20326
  align: "center"
20319
20327
  })) : createCommentVNode("", true),
20320
- unref(getProps).isShowSeq ? (openBlock(), createBlock(_component_vxe_column, {
20328
+ unref(getProps).isShowSeq ? (openBlock(), createBlock(unref(VxeColumn), {
20321
20329
  key: 2,
20322
20330
  type: "seq",
20323
20331
  width: "60",
@@ -20325,7 +20333,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20325
20333
  title: "序号"
20326
20334
  })) : createCommentVNode("", true),
20327
20335
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
20328
- return openBlock(), createBlock(_component_vxe_column, mergeProps({ key: index2 }, column, {
20336
+ return openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: index2 }, column, {
20329
20337
  "edit-render": (column == null ? void 0 : column.editRender) || void 0
20330
20338
  }), {
20331
20339
  default: withCtx((config) => [
@@ -20353,7 +20361,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20353
20361
  _: 2
20354
20362
  }, 1040, ["edit-render"]);
20355
20363
  }), 128)),
20356
- unref(getProps).isShowAction ? (openBlock(), createBlock(_component_vxe_column, mergeProps({
20364
+ unref(getProps).isShowAction ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
20357
20365
  key: 3,
20358
20366
  title: "操作",
20359
20367
  field: "action",
package/lib/index.js CHANGED
@@ -8,6 +8,7 @@ const core = require("@zxcvbn-ts/core");
8
8
  const Iconify = require("@purge-icons/generated");
9
9
  const Sortablejs = require("sortablejs");
10
10
  require("xe-utils");
11
+ const vxeTable = require("vxe-table");
11
12
  const windiBase = "";
12
13
  const windiComponents = "";
13
14
  const windiUtilities = "";
@@ -10272,7 +10273,6 @@ function useForm(props2) {
10272
10273
  "The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"
10273
10274
  );
10274
10275
  }
10275
- await vue.nextTick();
10276
10276
  return form;
10277
10277
  }
10278
10278
  function register(instance) {
@@ -20219,6 +20219,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20219
20219
  ...getFormConfig.value
20220
20220
  });
20221
20221
  const formSearch = vue.ref({});
20222
+ const handleSearchFormSubmit = (form) => {
20223
+ formSearch.value = getProps.value.transSearchInfoBeforeReload(form);
20224
+ reload();
20225
+ };
20222
20226
  const params = vue.computed(() => {
20223
20227
  return {
20224
20228
  ...getProps.value.searchInfo,
@@ -20273,15 +20277,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20273
20277
  };
20274
20278
  emits("register", tableAction, formActions);
20275
20279
  return (_ctx, _cache) => {
20276
- const _component_vxe_column = vue.resolveComponent("vxe-column");
20277
- const _component_vxe_table = vue.resolveComponent("vxe-table");
20278
20280
  return vue.openBlock(), vue.createElementBlock("div", {
20279
20281
  class: vue.normalizeClass(getClassName("wrapper"))
20280
20282
  }, [
20281
20283
  vue.unref(getProps).isShowSearch ? (vue.openBlock(), vue.createElementBlock("div", {
20282
20284
  key: 0,
20283
20285
  class: vue.normalizeClass(getClassName("search"))
20284
- }, null, 2)) : vue.createCommentVNode("", true),
20286
+ }, [
20287
+ vue.createVNode(vue.unref(BasicForm), vue.mergeProps({
20288
+ onRegister: vue.unref(registerForm),
20289
+ onSubmit: handleSearchFormSubmit,
20290
+ onReset: handleSearchFormSubmit
20291
+ }, vue.unref(getFormConfig)), null, 16, ["onRegister"])
20292
+ ], 2)) : vue.createCommentVNode("", true),
20285
20293
  vue.unref(getProps).isShowToolbar ? (vue.openBlock(), vue.createElementBlock("div", {
20286
20294
  key: 1,
20287
20295
  class: vue.normalizeClass(getClassName("toolbar"))
@@ -20291,7 +20299,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20291
20299
  vue.createElementVNode("div", {
20292
20300
  class: vue.normalizeClass(getClassName("body"))
20293
20301
  }, [
20294
- vue.createVNode(_component_vxe_table, vue.mergeProps({
20302
+ vue.createVNode(vue.unref(vxeTable.VxeTable), vue.mergeProps({
20295
20303
  ref_key: "tableRef",
20296
20304
  ref: tableRef
20297
20305
  }, vue.unref(getBindValues), {
@@ -20307,19 +20315,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20307
20315
  default: vue.withCtx(() => {
20308
20316
  var _a2, _b, _c, _d, _e, _f;
20309
20317
  return [
20310
- ((_b = (_a2 = vue.unref(getProps)) == null ? void 0 : _a2.configRowSelection) == null ? void 0 : _b.type) === "checkbox" && ((_c = vue.unref(getProps)) == null ? void 0 : _c.isShowRowSelection) ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20318
+ ((_b = (_a2 = vue.unref(getProps)) == null ? void 0 : _a2.configRowSelection) == null ? void 0 : _b.type) === "checkbox" && ((_c = vue.unref(getProps)) == null ? void 0 : _c.isShowRowSelection) ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20311
20319
  key: 0,
20312
20320
  type: "checkbox",
20313
20321
  width: "60",
20314
20322
  align: "center"
20315
20323
  })) : vue.createCommentVNode("", true),
20316
- ((_e = (_d = vue.unref(getProps)) == null ? void 0 : _d.configRowSelection) == null ? void 0 : _e.type) === "radio" && ((_f = vue.unref(getProps)) == null ? void 0 : _f.isShowRowSelection) ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20324
+ ((_e = (_d = vue.unref(getProps)) == null ? void 0 : _d.configRowSelection) == null ? void 0 : _e.type) === "radio" && ((_f = vue.unref(getProps)) == null ? void 0 : _f.isShowRowSelection) ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20317
20325
  key: 1,
20318
20326
  type: "radio",
20319
20327
  width: "60",
20320
20328
  align: "center"
20321
20329
  })) : vue.createCommentVNode("", true),
20322
- vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20330
+ vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20323
20331
  key: 2,
20324
20332
  type: "seq",
20325
20333
  width: "60",
@@ -20327,7 +20335,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20327
20335
  title: "序号"
20328
20336
  })) : vue.createCommentVNode("", true),
20329
20337
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
20330
- return vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({ key: index2 }, column, {
20338
+ return vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), vue.mergeProps({ key: index2 }, column, {
20331
20339
  "edit-render": (column == null ? void 0 : column.editRender) || void 0
20332
20340
  }), {
20333
20341
  default: vue.withCtx((config) => [
@@ -20355,7 +20363,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20355
20363
  _: 2
20356
20364
  }, 1040, ["edit-render"]);
20357
20365
  }), 128)),
20358
- vue.unref(getProps).isShowAction ? (vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({
20366
+ vue.unref(getProps).isShowAction ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), vue.mergeProps({
20359
20367
  key: 3,
20360
20368
  title: "操作",
20361
20369
  field: "action",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -31,8 +31,8 @@
31
31
  "vue-types": "^5.0.2",
32
32
  "vxe-table": "^4.3.6",
33
33
  "xe-utils": "^3.5.7",
34
- "@shy-plugins/use": "1.0.3",
35
- "@shy-plugins/utils": "1.0.14"
34
+ "@shy-plugins/utils": "1.0.14",
35
+ "@shy-plugins/use": "1.0.3"
36
36
  },
37
37
  "types": "es/ui/index.d.ts",
38
38
  "devDependencies": {