pro-design-vue 1.2.33 → 1.3.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.
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.2.33 */
1
+ /*! Pro Design Vue v1.3.0 */
2
2
 
3
3
  import { Modal, theme as theme$1, ConfigProvider, App, Button as Button$1, Tooltip, Popconfirm, Dropdown, Menu, Slider, Drawer, Input, InputNumber, Form as Form$1, Space, Textarea, Select, TreeSelect, Checkbox as Checkbox$1, CheckboxGroup, RadioGroup, Radio as Radio$1, Cascader, Switch, Rate, DatePicker, RangePicker, TimePicker, TimeRangePicker, Upload, FormItemRest, Spin, message, Row as Row$1, Col, FormItem as FormItem$1, Steps, Popover, MenuItem, SubMenu, Empty, Badge, Tag, Pagination, InputSearch, Tree, Card, Tabs, TabPane } from 'ant-design-vue';
4
4
  import { inject, ref, getCurrentInstance, nextTick, h, reactive, defineComponent, createVNode, isVNode, Fragment, cloneVNode, provide, watch, computed, renderSlot, createPropsRestProxy, createBlock, openBlock, unref, mergeProps, withCtx, normalizeProps, guardReactiveProps, shallowRef, shallowReadonly, toValue, getCurrentScope, onScopeDispose, onMounted, hasInjectionContext, isRef, toRefs as toRefs$1, customRef, toRef as toRef$1, readonly, watchEffect, toRaw, createElementBlock, createCommentVNode, resolveDynamicComponent, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, createSlots, createTextVNode, useAttrs, useTemplateRef, Teleport, onUnmounted, Comment as Comment$1, useSlots, useModel, withModifiers, mergeModels, renderList, camelize, isReactive, onActivated, onDeactivated, onBeforeUnmount, triggerRef, resolveDirective, withDirectives, vShow, render as render$1, resolveComponent, vModelText } from 'vue';
@@ -30,7 +30,7 @@ const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
30
30
  const DEFAULT_NAMESPACE = "pro";
31
31
  const DEFAULT_LOCALE = "zh-CN";
32
32
 
33
- const version$1 = "1.2.33";
33
+ const version$1 = "1.3.0";
34
34
 
35
35
  const makeInstaller = (components = []) => {
36
36
  const install = (app) => {
@@ -10092,9 +10092,30 @@ var _sfc_main$W = /* @__PURE__ */ defineComponent({
10092
10092
  )) : isRemoteIcon.value ? (openBlock(), createElementBlock("img", mergeProps({
10093
10093
  key: 1,
10094
10094
  src: _ctx.icon
10095
- }, _ctx.$attrs), null, 16, _hoisted_1$g)) : _ctx.fallback ? (openBlock(), createBlock(
10095
+ }, _ctx.$attrs), null, 16, _hoisted_1$g)) : _ctx.icon ? (openBlock(), createElementBlock(
10096
+ "i",
10097
+ mergeProps({
10098
+ key: 2,
10099
+ class: `pro-icon pro-icon-${_ctx.icon}`
10100
+ }, _ctx.$attrs),
10101
+ null,
10102
+ 16
10103
+ /* FULL_PROPS */
10104
+ )) : _ctx.$slots.component ? (openBlock(), createBlock(
10105
+ unref(Icon),
10106
+ normalizeProps(mergeProps({ key: 3 }, _ctx.$attrs)),
10107
+ {
10108
+ component: withCtx((svgProps) => [
10109
+ renderSlot(_ctx.$slots, "component", normalizeProps(guardReactiveProps(svgProps)))
10110
+ ]),
10111
+ _: 3
10112
+ /* FORWARDED */
10113
+ },
10114
+ 16
10115
+ /* FULL_PROPS */
10116
+ )) : _ctx.fallback ? (openBlock(), createBlock(
10096
10117
  unref(Icon),
10097
- normalizeProps(mergeProps({ key: 2 }, _ctx.$attrs)),
10118
+ normalizeProps(mergeProps({ key: 4 }, _ctx.$attrs)),
10098
10119
  {
10099
10120
  component: withCtx((svgProps) => [
10100
10121
  (openBlock(), createElementBlock(
@@ -3,5 +3,15 @@ type __VLS_Props = {
3
3
  fallback?: boolean;
4
4
  icon?: Component | (() => void) | string;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare var __VLS_11: any;
7
+ type __VLS_Slots = {} & {
8
+ component?: (props: typeof __VLS_11) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
12
  export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
package/es/index.d.ts CHANGED
@@ -589,7 +589,8 @@ import { WritingModeProperty } from "csstype";
589
589
  import { ZIndexProperty } from "csstype";
590
590
  import { ZoomProperty } from "csstype";
591
591
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
592
- declare const __VLS_component_2: DefineComponent<ProDrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
592
+ declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
593
+ declare const __VLS_component_3: DefineComponent<ProDrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
593
594
  close: (e: Event) => any;
594
595
  fullScreen: (value: boolean) => any;
595
596
  }, string, PublicProps, Readonly<ProDrawerProps> & Readonly<{
@@ -605,7 +606,7 @@ declare const __VLS_component_2: DefineComponent<ProDrawerProps, {}, {}, {}, {},
605
606
  autofocus: boolean;
606
607
  showFullscreen: boolean;
607
608
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
608
- declare const __VLS_component_3: DefineComponent<ProModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
609
+ declare const __VLS_component_4: DefineComponent<ProModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
609
610
  cancel: (e: Event) => any;
610
611
  fullScreen: (value: boolean) => any;
611
612
  }, string, PublicProps, Readonly<ProModalProps> & Readonly<{
@@ -623,7 +624,7 @@ declare const __VLS_component_3: DefineComponent<ProModalProps, {}, {}, {}, {},
623
624
  top: number;
624
625
  showFullscreen: boolean;
625
626
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
626
- declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
627
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
627
628
  sideMouseLeave: () => any;
628
629
  toggleSidebar: () => any;
629
630
  "update:sidebarCollapse": (value: boolean) => any;
@@ -671,11 +672,11 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {}, {}, {},
671
672
  tabbarEnable: boolean;
672
673
  tabbarHeight: number;
673
674
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
674
- declare const __VLS_component_5: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
675
+ declare const __VLS_component_6: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
675
676
  text: string;
676
677
  minLoadingTime: number;
677
678
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
678
- declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
679
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
679
680
  "update:activeKey": (value: string | number | undefined) => any;
680
681
  }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
681
682
  "onUpdate:activeKey"?: ((value: string | number | undefined) => any) | undefined;
@@ -700,6 +701,9 @@ declare type __VLS_Slots = {} & {
700
701
  default?: (props: typeof __VLS_13) => any;
701
702
  };
702
703
  declare type __VLS_Slots_2 = {} & {
704
+ component?: (props: typeof __VLS_11) => any;
705
+ };
706
+ declare type __VLS_Slots_3 = {} & {
703
707
  title?: (props: typeof __VLS_10) => any;
704
708
  } & {
705
709
  description?: (props: typeof __VLS_12) => any;
@@ -710,7 +714,7 @@ declare type __VLS_Slots_2 = {} & {
710
714
  } & {
711
715
  footer?: (props: typeof __VLS_46) => any;
712
716
  };
713
- declare type __VLS_Slots_3 = {} & {
717
+ declare type __VLS_Slots_4 = {} & {
714
718
  title?: (props: typeof __VLS_10) => any;
715
719
  } & {
716
720
  description?: (props: typeof __VLS_12) => any;
@@ -719,7 +723,7 @@ declare type __VLS_Slots_3 = {} & {
719
723
  } & {
720
724
  footer?: (props: typeof __VLS_44) => any;
721
725
  };
722
- declare type __VLS_Slots_4 = {} & {
726
+ declare type __VLS_Slots_5 = {} & {
723
727
  logo?: (props: typeof __VLS_9) => any;
724
728
  } & {
725
729
  "mixed-menu"?: (props: typeof __VLS_11) => any;
@@ -744,12 +748,12 @@ declare type __VLS_Slots_4 = {} & {
744
748
  } & {
745
749
  extra?: (props: typeof __VLS_55) => any;
746
750
  };
747
- declare type __VLS_Slots_5 = {} & {
751
+ declare type __VLS_Slots_6 = {} & {
748
752
  icon?: (props: typeof __VLS_1) => any;
749
753
  } & {
750
754
  default?: (props: typeof __VLS_3) => any;
751
755
  };
752
- declare type __VLS_Slots_6 = {} & {
756
+ declare type __VLS_Slots_7 = {} & {
753
757
  header?: (props: typeof __VLS_1) => any;
754
758
  } & {
755
759
  title?: (props: typeof __VLS_3) => any;
@@ -794,6 +798,11 @@ declare type __VLS_WithSlots_6<T, S> = T & {
794
798
  $slots: S;
795
799
  };
796
800
  };
801
+ declare type __VLS_WithSlots_7<T, S> = T & {
802
+ new (): {
803
+ $slots: S;
804
+ };
805
+ };
797
806
  declare type AlignType = "left" | "center" | "right";
798
807
  declare interface AppendCellRange {
799
808
  columnsKey?: ProTableKey[];
@@ -1740,10 +1749,10 @@ declare const _default_10: DefineComponent<ExtractPropTypes<{
1740
1749
  })[];
1741
1750
  onCurrentChange: (current: number) => void;
1742
1751
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1743
- declare const _default_11: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
1744
- declare const _default_12: __VLS_WithSlots_4<typeof __VLS_component_4, __VLS_Slots_4>;
1745
- declare const _default_13: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
1746
- declare const _default_14: __VLS_WithSlots_6<typeof __VLS_component_6, __VLS_Slots_6>;
1752
+ declare const _default_11: __VLS_WithSlots_4<typeof __VLS_component_4, __VLS_Slots_4>;
1753
+ declare const _default_12: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
1754
+ declare const _default_13: __VLS_WithSlots_6<typeof __VLS_component_6, __VLS_Slots_6>;
1755
+ declare const _default_14: __VLS_WithSlots_7<typeof __VLS_component_7, __VLS_Slots_7>;
1747
1756
  declare const _default_15: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
1748
1757
  [key: string]: any;
1749
1758
  }> | VNode<RendererNode, RendererElement, {
@@ -2947,7 +2956,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
2947
2956
  onCloseEditor: (opt: CellRenderArgs) => void;
2948
2957
  }, CustomSlotsType<ContextSlots>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2949
2958
  declare const _default_2: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
2950
- declare const _default_3: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2959
+ declare const _default_3: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
2951
2960
  declare const _default_4: DefineComponent<Props_2, {
2952
2961
  start: typeof start;
2953
2962
  reset: typeof reset;
@@ -2971,7 +2980,7 @@ declare const _default_4: DefineComponent<Props_2, {
2971
2980
  startVal: number;
2972
2981
  useEasing: boolean;
2973
2982
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2974
- declare const _default_5: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
2983
+ declare const _default_5: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
2975
2984
  declare const _default_6: DefineComponent<ExtractPropTypes<{
2976
2985
  items: {
2977
2986
  type: PropType<Array<ProFormItemType<Entity, any>[]> | ProFormItemType<Entity, any>[]>;
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, createCommentVNode, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, unref, withCtx, createElementVNode } from 'vue';
1
+ import { defineComponent, computed, createBlock, createElementBlock, createCommentVNode, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, unref, withCtx, renderSlot, guardReactiveProps, createElementVNode } from 'vue';
2
2
  import Icon from '@ant-design/icons-vue';
3
3
  import { isString, isHttpUrl, isObject, isFunction } from '../../../utils/validate.mjs';
4
4
 
@@ -28,9 +28,30 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  )) : isRemoteIcon.value ? (openBlock(), createElementBlock("img", mergeProps({
29
29
  key: 1,
30
30
  src: _ctx.icon
31
- }, _ctx.$attrs), null, 16, _hoisted_1)) : _ctx.fallback ? (openBlock(), createBlock(
31
+ }, _ctx.$attrs), null, 16, _hoisted_1)) : _ctx.icon ? (openBlock(), createElementBlock(
32
+ "i",
33
+ mergeProps({
34
+ key: 2,
35
+ class: `pro-icon pro-icon-${_ctx.icon}`
36
+ }, _ctx.$attrs),
37
+ null,
38
+ 16
39
+ /* FULL_PROPS */
40
+ )) : _ctx.$slots.component ? (openBlock(), createBlock(
41
+ unref(Icon),
42
+ normalizeProps(mergeProps({ key: 3 }, _ctx.$attrs)),
43
+ {
44
+ component: withCtx((svgProps) => [
45
+ renderSlot(_ctx.$slots, "component", normalizeProps(guardReactiveProps(svgProps)))
46
+ ]),
47
+ _: 3
48
+ /* FORWARDED */
49
+ },
50
+ 16
51
+ /* FULL_PROPS */
52
+ )) : _ctx.fallback ? (openBlock(), createBlock(
32
53
  unref(Icon),
33
- normalizeProps(mergeProps({ key: 2 }, _ctx.$attrs)),
54
+ normalizeProps(mergeProps({ key: 4 }, _ctx.$attrs)),
34
55
  {
35
56
  component: withCtx((svgProps) => [
36
57
  (openBlock(), createElementBlock(
@@ -1 +1 @@
1
- {"version":3,"file":"icon.vue2.mjs","sources":["../../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-06-16 15:21:45\n * @LastEditors: shen\n * @LastEditTime: 2025-08-27 15:53:05\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { Component } from 'vue'\n\nimport { computed } from 'vue'\nimport { isFunction, isHttpUrl, isObject, isString } from '@pro-design-vue/utils'\nimport Icon from '@ant-design/icons-vue'\n\nconst props = defineProps<{\n // 没有是否显示默认图标\n fallback?: boolean\n icon?: Component | (() => void) | string\n}>()\n\nconst isRemoteIcon = computed(() => {\n return isString(props.icon) && isHttpUrl(props.icon)\n})\n\nconst isComponent = computed(() => {\n const { icon } = props\n return !isString(icon) && (isObject(icon) || isFunction(icon))\n})\n</script>\n\n<template>\n <component :is=\"icon as Component\" v-if=\"isComponent\" v-bind=\"$attrs\" />\n <img v-else-if=\"isRemoteIcon\" :src=\"icon as string\" v-bind=\"$attrs\" />\n <Icon v-else-if=\"fallback\" v-bind=\"$attrs\">\n <template #component=\"svgProps\">\n <svg viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" v-bind=\"svgProps\">\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 12h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 18h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 6h16\"\n />\n </svg>\n </template>\n </Icon>\n</template>\n"],"names":["_createBlock","_resolveDynamicComponent","icon","_normalizeProps","_mergeProps","$attrs","_openBlock","_createElementBlock","fallback","_unref","_withCtx","_createElementVNode"],"mappings":";;;;;;;;;;;;AAcA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAMd,IAAA,MAAM,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,OAAO,SAAS,KAAA,CAAM,IAAI,CAAA,IAAK,SAAA,CAAU,MAAM,IAAI,CAAA;AAAA,IACrD,CAAC,CAAA;AAED,IAAA,MAAM,WAAA,GAAc,SAAS,MAAM;AACjC,MAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,MAAA,OAAO,CAAC,SAAS,IAAI,CAAA,KAAM,SAAS,IAAI,CAAA,IAAK,WAAW,IAAI,CAAA,CAAA;AAAA,IAC9D,CAAC,CAAA;;aAI0C,WAAA,CAAA,KAAA,iBAAzCA,WAAA;AAAA,QAAwEC,uBAAA,CAAxDC,KAAAA,IAAI,CAAA;AAAA,QAAAC,cAAA,CAAAC,WAAA,EAAA,GAAA,EAAA,GAAA,EAA0CC,IAAAA,CAAAA,MAAM,CAAA,CAAA;AAAA,QAAA,IAAA;AAAA,QAAA;AAAA;AAAA,WACpD,YAAA,CAAA,KAAA,IAAhBC,WAAA,EAAAC,kBAAA,CAAsE,OAAtEH,UAA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oBACb,gBAAA,EAAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"icon.vue2.mjs","sources":["../../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-06-16 15:21:45\n * @LastEditors: shen\n * @LastEditTime: 2025-11-05 10:36:38\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { Component } from 'vue'\n\nimport { computed } from 'vue'\nimport { isFunction, isHttpUrl, isObject, isString } from '@pro-design-vue/utils'\nimport Icon from '@ant-design/icons-vue'\n\nconst props = defineProps<{\n // 没有是否显示默认图标\n fallback?: boolean\n icon?: Component | (() => void) | string\n}>()\n\nconst isRemoteIcon = computed(() => {\n return isString(props.icon) && isHttpUrl(props.icon)\n})\n\nconst isComponent = computed(() => {\n const { icon } = props\n return !isString(icon) && (isObject(icon) || isFunction(icon))\n})\n</script>\n\n<template>\n <component :is=\"icon as Component\" v-if=\"isComponent\" v-bind=\"$attrs\" />\n <img v-else-if=\"isRemoteIcon\" :src=\"icon as string\" v-bind=\"$attrs\" />\n <i v-else-if=\"icon\" :class=\"`pro-icon pro-icon-${icon}`\" v-bind=\"$attrs\"></i>\n <Icon v-else-if=\"$slots.component\" v-bind=\"$attrs\">\n <template #component=\"svgProps\">\n <slot name=\"component\" v-bind=\"svgProps\" />\n </template>\n </Icon>\n <Icon v-else-if=\"fallback\" v-bind=\"$attrs\">\n <template #component=\"svgProps\">\n <svg viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" v-bind=\"svgProps\">\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 12h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 18h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 6h16\"\n />\n </svg>\n </template>\n </Icon>\n</template>\n"],"names":["_createBlock","_resolveDynamicComponent","icon","_normalizeProps","_mergeProps","$attrs","_openBlock","_createElementBlock","$slots","_unref","_withCtx","_renderSlot","fallback","_createElementVNode"],"mappings":";;;;;;;;;;;;AAcA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAMd,IAAA,MAAM,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,OAAO,SAAS,KAAA,CAAM,IAAI,CAAA,IAAK,SAAA,CAAU,MAAM,IAAI,CAAA;AAAA,IACrD,CAAC,CAAA;AAED,IAAA,MAAM,WAAA,GAAc,SAAS,MAAM;AACjC,MAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,MAAA,OAAO,CAAC,SAAS,IAAI,CAAA,KAAM,SAAS,IAAI,CAAA,IAAK,WAAW,IAAI,CAAA,CAAA;AAAA,IAC9D,CAAC,CAAA;;aAI0C,WAAA,CAAA,KAAA,iBAAzCA,WAAA;AAAA,QAAwEC,uBAAA,CAAxDC,KAAAA,IAAI,CAAA;AAAA,QAAAC,cAAA,CAAAC,WAAA,EAAA,GAAA,EAAA,GAAA,EAA0CC,IAAAA,CAAAA,MAAM,CAAA,CAAA;AAAA,QAAA,IAAA;AAAA,QAAA;AAAA;AAAA,WACpD,YAAA,CAAA,KAAA,IAAhBC,WAAA,EAAAC,kBAAA,CAAsE,OAAtEH,UAAA,CAAsE;AAAA;QAAvC,KAAKF,IAAAA,CAAAA;AAAAA,SAAwBG,IAAAA,CAAAA,MAAM,CAAA,EAAA,IAAA,EAAA,EAAA,EAAA,UAAA,CAAA,IACpDH,IAAAA,CAAAA,IAAAA,IAAdI,SAAA,EAAA,EAAAC,kBAAA;AAAA,QAA6E,GAAA;AAAA,QAA7EH,UAAA,CAA6E;AAAA;UAAxD,KAAA,u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;AAAA,oBACb,gBAAA,EAAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;gBAEJA,kBAAA;AAAA,kBAOE,MAAA;AAAA,kBAAA;AAAA,oBANA,IAAA,EAAK,MAAA;AAAA,oBACL,MAAA,EAAO,cAAA;AAAA,oBACP,cAAA,EAAa,GAAA;AAAA,oBACb,gBAAA,EAAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;;;;;;;;;;;;;;;;;;"}
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.2.33";
1
+ export declare const version = "1.3.0";
package/es/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const version = "1.2.33";
1
+ const version = "1.3.0";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../packages/pro-design-vue/version.ts"],"sourcesContent":["export const version = '1.2.33'\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../packages/pro-design-vue/version.ts"],"sourcesContent":["export const version = '1.3.0'\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
@@ -3,5 +3,15 @@ type __VLS_Props = {
3
3
  fallback?: boolean;
4
4
  icon?: Component | (() => void) | string;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare var __VLS_11: any;
7
+ type __VLS_Slots = {} & {
8
+ component?: (props: typeof __VLS_11) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
12
  export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
package/lib/index.d.ts CHANGED
@@ -589,7 +589,8 @@ import { WritingModeProperty } from "csstype";
589
589
  import { ZIndexProperty } from "csstype";
590
590
  import { ZoomProperty } from "csstype";
591
591
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
592
- declare const __VLS_component_2: DefineComponent<ProDrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
592
+ declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
593
+ declare const __VLS_component_3: DefineComponent<ProDrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
593
594
  close: (e: Event) => any;
594
595
  fullScreen: (value: boolean) => any;
595
596
  }, string, PublicProps, Readonly<ProDrawerProps> & Readonly<{
@@ -605,7 +606,7 @@ declare const __VLS_component_2: DefineComponent<ProDrawerProps, {}, {}, {}, {},
605
606
  autofocus: boolean;
606
607
  showFullscreen: boolean;
607
608
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
608
- declare const __VLS_component_3: DefineComponent<ProModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
609
+ declare const __VLS_component_4: DefineComponent<ProModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
609
610
  cancel: (e: Event) => any;
610
611
  fullScreen: (value: boolean) => any;
611
612
  }, string, PublicProps, Readonly<ProModalProps> & Readonly<{
@@ -623,7 +624,7 @@ declare const __VLS_component_3: DefineComponent<ProModalProps, {}, {}, {}, {},
623
624
  top: number;
624
625
  showFullscreen: boolean;
625
626
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
626
- declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
627
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
627
628
  sideMouseLeave: () => any;
628
629
  toggleSidebar: () => any;
629
630
  "update:sidebarCollapse": (value: boolean) => any;
@@ -671,11 +672,11 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {}, {}, {},
671
672
  tabbarEnable: boolean;
672
673
  tabbarHeight: number;
673
674
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
674
- declare const __VLS_component_5: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
675
+ declare const __VLS_component_6: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
675
676
  text: string;
676
677
  minLoadingTime: number;
677
678
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
678
- declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
679
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
679
680
  "update:activeKey": (value: string | number | undefined) => any;
680
681
  }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
681
682
  "onUpdate:activeKey"?: ((value: string | number | undefined) => any) | undefined;
@@ -700,6 +701,9 @@ declare type __VLS_Slots = {} & {
700
701
  default?: (props: typeof __VLS_13) => any;
701
702
  };
702
703
  declare type __VLS_Slots_2 = {} & {
704
+ component?: (props: typeof __VLS_11) => any;
705
+ };
706
+ declare type __VLS_Slots_3 = {} & {
703
707
  title?: (props: typeof __VLS_10) => any;
704
708
  } & {
705
709
  description?: (props: typeof __VLS_12) => any;
@@ -710,7 +714,7 @@ declare type __VLS_Slots_2 = {} & {
710
714
  } & {
711
715
  footer?: (props: typeof __VLS_46) => any;
712
716
  };
713
- declare type __VLS_Slots_3 = {} & {
717
+ declare type __VLS_Slots_4 = {} & {
714
718
  title?: (props: typeof __VLS_10) => any;
715
719
  } & {
716
720
  description?: (props: typeof __VLS_12) => any;
@@ -719,7 +723,7 @@ declare type __VLS_Slots_3 = {} & {
719
723
  } & {
720
724
  footer?: (props: typeof __VLS_44) => any;
721
725
  };
722
- declare type __VLS_Slots_4 = {} & {
726
+ declare type __VLS_Slots_5 = {} & {
723
727
  logo?: (props: typeof __VLS_9) => any;
724
728
  } & {
725
729
  "mixed-menu"?: (props: typeof __VLS_11) => any;
@@ -744,12 +748,12 @@ declare type __VLS_Slots_4 = {} & {
744
748
  } & {
745
749
  extra?: (props: typeof __VLS_55) => any;
746
750
  };
747
- declare type __VLS_Slots_5 = {} & {
751
+ declare type __VLS_Slots_6 = {} & {
748
752
  icon?: (props: typeof __VLS_1) => any;
749
753
  } & {
750
754
  default?: (props: typeof __VLS_3) => any;
751
755
  };
752
- declare type __VLS_Slots_6 = {} & {
756
+ declare type __VLS_Slots_7 = {} & {
753
757
  header?: (props: typeof __VLS_1) => any;
754
758
  } & {
755
759
  title?: (props: typeof __VLS_3) => any;
@@ -794,6 +798,11 @@ declare type __VLS_WithSlots_6<T, S> = T & {
794
798
  $slots: S;
795
799
  };
796
800
  };
801
+ declare type __VLS_WithSlots_7<T, S> = T & {
802
+ new (): {
803
+ $slots: S;
804
+ };
805
+ };
797
806
  declare type AlignType = "left" | "center" | "right";
798
807
  declare interface AppendCellRange {
799
808
  columnsKey?: ProTableKey[];
@@ -1740,10 +1749,10 @@ declare const _default_10: DefineComponent<ExtractPropTypes<{
1740
1749
  })[];
1741
1750
  onCurrentChange: (current: number) => void;
1742
1751
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1743
- declare const _default_11: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
1744
- declare const _default_12: __VLS_WithSlots_4<typeof __VLS_component_4, __VLS_Slots_4>;
1745
- declare const _default_13: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
1746
- declare const _default_14: __VLS_WithSlots_6<typeof __VLS_component_6, __VLS_Slots_6>;
1752
+ declare const _default_11: __VLS_WithSlots_4<typeof __VLS_component_4, __VLS_Slots_4>;
1753
+ declare const _default_12: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
1754
+ declare const _default_13: __VLS_WithSlots_6<typeof __VLS_component_6, __VLS_Slots_6>;
1755
+ declare const _default_14: __VLS_WithSlots_7<typeof __VLS_component_7, __VLS_Slots_7>;
1747
1756
  declare const _default_15: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
1748
1757
  [key: string]: any;
1749
1758
  }> | VNode<RendererNode, RendererElement, {
@@ -2947,7 +2956,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
2947
2956
  onCloseEditor: (opt: CellRenderArgs) => void;
2948
2957
  }, CustomSlotsType<ContextSlots>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2949
2958
  declare const _default_2: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
2950
- declare const _default_3: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2959
+ declare const _default_3: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
2951
2960
  declare const _default_4: DefineComponent<Props_2, {
2952
2961
  start: typeof start;
2953
2962
  reset: typeof reset;
@@ -2971,7 +2980,7 @@ declare const _default_4: DefineComponent<Props_2, {
2971
2980
  startVal: number;
2972
2981
  useEasing: boolean;
2973
2982
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2974
- declare const _default_5: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
2983
+ declare const _default_5: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
2975
2984
  declare const _default_6: DefineComponent<ExtractPropTypes<{
2976
2985
  items: {
2977
2986
  type: PropType<Array<ProFormItemType<Entity, any>[]> | ProFormItemType<Entity, any>[]>;
@@ -32,9 +32,30 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
32
  )) : isRemoteIcon.value ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
33
33
  key: 1,
34
34
  src: _ctx.icon
35
- }, _ctx.$attrs), null, 16, _hoisted_1)) : _ctx.fallback ? (vue.openBlock(), vue.createBlock(
35
+ }, _ctx.$attrs), null, 16, _hoisted_1)) : _ctx.icon ? (vue.openBlock(), vue.createElementBlock(
36
+ "i",
37
+ vue.mergeProps({
38
+ key: 2,
39
+ class: `pro-icon pro-icon-${_ctx.icon}`
40
+ }, _ctx.$attrs),
41
+ null,
42
+ 16
43
+ /* FULL_PROPS */
44
+ )) : _ctx.$slots.component ? (vue.openBlock(), vue.createBlock(
45
+ vue.unref(Icon),
46
+ vue.normalizeProps(vue.mergeProps({ key: 3 }, _ctx.$attrs)),
47
+ {
48
+ component: vue.withCtx((svgProps) => [
49
+ vue.renderSlot(_ctx.$slots, "component", vue.normalizeProps(vue.guardReactiveProps(svgProps)))
50
+ ]),
51
+ _: 3
52
+ /* FORWARDED */
53
+ },
54
+ 16
55
+ /* FULL_PROPS */
56
+ )) : _ctx.fallback ? (vue.openBlock(), vue.createBlock(
36
57
  vue.unref(Icon),
37
- vue.normalizeProps(vue.mergeProps({ key: 2 }, _ctx.$attrs)),
58
+ vue.normalizeProps(vue.mergeProps({ key: 4 }, _ctx.$attrs)),
38
59
  {
39
60
  component: vue.withCtx((svgProps) => [
40
61
  (vue.openBlock(), vue.createElementBlock(
@@ -1 +1 @@
1
- {"version":3,"file":"icon.vue2.js","sources":["../../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-06-16 15:21:45\n * @LastEditors: shen\n * @LastEditTime: 2025-08-27 15:53:05\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { Component } from 'vue'\n\nimport { computed } from 'vue'\nimport { isFunction, isHttpUrl, isObject, isString } from '@pro-design-vue/utils'\nimport Icon from '@ant-design/icons-vue'\n\nconst props = defineProps<{\n // 没有是否显示默认图标\n fallback?: boolean\n icon?: Component | (() => void) | string\n}>()\n\nconst isRemoteIcon = computed(() => {\n return isString(props.icon) && isHttpUrl(props.icon)\n})\n\nconst isComponent = computed(() => {\n const { icon } = props\n return !isString(icon) && (isObject(icon) || isFunction(icon))\n})\n</script>\n\n<template>\n <component :is=\"icon as Component\" v-if=\"isComponent\" v-bind=\"$attrs\" />\n <img v-else-if=\"isRemoteIcon\" :src=\"icon as string\" v-bind=\"$attrs\" />\n <Icon v-else-if=\"fallback\" v-bind=\"$attrs\">\n <template #component=\"svgProps\">\n <svg viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" v-bind=\"svgProps\">\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 12h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 18h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 6h16\"\n />\n </svg>\n </template>\n </Icon>\n</template>\n"],"names":["computed","isString","isHttpUrl","isObject","isFunction","_createBlock","_resolveDynamicComponent","icon","_normalizeProps","_mergeProps","$attrs","_openBlock","_createElementBlock","fallback","_unref","_withCtx","_createElementVNode"],"mappings":";;;;;;;;;;;;;;;;AAcA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAMd,IAAA,MAAM,YAAA,GAAeA,aAAS,MAAM;AAClC,MAAA,OAAOC,kBAAS,KAAA,CAAM,IAAI,CAAA,IAAKC,kBAAA,CAAU,MAAM,IAAI,CAAA;AAAA,IACrD,CAAC,CAAA;AAED,IAAA,MAAM,WAAA,GAAcF,aAAS,MAAM;AACjC,MAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,MAAA,OAAO,CAACC,kBAAS,IAAI,CAAA,KAAME,kBAAS,IAAI,CAAA,IAAKC,oBAAW,IAAI,CAAA,CAAA;AAAA,IAC9D,CAAC,CAAA;;aAI0C,WAAA,CAAA,KAAA,qBAAzCC,eAAA;AAAA,QAAwEC,2BAAA,CAAxDC,KAAAA,IAAI,CAAA;AAAA,QAAAC,kBAAA,CAAAC,eAAA,EAAA,GAAA,EAAA,GAAA,EAA0CC,IAAAA,CAAAA,MAAM,CAAA,CAAA;AAAA,QAAA,IAAA;AAAA,QAAA;AAAA;AAAA,WACpD,YAAA,CAAA,KAAA,IAAhBC,eAAA,EAAAC,sBAAA,CAAsE,OAAtEH,cAAA,CAAsE;AAAA;QAAvC,KAAKF,IAAAA,CAAAA;AAAAA,SAAwBG,IAAAA,CAAAA,MAAM,CAAA,EAAA,IAAA,EAAA,EAAA,EAAA,UAAA,CAAA,IACjDG,IAAAA,CAAAA,QAAAA,IAAjBF,aAAA,EAAA,EAAAN,eAAA;AAAA,QA6BOS;sDA7B4BJ,IAAAA,CAAAA,MAAM,CAAA,CAAA;AAAA,QAAA;AAAA,UAC5B,SAAA,EAASK,WAAA,CAClB,CAyBM,QAAA,KA1BsB;AAAA,aAC5BJ,eAAA,EAAAC,sBAAA;AAAA,cAyBM,KAAA;AAAA,cAzBNH,cAAA,CAyBM;AAAA,gBAzBD,OAAA,EAAQ,WAAA;AAAA,gBAAY,KAAA,EAAM,KAAA;AAAA,gBAAM,MAAA,EAAO;AAAA,iBAAc,QAAQ,CAAA;AAAA,cAAA,CAAA,GAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA;AAAA,gBAChEO,sBAAA;AAAA,kBAOE,MAAA;AAAA,kBAAA;AAAA,oBANA,IAAA,EAAK,MAAA;AAAA,oBACL,MAAA,EAAO,cAAA;AAAA,oBACP,cAAA,EAAa,GAAA;AAAA,oBACb,gBAAA,EAAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;gBAEJA,sBAAA;AAAA,kBAOE,MAAA;AAAA,kBAAA;AAAA,oBANA,IAAA,EAAK,MAAA;AAAA,oBACL,MAAA,EAAO,cAAA;AAAA,oBACP,cAAA,EAAa,GAAA;AAAA,oBACb,gBAAA,EAAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;gBAEJA,sBAAA;AAAA,kBAOE,MAAA;AAAA,kBAAA;AAAA,oBANA,IAAA,EAAK,MAAA;AAAA,oBACL,MAAA,EAAO,cAAA;AAAA,oBACP,cAAA,EAAa,GAAA;AAAA,oBACb,gBAAA,EAAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"icon.vue2.js","sources":["../../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-06-16 15:21:45\n * @LastEditors: shen\n * @LastEditTime: 2025-11-05 10:36:38\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { Component } from 'vue'\n\nimport { computed } from 'vue'\nimport { isFunction, isHttpUrl, isObject, isString } from '@pro-design-vue/utils'\nimport Icon from '@ant-design/icons-vue'\n\nconst props = defineProps<{\n // 没有是否显示默认图标\n fallback?: boolean\n icon?: Component | (() => void) | string\n}>()\n\nconst isRemoteIcon = computed(() => {\n return isString(props.icon) && isHttpUrl(props.icon)\n})\n\nconst isComponent = computed(() => {\n const { icon } = props\n return !isString(icon) && (isObject(icon) || isFunction(icon))\n})\n</script>\n\n<template>\n <component :is=\"icon as Component\" v-if=\"isComponent\" v-bind=\"$attrs\" />\n <img v-else-if=\"isRemoteIcon\" :src=\"icon as string\" v-bind=\"$attrs\" />\n <i v-else-if=\"icon\" :class=\"`pro-icon pro-icon-${icon}`\" v-bind=\"$attrs\"></i>\n <Icon v-else-if=\"$slots.component\" v-bind=\"$attrs\">\n <template #component=\"svgProps\">\n <slot name=\"component\" v-bind=\"svgProps\" />\n </template>\n </Icon>\n <Icon v-else-if=\"fallback\" v-bind=\"$attrs\">\n <template #component=\"svgProps\">\n <svg viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" v-bind=\"svgProps\">\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 12h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 18h16\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M4 6h16\"\n />\n </svg>\n </template>\n </Icon>\n</template>\n"],"names":["computed","isString","isHttpUrl","isObject","isFunction","_createBlock","_resolveDynamicComponent","icon","_normalizeProps","_mergeProps","$attrs","_openBlock","_createElementBlock","$slots","_unref","_withCtx","_renderSlot","fallback","_createElementVNode"],"mappings":";;;;;;;;;;;;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AAe,OAAA;AAAA,oBACf,iBAAA,EAAgB,OAAA;AAAA,oBAChB,CAAA,EAAE;AAAA;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.2.33";
1
+ export declare const version = "1.3.0";
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "1.2.33";
3
+ const version = "1.3.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../packages/pro-design-vue/version.ts"],"sourcesContent":["export const version = '1.2.33'\n"],"names":[],"mappings":";;AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../packages/pro-design-vue/version.ts"],"sourcesContent":["export const version = '1.3.0'\n"],"names":[],"mappings":";;AAAO,MAAM,OAAA,GAAU;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-design-vue",
3
- "version": "1.2.33",
3
+ "version": "1.3.0",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "pro design",