pro-design-vue 1.3.30 → 1.3.31

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.30 */
1
+ /*! Pro Design Vue v1.3.31 */
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.30";
35
+ const version$1 = "1.3.31";
36
36
 
37
37
  const makeInstaller = (components = []) => {
38
38
  const install = (app) => {
@@ -10388,8 +10388,7 @@
10388
10388
  emits: ["confirm", "click", "cancel", "menu-click"],
10389
10389
  setup(props, {
10390
10390
  attrs,
10391
- slots,
10392
- emit
10391
+ slots
10393
10392
  }) {
10394
10393
  const prefixCls = usePrefixCls("button");
10395
10394
  const {
@@ -10405,21 +10404,20 @@
10405
10404
  }
10406
10405
  return void 0;
10407
10406
  };
10408
- const buttonProps = vue.computed(() => omit(props, ["items", "permission", "iconStyle", "icon", "stop", "confirmProps", "popconfirmProps", "menuProps", "dropdownProps", "tooltipProps", "tooltip", "mode", "onConfirm", "onClick", "onCancel", "onMenuClick"]));
10409
10407
  const onClick = (e) => {
10410
- var _a, _b, _c, _d;
10408
+ var _a, _b, _c, _d, _e;
10411
10409
  if (props.stop) {
10412
10410
  e.stopPropagation();
10413
10411
  }
10414
10412
  if (props.mode === "default") {
10415
- emit("click", e);
10413
+ (_a = props.onClick) == null ? void 0 : _a.call(props, e);
10416
10414
  return;
10417
10415
  }
10418
10416
  if (props.mode === "confirm") {
10419
10417
  confirm({
10420
10418
  ...props.confirmProps,
10421
- content: renderConfirmContent((_a = props.confirmProps) == null ? void 0 : _a.content) || ((_b = props.confirmProps) == null ? void 0 : _b.content),
10422
- title: renderConfirmContent((_c = props.confirmProps) == null ? void 0 : _c.title) || ((_d = props.confirmProps) == null ? void 0 : _d.title),
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),
10423
10421
  onCancel() {
10424
10422
  var _a2;
10425
10423
  return (_a2 = props.onCancel) == null ? void 0 : _a2.call(props);
@@ -10444,9 +10442,12 @@
10444
10442
  "icon": props.icon
10445
10443
  }, null);
10446
10444
  }
10447
- let defaultDom = vue.createVNode(antDesignVue.Button, vue.mergeProps(attrs, buttonProps.value, {
10448
- "class": prefixCls,
10449
- "onClick": props.mode === "popconfirm" || props.mode === "dropdown" ? void 0 : onClick
10445
+ const buttonProps = {
10446
+ ...omit(props, ["items", "permission", "iconStyle", "icon", "stop", "confirmProps", "popconfirmProps", "menuProps", "dropdownProps", "tooltipProps", "tooltip", "mode", "onConfirm", "onClick", "onCancel", "onMenuClick"]),
10447
+ onClick
10448
+ };
10449
+ let defaultDom = vue.createVNode(antDesignVue.Button, vue.mergeProps(attrs, buttonProps, {
10450
+ "class": prefixCls
10450
10451
  }), {
10451
10452
  default: () => {
10452
10453
  var _a2;