Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psd-parse-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
psd-parse-web
Commits
f10828d2
Commit
f10828d2
authored
May 29, 2021
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认弹窗
parent
ab071ca0
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
9 deletions
+15
-9
index.es.js
dist/index.es.js
+3
-1
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+3
-1
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+3
-1
index.umd.js.map
dist/index.umd.js.map
+1
-1
package-lock.json
package-lock.json
+1
-1
package.json
package.json
+1
-1
compilelocal.js
src/compilelocal.js
+1
-1
No files found.
dist/index.es.js
View file @
f10828d2
...
@@ -4,9 +4,11 @@
...
@@ -4,9 +4,11 @@
const
{
getTree
}
=
require
(
'./psd-tree'
);
const
{
getTree
}
=
require
(
'./psd-tree'
);
const
{
execute
}
=
require
(
"./zeroing"
);
const
{
execute
}
=
require
(
"./zeroing"
);
const
{
compilePsdToJson
}
=
require
(
'./compilelocal'
);
module
.
exports
=
{
module
.
exports
=
{
getTree
,
getTree
,
execute
execute
,
compilePsdToJson
};
};
//# sourceMappingURL=index.es.js.map
//# sourceMappingURL=index.es.js.map
dist/index.es.js.map
View file @
f10828d2
{"version":3,"file":"index.es.js","sources":["../src/index.js"],"sourcesContent":["/**\n * Created by rockyl on 2019-08-08.\n */\n\nconst { getTree } = require('./psd-tree');\nconst { execute } = require(\"./zeroing\");\n\nmodule.exports = {\n getTree,\n execute\n}\n\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzC;AACA,MAAM,CAAC,OAAO,GAAG;AACjB,IAAI,OAAO;AACX,IAAI,OAAO;AACX"}
{"version":3,"file":"index.es.js","sources":["../src/index.js"],"sourcesContent":["/**\n * Created by rockyl on 2019-08-08.\n */\n\nconst { getTree } = require('./psd-tree');\nconst { execute } = require(\"./zeroing\");\nconst { compilePsdToJson } = require('./compilelocal');\n\nmodule.exports = {\n getTree,\n execute,\n compilePsdToJson\n}\n\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACvD;AACA,MAAM,CAAC,OAAO,GAAG;AACjB,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,gBAAgB;AACpB"}
\ No newline at end of file
\ No newline at end of file
dist/index.js
View file @
f10828d2
...
@@ -6,9 +6,11 @@
...
@@ -6,9 +6,11 @@
const
{
getTree
}
=
require
(
'./psd-tree'
);
const
{
getTree
}
=
require
(
'./psd-tree'
);
const
{
execute
}
=
require
(
"./zeroing"
);
const
{
execute
}
=
require
(
"./zeroing"
);
const
{
compilePsdToJson
}
=
require
(
'./compilelocal'
);
module
.
exports
=
{
module
.
exports
=
{
getTree
,
getTree
,
execute
execute
,
compilePsdToJson
};
};
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
dist/index.js.map
View file @
f10828d2
{"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["/**\n * Created by rockyl on 2019-08-08.\n */\n\nconst { getTree } = require('./psd-tree');\nconst { execute } = require(\"./zeroing\");\n\nmodule.exports = {\n getTree,\n execute\n}\n\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzC;AACA,MAAM,CAAC,OAAO,GAAG;AACjB,IAAI,OAAO;AACX,IAAI,OAAO;AACX;;"}
{"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["/**\n * Created by rockyl on 2019-08-08.\n */\n\nconst { getTree } = require('./psd-tree');\nconst { execute } = require(\"./zeroing\");\nconst { compilePsdToJson } = require('./compilelocal');\n\nmodule.exports = {\n getTree,\n execute,\n compilePsdToJson\n}\n\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACvD;AACA,MAAM,CAAC,OAAO,GAAG;AACjB,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,gBAAgB;AACpB;;"}
\ No newline at end of file
\ No newline at end of file
dist/index.umd.js
View file @
f10828d2
...
@@ -9,10 +9,12 @@
...
@@ -9,10 +9,12 @@
const
{
getTree
}
=
require
(
'./psd-tree'
);
const
{
getTree
}
=
require
(
'./psd-tree'
);
const
{
execute
}
=
require
(
"./zeroing"
);
const
{
execute
}
=
require
(
"./zeroing"
);
const
{
compilePsdToJson
}
=
require
(
'./compilelocal'
);
module
.
exports
=
{
module
.
exports
=
{
getTree
,
getTree
,
execute
execute
,
compilePsdToJson
};
};
})));
})));
...
...
dist/index.umd.js.map
View file @
f10828d2
{"version":3,"file":"index.umd.js","sources":["../src/index.js"],"sourcesContent":["/**\n * Created by rockyl on 2019-08-08.\n */\n\nconst { getTree } = require('./psd-tree');\nconst { execute } = require(\"./zeroing\");\n\nmodule.exports = {\n getTree,\n execute\n}\n\n"],"names":[],"mappings":";;;;;IAAA;IACA;IACA;AACA;IACA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzC;IACA,MAAM,CAAC,OAAO,GAAG;IACjB,IAAI,OAAO;IACX,IAAI,OAAO;IACX;;;;;;"}
{"version":3,"file":"index.umd.js","sources":["../src/index.js"],"sourcesContent":["/**\n * Created by rockyl on 2019-08-08.\n */\n\nconst { getTree } = require('./psd-tree');\nconst { execute } = require(\"./zeroing\");\nconst { compilePsdToJson } = require('./compilelocal');\n\nmodule.exports = {\n getTree,\n execute,\n compilePsdToJson\n}\n\n"],"names":[],"mappings":";;;;;IAAA;IACA;IACA;AACA;IACA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACvD;IACA,MAAM,CAAC,OAAO,GAAG;IACjB,IAAI,OAAO;IACX,IAAI,OAAO;IACX,IAAI,gBAAgB;IACpB;;;;;;"}
\ No newline at end of file
\ No newline at end of file
package-lock.json
View file @
f10828d2
{
{
"name"
:
"psd-parse-web"
,
"name"
:
"psd-parse-web"
,
"version"
:
"2.0.
1
"
,
"version"
:
"2.0.
4
"
,
"lockfileVersion"
:
1
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"requires"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
...
...
package.json
View file @
f10828d2
{
{
"name"
:
"psd-parse-web"
,
"name"
:
"psd-parse-web"
,
"version"
:
"2.0.
3
"
,
"version"
:
"2.0.
4
"
,
"main"
:
"src/index.js"
,
"main"
:
"src/index.js"
,
"module"
:
"dist/index.es.js"
,
"module"
:
"dist/index.es.js"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/compilelocal.js
View file @
f10828d2
...
@@ -198,7 +198,7 @@ async function compilePsdToJson(psdFile, options) {
...
@@ -198,7 +198,7 @@ async function compilePsdToJson(psdFile, options) {
if
(
viewRoot
.
children
&&
viewRoot
.
children
.
length
)
{
if
(
viewRoot
.
children
&&
viewRoot
.
children
.
length
)
{
viewRoot
.
children
.
map
(
item
=>
{
viewRoot
.
children
.
map
(
item
=>
{
item
.
viewType
=
'Page'
item
.
viewType
=
"Component"
;
//'Page' // 由于弹窗比较多,所以默认是弹窗
})
})
}
}
let
data
=
{
let
data
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment