3h1-ui 1.0.152 → 1.1.0-alpha-0

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/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { h, nextTick, createVNode, defineComponent, ref, computed, unref, watchEffect, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createSlots, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, onMounted, normalizeClass, createCommentVNode, normalizeStyle, Transition, toHandlers, useSlots, withDirectives, vShow, getCurrentInstance, inject, onUnmounted, provide, onBeforeUnmount, resolveDynamicComponent, reactive, toRef, toRefs, TransitionGroup, getCurrentScope, onScopeDispose, readonly, isVNode, shallowReactive, toRaw, shallowRef, withKeys, withModifiers, render as render$1, resolveDirective, isRef } from "vue";
2
2
  import { Radio, Select, Tree, TreeSelect, Cascader, Transfer, Input, Tooltip, Skeleton, Popover, Pagination, Empty, Button as Button$1, Table as Table$1, Form, FormItem, DatePicker, InputNumber, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker, Divider, Col, Popconfirm, Modal as Modal$2, Row, Dropdown, Menu, MenuItem, MenuDivider, Spin, PageHeader, Image, Badge, Tag, FormItemRest, Descriptions, Drawer, Space, Upload, Avatar } from "ant-design-vue";
3
- import { propTypes, isFunction as isFunction$4, isString as isString$3, isArray as isArray$3, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, isNumber as isNumber$2, isBoolean, isNull, extendSlots as extendSlots$1, withInstall, isObject as isObject$3, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, formatToDate, isMap as isMap$2, buildUUID, findNodeAll, getViewportOffset, warn as warn$1, isNullAndUnDef, dataURLtoBlob } from "@shy-plugins/utils";
3
+ import { propTypes, isFunction as isFunction$4, isString as isString$3, isArray as isArray$3, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, isNumber as isNumber$2, isBoolean, isNull, extendSlots as extendSlots$1, withInstall as withInstall$1, isObject as isObject$3, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, formatToDate, isMap as isMap$2, buildUUID, findNodeAll, getViewportOffset, warn as warn$1, isNullAndUnDef, dataURLtoBlob } from "@shy-plugins/utils";
4
4
  import { useAttrs as useAttrs$1, useRuleFormItem, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$1, createContext as createContext$1, useContext as useContext$2, useBreakpoint, useI18n as useI18n$1, useContentHeight, useDesign as useDesign$1, useWindowSizeFn as useWindowSizeFn$1, onMountedOrActivated, useEventListener as useEventListener$1 } from "@shy-plugins/use";
5
5
  import { zxcvbn } from "@zxcvbn-ts/core";
6
6
  import Iconify from "@purge-icons/generated";
@@ -7413,7 +7413,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
7413
7413
  if ((formProps2 == null ? void 0 : formProps2.maxlength) === void 0) {
7414
7414
  maxlength = 100;
7415
7415
  } else {
7416
- showCount = formProps2.maxlength;
7416
+ maxlength = formProps2.maxlength;
7417
7417
  }
7418
7418
  } else {
7419
7419
  maxlength = componentProps.maxlength;
@@ -7815,7 +7815,7 @@ const _sfc_main$I = defineComponent({
7815
7815
  };
7816
7816
  }
7817
7817
  });
7818
- const Button = withInstall(_sfc_main$J);
7818
+ const Button = withInstall$1(_sfc_main$J);
7819
7819
  const key$3 = Symbol();
7820
7820
  function createFormContext(context) {
7821
7821
  return createContext$1(context, key$3);
@@ -9714,7 +9714,7 @@ const useModalInner = (callbackFn) => {
9714
9714
  }
9715
9715
  ];
9716
9716
  };
9717
- const BasicModal = withInstall(basicModal);
9717
+ const BasicModal = withInstall$1(basicModal);
9718
9718
  const basicProps$2 = {
9719
9719
  model: {
9720
9720
  type: Object,
@@ -9783,8 +9783,8 @@ const basicProps$2 = {
9783
9783
  colon: propTypes.bool,
9784
9784
  labelAlign: propTypes.string,
9785
9785
  rowProps: Object,
9786
- showCount: false,
9787
- maxlength: 100
9786
+ showCount: { default: true, type: Boolean },
9787
+ maxlength: { default: 100, type: Number }
9788
9788
  };
9789
9789
  const _sfc_main$y = defineComponent({
9790
9790
  name: "BasicForm",
@@ -14263,7 +14263,7 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
14263
14263
  handleSearchInfoChange
14264
14264
  };
14265
14265
  }
14266
- const basicProps$1 = {
14266
+ const basicProps$1 = reactive({
14267
14267
  clickToRowSelect: { type: Boolean, default: true },
14268
14268
  isTreeTable: Boolean,
14269
14269
  tableSetting: propTypes.shape({}),
@@ -14385,6 +14385,11 @@ const basicProps$1 = {
14385
14385
  type: String,
14386
14386
  default: DEFAULT_SIZE
14387
14387
  }
14388
+ });
14389
+ const basicPropChange = (options) => {
14390
+ Object.keys(options).forEach((name) => {
14391
+ basicProps$1[name] = options[name];
14392
+ });
14388
14393
  };
14389
14394
  const _sfc_main$h = defineComponent({
14390
14395
  components: {
@@ -15266,6 +15271,15 @@ function useTable(tableProps) {
15266
15271
  };
15267
15272
  return [register, methods2];
15268
15273
  }
15274
+ const withInstall = (component) => {
15275
+ const comp = component;
15276
+ comp.install = (app, options = {}) => {
15277
+ basicPropChange(options);
15278
+ app.component("DatalinkTable", component);
15279
+ };
15280
+ return component;
15281
+ };
15282
+ const DatalinkTable = withInstall(BasicTable);
15269
15283
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
15270
15284
  __name: "Table",
15271
15285
  setup(__props, { expose }) {
@@ -19579,6 +19593,7 @@ export {
19579
19593
  CountTo,
19580
19594
  CountdownInput,
19581
19595
  CropperImage,
19596
+ DatalinkTable,
19582
19597
  _sfc_main$9 as Description,
19583
19598
  _sfc_main$g as Dropdown,
19584
19599
  EditTableHeaderCell as EditTableHeaderIcon,
package/lib/index.js CHANGED
@@ -7418,7 +7418,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7418
7418
  if ((formProps2 == null ? void 0 : formProps2.maxlength) === void 0) {
7419
7419
  maxlength = 100;
7420
7420
  } else {
7421
- showCount = formProps2.maxlength;
7421
+ maxlength = formProps2.maxlength;
7422
7422
  }
7423
7423
  } else {
7424
7424
  maxlength = componentProps.maxlength;
@@ -9788,8 +9788,8 @@ const basicProps$2 = {
9788
9788
  colon: utils.propTypes.bool,
9789
9789
  labelAlign: utils.propTypes.string,
9790
9790
  rowProps: Object,
9791
- showCount: false,
9792
- maxlength: 100
9791
+ showCount: { default: true, type: Boolean },
9792
+ maxlength: { default: 100, type: Number }
9793
9793
  };
9794
9794
  const _sfc_main$y = vue.defineComponent({
9795
9795
  name: "BasicForm",
@@ -14268,7 +14268,7 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
14268
14268
  handleSearchInfoChange
14269
14269
  };
14270
14270
  }
14271
- const basicProps$1 = {
14271
+ const basicProps$1 = vue.reactive({
14272
14272
  clickToRowSelect: { type: Boolean, default: true },
14273
14273
  isTreeTable: Boolean,
14274
14274
  tableSetting: utils.propTypes.shape({}),
@@ -14390,6 +14390,11 @@ const basicProps$1 = {
14390
14390
  type: String,
14391
14391
  default: DEFAULT_SIZE
14392
14392
  }
14393
+ });
14394
+ const basicPropChange = (options) => {
14395
+ Object.keys(options).forEach((name) => {
14396
+ basicProps$1[name] = options[name];
14397
+ });
14393
14398
  };
14394
14399
  const _sfc_main$h = vue.defineComponent({
14395
14400
  components: {
@@ -15271,6 +15276,15 @@ function useTable(tableProps) {
15271
15276
  };
15272
15277
  return [register, methods2];
15273
15278
  }
15279
+ const withInstall = (component) => {
15280
+ const comp = component;
15281
+ comp.install = (app, options = {}) => {
15282
+ basicPropChange(options);
15283
+ app.component("DatalinkTable", component);
15284
+ };
15285
+ return component;
15286
+ };
15287
+ const DatalinkTable = withInstall(BasicTable);
15274
15288
  const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
15275
15289
  __name: "Table",
15276
15290
  setup(__props, { expose }) {
@@ -19583,6 +19597,7 @@ exports.CountButton = CountButton;
19583
19597
  exports.CountTo = CountTo;
19584
19598
  exports.CountdownInput = CountdownInput;
19585
19599
  exports.CropperImage = CropperImage;
19600
+ exports.DatalinkTable = DatalinkTable;
19586
19601
  exports.Description = _sfc_main$9;
19587
19602
  exports.Dropdown = _sfc_main$g;
19588
19603
  exports.EditTableHeaderIcon = EditTableHeaderCell;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.0.152",
3
+ "version": "1.1.0-alpha-0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",