Skip to content

Commit 5a5c4e8

Browse files
committed
fix: added @cocreate/action
1 parent b70e7cb commit 5a5c4e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"webpack-log": "^3.0.1"
6262
},
6363
"dependencies": {
64+
"@cocreate/action": "^1.3.13",
6465
"@cocreate/docs": "^1.2.50",
6566
"@cocreate/observer": "^1.3.42",
6667
"@cocreate/utils": "^1.3.7"

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* https://github.com/CoCreate-app/CoCreate-conditional-logic/blob/master/LICENSE
66
*/
77
/*globals CustomEvent, CoCreate*/
8-
import observer from '@cocreate/observer'
8+
import observer from '@cocreate/observer';
9+
import action from '@cocreate/action';
910

1011
function init() {
1112
let elements = document.querySelectorAll(`[show],[hide]`);
@@ -123,7 +124,7 @@ observer.init({
123124
}
124125
});
125126

126-
CoCreate.action.init({
127+
action.init({
127128
action: "showHide",
128129
endEvent: "showHide",
129130
callback: (btn, data) => {

0 commit comments

Comments
 (0)