3h1-ui 3.0.0-next.77 → 3.0.0-next.79

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,7 +1,7 @@
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 as normalizeStyle$1, Transition, toHandlers, useSlots, resolveDynamicComponent, withDirectives, vShow, getCurrentInstance, inject, onUnmounted, provide, onBeforeUnmount, reactive, toRef, toRefs, TransitionGroup, getCurrentScope, onScopeDispose, defineAsyncComponent, isRef, toRaw, shallowRef, isVNode, readonly, useAttrs as useAttrs$2, shallowReactive, withKeys, render as render$1, triggerRef, Comment, Text, withModifiers, resolveDirective, pushScopeId, popScopeId, useCssVars } from "vue";
2
2
  import { Radio, Select, Tree, TreeSelect, Cascader, Transfer, Input, Tooltip, Skeleton, Popover, Pagination as Pagination$1, Empty as Empty$3, Button as Button$1, Table as Table$2, FormItem as FormItem$1, DatePicker as DatePicker$1, InputNumber, Modal as Modal$3, ConfigProvider, Popconfirm, Menu, Dropdown, Divider as Divider$1, Image, Progress, Tag, Alert, Upload, Space, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker as TimePicker$1, Col, Form, Row, theme, PageHeader, Spin, CheckboxGroup, TableSummaryRow, TableSummaryCell, TableSummary, Badge, FormItemRest, Drawer, Avatar, Descriptions, DescriptionsItem, Breadcrumb, Timeline, TimelineItem } from "ant-design-vue";
3
3
  import { isFunction as isFunction$4, isString as isString$4, isArray as isArray$4, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, buildUUID, extendSlots as extendSlots$1, withInstall as withInstall$8, isBoolean as isBoolean$1, isNumber as isNumber$2, isDef as isDef$1, warn as warn$1, downloadByUrl, isObject as isObject$4, isNull, dateUtil, isNullOrUnDef, error as error$1, deepMerge as deepMerge$1, getDynamicProps, forEach as forEach$1, isClient as isClient$1, buildProps, isServer, treeToList, formatToDate, isMap as isMap$2, findNodeAll, getViewportOffset, isNullAndUnDef, createBEM, filter, eachTree, isEmpty, dataURLtoBlob, deepMergeObjects } from "@shy-plugins/utils";
4
- import { useAttrs as useAttrs$1, useRuleFormItem, useDesign as useDesign$1, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$3, getVarColor, useI18n as useI18n$1, useSortable, createContext as createContext$1, useContext as useContext$2, useBreakpoint, useContentHeight, useWindowSizeFn as useWindowSizeFn$1, onMountedOrActivated, useEventListener as useEventListener$1 } from "@shy-plugins/use";
4
+ import { useAttrs as useAttrs$1, useRuleFormItem, useDesign as useDesign$1, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$3, useTheme, useI18n as useI18n$1, useSortable, createContext as createContext$1, useContext as useContext$2, useBreakpoint, useContentHeight, 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";
7
7
  import dayjs from "dayjs";
@@ -10253,6 +10253,9 @@ const BasicButton = /* @__PURE__ */ defineComponent({
10253
10253
  attrs,
10254
10254
  slots
10255
10255
  }) {
10256
+ const {
10257
+ getVarColor
10258
+ } = useTheme();
10256
10259
  const getBindValue = computed(() => {
10257
10260
  return {
10258
10261
  ...attrs,
@@ -10271,7 +10274,7 @@ const BasicButton = /* @__PURE__ */ defineComponent({
10271
10274
  let colorPrimary;
10272
10275
  switch (props2.type || props2.color) {
10273
10276
  case "danger":
10274
- colorPrimary = getVarColor("--red-6");
10277
+ colorPrimary = getVarColor("--red-5");
10275
10278
  break;
10276
10279
  case "waring":
10277
10280
  colorPrimary = getVarColor("--yellow-5");
@@ -10280,7 +10283,7 @@ const BasicButton = /* @__PURE__ */ defineComponent({
10280
10283
  colorPrimary = getVarColor("--green-5");
10281
10284
  break;
10282
10285
  case "message":
10283
- colorPrimary = getVarColor("--blue-6");
10286
+ colorPrimary = getVarColor("--blue-5");
10284
10287
  break;
10285
10288
  default:
10286
10289
  colorPrimary = getVarColor("--primary-5");
@@ -10587,8 +10590,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
10587
10590
  };
10588
10591
  }
10589
10592
  });
10590
- const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
10591
- const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-a48f9d86"]]);
10593
+ const BasicTitle_vue_vue_type_style_index_0_scoped_383d2177_lang = "";
10594
+ const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-383d2177"]]);
10592
10595
  const _sfc_main$1h = defineComponent({
10593
10596
  name: "BasicModalHeader",
10594
10597
  components: { BasicTitle },
@@ -12215,7 +12218,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
12215
12218
  return openBlock(), createElementBlock("div", null, [
12216
12219
  createVNode(unref(Space), null, {
12217
12220
  default: withCtx(() => [
12218
- createVNode(unref(Button$1), {
12221
+ createVNode(unref(BasicButton), {
12219
12222
  type: "primary",
12220
12223
  onClick: unref(openUploadModal),
12221
12224
  preIcon: "carbon:cloud-upload"
@@ -16330,7 +16333,7 @@ const ShyFormTable = /* @__PURE__ */ defineComponent({
16330
16333
  title: "操作",
16331
16334
  dataIndex: "_action",
16332
16335
  width: 80,
16333
- align: "center"
16336
+ align: "left"
16334
16337
  };
16335
16338
  return [indexColumn, ...props2.columns.map((item) => ({
16336
16339
  ...item,
@@ -16397,7 +16400,7 @@ const ShyFormTable = /* @__PURE__ */ defineComponent({
16397
16400
  },
16398
16401
  "data-source": dataSource.value,
16399
16402
  "pagination": false,
16400
- "bordered": true,
16403
+ "bordered": false,
16401
16404
  "size": "small",
16402
16405
  "class": `${prefixCls2}-body`,
16403
16406
  "align": "center",
@@ -21894,6 +21897,9 @@ const FormItem = /* @__PURE__ */ defineComponent({
21894
21897
  label: (schema2 == null ? void 0 : schema2.label) || ""
21895
21898
  });
21896
21899
  }
21900
+ if (schema2.component.includes("Picker") || schema2.component.includes("Select")) {
21901
+ componentProps.getPopupContainer = () => document.body;
21902
+ }
21897
21903
  if (["RangePicker", "DatePicker"].includes(schema2.component)) {
21898
21904
  componentProps.monthCellRender = ({
21899
21905
  current
@@ -23227,8 +23233,8 @@ const ShyForm = /* @__PURE__ */ defineComponent({
23227
23233
  "class": `${prefixCls2}-show`,
23228
23234
  "onClick": handleChangeState
23229
23235
  }, [createVNode(LeftOutlined$1, {
23230
- "rotate": isShowFormInside.value ? 270 : 0
23231
- }, null), isShowFormInside.value ? "展开" : "收起"]) : null
23236
+ "rotate": isShowFormInside.value ? 0 : 270
23237
+ }, null), isShowFormInside.value ? "收起" : "展开"]) : null
23232
23238
  })]
23233
23239
  }) : null;
23234
23240
  };
@@ -23668,7 +23674,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
23668
23674
  },
23669
23675
  "data-source": unref(state),
23670
23676
  pagination: false,
23671
- bordered: "",
23677
+ bordered: false,
23672
23678
  size: "small",
23673
23679
  class: "table-children",
23674
23680
  align: "center"
@@ -23771,8 +23777,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
23771
23777
  };
23772
23778
  }
23773
23779
  });
23774
- const Table_vue_vue_type_style_index_0_scoped_d3bdc269_lang = "";
23775
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-d3bdc269"]]);
23780
+ const Table_vue_vue_type_style_index_0_scoped_d23ebe75_lang = "";
23781
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-d23ebe75"]]);
23776
23782
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
23777
23783
  __name: "DeptTree",
23778
23784
  props: {