3h1-ui 3.0.0-next.222 → 3.0.0-next.224

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
@@ -30043,6 +30043,8 @@ const ShyTag = /* @__PURE__ */ defineComponent({
30043
30043
  ...props2.fieldNames
30044
30044
  }));
30045
30045
  watch(() => props2.options, (val) => {
30046
+ if (!(val == null ? void 0 : val.length))
30047
+ return;
30046
30048
  optionsRef.value = unref(val);
30047
30049
  }, {
30048
30050
  immediate: true,
@@ -30055,10 +30057,12 @@ const ShyTag = /* @__PURE__ */ defineComponent({
30055
30057
  }, {
30056
30058
  immediate: true
30057
30059
  });
30058
- const tag2 = computed(() => unref(optionsRef).find((item) => item[unref(fieldNames).value] == props2.value) ?? {
30059
- [unref(fieldNames).label]: "-",
30060
- [unref(fieldNames).color]: "var(--gray-5)",
30061
- [unref(fieldNames).css]: ""
30060
+ const tag2 = computed(() => {
30061
+ return unref(optionsRef).find((item) => item[unref(fieldNames).value] == props2.value) ?? {
30062
+ [unref(fieldNames).label]: "-",
30063
+ [unref(fieldNames).color]: "var(--gray-5)",
30064
+ [unref(fieldNames).css]: ""
30065
+ };
30062
30066
  });
30063
30067
  const renderTag = computed(() => {
30064
30068
  const [isTag, tagMode] = [props2.isTag, props2.tagMode];
@@ -49264,6 +49268,7 @@ const CustomCollapse = /* @__PURE__ */ defineComponent({
49264
49268
  "onUpdate:activeKey": ($event) => collapseActiveKey.value = $event
49265
49269
  }, {
49266
49270
  default: () => [createVNode(Collapse.Panel, {
49271
+ "forceRender": true,
49267
49272
  "key": field
49268
49273
  }, {
49269
49274
  default: () => [props2 == null ? void 0 : props2.renderGroup(componentProps == null ? void 0 : componentProps.schemas)],
@@ -49537,7 +49542,10 @@ const Descriptions = /* @__PURE__ */ defineComponent({
49537
49542
  "style": style2,
49538
49543
  "class": `${prefixCls2}-group`
49539
49544
  }, [createVNode(CustomCollapse, {
49540
- "schema": group,
49545
+ "schema": {
49546
+ ...group,
49547
+ componentProps
49548
+ },
49541
49549
  "renderGroup": renderGroup
49542
49550
  }, null)]), [[vShow, isShow]]);
49543
49551
  case "Custom":
@@ -49707,6 +49715,7 @@ export {
49707
49715
  searchTypeSelect,
49708
49716
  searchTypeString,
49709
49717
  shyContainerProps,
49718
+ basicProps as shyDescriptionsProps,
49710
49719
  shyFormBasicProps,
49711
49720
  shyGridItemProps,
49712
49721
  shyLayoutContainerProps,
@@ -1,4 +1,5 @@
1
1
  import { useShyDescriptions } from './src/useShyDescriptions';
2
+ import { basicProps } from './src/props';
2
3
  export * from './src/typing';
3
4
  export declare const ShyDescriptions: {
4
5
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
@@ -245,4 +246,4 @@ export declare const ShyDescriptions: {
245
246
  isShowColon: boolean;
246
247
  baseColProps: Record<string, any>;
247
248
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
248
- export { useShyDescriptions };
249
+ export { useShyDescriptions, basicProps as shyDescriptionsProps };
package/lib/index.js CHANGED
@@ -30067,6 +30067,8 @@ const ShyTag = /* @__PURE__ */ vue.defineComponent({
30067
30067
  ...props2.fieldNames
30068
30068
  }));
30069
30069
  vue.watch(() => props2.options, (val) => {
30070
+ if (!(val == null ? void 0 : val.length))
30071
+ return;
30070
30072
  optionsRef.value = vue.unref(val);
30071
30073
  }, {
30072
30074
  immediate: true,
@@ -30079,10 +30081,12 @@ const ShyTag = /* @__PURE__ */ vue.defineComponent({
30079
30081
  }, {
30080
30082
  immediate: true
30081
30083
  });
30082
- const tag2 = vue.computed(() => vue.unref(optionsRef).find((item) => item[vue.unref(fieldNames).value] == props2.value) ?? {
30083
- [vue.unref(fieldNames).label]: "-",
30084
- [vue.unref(fieldNames).color]: "var(--gray-5)",
30085
- [vue.unref(fieldNames).css]: ""
30084
+ const tag2 = vue.computed(() => {
30085
+ return vue.unref(optionsRef).find((item) => item[vue.unref(fieldNames).value] == props2.value) ?? {
30086
+ [vue.unref(fieldNames).label]: "-",
30087
+ [vue.unref(fieldNames).color]: "var(--gray-5)",
30088
+ [vue.unref(fieldNames).css]: ""
30089
+ };
30086
30090
  });
30087
30091
  const renderTag = vue.computed(() => {
30088
30092
  const [isTag, tagMode] = [props2.isTag, props2.tagMode];
@@ -49288,6 +49292,7 @@ const CustomCollapse = /* @__PURE__ */ vue.defineComponent({
49288
49292
  "onUpdate:activeKey": ($event) => collapseActiveKey.value = $event
49289
49293
  }, {
49290
49294
  default: () => [vue.createVNode(antDesignVue.Collapse.Panel, {
49295
+ "forceRender": true,
49291
49296
  "key": field
49292
49297
  }, {
49293
49298
  default: () => [props2 == null ? void 0 : props2.renderGroup(componentProps == null ? void 0 : componentProps.schemas)],
@@ -49561,7 +49566,10 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
49561
49566
  "style": style2,
49562
49567
  "class": `${prefixCls2}-group`
49563
49568
  }, [vue.createVNode(CustomCollapse, {
49564
- "schema": group,
49569
+ "schema": {
49570
+ ...group,
49571
+ componentProps
49572
+ },
49565
49573
  "renderGroup": renderGroup
49566
49574
  }, null)]), [[vue.vShow, isShow]]);
49567
49575
  case "Custom":
@@ -49730,6 +49738,7 @@ exports.searchTypeNumber = searchTypeNumber;
49730
49738
  exports.searchTypeSelect = searchTypeSelect;
49731
49739
  exports.searchTypeString = searchTypeString;
49732
49740
  exports.shyContainerProps = shyContainerProps;
49741
+ exports.shyDescriptionsProps = basicProps;
49733
49742
  exports.shyFormBasicProps = shyFormBasicProps;
49734
49743
  exports.shyGridItemProps = shyGridItemProps;
49735
49744
  exports.shyLayoutContainerProps = shyLayoutContainerProps;
@@ -1,4 +1,5 @@
1
1
  import { useShyDescriptions } from './src/useShyDescriptions';
2
+ import { basicProps } from './src/props';
2
3
  export * from './src/typing';
3
4
  export declare const ShyDescriptions: {
4
5
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
@@ -245,4 +246,4 @@ export declare const ShyDescriptions: {
245
246
  isShowColon: boolean;
246
247
  baseColProps: Record<string, any>;
247
248
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
248
- export { useShyDescriptions };
249
+ export { useShyDescriptions, basicProps as shyDescriptionsProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.222",
3
+ "version": "3.0.0-next.224",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,8 +29,8 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/use": "1.0.1-next.5",
33
32
  "@shy-plugins/tinymce": "^1.0.6",
33
+ "@shy-plugins/use": "1.0.1-next.5",
34
34
  "@shy-plugins/utils": "1.0.0-next.1"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",