12 changed files with 290 additions and 151 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,49 +0,0 @@
|
||||
0 info it worked if it ends with ok |
||||
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', |
||||
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', |
||||
1 verbose cli 'run', |
||||
1 verbose cli 'start', |
||||
1 verbose cli '--scripts-prepend-node-path=auto' ] |
||||
2 info using npm@3.10.10 |
||||
3 info using node@v6.11.4 |
||||
4 verbose run-script [ 'prestart', 'start', 'poststart' ] |
||||
5 info lifecycle fineui@1.0.1~prestart: fineui@1.0.1 |
||||
6 silly lifecycle fineui@1.0.1~prestart: no script for prestart, continuing |
||||
7 info lifecycle fineui@1.0.1~start: fineui@1.0.1 |
||||
8 verbose lifecycle fineui@1.0.1~start: unsafe-perm in lifecycle true |
||||
9 verbose lifecycle fineui@1.0.1~start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\PROJECT\fineui\node_modules\.bin;C:\Program Files\Docker\Docker\Resources\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Users\Wang\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\Wang\AppData\Local\Programs\Python\Python36-32\;C:\Users\Wang\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\bin;C:\Program Files\Microsoft VS Code\bin;C:\Users\Wang\AppData\Roaming\npm |
||||
10 verbose lifecycle fineui@1.0.1~start: CWD: D:\PROJECT\fineui |
||||
11 silly lifecycle fineui@1.0.1~start: Args: [ '/d /s /c', 'node server.js' ] |
||||
12 silly lifecycle fineui@1.0.1~start: Returned: code: 1 signal: null |
||||
13 info lifecycle fineui@1.0.1~start: Failed to exec start script |
||||
14 verbose stack Error: fineui@1.0.1 start: `node server.js` |
||||
14 verbose stack Exit status 1 |
||||
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16) |
||||
14 verbose stack at emitTwo (events.js:106:13) |
||||
14 verbose stack at EventEmitter.emit (events.js:191:7) |
||||
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) |
||||
14 verbose stack at emitTwo (events.js:106:13) |
||||
14 verbose stack at ChildProcess.emit (events.js:191:7) |
||||
14 verbose stack at maybeClose (internal/child_process.js:920:16) |
||||
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) |
||||
15 verbose pkgid fineui@1.0.1 |
||||
16 verbose cwd D:\PROJECT\fineui |
||||
17 error Windows_NT 10.0.14393 |
||||
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start" "--scripts-prepend-node-path=auto" |
||||
19 error node v6.11.4 |
||||
20 error npm v3.10.10 |
||||
21 error code ELIFECYCLE |
||||
22 error fineui@1.0.1 start: `node server.js` |
||||
22 error Exit status 1 |
||||
23 error Failed at the fineui@1.0.1 start script 'node server.js'. |
||||
23 error Make sure you have the latest version of node.js and npm installed. |
||||
23 error If you do, this is most likely a problem with the fineui package, |
||||
23 error not with npm itself. |
||||
23 error Tell the author that this fails on your system: |
||||
23 error node server.js |
||||
23 error You can get information on how to open an issue for this project with: |
||||
23 error npm bugs fineui |
||||
23 error Or if that isn't available, you can get their info via: |
||||
23 error npm owner ls fineui |
||||
23 error There is likely additional logging output above. |
||||
24 verbose exit [ 1, true ] |
@ -0,0 +1,45 @@
|
||||
//缓存this.element的操作数据
|
||||
if (jQuery) { |
||||
function wrap(prefix, name) { |
||||
return "_bi-widget" + prefix + name; |
||||
} |
||||
|
||||
(function ($) { |
||||
var css = $.fn.css; |
||||
$.fn.css = function (name, value) { |
||||
if (this._isWidget === true) { |
||||
var key; |
||||
//this.element不允许get样式
|
||||
if (BI.isPlainObject(name)) { |
||||
for (key in name) { |
||||
this.css(key, name[key]); |
||||
} |
||||
return this; |
||||
} |
||||
key = wrap("css", name); |
||||
if (this[key] !== value) { |
||||
css.apply(this, arguments); |
||||
this[key] = value; |
||||
return this; |
||||
} |
||||
return this; |
||||
} |
||||
return css.apply(this, arguments); |
||||
}; |
||||
$.each(["width", "height", "innerWidth", "innerHeight", "outerWidth", "outerHeight"], function (index, name) { |
||||
var fn = $.fn[name]; |
||||
$.fn[name] = function (value) { |
||||
if (this._isWidget === true && arguments.length === 1) { |
||||
var key = wrap("", name); |
||||
if (this[key] !== value) { |
||||
fn.apply(this, arguments); |
||||
this[key] = value; |
||||
return this; |
||||
} |
||||
return this; |
||||
} |
||||
return fn.apply(this, arguments); |
||||
} |
||||
}) |
||||
})(jQuery); |
||||
} |
Loading…
Reference in new issue