pro-design-vue 1.2.10 → 1.2.11

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.10 */
1
+ /*! Pro Design Vue v1.2.11 */
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$3, 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, useAttrs, useTemplateRef, defineAsyncComponent, 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, createTextVNode, 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.10";
33
+ const version$1 = "1.2.11";
34
34
 
35
35
  const makeInstaller = (components = []) => {
36
36
  const install = (app) => {
@@ -13440,73 +13440,81 @@ var _sfc_main$T = /* @__PURE__ */ defineComponent({
13440
13440
  height: height.value,
13441
13441
  onClose: handleClose
13442
13442
  }), createSlots({
13443
- title: withCtx(() => [
13444
- renderSlot(_ctx.$slots, "title", {}, () => [
13445
- createElementVNode(
13446
- "div",
13447
- {
13448
- class: normalizeClass(`${unref(prefixCls)}-title`)
13449
- },
13450
- toDisplayString(_ctx.title),
13451
- 3
13452
- /* TEXT, CLASS */
13453
- )
13454
- ]),
13455
- renderSlot(_ctx.$slots, "description", {}, () => [
13456
- createElementVNode(
13457
- "div",
13458
- {
13459
- class: normalizeClass(`${unref(prefixCls)}-description`)
13460
- },
13461
- toDisplayString(_ctx.description),
13462
- 3
13463
- /* TEXT, CLASS */
13464
- )
13465
- ])
13466
- ]),
13467
- extra: withCtx(() => [
13468
- renderSlot(_ctx.$slots, "extra"),
13469
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
13470
- key: 0,
13471
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
13472
- size: "small",
13473
- shape: "circle",
13474
- type: "text",
13475
- onClick: handleFullScreen
13476
- }, {
13477
- icon: withCtx(() => [
13478
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
13479
- ]),
13480
- _: 1
13481
- /* STABLE */
13482
- }, 8, ["class"])) : createCommentVNode("v-if", true),
13483
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
13484
- key: 1,
13485
- class: normalizeClass(`${unref(prefixCls)}-close`),
13486
- size: "small",
13487
- shape: "circle",
13488
- type: "text",
13489
- onClick: handleBtnClose
13490
- }, {
13491
- icon: withCtx(() => [
13492
- createVNode(unref(CloseOutlined))
13493
- ]),
13494
- _: 1
13495
- /* STABLE */
13496
- }, 8, ["class"])) : createCommentVNode("v-if", true)
13497
- ]),
13498
13443
  default: withCtx(() => [
13499
13444
  renderSlot(_ctx.$slots, "default")
13500
13445
  ]),
13501
13446
  _: 2
13502
13447
  /* DYNAMIC */
13503
13448
  }, [
13449
+ _ctx.title || _ctx.$slots.title ? {
13450
+ name: "title",
13451
+ fn: withCtx(() => [
13452
+ renderSlot(_ctx.$slots, "title", {}, () => [
13453
+ createElementVNode(
13454
+ "div",
13455
+ {
13456
+ class: normalizeClass(`${unref(prefixCls)}-title`)
13457
+ },
13458
+ toDisplayString(_ctx.title),
13459
+ 3
13460
+ /* TEXT, CLASS */
13461
+ )
13462
+ ]),
13463
+ renderSlot(_ctx.$slots, "description", {}, () => [
13464
+ createElementVNode(
13465
+ "div",
13466
+ {
13467
+ class: normalizeClass(`${unref(prefixCls)}-description`)
13468
+ },
13469
+ toDisplayString(_ctx.description),
13470
+ 3
13471
+ /* TEXT, CLASS */
13472
+ )
13473
+ ])
13474
+ ]),
13475
+ key: "0"
13476
+ } : void 0,
13477
+ _ctx.title || _ctx.$slots.title ? {
13478
+ name: "extra",
13479
+ fn: withCtx(() => [
13480
+ renderSlot(_ctx.$slots, "extra"),
13481
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
13482
+ key: 0,
13483
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
13484
+ size: "small",
13485
+ shape: "circle",
13486
+ type: "text",
13487
+ onClick: handleFullScreen
13488
+ }, {
13489
+ icon: withCtx(() => [
13490
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
13491
+ ]),
13492
+ _: 1
13493
+ /* STABLE */
13494
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
13495
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
13496
+ key: 1,
13497
+ class: normalizeClass(`${unref(prefixCls)}-close`),
13498
+ size: "small",
13499
+ shape: "circle",
13500
+ type: "text",
13501
+ onClick: handleBtnClose
13502
+ }, {
13503
+ icon: withCtx(() => [
13504
+ createVNode(unref(CloseOutlined))
13505
+ ]),
13506
+ _: 1
13507
+ /* STABLE */
13508
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
13509
+ ]),
13510
+ key: "1"
13511
+ } : void 0,
13504
13512
  _ctx.$slots.footer ? {
13505
13513
  name: "footer",
13506
13514
  fn: withCtx(() => [
13507
13515
  renderSlot(_ctx.$slots, "footer")
13508
13516
  ]),
13509
- key: "0"
13517
+ key: "2"
13510
13518
  } : void 0
13511
13519
  ]), 1040, ["root-class-name", "width", "height"]);
13512
13520
  };
@@ -16411,91 +16419,95 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
16411
16419
  style: modalStyle.value,
16412
16420
  onCancel: handleClose
16413
16421
  }), createSlots({
16414
- title: withCtx(() => [
16415
- createElementVNode(
16416
- "div",
16417
- {
16418
- ref: "modalHeaderRef",
16419
- class: normalizeClass(`${unref(prefixCls)}-header`)
16420
- },
16421
- [
16422
- renderSlot(_ctx.$slots, "title", {}, () => [
16423
- createElementVNode(
16424
- "div",
16425
- {
16426
- class: normalizeClass(`${unref(prefixCls)}-title`)
16427
- },
16428
- toDisplayString(_ctx.title),
16429
- 3
16430
- /* TEXT, CLASS */
16431
- )
16432
- ]),
16433
- renderSlot(_ctx.$slots, "description", {}, () => [
16434
- createElementVNode(
16435
- "div",
16436
- {
16437
- class: normalizeClass(`${unref(prefixCls)}-description`)
16438
- },
16439
- toDisplayString(_ctx.description),
16440
- 3
16441
- /* TEXT, CLASS */
16442
- )
16443
- ]),
16444
- createElementVNode(
16445
- "div",
16446
- {
16447
- class: normalizeClass(`${unref(prefixCls)}-extra`)
16448
- },
16449
- [
16450
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
16451
- key: 0,
16452
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
16453
- size: "small",
16454
- shape: "circle",
16455
- type: "text",
16456
- onClick: handleFullScreen
16457
- }, {
16458
- icon: withCtx(() => [
16459
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
16460
- ]),
16461
- _: 1
16462
- /* STABLE */
16463
- }, 8, ["class"])) : createCommentVNode("v-if", true),
16464
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
16465
- key: 1,
16466
- class: normalizeClass(`${unref(prefixCls)}-close`),
16467
- size: "small",
16468
- shape: "circle",
16469
- type: "text",
16470
- onClick: handleBtnClose
16471
- }, {
16472
- icon: withCtx(() => [
16473
- createVNode(unref(CloseOutlined))
16474
- ]),
16475
- _: 1
16476
- /* STABLE */
16477
- }, 8, ["class"])) : createCommentVNode("v-if", true)
16478
- ],
16479
- 2
16480
- /* CLASS */
16481
- )
16482
- ],
16483
- 2
16484
- /* CLASS */
16485
- )
16486
- ]),
16487
16422
  default: withCtx(() => [
16488
16423
  renderSlot(_ctx.$slots, "default")
16489
16424
  ]),
16490
16425
  _: 2
16491
16426
  /* DYNAMIC */
16492
16427
  }, [
16428
+ _ctx.title || _ctx.$slots.title ? {
16429
+ name: "title",
16430
+ fn: withCtx(() => [
16431
+ createElementVNode(
16432
+ "div",
16433
+ {
16434
+ ref: "modalHeaderRef",
16435
+ class: normalizeClass(`${unref(prefixCls)}-header`)
16436
+ },
16437
+ [
16438
+ renderSlot(_ctx.$slots, "title", {}, () => [
16439
+ createElementVNode(
16440
+ "div",
16441
+ {
16442
+ class: normalizeClass(`${unref(prefixCls)}-title`)
16443
+ },
16444
+ toDisplayString(_ctx.title),
16445
+ 3
16446
+ /* TEXT, CLASS */
16447
+ )
16448
+ ]),
16449
+ renderSlot(_ctx.$slots, "description", {}, () => [
16450
+ createElementVNode(
16451
+ "div",
16452
+ {
16453
+ class: normalizeClass(`${unref(prefixCls)}-description`)
16454
+ },
16455
+ toDisplayString(_ctx.description),
16456
+ 3
16457
+ /* TEXT, CLASS */
16458
+ )
16459
+ ]),
16460
+ createElementVNode(
16461
+ "div",
16462
+ {
16463
+ class: normalizeClass(`${unref(prefixCls)}-extra`)
16464
+ },
16465
+ [
16466
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
16467
+ key: 0,
16468
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
16469
+ size: "small",
16470
+ shape: "circle",
16471
+ type: "text",
16472
+ onClick: handleFullScreen
16473
+ }, {
16474
+ icon: withCtx(() => [
16475
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
16476
+ ]),
16477
+ _: 1
16478
+ /* STABLE */
16479
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
16480
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
16481
+ key: 1,
16482
+ class: normalizeClass(`${unref(prefixCls)}-close`),
16483
+ size: "small",
16484
+ shape: "circle",
16485
+ type: "text",
16486
+ onClick: handleBtnClose
16487
+ }, {
16488
+ icon: withCtx(() => [
16489
+ createVNode(unref(CloseOutlined))
16490
+ ]),
16491
+ _: 1
16492
+ /* STABLE */
16493
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
16494
+ ],
16495
+ 2
16496
+ /* CLASS */
16497
+ )
16498
+ ],
16499
+ 2
16500
+ /* CLASS */
16501
+ )
16502
+ ]),
16503
+ key: "0"
16504
+ } : void 0,
16493
16505
  _ctx.$slots.footer ? {
16494
16506
  name: "footer",
16495
16507
  fn: withCtx(() => [
16496
16508
  renderSlot(_ctx.$slots, "footer")
16497
16509
  ]),
16498
- key: "0"
16510
+ key: "1"
16499
16511
  } : void 0
16500
16512
  ]), 1040, ["class", "width", "style"]);
16501
16513
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, normalizeClass, createVNode, createElementVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, computed, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from 'vue';
2
2
  import { Drawer } from 'ant-design-vue';
3
3
  import { FullscreenOutlined, FullscreenExitOutlined, CloseOutlined } from '@ant-design/icons-vue';
4
4
  import { ProButton } from '../../button/index.mjs';
@@ -104,73 +104,81 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
104
104
  height: height.value,
105
105
  onClose: handleClose
106
106
  }), createSlots({
107
- title: withCtx(() => [
108
- renderSlot(_ctx.$slots, "title", {}, () => [
109
- createElementVNode(
110
- "div",
111
- {
112
- class: normalizeClass(`${unref(prefixCls)}-title`)
113
- },
114
- toDisplayString(_ctx.title),
115
- 3
116
- /* TEXT, CLASS */
117
- )
118
- ]),
119
- renderSlot(_ctx.$slots, "description", {}, () => [
120
- createElementVNode(
121
- "div",
122
- {
123
- class: normalizeClass(`${unref(prefixCls)}-description`)
124
- },
125
- toDisplayString(_ctx.description),
126
- 3
127
- /* TEXT, CLASS */
128
- )
129
- ])
130
- ]),
131
- extra: withCtx(() => [
132
- renderSlot(_ctx.$slots, "extra"),
133
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
134
- key: 0,
135
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
136
- size: "small",
137
- shape: "circle",
138
- type: "text",
139
- onClick: handleFullScreen
140
- }, {
141
- icon: withCtx(() => [
142
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
143
- ]),
144
- _: 1
145
- /* STABLE */
146
- }, 8, ["class"])) : createCommentVNode("v-if", true),
147
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
148
- key: 1,
149
- class: normalizeClass(`${unref(prefixCls)}-close`),
150
- size: "small",
151
- shape: "circle",
152
- type: "text",
153
- onClick: handleBtnClose
154
- }, {
155
- icon: withCtx(() => [
156
- createVNode(unref(CloseOutlined))
157
- ]),
158
- _: 1
159
- /* STABLE */
160
- }, 8, ["class"])) : createCommentVNode("v-if", true)
161
- ]),
162
107
  default: withCtx(() => [
163
108
  renderSlot(_ctx.$slots, "default")
164
109
  ]),
165
110
  _: 2
166
111
  /* DYNAMIC */
167
112
  }, [
113
+ _ctx.title || _ctx.$slots.title ? {
114
+ name: "title",
115
+ fn: withCtx(() => [
116
+ renderSlot(_ctx.$slots, "title", {}, () => [
117
+ createElementVNode(
118
+ "div",
119
+ {
120
+ class: normalizeClass(`${unref(prefixCls)}-title`)
121
+ },
122
+ toDisplayString(_ctx.title),
123
+ 3
124
+ /* TEXT, CLASS */
125
+ )
126
+ ]),
127
+ renderSlot(_ctx.$slots, "description", {}, () => [
128
+ createElementVNode(
129
+ "div",
130
+ {
131
+ class: normalizeClass(`${unref(prefixCls)}-description`)
132
+ },
133
+ toDisplayString(_ctx.description),
134
+ 3
135
+ /* TEXT, CLASS */
136
+ )
137
+ ])
138
+ ]),
139
+ key: "0"
140
+ } : void 0,
141
+ _ctx.title || _ctx.$slots.title ? {
142
+ name: "extra",
143
+ fn: withCtx(() => [
144
+ renderSlot(_ctx.$slots, "extra"),
145
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
146
+ key: 0,
147
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
148
+ size: "small",
149
+ shape: "circle",
150
+ type: "text",
151
+ onClick: handleFullScreen
152
+ }, {
153
+ icon: withCtx(() => [
154
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
155
+ ]),
156
+ _: 1
157
+ /* STABLE */
158
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
159
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
160
+ key: 1,
161
+ class: normalizeClass(`${unref(prefixCls)}-close`),
162
+ size: "small",
163
+ shape: "circle",
164
+ type: "text",
165
+ onClick: handleBtnClose
166
+ }, {
167
+ icon: withCtx(() => [
168
+ createVNode(unref(CloseOutlined))
169
+ ]),
170
+ _: 1
171
+ /* STABLE */
172
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
173
+ ]),
174
+ key: "1"
175
+ } : void 0,
168
176
  _ctx.$slots.footer ? {
169
177
  name: "footer",
170
178
  fn: withCtx(() => [
171
179
  renderSlot(_ctx.$slots, "footer")
172
180
  ]),
173
- key: "0"
181
+ key: "2"
174
182
  } : void 0
175
183
  ]), 1040, ["root-class-name", "width", "height"]);
176
184
  };
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-06-23 16:43:27\n * @LastEditors: shen\n * @LastEditTime: 2025-10-12 12:59:57\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { DrawerProps } from 'ant-design-vue'\n\nimport { computed, ref } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { CloseOutlined, FullscreenOutlined, FullscreenExitOutlined } from '@ant-design/icons-vue'\nimport { ProButton } from '@pro-design-vue/components/button'\nimport { omitKeysAndUndefined } from '@pro-design-vue/utils'\nimport { useIsMobile, usePrefixCls } from '@pro-design-vue/hooks'\nimport { useProConfigInject } from '@pro-design-vue/components/config-provider'\n\nexport interface Props extends DrawerProps {\n description?: string\n showFullscreen?: boolean\n defaultFullscreen?: boolean\n}\ndefineOptions({\n name: 'ProDrawer',\n})\n\nconst props = withDefaults(defineProps<Props>(), {\n autofocus: false,\n closable: true,\n destroyOnClose: true,\n getContainer: 'body',\n mask: true,\n maskClosable: true,\n open: false,\n showFullscreen: undefined,\n})\n\nconst emit = defineEmits<{ close: [e: Event]; fullScreen: [value: boolean] }>()\n\nconst prefixCls = usePrefixCls('drawer')\nconst { isMobile } = useIsMobile()\nconst { drawer } = useProConfigInject()\nconst fullscreen = ref(props.defaultFullscreen)\nconst hasFullscreen = computed(() => isMobile.value || fullscreen.value)\nconst mergeShowFullscreen = computed(() => props.showFullscreen ?? drawer?.value?.showFullscreen)\n\nconst drawerProps = computed(() =>\n omitKeysAndUndefined(props, ['rootClassName', 'closable', 'onClose', 'title', 'width', 'height']),\n)\n\nconst width = computed(() => {\n if (fullscreen.value) {\n return '100%'\n }\n return props.width\n})\n\nconst height = computed(() => {\n if (hasFullscreen.value) {\n return '100%'\n }\n return props.height\n})\n\nconst handleClose = (e: Event) => {\n fullscreen.value = props.defaultFullscreen\n props['onUpdate:open']?.(false)\n emit('close', e)\n}\n\nconst handleBtnClose = (e: Event) => {\n handleClose(e)\n}\n\nconst handleFullScreen = () => {\n fullscreen.value = !fullscreen.value\n emit('fullScreen', fullscreen.value)\n}\n</script>\n\n<template>\n <Drawer\n v-bind=\"drawerProps\"\n :root-class-name=\"`${prefixCls} ${rootClassName || ''}`\"\n :closable=\"false\"\n :width\n :height\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\">\n <div :class=\"`${prefixCls}-title`\">{{ title }}</div>\n </slot>\n <slot name=\"description\">\n <div :class=\"`${prefixCls}-description`\">{{ description }}</div>\n </slot>\n </template>\n <template #extra>\n <slot name=\"extra\" />\n <ProButton\n v-if=\"mergeShowFullscreen && !isMobile\"\n :class=\"`${prefixCls}-fullscreen`\"\n size=\"small\"\n shape=\"circle\"\n type=\"text\"\n @click=\"handleFullScreen\"\n >\n <template #icon>\n <FullscreenOutlined v-if=\"!fullscreen\" />\n <FullscreenExitOutlined v-else />\n </template>\n </ProButton>\n <ProButton\n v-if=\"closable\"\n :class=\"`${prefixCls}-close`\"\n size=\"small\"\n shape=\"circle\"\n type=\"text\"\n @click=\"handleBtnClose\"\n >\n <template #icon>\n <CloseOutlined />\n </template>\n </ProButton>\n </template>\n <template #default>\n <slot />\n </template>\n\n <template #footer v-if=\"$slots.footer\">\n <slot name=\"footer\" />\n </template>\n </Drawer>\n</template>\n"],"names":["_createBlock","_unref","_mergeProps","rootClassName","_renderSlot","_createElementVNode","title","description","closable","_createVNode","$slots"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAWd,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,SAAA,GAAY,aAAa,QAAQ,CAAA;AACvC,IAAA,MAAM,EAAE,QAAA,EAAS,GAAI,WAAA,EAAY;AACjC,IAAA,MAAM,EAAE,MAAA,EAAO,GAAI,kBAAA,EAAmB;AACtC,IAAA,MAAM,UAAA,GAAa,GAAA,CAAI,KAAA,CAAM,iBAAiB,CAAA;AAC9C,IAAA,MAAM,gBAAgB,QAAA,CAAS,MAAM,QAAA,CAAS,KAAA,IAAS,WAAW,KAAK,CAAA;AACvE,IAAA,MAAM,mBAAA,GAAsB,SAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,KAAA,CAAM,cAAA,KAAN,IAAA,GAAA,EAAA,GAAA,CAAwB,EAAA,GAAA,MAAA,IAAA,IAAA,GAAA,MAAA,GAAA,MAAA,CAAQ,KAAA,KAAR,IAAA,GAAA,MAAA,GAAA,EAAA,CAAe,cAAA;AAAA,IAAA,CAAc,CAAA;AAEhG,IAAA,MAAM,WAAA,GAAc,QAAA;AAAA,MAAS,MAC3B,oBAAA,CAAqB,KAAA,EAAO,CAAC,eAAA,EAAiB,YAAY,SAAA,EAAW,OAAA,EAAS,OAAA,EAAS,QAAQ,CAAC;AAAA,KAClG;AAEA,IAAA,MAAM,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAA,IAAI,WAAW,KAAA,EAAO;AACpB,QAAA,OAAO,MAAA;AAAA,MACT;AACA,MAAA,OAAO,KAAA,CAAM,KAAA;AAAA,IACf,CAAC,CAAA;AAED,IAAA,MAAM,MAAA,GAAS,SAAS,MAAM;AA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AQ;AAAA,UAARG,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;QAGcM,IAAAA,CAAAA,OAAO,MAAA;gBAApB,QAAA;AAAA,sBACT,MAAsB;AAAA,YAAtBN,UAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA;AAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-06-23 16:43:27\n * @LastEditors: shen\n * @LastEditTime: 2025-10-18 19:17:38\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { DrawerProps } from 'ant-design-vue'\n\nimport { computed, ref } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { CloseOutlined, FullscreenOutlined, FullscreenExitOutlined } from '@ant-design/icons-vue'\nimport { ProButton } from '@pro-design-vue/components/button'\nimport { omitKeysAndUndefined } from '@pro-design-vue/utils'\nimport { useIsMobile, usePrefixCls } from '@pro-design-vue/hooks'\nimport { useProConfigInject } from '@pro-design-vue/components/config-provider'\n\nexport interface Props extends DrawerProps {\n description?: string\n showFullscreen?: boolean\n defaultFullscreen?: boolean\n}\ndefineOptions({\n name: 'ProDrawer',\n})\n\nconst props = withDefaults(defineProps<Props>(), {\n autofocus: false,\n closable: true,\n destroyOnClose: true,\n getContainer: 'body',\n mask: true,\n maskClosable: true,\n open: false,\n showFullscreen: undefined,\n})\n\nconst emit = defineEmits<{ close: [e: Event]; fullScreen: [value: boolean] }>()\n\nconst prefixCls = usePrefixCls('drawer')\nconst { isMobile } = useIsMobile()\nconst { drawer } = useProConfigInject()\nconst fullscreen = ref(props.defaultFullscreen)\nconst hasFullscreen = computed(() => isMobile.value || fullscreen.value)\nconst mergeShowFullscreen = computed(() => props.showFullscreen ?? drawer?.value?.showFullscreen)\n\nconst drawerProps = computed(() =>\n omitKeysAndUndefined(props, ['rootClassName', 'closable', 'onClose', 'title', 'width', 'height']),\n)\n\nconst width = computed(() => {\n if (fullscreen.value) {\n return '100%'\n }\n return props.width\n})\n\nconst height = computed(() => {\n if (hasFullscreen.value) {\n return '100%'\n }\n return props.height\n})\n\nconst handleClose = (e: Event) => {\n fullscreen.value = props.defaultFullscreen\n props['onUpdate:open']?.(false)\n emit('close', e)\n}\n\nconst handleBtnClose = (e: Event) => {\n handleClose(e)\n}\n\nconst handleFullScreen = () => {\n fullscreen.value = !fullscreen.value\n emit('fullScreen', fullscreen.value)\n}\n</script>\n\n<template>\n <Drawer\n v-bind=\"drawerProps\"\n :root-class-name=\"`${prefixCls} ${rootClassName || ''}`\"\n :closable=\"false\"\n :width\n :height\n @close=\"handleClose\"\n >\n <template #title v-if=\"title || $slots.title\">\n <slot name=\"title\">\n <div :class=\"`${prefixCls}-title`\">{{ title }}</div>\n </slot>\n <slot name=\"description\">\n <div :class=\"`${prefixCls}-description`\">{{ description }}</div>\n </slot>\n </template>\n <template #extra v-if=\"title || $slots.title\">\n <slot name=\"extra\" />\n <ProButton\n v-if=\"mergeShowFullscreen && !isMobile\"\n :class=\"`${prefixCls}-fullscreen`\"\n size=\"small\"\n shape=\"circle\"\n type=\"text\"\n @click=\"handleFullScreen\"\n >\n <template #icon>\n <FullscreenOutlined v-if=\"!fullscreen\" />\n <FullscreenExitOutlined v-else />\n </template>\n </ProButton>\n <ProButton\n v-if=\"closable\"\n :class=\"`${prefixCls}-close`\"\n size=\"small\"\n shape=\"circle\"\n type=\"text\"\n @click=\"handleBtnClose\"\n >\n <template #icon>\n <CloseOutlined />\n </template>\n </ProButton>\n </template>\n <template #default>\n <slot />\n </template>\n\n <template #footer v-if=\"$slots.footer\">\n <slot name=\"footer\" />\n </template>\n </Drawer>\n</template>\n"],"names":["_createBlock","_unref","_mergeProps","rootClassName","_renderSlot","title","$slots","_createElementVNode","description","closable","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,I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WAAA,CAAiBT,KAAA,CAAA,aAAA,CAAA;AAAA;;;;;;;QAQCK,IAAAA,CAAAA,OAAO,MAAA;gBAApB,QAAA;AAAA,sBACT,MAAsB;AAAA,YAAtBF,UAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA;AAAA;;;;;;;;;;"}
@@ -143,91 +143,95 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
143
143
  style: modalStyle.value,
144
144
  onCancel: handleClose
145
145
  }), createSlots({
146
- title: withCtx(() => [
147
- createElementVNode(
148
- "div",
149
- {
150
- ref: "modalHeaderRef",
151
- class: normalizeClass(`${unref(prefixCls)}-header`)
152
- },
153
- [
154
- renderSlot(_ctx.$slots, "title", {}, () => [
155
- createElementVNode(
156
- "div",
157
- {
158
- class: normalizeClass(`${unref(prefixCls)}-title`)
159
- },
160
- toDisplayString(_ctx.title),
161
- 3
162
- /* TEXT, CLASS */
163
- )
164
- ]),
165
- renderSlot(_ctx.$slots, "description", {}, () => [
166
- createElementVNode(
167
- "div",
168
- {
169
- class: normalizeClass(`${unref(prefixCls)}-description`)
170
- },
171
- toDisplayString(_ctx.description),
172
- 3
173
- /* TEXT, CLASS */
174
- )
175
- ]),
176
- createElementVNode(
177
- "div",
178
- {
179
- class: normalizeClass(`${unref(prefixCls)}-extra`)
180
- },
181
- [
182
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
183
- key: 0,
184
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
185
- size: "small",
186
- shape: "circle",
187
- type: "text",
188
- onClick: handleFullScreen
189
- }, {
190
- icon: withCtx(() => [
191
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
192
- ]),
193
- _: 1
194
- /* STABLE */
195
- }, 8, ["class"])) : createCommentVNode("v-if", true),
196
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
197
- key: 1,
198
- class: normalizeClass(`${unref(prefixCls)}-close`),
199
- size: "small",
200
- shape: "circle",
201
- type: "text",
202
- onClick: handleBtnClose
203
- }, {
204
- icon: withCtx(() => [
205
- createVNode(unref(CloseOutlined))
206
- ]),
207
- _: 1
208
- /* STABLE */
209
- }, 8, ["class"])) : createCommentVNode("v-if", true)
210
- ],
211
- 2
212
- /* CLASS */
213
- )
214
- ],
215
- 2
216
- /* CLASS */
217
- )
218
- ]),
219
146
  default: withCtx(() => [
220
147
  renderSlot(_ctx.$slots, "default")
221
148
  ]),
222
149
  _: 2
223
150
  /* DYNAMIC */
224
151
  }, [
152
+ _ctx.title || _ctx.$slots.title ? {
153
+ name: "title",
154
+ fn: withCtx(() => [
155
+ createElementVNode(
156
+ "div",
157
+ {
158
+ ref: "modalHeaderRef",
159
+ class: normalizeClass(`${unref(prefixCls)}-header`)
160
+ },
161
+ [
162
+ renderSlot(_ctx.$slots, "title", {}, () => [
163
+ createElementVNode(
164
+ "div",
165
+ {
166
+ class: normalizeClass(`${unref(prefixCls)}-title`)
167
+ },
168
+ toDisplayString(_ctx.title),
169
+ 3
170
+ /* TEXT, CLASS */
171
+ )
172
+ ]),
173
+ renderSlot(_ctx.$slots, "description", {}, () => [
174
+ createElementVNode(
175
+ "div",
176
+ {
177
+ class: normalizeClass(`${unref(prefixCls)}-description`)
178
+ },
179
+ toDisplayString(_ctx.description),
180
+ 3
181
+ /* TEXT, CLASS */
182
+ )
183
+ ]),
184
+ createElementVNode(
185
+ "div",
186
+ {
187
+ class: normalizeClass(`${unref(prefixCls)}-extra`)
188
+ },
189
+ [
190
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
191
+ key: 0,
192
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
193
+ size: "small",
194
+ shape: "circle",
195
+ type: "text",
196
+ onClick: handleFullScreen
197
+ }, {
198
+ icon: withCtx(() => [
199
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
200
+ ]),
201
+ _: 1
202
+ /* STABLE */
203
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
204
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
205
+ key: 1,
206
+ class: normalizeClass(`${unref(prefixCls)}-close`),
207
+ size: "small",
208
+ shape: "circle",
209
+ type: "text",
210
+ onClick: handleBtnClose
211
+ }, {
212
+ icon: withCtx(() => [
213
+ createVNode(unref(CloseOutlined))
214
+ ]),
215
+ _: 1
216
+ /* STABLE */
217
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
218
+ ],
219
+ 2
220
+ /* CLASS */
221
+ )
222
+ ],
223
+ 2
224
+ /* CLASS */
225
+ )
226
+ ]),
227
+ key: "0"
228
+ } : void 0,
225
229
  _ctx.$slots.footer ? {
226
230
  name: "footer",
227
231
  fn: withCtx(() => [
228
232
  renderSlot(_ctx.$slots, "footer")
229
233
  ]),
230
- key: "0"
234
+ key: "1"
231
235
  } : void 0
232
236
  ]), 1040, ["class", "width", "style"]);
233
237
  };