@opentinyvue/vue-flowchart 2.22.0 → 2.23.0

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/lib/index.js +14 -8
  2. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, props, directive, setup, emitter, h, isVue3, $prefix, $props, $setup } from '@opentinyvue/vue-common';
2
2
  import { renderless, api } from '@opentinyvue/vue-renderless/flowchart/vue';
3
- import { Clickoutside } from '@opentinyvue/vue-directive';
3
+ import { Clickoutside, AutoTip } from '@opentinyvue/vue-directive';
4
4
  import { IconYes, IconClose, iconNotStartedMini, iconNotStarted, iconOnGoingMini, iconOnGoing, iconExceptionMiniO, iconExceptionO, iconDoneMini, iconDone } from '@opentinyvue/vue-icon';
5
5
  import Popover from '@opentinyvue/vue-popover';
6
6
  import { renderless as renderless$1, api as api$1 } from '@opentinyvue/vue-renderless/flowchart/node';
@@ -587,7 +587,10 @@ var icons = {
587
587
  }
588
588
  };
589
589
  var __vue2_script = defineComponent({
590
- props: [].concat(props, ["node", "config", "titleClass"]),
590
+ props: [].concat(props, ["node", "config", "titleClass", "cursorPointerFn"]),
591
+ directives: {
592
+ AutoTip
593
+ },
591
594
  setup: function setup2(props2, context) {
592
595
  return setup({
593
596
  props: props2,
@@ -619,7 +622,9 @@ var render = function render2() {
619
622
  }
620
623
  }, [_c("div", {
621
624
  ref: "icon",
622
- class: ["w-4 h-4 absolute z-0 rounded-full flex items-center justify-center", "translate-x-1 translate-y-1 text-base cursor-pointer", {
625
+ class: ["w-4 h-4 absolute z-0 rounded-full flex items-center justify-center", "translate-x-1 translate-y-1 text-base", {
626
+ "cursor-pointer": _vm.cursorPointerFn ? _vm.cursorPointerFn(_vm.state) : true
627
+ }, {
623
628
  "sm:w-2 sm:h-2": _vm.state.icon.size === "mini",
624
629
  "sm:w-6 sm:h-6": _vm.state.icon.size === "medium"
625
630
  }]
@@ -646,6 +651,10 @@ var render = function render2() {
646
651
  }
647
652
  }, [_vm._l(["title", "subtitle", "auxi"], function(key) {
648
653
  return [_vm.state[key].show ? _c("div", {
654
+ directives: [{
655
+ name: "auto-tip",
656
+ rawName: "v-auto-tip"
657
+ }],
649
658
  key,
650
659
  class: ["truncate", _vm.state.layUpdown ? "text-center" : "text-left", key === "title" && _vm.state.sizeMedium ? "text-sm" : "text-xs", _vm.state.isSmall ? {
651
660
  "leading-5": key === "title",
@@ -660,10 +669,7 @@ var render = function render2() {
660
669
  "text-color-error": key === "title" && _vm.state.statFail,
661
670
  "text-color-icon-secondary": key === "title" && _vm.state.statNotStarted,
662
671
  "text-color-icon-placeholder": key !== "title" && !_vm.state.statOngoing
663
- }],
664
- attrs: {
665
- "title": _vm.state[key].text
666
- }
672
+ }]
667
673
  }, [_vm._v(" " + _vm._s(_vm.state[key].text) + " ")]) : _vm._e()];
668
674
  })], 2)]);
669
675
  };
@@ -716,7 +722,7 @@ var resizeMixin = function resizeMixin2(_ref) {
716
722
  }
717
723
  };
718
724
  };
719
- var version = "2.22.0";
725
+ var version = "2.23.0";
720
726
  Flowchart.install = function(Vue) {
721
727
  Vue.component(Flowchart.name, Flowchart);
722
728
  };
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-flowchart",
3
3
  "type": "module",
4
- "version": "2.22.0",
4
+ "version": "2.23.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/utils": "~2.22.0",
12
- "@opentinyvue/vue-common": "~2.22.0",
13
- "@opentinyvue/vue-directive": "~2.22.0",
14
- "@opentinyvue/vue-icon": "~2.22.0",
15
- "@opentinyvue/vue-popover": "~2.22.0",
16
- "@opentinyvue/vue-renderless": "~3.22.0",
17
- "@opentinyvue/vue-theme": "~3.22.0"
11
+ "@opentinyvue/utils": "~3.23.0",
12
+ "@opentinyvue/vue-common": "~2.23.0",
13
+ "@opentinyvue/vue-directive": "~2.23.0",
14
+ "@opentinyvue/vue-icon": "~2.23.0",
15
+ "@opentinyvue/vue-popover": "~2.23.0",
16
+ "@opentinyvue/vue-renderless": "~3.23.0",
17
+ "@opentinyvue/vue-theme": "~3.23.0"
18
18
  },
19
19
  "types": "index.d.ts",
20
20
  "scripts": {