free-fe-core-modules 0.1.16 → 0.1.17

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.
@@ -150,7 +150,9 @@ export default defineComponent({
150
150
  fieldsClass: { type: String, default: '' },
151
151
  dialogClass: { type: String, default: '' },
152
152
 
153
- remove: { type: Function, default: () => {}}
153
+ remove: { type: Function, default: () => {}},
154
+
155
+ noRejectOnCancel: { type: Boolean, default: false },
154
156
  },
155
157
  components: {
156
158
  FreeField,
@@ -242,12 +244,16 @@ export default defineComponent({
242
244
  }
243
245
 
244
246
  if (reject.value) {
245
- reject.value('cancel');
246
-
247
- if (typeof props.remove === 'function'){
248
- props.remove();
247
+ if (!props.noRejectOnCancel) {
248
+ reject.value('cancel');
249
+ } else {
250
+ emit('ok');
249
251
  }
250
252
  }
253
+
254
+ if (typeof props.remove === 'function'){
255
+ props.remove();
256
+ }
251
257
  };
252
258
 
253
259
  const btn_ok = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-fe-core-modules",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/freeeis/free-fe-core-modules.git",
6
6
  "author": "zhiquan",