efront 3.22.8 → 3.22.9

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.
@@ -28,7 +28,7 @@ var $scope = {
28
28
  function main() {
29
29
  var page = view();
30
30
  page.initialStyle = 'margin-top:10px;opacity:0';
31
- page.setAttribute("_dragable", "false");
31
+ page.setAttribute("_draggable", "false");
32
32
  page.innerHTML = playList;
33
33
  $scope.play = function (i) {
34
34
  if (page.play instanceof Function) {
@@ -9,7 +9,7 @@ var dragview = function (dragview) {
9
9
  offsetWidth = menu.offsetWidth;
10
10
  var { target } = event;
11
11
  moving = null;
12
- if (/(input|textarea|select)/i.test(target.tagName) || getTargetIn(a => a.nodrag || a.hasAttribute('nodrag') || a.dragable === false, event.target)) {
12
+ if (/(input|textarea|select)/i.test(target.tagName) || getTargetIn(a => a.contentEditbale || a.draggable, event.target)) {
13
13
  moving = false;
14
14
  } else {
15
15
  var { childNodes } = target;
@@ -1,6 +1,6 @@
1
1
 
2
2
  var prototype = {
3
- dragable: undefined,
3
+ draggable: undefined,
4
4
  resizable: false,
5
5
  closeable: true,
6
6
  showTitle: true,
@@ -98,10 +98,10 @@ function view(element) {
98
98
  if (window !== element) {
99
99
  extend(window, element);
100
100
  once("append")(window, function () {
101
- if (window.dragable !== true && window.dragable !== false) {
102
- window.dragable = /^(fixed|absolute)$/i.test(getComputedStyle(window).position);
101
+ if (window.draggable !== true && window.draggable !== false) {
102
+ window.draggable = /^(fixed|absolute)$/i.test(getComputedStyle(window).position);
103
103
  }
104
- if (window.dragable) window.setAttribute('dragable', 'dragable');
104
+ if (window.draggable) window.setAttribute('draggable', 'draggable');
105
105
  })
106
106
  if (window.resizable) resize.on(window);
107
107
  }
@@ -16,7 +16,7 @@ body>& {
16
16
  border: 1px solid #0006;
17
17
  }
18
18
 
19
- &[dragable] {
19
+ &[draggable] {
20
20
  position: absolute;
21
21
  }
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.22.8",
3
+ "version": "3.22.9",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {