@ailaw/venus 0.3.13 → 0.3.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.
Files changed (2) hide show
  1. package/dist/venus.es.js +16 -5
  2. package/package.json +1 -1
package/dist/venus.es.js CHANGED
@@ -2493,11 +2493,15 @@ var __vue2_script$3 = defineComponent({
2493
2493
  default: false
2494
2494
  }
2495
2495
  },
2496
- setup(props) {
2496
+ setup(props, { emit }) {
2497
2497
  const taskTable = ref$1(null);
2498
2498
  const conditions = useSearchTaskConditions();
2499
2499
  const currentComponent = shallowRef(props.showPage ? Card : Modal);
2500
+ const editAction = (record) => {
2501
+ emit("edit", record);
2502
+ };
2500
2503
  return {
2504
+ editAction,
2501
2505
  taskTable,
2502
2506
  conditions,
2503
2507
  AssigneeTypes,
@@ -2532,13 +2536,13 @@ var render$3 = function() {
2532
2536
  var dataSource = ref2.dataSource;
2533
2537
  var pagination = ref2.pagination;
2534
2538
  var changePagination = ref2.changePagination;
2535
- return [_vm._t("default", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
2539
+ return [_vm._t("default", null, { "editAction": _vm.editAction, "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
2536
2540
  } }], null, true) })], 1);
2537
2541
  };
2538
2542
  var staticRenderFns$3 = [];
2539
2543
  var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2540
2544
  const __cssModules$3 = {};
2541
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "68e5a76e", null, null);
2545
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "23ce399e", null, null);
2542
2546
  function __vue2_injectStyles$3(context) {
2543
2547
  for (let o in __cssModules$3) {
2544
2548
  this[o] = __cssModules$3[o];
@@ -6418,7 +6422,14 @@ var __vue2_script$1 = defineComponent({
6418
6422
  }
6419
6423
  };
6420
6424
  const submitting = computed(() => updateTemplate.loading.value || createTemplate.loading.value);
6425
+ const showEdit = (record) => {
6426
+ newTaskVisible.value = true;
6427
+ tempTask.value = {
6428
+ taskTemplateObj: __spreadValues({}, record)
6429
+ };
6430
+ };
6421
6431
  return {
6432
+ showEdit,
6422
6433
  mainModal,
6423
6434
  reviewModal,
6424
6435
  _submit,
@@ -6452,7 +6463,7 @@ var render$1 = function() {
6452
6463
  _vm.addedTasks = $event;
6453
6464
  }, "update:visible": function($event) {
6454
6465
  return _vm.$emit("update:visible", $event);
6455
- } }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
6466
+ }, "edit": _vm.showEdit }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
6456
6467
  var loading = ref2.loading;
6457
6468
  var dataSource = ref2.dataSource;
6458
6469
  var pagination = ref2.pagination;
@@ -6485,7 +6496,7 @@ var render$1 = function() {
6485
6496
  var staticRenderFns$1 = [];
6486
6497
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
6487
6498
  const __cssModules$1 = {};
6488
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "246717bb", null, null);
6499
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "2b41ba2b", null, null);
6489
6500
  function __vue2_injectStyles$1(context) {
6490
6501
  for (let o in __cssModules$1) {
6491
6502
  this[o] = __cssModules$1[o];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "files": [
5
5
  "dist"
6
6
  ],