pro-design-vue 1.3.31 → 1.3.32

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.3.31 */
1
+ /*! Pro Design Vue v1.3.32 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
@@ -32,7 +32,7 @@
32
32
  const DEFAULT_NAMESPACE = "pro";
33
33
  const DEFAULT_LOCALE = "zh-CN";
34
34
 
35
- const version$1 = "1.3.31";
35
+ const version$1 = "1.3.32";
36
36
 
37
37
  const makeInstaller = (components = []) => {
38
38
  const install = (app) => {
@@ -10388,7 +10388,8 @@
10388
10388
  emits: ["confirm", "click", "cancel", "menu-click"],
10389
10389
  setup(props, {
10390
10390
  attrs,
10391
- slots
10391
+ slots,
10392
+ emit
10392
10393
  }) {
10393
10394
  const prefixCls = usePrefixCls("button");
10394
10395
  const {
@@ -10404,20 +10405,20 @@
10404
10405
  }
10405
10406
  return void 0;
10406
10407
  };
10407
- const onClick = (e) => {
10408
- var _a, _b, _c, _d, _e;
10408
+ const handleClick = (e) => {
10409
+ var _a, _b, _c, _d;
10409
10410
  if (props.stop) {
10410
10411
  e.stopPropagation();
10411
10412
  }
10412
10413
  if (props.mode === "default") {
10413
- (_a = props.onClick) == null ? void 0 : _a.call(props, e);
10414
+ emit("click", e);
10414
10415
  return;
10415
10416
  }
10416
10417
  if (props.mode === "confirm") {
10417
10418
  confirm({
10418
10419
  ...props.confirmProps,
10419
- content: renderConfirmContent((_b = props.confirmProps) == null ? void 0 : _b.content) || ((_c = props.confirmProps) == null ? void 0 : _c.content),
10420
- title: renderConfirmContent((_d = props.confirmProps) == null ? void 0 : _d.title) || ((_e = props.confirmProps) == null ? void 0 : _e.title),
10420
+ content: renderConfirmContent((_a = props.confirmProps) == null ? void 0 : _a.content) || ((_b = props.confirmProps) == null ? void 0 : _b.content),
10421
+ title: renderConfirmContent((_c = props.confirmProps) == null ? void 0 : _c.title) || ((_d = props.confirmProps) == null ? void 0 : _d.title),
10421
10422
  onCancel() {
10422
10423
  var _a2;
10423
10424
  return (_a2 = props.onCancel) == null ? void 0 : _a2.call(props);
@@ -10444,7 +10445,7 @@
10444
10445
  }
10445
10446
  const buttonProps = {
10446
10447
  ...omit(props, ["items", "permission", "iconStyle", "icon", "stop", "confirmProps", "popconfirmProps", "menuProps", "dropdownProps", "tooltipProps", "tooltip", "mode", "onConfirm", "onClick", "onCancel", "onMenuClick"]),
10447
- onClick
10448
+ onClick: handleClick
10448
10449
  };
10449
10450
  let defaultDom = vue.createVNode(antDesignVue.Button, vue.mergeProps(attrs, buttonProps, {
10450
10451
  "class": prefixCls