3h1-ui 2.1.2 → 2.1.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/lib/index.js CHANGED
@@ -8,7 +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
+ const vxeTable = require("vxe-table");
12
12
  const windiBase = "";
13
13
  const windiComponents = "";
14
14
  const windiUtilities = "";
@@ -15296,7 +15296,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
15296
15296
  }
15297
15297
  const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8], ["__scopeId", "data-v-b15bfa99"]]);
15298
15298
  const index$1 = "";
15299
- function useTable$1(tableProps) {
15299
+ function useTable(tableProps) {
15300
15300
  const tableRef = vue.ref(null);
15301
15301
  const loadedRef = vue.ref(false);
15302
15302
  const formRef = vue.ref(null);
@@ -15438,7 +15438,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
15438
15438
  __name: "Table",
15439
15439
  setup(__props, { expose }) {
15440
15440
  const getTableProps = vue.inject("getTableProps");
15441
- const [registerTable, tableAction] = useTable$1({
15441
+ const [registerTable, tableAction] = useTable({
15442
15442
  api: () => {
15443
15443
  },
15444
15444
  title: "账号列表",
@@ -20278,8 +20278,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20278
20278
  };
20279
20279
  emits("register", tableAction, formActions);
20280
20280
  return (_ctx, _cache) => {
20281
- const _component_vxe_column = vue.resolveComponent("vxe-column");
20282
- const _component_vxe_table = vue.resolveComponent("vxe-table");
20283
20281
  return vue.openBlock(), vue.createElementBlock("div", {
20284
20282
  class: vue.normalizeClass(getClassName("wrapper"))
20285
20283
  }, [
@@ -20302,7 +20300,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20302
20300
  vue.createElementVNode("div", {
20303
20301
  class: vue.normalizeClass(getClassName("body"))
20304
20302
  }, [
20305
- vue.createVNode(_component_vxe_table, vue.mergeProps({
20303
+ vue.createVNode(vue.unref(vxeTable.VxeTable), vue.mergeProps({
20306
20304
  ref_key: "tableRef",
20307
20305
  ref: tableRef
20308
20306
  }, vue.unref(getBindValues), {
@@ -20312,25 +20310,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20312
20310
  onRadioChange: handleRadioChange,
20313
20311
  "row-config": { isHover: true },
20314
20312
  "show-overflow": "",
20315
- "column-config": { resizable: true },
20316
- "edit-config": { trigger: "manual", mode: "row" }
20313
+ "column-config": { resizable: true }
20317
20314
  }), {
20318
20315
  default: vue.withCtx(() => {
20319
20316
  var _a2, _b, _c, _d, _e, _f;
20320
20317
  return [
20321
- ((_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), {
20322
20319
  key: 0,
20323
20320
  type: "checkbox",
20324
20321
  width: "60",
20325
20322
  align: "center"
20326
20323
  })) : vue.createCommentVNode("", true),
20327
- ((_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), {
20328
20325
  key: 1,
20329
20326
  type: "radio",
20330
20327
  width: "60",
20331
20328
  align: "center"
20332
20329
  })) : vue.createCommentVNode("", true),
20333
- vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20330
+ vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20334
20331
  key: 2,
20335
20332
  type: "seq",
20336
20333
  width: "60",
@@ -20338,7 +20335,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20338
20335
  title: "序号"
20339
20336
  })) : vue.createCommentVNode("", true),
20340
20337
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
20341
- 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, {
20342
20339
  "edit-render": (column == null ? void 0 : column.editRender) || void 0
20343
20340
  }), {
20344
20341
  default: vue.withCtx((config) => [
@@ -20366,7 +20363,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20366
20363
  _: 2
20367
20364
  }, 1040, ["edit-render"]);
20368
20365
  }), 128)),
20369
- 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({
20370
20367
  key: 3,
20371
20368
  title: "操作",
20372
20369
  field: "action",
@@ -20451,17 +20448,13 @@ function useTablePlus(tableProps) {
20451
20448
  };
20452
20449
  return [register, methods2];
20453
20450
  }
20454
- function useTable(app) {
20455
- app.use(VXETable, {});
20456
- }
20457
20451
  const withInstall = (comp) => {
20458
- comp.install = (app, options) => {
20459
- app.use(useTable);
20452
+ comp.install = (app, options = {}) => {
20460
20453
  app.component("TablePlus", comp);
20461
20454
  };
20462
20455
  return comp;
20463
20456
  };
20464
- const TablePlus = withInstall(_sfc_main);
20457
+ withInstall(_sfc_main);
20465
20458
  exports.ApiCascader = ApiCascader;
20466
20459
  exports.ApiModalSelect = ApiModalSelect;
20467
20460
  exports.ApiRadioGroup = ApiRadioGroup;
@@ -20506,7 +20499,7 @@ exports.TableAction = TableAction;
20506
20499
  exports.TableChildren = Table;
20507
20500
  exports.TableDict = TableDict;
20508
20501
  exports.TableImg = TableImg;
20509
- exports.TablePlus = TablePlus;
20502
+ exports.TablePlus = _sfc_main;
20510
20503
  exports.ToolbarEnum = ToolbarEnum;
20511
20504
  exports.createLoading = createLoading;
20512
20505
  exports.treeEmits = treeEmits;
@@ -20520,5 +20513,5 @@ exports.useLoading = useLoading;
20520
20513
  exports.useModal = useModal;
20521
20514
  exports.useModalContext = useModalContext;
20522
20515
  exports.useModalInner = useModalInner;
20523
- exports.useTable = useTable$1;
20516
+ exports.useTable = useTable;
20524
20517
  exports.useTablePlus = useTablePlus;
@@ -141,6 +141,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
141
141
  getTableData: () => any[];
142
142
  };
143
143
  readonly BasicForm: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
144
+ readonly VxeTable: import("vxe-table").VXEComponent<import("vxe-table").VxeTableProps<any>, import("vxe-table").VxeTableEventProps>;
145
+ readonly VxeColumn: import("vxe-table").VXEComponent<VxeColumnProps, {}>;
144
146
  readonly Pagination: {
145
147
  new (...args: any[]): {
146
148
  $: import("vue").ComponentInternalInstance;