@wfrog/vc-ui 1.9.12 → 1.9.14

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.
@@ -33,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  }
34
34
  async function handleCancel() {
35
35
  formRef.value.resetFields();
36
+ emits("cancel");
36
37
  isEditing.value = false;
37
38
  }
38
39
  async function handleSave() {
@@ -82,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
83
  renderSlot(_ctx.$slots, "action"),
83
84
  __props.editable && unref(isEditing) ? (openBlock(), createBlock(Component$2, {
84
85
  key: 0,
86
+ disabled: __props.disabled,
85
87
  icon: { name: "Close" },
86
88
  onClick: handleCancel
87
89
  }, {
@@ -89,9 +91,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
91
  createTextVNode("取消", -1)
90
92
  ])]),
91
93
  _: 1
92
- })) : createCommentVNode("", true),
94
+ }, 8, ["disabled"])) : createCommentVNode("", true),
93
95
  __props.editable && unref(isEditing) ? (openBlock(), createBlock(Component$2, {
94
96
  key: 1,
97
+ disabled: __props.disabled,
95
98
  icon: { name: "Check" },
96
99
  type: "primary",
97
100
  onClick: handleSave
@@ -100,9 +103,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
103
  createTextVNode("保存", -1)
101
104
  ])]),
102
105
  _: 1
103
- })) : createCommentVNode("", true),
106
+ }, 8, ["disabled"])) : createCommentVNode("", true),
104
107
  __props.editable && !unref(isEditing) ? (openBlock(), createBlock(Component$2, {
105
108
  key: 2,
109
+ disabled: __props.disabled,
106
110
  icon: { name: "EditPen" },
107
111
  type: "primary",
108
112
  onClick: handleEdit
@@ -111,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
115
  createTextVNode("编辑", -1)
112
116
  ])]),
113
117
  _: 1
114
- })) : createCommentVNode("", true)
118
+ }, 8, ["disabled"])) : createCommentVNode("", true)
115
119
  ], 2)
116
120
  ], 2),
117
121
  createVNode(Component$3, {
@@ -89,6 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  renderSlot(_ctx.$slots, "action"),
90
90
  unref(isEditing) ? (openBlock(), createBlock(Component$3, {
91
91
  key: 0,
92
+ disabled: __props.disabled,
92
93
  loading: __props.loading,
93
94
  icon: { name: "Close" },
94
95
  onClick: handleCancel
@@ -97,9 +98,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
98
  createTextVNode("取消", -1)
98
99
  ])]),
99
100
  _: 1
100
- }, 8, ["loading"])) : createCommentVNode("", true),
101
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true),
101
102
  unref(isEditing) ? (openBlock(), createBlock(Component$3, {
102
103
  key: 1,
104
+ disabled: __props.disabled,
103
105
  loading: __props.loading,
104
106
  icon: { name: "Check" },
105
107
  type: "primary",
@@ -109,9 +111,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
109
111
  createTextVNode("保存", -1)
110
112
  ])]),
111
113
  _: 1
112
- }, 8, ["loading"])) : createCommentVNode("", true),
114
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true),
113
115
  __props.editable && !unref(isEditing) ? (openBlock(), createBlock(Component$3, {
114
116
  key: 2,
117
+ disabled: __props.disabled,
115
118
  loading: __props.loading,
116
119
  icon: { name: "EditPen" },
117
120
  type: "primary",
@@ -121,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
124
  createTextVNode("编辑", -1)
122
125
  ])]),
123
126
  _: 1
124
- }, 8, ["loading"])) : createCommentVNode("", true)
127
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true)
125
128
  ]),
126
129
  default: withCtx(() => [
127
130
  withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(formComponent)), mergeProps({