Commit 379e5d5c authored by asdf's avatar asdf

表单复制功能

parent 29638ee1
{ {
"name": "y", "name": "ng-template-generator",
"version": "0.0.1", "version": "0.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
...@@ -2383,9 +2383,9 @@ ...@@ -2383,9 +2383,9 @@
"dev": true "dev": true
}, },
"binary-mirror-config": { "binary-mirror-config": {
"version": "1.27.0", "version": "1.28.0",
"resolved": "https://registry.npm.taobao.org/binary-mirror-config/download/binary-mirror-config-1.27.0.tgz?cache=0&sync_timestamp=1598347863384&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbinary-mirror-config%2Fdownload%2Fbinary-mirror-config-1.27.0.tgz", "resolved": "https://registry.npm.taobao.org/binary-mirror-config/download/binary-mirror-config-1.28.0.tgz?cache=0&sync_timestamp=1605751778609&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbinary-mirror-config%2Fdownload%2Fbinary-mirror-config-1.28.0.tgz",
"integrity": "sha1-ZGcy++7YOfuE7mfcqiHL8IWmWNU=" "integrity": "sha1-kKkid+vmWBzaCzS+YufPam7YotE="
}, },
"bindings": { "bindings": {
"version": "1.5.0", "version": "1.5.0",
...@@ -3072,7 +3072,7 @@ ...@@ -3072,7 +3072,7 @@
"dependencies": { "dependencies": {
"commander": { "commander": {
"version": "2.10.0", "version": "2.10.0",
"resolved": "https://registry.npm.taobao.org/commander/download/commander-2.10.0.tgz?cache=0&sync_timestamp=1603599627620&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.10.0.tgz", "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.10.0.tgz?cache=0&sync_timestamp=1605992729751&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.10.0.tgz",
"integrity": "sha1-4fXTJF3iRtGlygRwL6GtG9fkBf4=", "integrity": "sha1-4fXTJF3iRtGlygRwL6GtG9fkBf4=",
"requires": { "requires": {
"graceful-readlink": ">= 1.0.0" "graceful-readlink": ">= 1.0.0"
...@@ -3088,12 +3088,12 @@ ...@@ -3088,12 +3088,12 @@
}, },
"lru-cache": { "lru-cache": {
"version": "2.7.3", "version": "2.7.3",
"resolved": "https://registry.npm.taobao.org/lru-cache/download/lru-cache-2.7.3.tgz?cache=0&sync_timestamp=1594427569171&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flru-cache%2Fdownload%2Flru-cache-2.7.3.tgz", "resolved": "https://registry.npm.taobao.org/lru-cache/download/lru-cache-2.7.3.tgz",
"integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=" "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI="
}, },
"open": { "open": {
"version": "0.0.5", "version": "0.0.5",
"resolved": "https://registry.npm.taobao.org/open/download/open-0.0.5.tgz?cache=0&sync_timestamp=1601376379645&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fopen%2Fdownload%2Fopen-0.0.5.tgz", "resolved": "https://registry.npm.taobao.org/open/download/open-0.0.5.tgz?cache=0&sync_timestamp=1601376312546&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fopen%2Fdownload%2Fopen-0.0.5.tgz",
"integrity": "sha1-QsPhjslUZra/DcQvOilFw/DK2Pw=" "integrity": "sha1-QsPhjslUZra/DcQvOilFw/DK2Pw="
} }
} }
...@@ -3128,7 +3128,7 @@ ...@@ -3128,7 +3128,7 @@
"dependencies": { "dependencies": {
"fs-extra": { "fs-extra": {
"version": "0.26.7", "version": "0.26.7",
"resolved": "https://registry.npm.taobao.org/fs-extra/download/fs-extra-0.26.7.tgz", "resolved": "https://registry.npm.taobao.org/fs-extra/download/fs-extra-0.26.7.tgz?cache=0&sync_timestamp=1592843137563&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffs-extra%2Fdownload%2Ffs-extra-0.26.7.tgz",
"integrity": "sha1-muH92UiXeY7at20JGM9C0MMYT6k=", "integrity": "sha1-muH92UiXeY7at20JGM9C0MMYT6k=",
"requires": { "requires": {
"graceful-fs": "^4.1.2", "graceful-fs": "^4.1.2",
...@@ -3140,7 +3140,7 @@ ...@@ -3140,7 +3140,7 @@
}, },
"jsonfile": { "jsonfile": {
"version": "2.4.0", "version": "2.4.0",
"resolved": "https://registry.npm.taobao.org/jsonfile/download/jsonfile-2.4.0.tgz?cache=0&sync_timestamp=1604161933968&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsonfile%2Fdownload%2Fjsonfile-2.4.0.tgz", "resolved": "https://registry.npm.taobao.org/jsonfile/download/jsonfile-2.4.0.tgz?cache=0&sync_timestamp=1604161876665&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsonfile%2Fdownload%2Fjsonfile-2.4.0.tgz",
"integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=",
"requires": { "requires": {
"graceful-fs": "^4.1.6" "graceful-fs": "^4.1.6"
...@@ -7643,7 +7643,7 @@ ...@@ -7643,7 +7643,7 @@
}, },
"moment": { "moment": {
"version": "2.29.1", "version": "2.29.1",
"resolved": "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz?cache=0&sync_timestamp=1601983517363&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmoment%2Fdownload%2Fmoment-2.29.1.tgz", "resolved": "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmoment%2Fdownload%2Fmoment-2.29.1.tgz",
"integrity": "sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M=" "integrity": "sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M="
}, },
"move-concurrently": { "move-concurrently": {
...@@ -7809,7 +7809,7 @@ ...@@ -7809,7 +7809,7 @@
}, },
"node-gyp": { "node-gyp": {
"version": "3.8.0", "version": "3.8.0",
"resolved": "https://registry.npm.taobao.org/node-gyp/download/node-gyp-3.8.0.tgz?cache=0&sync_timestamp=1602898549732&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-gyp%2Fdownload%2Fnode-gyp-3.8.0.tgz", "resolved": "https://registry.npm.taobao.org/node-gyp/download/node-gyp-3.8.0.tgz?cache=0&sync_timestamp=1602898478735&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-gyp%2Fdownload%2Fnode-gyp-3.8.0.tgz",
"integrity": "sha1-VAMEJhwzDoDQ1e3OJTpoyzlkIYw=", "integrity": "sha1-VAMEJhwzDoDQ1e3OJTpoyzlkIYw=",
"requires": { "requires": {
"fstream": "^1.0.0", "fstream": "^1.0.0",
...@@ -7828,12 +7828,12 @@ ...@@ -7828,12 +7828,12 @@
"dependencies": { "dependencies": {
"semver": { "semver": {
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npm.taobao.org/semver/download/semver-5.3.0.tgz?cache=0&sync_timestamp=1593686970666&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsemver%2Fdownload%2Fsemver-5.3.0.tgz", "resolved": "https://registry.npm.taobao.org/semver/download/semver-5.3.0.tgz",
"integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=" "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8="
}, },
"tar": { "tar": {
"version": "2.2.2", "version": "2.2.2",
"resolved": "https://registry.npm.taobao.org/tar/download/tar-2.2.2.tgz?cache=0&sync_timestamp=1597445607176&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftar%2Fdownload%2Ftar-2.2.2.tgz", "resolved": "https://registry.npm.taobao.org/tar/download/tar-2.2.2.tgz?cache=0&sync_timestamp=1597445351863&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftar%2Fdownload%2Ftar-2.2.2.tgz",
"integrity": "sha1-DKiEhWLHKZuLRG/2pNYM27I+3EA=", "integrity": "sha1-DKiEhWLHKZuLRG/2pNYM27I+3EA=",
"requires": { "requires": {
"block-stream": "*", "block-stream": "*",
...@@ -7895,7 +7895,7 @@ ...@@ -7895,7 +7895,7 @@
}, },
"nopt": { "nopt": {
"version": "3.0.6", "version": "3.0.6",
"resolved": "https://registry.npm.taobao.org/nopt/download/nopt-3.0.6.tgz?cache=0&sync_timestamp=1597649875375&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnopt%2Fdownload%2Fnopt-3.0.6.tgz", "resolved": "https://registry.npm.taobao.org/nopt/download/nopt-3.0.6.tgz?cache=0&sync_timestamp=1597649892953&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnopt%2Fdownload%2Fnopt-3.0.6.tgz",
"integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
"requires": { "requires": {
"abbrev": "1" "abbrev": "1"
...@@ -7943,9 +7943,9 @@ ...@@ -7943,9 +7943,9 @@
"dev": true "dev": true
}, },
"npm": { "npm": {
"version": "6.14.8", "version": "6.14.9",
"resolved": "https://registry.npm.taobao.org/npm/download/npm-6.14.8.tgz", "resolved": "https://registry.npm.taobao.org/npm/download/npm-6.14.9.tgz?cache=0&sync_timestamp=1605904151951&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm%2Fdownload%2Fnpm-6.14.9.tgz",
"integrity": "sha1-ZO91Q0Vjm8A1mC7D9gk1PIU5Azw=", "integrity": "sha1-0rQjdWK/2VaJJJ4sKHRwDtlS7YI=",
"requires": { "requires": {
"JSONStream": "^1.3.5", "JSONStream": "^1.3.5",
"abbrev": "~1.1.1", "abbrev": "~1.1.1",
...@@ -8027,7 +8027,7 @@ ...@@ -8027,7 +8027,7 @@
"npm-pick-manifest": "^3.0.2", "npm-pick-manifest": "^3.0.2",
"npm-profile": "^4.0.4", "npm-profile": "^4.0.4",
"npm-registry-fetch": "^4.0.7", "npm-registry-fetch": "^4.0.7",
"npm-user-validate": "~1.0.0", "npm-user-validate": "^1.0.1",
"npmlog": "~4.1.2", "npmlog": "~4.1.2",
"once": "~1.4.0", "once": "~1.4.0",
"opener": "^1.5.1", "opener": "^1.5.1",
...@@ -8098,16 +8098,6 @@ ...@@ -8098,16 +8098,6 @@
"humanize-ms": "^1.2.1" "humanize-ms": "^1.2.1"
} }
}, },
"ajv": {
"version": "5.5.2",
"bundled": true,
"requires": {
"co": "^4.6.0",
"fast-deep-equal": "^1.0.0",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.3.0"
}
},
"ansi-align": { "ansi-align": {
"version": "2.0.0", "version": "2.0.0",
"bundled": true, "bundled": true,
...@@ -8393,10 +8383,6 @@ ...@@ -8393,10 +8383,6 @@
"mkdirp": "~0.5.0" "mkdirp": "~0.5.0"
} }
}, },
"co": {
"version": "4.6.0",
"bundled": true
},
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true "bundled": true
...@@ -8785,10 +8771,6 @@ ...@@ -8785,10 +8771,6 @@
"version": "1.3.0", "version": "1.3.0",
"bundled": true "bundled": true
}, },
"fast-deep-equal": {
"version": "1.1.0",
"bundled": true
},
"fast-json-stable-stringify": { "fast-json-stable-stringify": {
"version": "2.0.0", "version": "2.0.0",
"bundled": true "bundled": true
...@@ -9073,11 +9055,31 @@ ...@@ -9073,11 +9055,31 @@
"bundled": true "bundled": true
}, },
"har-validator": { "har-validator": {
"version": "5.1.0", "version": "5.1.5",
"bundled": true, "bundled": true,
"requires": { "requires": {
"ajv": "^5.3.0", "ajv": "^6.12.3",
"har-schema": "^2.0.0" "har-schema": "^2.0.0"
},
"dependencies": {
"ajv": {
"version": "6.12.6",
"bundled": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"fast-deep-equal": {
"version": "3.1.3",
"bundled": true
},
"json-schema-traverse": {
"version": "0.4.1",
"bundled": true
}
} }
}, },
"has": { "has": {
...@@ -9320,10 +9322,6 @@ ...@@ -9320,10 +9322,6 @@
"version": "0.2.3", "version": "0.2.3",
"bundled": true "bundled": true
}, },
"json-schema-traverse": {
"version": "0.3.1",
"bundled": true
},
"json-stringify-safe": { "json-stringify-safe": {
"version": "5.0.1", "version": "5.0.1",
"bundled": true "bundled": true
...@@ -9894,7 +9892,7 @@ ...@@ -9894,7 +9892,7 @@
} }
}, },
"npm-user-validate": { "npm-user-validate": {
"version": "1.0.0", "version": "1.0.1",
"bundled": true "bundled": true
}, },
"npmlog": { "npmlog": {
...@@ -10769,6 +10767,19 @@ ...@@ -10769,6 +10767,19 @@
"xdg-basedir": "^3.0.0" "xdg-basedir": "^3.0.0"
} }
}, },
"uri-js": {
"version": "4.4.0",
"bundled": true,
"requires": {
"punycode": "^2.1.0"
},
"dependencies": {
"punycode": {
"version": "2.1.1",
"bundled": true
}
}
},
"url-parse-lax": { "url-parse-lax": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
...@@ -11123,7 +11134,7 @@ ...@@ -11123,7 +11134,7 @@
}, },
"npminstall": { "npminstall": {
"version": "3.28.0", "version": "3.28.0",
"resolved": "https://registry.npm.taobao.org/npminstall/download/npminstall-3.28.0.tgz?cache=0&sync_timestamp=1604042359782&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpminstall%2Fdownload%2Fnpminstall-3.28.0.tgz", "resolved": "https://registry.npm.taobao.org/npminstall/download/npminstall-3.28.0.tgz?cache=0&sync_timestamp=1604042467857&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpminstall%2Fdownload%2Fnpminstall-3.28.0.tgz",
"integrity": "sha1-MUAr0e45iBjyq+RvzJwTXE13e0U=", "integrity": "sha1-MUAr0e45iBjyq+RvzJwTXE13e0U=",
"requires": { "requires": {
"agentkeepalive": "^3.1.0", "agentkeepalive": "^3.1.0",
...@@ -11172,7 +11183,7 @@ ...@@ -11172,7 +11183,7 @@
}, },
"chalk": { "chalk": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz", "resolved": "https://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz?cache=0&sync_timestamp=1592843133653&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchalk%2Fdownload%2Fchalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"requires": { "requires": {
"ansi-styles": "^2.2.1", "ansi-styles": "^2.2.1",
...@@ -11197,7 +11208,7 @@ ...@@ -11197,7 +11208,7 @@
}, },
"hosted-git-info": { "hosted-git-info": {
"version": "2.8.8", "version": "2.8.8",
"resolved": "https://registry.npm.taobao.org/hosted-git-info/download/hosted-git-info-2.8.8.tgz?cache=0&sync_timestamp=1602804196061&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhosted-git-info%2Fdownload%2Fhosted-git-info-2.8.8.tgz", "resolved": "https://registry.npm.taobao.org/hosted-git-info/download/hosted-git-info-2.8.8.tgz?cache=0&sync_timestamp=1602803832496&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhosted-git-info%2Fdownload%2Fhosted-git-info-2.8.8.tgz",
"integrity": "sha1-dTm9S8Hg4KiVgVouAmJCCxKFhIg=" "integrity": "sha1-dTm9S8Hg4KiVgVouAmJCCxKFhIg="
}, },
"log-symbols": { "log-symbols": {
...@@ -11210,12 +11221,12 @@ ...@@ -11210,12 +11221,12 @@
}, },
"mimic-fn": { "mimic-fn": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npm.taobao.org/mimic-fn/download/mimic-fn-1.2.0.tgz?cache=0&sync_timestamp=1596095644798&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmimic-fn%2Fdownload%2Fmimic-fn-1.2.0.tgz", "resolved": "https://registry.npm.taobao.org/mimic-fn/download/mimic-fn-1.2.0.tgz",
"integrity": "sha1-ggyGo5M0ZA6ZUWkovQP8qIBX0CI=" "integrity": "sha1-ggyGo5M0ZA6ZUWkovQP8qIBX0CI="
}, },
"npm-package-arg": { "npm-package-arg": {
"version": "4.2.1", "version": "4.2.1",
"resolved": "https://registry.npm.taobao.org/npm-package-arg/download/npm-package-arg-4.2.1.tgz?cache=0&sync_timestamp=1602550531309&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm-package-arg%2Fdownload%2Fnpm-package-arg-4.2.1.tgz", "resolved": "https://registry.npm.taobao.org/npm-package-arg/download/npm-package-arg-4.2.1.tgz?cache=0&sync_timestamp=1602550133425&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm-package-arg%2Fdownload%2Fnpm-package-arg-4.2.1.tgz",
"integrity": "sha1-WTMD/eqF98Qid18X+et2cPaA4+w=", "integrity": "sha1-WTMD/eqF98Qid18X+et2cPaA4+w=",
"requires": { "requires": {
"hosted-git-info": "^2.1.5", "hosted-git-info": "^2.1.5",
...@@ -11224,7 +11235,7 @@ ...@@ -11224,7 +11235,7 @@
}, },
"onetime": { "onetime": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npm.taobao.org/onetime/download/onetime-2.0.1.tgz", "resolved": "https://registry.npm.taobao.org/onetime/download/onetime-2.0.1.tgz?cache=0&sync_timestamp=1597003951681&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fonetime%2Fdownload%2Fonetime-2.0.1.tgz",
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
"requires": { "requires": {
"mimic-fn": "^1.0.0" "mimic-fn": "^1.0.0"
...@@ -11232,7 +11243,7 @@ ...@@ -11232,7 +11243,7 @@
}, },
"ora": { "ora": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npm.taobao.org/ora/download/ora-1.3.0.tgz?cache=0&sync_timestamp=1599424823088&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fora%2Fdownload%2Fora-1.3.0.tgz", "resolved": "https://registry.npm.taobao.org/ora/download/ora-1.3.0.tgz",
"integrity": "sha1-gAeN0rkqk0r2ajrXKluRBpTt5Ro=", "integrity": "sha1-gAeN0rkqk0r2ajrXKluRBpTt5Ro=",
"requires": { "requires": {
"chalk": "^1.1.1", "chalk": "^1.1.1",
...@@ -11252,7 +11263,7 @@ ...@@ -11252,7 +11263,7 @@
}, },
"supports-color": { "supports-color": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-2.0.0.tgz?cache=0&sync_timestamp=1598611732186&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-2.0.0.tgz", "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-2.0.0.tgz",
"integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc="
} }
} }
......
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
"cnpm": "^6.1.1", "cnpm": "^6.1.1",
"compressing": "^1.5.0", "compressing": "^1.5.0",
"ng-zorro-antd": "^8.5.2", "ng-zorro-antd": "^8.5.2",
"node-sass": "^4.0.0",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"spark-md5": "^3.0.0", "spark-md5": "^3.0.0",
"tslib": "^1.10.0", "tslib": "^1.10.0",
"node-sass": "^4.0.0",
"zone.js": "~0.10.2" "zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -91,15 +91,10 @@ ...@@ -91,15 +91,10 @@
<div style="text-align: right; padding-right: 10px;"> <div style="text-align: right; padding-right: 10px;">
<span *ngIf="i==0" style="margin-bottom: 10px;margin-right: 20px;">是否是主页? : </span> <span *ngIf="i==0" style="margin-bottom: 10px;margin-right: 20px;">是否是主页? : </span>
<nz-switch *ngIf="i==0" style="margin-bottom: 10px;margin-right: 200px;" [(ngModel)]="contentObj.haveCover" (ngModelChange)="onCoverSwitchChange()"></nz-switch> <nz-switch *ngIf="i==0" style="margin-bottom: 10px;margin-right: 200px;" [(ngModel)]="contentObj.haveCover" (ngModelChange)="onCoverSwitchChange()"></nz-switch>
<button style="margin-bottom: 10px;margin-right: 20px;" nz-button nzType="default" (click)="onCopyData(i)"> <button style="margin-bottom: 10px;margin-right: 20px;" nz-button nzType="primary" (click)="onCopyData(i)">
<span>复制数据</span> <span>复制本页</span>
</button>
<span style="margin-bottom: 10px;margin-right: 20px;">粘贴内容: </span>
<input style="width: 300px; margin-bottom: 10px;margin-right: 20px;" type="text" nz-input
[(ngModel)]="pasteString" (blur)="onPasteDataDone(i)">
<button style="margin-bottom: 10px;margin-right: 20px;" nz-button nzType="default" (click)="onPasteData(i)">
<span>粘贴数据</span>
</button> </button>
<button style="margin-right: 20px;" nz-button nzType="danger" <button style="margin-right: 20px;" nz-button nzType="danger"
(click)="deleteItem(contentObj.dataArray, i)"> (click)="deleteItem(contentObj.dataArray, i)">
<span>删除本页</span> <span>删除本页</span>
......
...@@ -31,7 +31,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -31,7 +31,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
} }
contentObj = { contentObj = {
"version": "1.1", "version": "1.1",
haveCover:false, haveCover: false,
bgm_url: "", bgm_url: "",
dataArray: [] dataArray: []
} }
...@@ -161,7 +161,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -161,7 +161,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.saveItem(); this.saveItem();
setTimeout(() => { setTimeout(() => {
window.scrollTo(0, document.body.scrollHeight); window.scrollTo(0, document.body.scrollHeight);
},1) }, 1)
} }
onImageUploadSuccessByItem(e, item, key) { onImageUploadSuccessByItem(e, item, key) {
...@@ -232,18 +232,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -232,18 +232,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.save(); this.save();
} }
onCopyData(index) { onCopyData(index) {
this.copyIndex = index; this.contentObj.dataArray.push(this.contentObj.dataArray[index]);
}
onPasteData(index) {
let item = this.contentObj.dataArray[this.copyIndex];
this.pasteString = JSON.stringify(item);
this.contentObj.dataArray[index] = item;
this.save(); this.save();
} }
onPasteDataDone(index) {
} onCoverSwitchChange() {
onCoverSwitchChange(){
console.log(this.contentObj.haveCover) console.log(this.contentObj.haveCover)
this.save(); this.save();
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
}, },
"ajv": { "ajv": {
"version": "6.12.6", "version": "6.12.6",
"resolved": "https://registry.npm.taobao.org/ajv/download/ajv-6.12.6.tgz?cache=0&sync_timestamp=1605562626436&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fajv%2Fdownload%2Fajv-6.12.6.tgz", "resolved": "https://registry.npm.taobao.org/ajv/download/ajv-6.12.6.tgz?cache=0&sync_timestamp=1606043237802&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fajv%2Fdownload%2Fajv-6.12.6.tgz",
"integrity": "sha1-uvWmLoArB9l3A0WG+MO69a3ybfQ=", "integrity": "sha1-uvWmLoArB9l3A0WG+MO69a3ybfQ=",
"requires": { "requires": {
"fast-deep-equal": "^3.1.1", "fast-deep-equal": "^3.1.1",
...@@ -135,9 +135,9 @@ ...@@ -135,9 +135,9 @@
} }
}, },
"binary-mirror-config": { "binary-mirror-config": {
"version": "1.27.0", "version": "1.28.0",
"resolved": "https://registry.npm.taobao.org/binary-mirror-config/download/binary-mirror-config-1.27.0.tgz?cache=0&sync_timestamp=1598346125743&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbinary-mirror-config%2Fdownload%2Fbinary-mirror-config-1.27.0.tgz", "resolved": "https://registry.npm.taobao.org/binary-mirror-config/download/binary-mirror-config-1.28.0.tgz?cache=0&sync_timestamp=1605751778609&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbinary-mirror-config%2Fdownload%2Fbinary-mirror-config-1.28.0.tgz",
"integrity": "sha1-ZGcy++7YOfuE7mfcqiHL8IWmWNU=" "integrity": "sha1-kKkid+vmWBzaCzS+YufPam7YotE="
}, },
"block-stream": { "block-stream": {
"version": "0.0.9", "version": "0.0.9",
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
}, },
"commander": { "commander": {
"version": "2.10.0", "version": "2.10.0",
"resolved": "https://registry.npm.taobao.org/commander/download/commander-2.10.0.tgz?cache=0&sync_timestamp=1603599644384&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.10.0.tgz", "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.10.0.tgz?cache=0&sync_timestamp=1605992729751&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.10.0.tgz",
"integrity": "sha1-4fXTJF3iRtGlygRwL6GtG9fkBf4=", "integrity": "sha1-4fXTJF3iRtGlygRwL6GtG9fkBf4=",
"requires": { "requires": {
"graceful-readlink": ">= 1.0.0" "graceful-readlink": ">= 1.0.0"
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
}, },
"debug": { "debug": {
"version": "2.6.9", "version": "2.6.9",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1603284220908&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz", "resolved": "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1605791507452&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz",
"integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
"requires": { "requires": {
"ms": "2.0.0" "ms": "2.0.0"
...@@ -744,7 +744,7 @@ ...@@ -744,7 +744,7 @@
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz?cache=0&sync_timestamp=1603284220908&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-3.1.0.tgz", "resolved": "https://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz?cache=0&sync_timestamp=1605791507452&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-3.1.0.tgz",
"integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=",
"requires": { "requires": {
"ms": "2.0.0" "ms": "2.0.0"
...@@ -772,9 +772,9 @@ ...@@ -772,9 +772,9 @@
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "3.2.6", "version": "3.2.7",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-3.2.6.tgz?cache=0&sync_timestamp=1603284220908&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-3.2.6.tgz", "resolved": "https://registry.npm.taobao.org/debug/download/debug-3.2.7.tgz?cache=0&sync_timestamp=1605791507452&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-3.2.7.tgz",
"integrity": "sha1-6D0X3hbYp++3cX7b5fsQE17uYps=", "integrity": "sha1-clgLfpFF+zm2Z2+cXl+xALk0F5o=",
"requires": { "requires": {
"ms": "^2.1.1" "ms": "^2.1.1"
} }
...@@ -1123,9 +1123,9 @@ ...@@ -1123,9 +1123,9 @@
} }
}, },
"npm": { "npm": {
"version": "6.14.8", "version": "6.14.9",
"resolved": "https://registry.npm.taobao.org/npm/download/npm-6.14.8.tgz", "resolved": "https://registry.npm.taobao.org/npm/download/npm-6.14.9.tgz?cache=0&sync_timestamp=1605904151951&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm%2Fdownload%2Fnpm-6.14.9.tgz",
"integrity": "sha1-ZO91Q0Vjm8A1mC7D9gk1PIU5Azw=", "integrity": "sha1-0rQjdWK/2VaJJJ4sKHRwDtlS7YI=",
"requires": { "requires": {
"JSONStream": "^1.3.5", "JSONStream": "^1.3.5",
"abbrev": "~1.1.1", "abbrev": "~1.1.1",
...@@ -1207,7 +1207,7 @@ ...@@ -1207,7 +1207,7 @@
"npm-pick-manifest": "^3.0.2", "npm-pick-manifest": "^3.0.2",
"npm-profile": "^4.0.4", "npm-profile": "^4.0.4",
"npm-registry-fetch": "^4.0.7", "npm-registry-fetch": "^4.0.7",
"npm-user-validate": "~1.0.0", "npm-user-validate": "^1.0.1",
"npmlog": "~4.1.2", "npmlog": "~4.1.2",
"once": "~1.4.0", "once": "~1.4.0",
"opener": "^1.5.1", "opener": "^1.5.1",
...@@ -1278,16 +1278,6 @@ ...@@ -1278,16 +1278,6 @@
"humanize-ms": "^1.2.1" "humanize-ms": "^1.2.1"
} }
}, },
"ajv": {
"version": "5.5.2",
"bundled": true,
"requires": {
"co": "^4.6.0",
"fast-deep-equal": "^1.0.0",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.3.0"
}
},
"ansi-align": { "ansi-align": {
"version": "2.0.0", "version": "2.0.0",
"bundled": true, "bundled": true,
...@@ -1573,10 +1563,6 @@ ...@@ -1573,10 +1563,6 @@
"mkdirp": "~0.5.0" "mkdirp": "~0.5.0"
} }
}, },
"co": {
"version": "4.6.0",
"bundled": true
},
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true "bundled": true
...@@ -1965,10 +1951,6 @@ ...@@ -1965,10 +1951,6 @@
"version": "1.3.0", "version": "1.3.0",
"bundled": true "bundled": true
}, },
"fast-deep-equal": {
"version": "1.1.0",
"bundled": true
},
"fast-json-stable-stringify": { "fast-json-stable-stringify": {
"version": "2.0.0", "version": "2.0.0",
"bundled": true "bundled": true
...@@ -2253,11 +2235,31 @@ ...@@ -2253,11 +2235,31 @@
"bundled": true "bundled": true
}, },
"har-validator": { "har-validator": {
"version": "5.1.0", "version": "5.1.5",
"bundled": true, "bundled": true,
"requires": { "requires": {
"ajv": "^5.3.0", "ajv": "^6.12.3",
"har-schema": "^2.0.0" "har-schema": "^2.0.0"
},
"dependencies": {
"ajv": {
"version": "6.12.6",
"bundled": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"fast-deep-equal": {
"version": "3.1.3",
"bundled": true
},
"json-schema-traverse": {
"version": "0.4.1",
"bundled": true
}
} }
}, },
"has": { "has": {
...@@ -2500,10 +2502,6 @@ ...@@ -2500,10 +2502,6 @@
"version": "0.2.3", "version": "0.2.3",
"bundled": true "bundled": true
}, },
"json-schema-traverse": {
"version": "0.3.1",
"bundled": true
},
"json-stringify-safe": { "json-stringify-safe": {
"version": "5.0.1", "version": "5.0.1",
"bundled": true "bundled": true
...@@ -3074,7 +3072,7 @@ ...@@ -3074,7 +3072,7 @@
} }
}, },
"npm-user-validate": { "npm-user-validate": {
"version": "1.0.0", "version": "1.0.1",
"bundled": true "bundled": true
}, },
"npmlog": { "npmlog": {
...@@ -3949,6 +3947,19 @@ ...@@ -3949,6 +3947,19 @@
"xdg-basedir": "^3.0.0" "xdg-basedir": "^3.0.0"
} }
}, },
"uri-js": {
"version": "4.4.0",
"bundled": true,
"requires": {
"punycode": "^2.1.0"
},
"dependencies": {
"punycode": {
"version": "2.1.1",
"bundled": true
}
}
},
"url-parse-lax": { "url-parse-lax": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
...@@ -4396,9 +4407,9 @@ ...@@ -4396,9 +4407,9 @@
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "4.2.0", "version": "4.3.1",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-4.2.0.tgz?cache=0&sync_timestamp=1603284220908&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.2.0.tgz", "resolved": "https://registry.npm.taobao.org/debug/download/debug-4.3.1.tgz?cache=0&sync_timestamp=1605791507452&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.3.1.tgz",
"integrity": "sha1-fxUPk5IOlMWPVXTC/QGjEQ7/5/E=", "integrity": "sha1-8NIpxQXgxtjEmsVT0bE9wYP2su4=",
"requires": { "requires": {
"ms": "2.1.2" "ms": "2.1.2"
} }
...@@ -4471,9 +4482,9 @@ ...@@ -4471,9 +4482,9 @@
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "4.2.0", "version": "4.3.1",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-4.2.0.tgz?cache=0&sync_timestamp=1603284220908&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.2.0.tgz", "resolved": "https://registry.npm.taobao.org/debug/download/debug-4.3.1.tgz?cache=0&sync_timestamp=1605791507452&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.3.1.tgz",
"integrity": "sha1-fxUPk5IOlMWPVXTC/QGjEQ7/5/E=", "integrity": "sha1-8NIpxQXgxtjEmsVT0bE9wYP2su4=",
"requires": { "requires": {
"ms": "2.1.2" "ms": "2.1.2"
} }
...@@ -4927,7 +4938,7 @@ ...@@ -4927,7 +4938,7 @@
}, },
"uuid": { "uuid": {
"version": "3.4.0", "version": "3.4.0",
"resolved": "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz", "resolved": "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz?cache=0&sync_timestamp=1605962474035&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuuid%2Fdownload%2Fuuid-3.4.0.tgz",
"integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=" "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4="
}, },
"validate-npm-package-license": { "validate-npm-package-license": {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"cnpm": "^6.1.1", "cnpm": "^6.1.1",
"node-sass": "^4.0.0", "compressing": "^1.5.0",
"compressing": "^1.5.0" "node-sass": "^4.0.0"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment