Skip to content

Commit f1d99f9

Browse files
committed
cc-right-click test
1 parent c96d836 commit f1d99f9

File tree

3 files changed

+44
-33
lines changed

3 files changed

+44
-33
lines changed

.idea/workspace.xml

Lines changed: 40 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
<div id="div" style="width: 200px; height: 100px; border: 1px solid lightpink; display: inline-block" cc-tip="tip">askdhfasdlfjalsjdflajsd</div>
3535
<button id="button" style="width: 200px; height: 100px; border: 1px solid lightpink" cc-tip="tip">askdhfasdlfjalsjdflajsd</button>
3636
<div style="width: 200px" tabindex="1" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">点我弹出/隐藏弹出框</div>
37-
37+
<div style="width: 200px; height: 200px; border: 1px solid grey" cc-right-click="rightClick($event)"></div>
3838
</body>
3939
</html>

src/framework.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ define(['src/command-component/cmd-cmt'], function (cc) {
280280
isFocus: true,
281281
position: '',
282282
triggerEvent: 'click'
283+
};
284+
$scope.rightClick = function (event) {
285+
console.log(1234);
283286
}
284287
}]);
285288
return module;

0 commit comments

Comments
 (0)