utiller 1.0.172 → 1.0.174
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.
package/lib/utiller/index.js
CHANGED
|
@@ -1899,8 +1899,9 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
1899
1899
|
}, {
|
|
1900
1900
|
key: "getVisibleOrNone",
|
|
1901
1901
|
value: function getVisibleOrNone(judgement) {
|
|
1902
|
+
var flex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1902
1903
|
return {
|
|
1903
|
-
display: judgement ? "inherit" : "none"
|
|
1904
|
+
display: judgement ? flex ? "flex" : "inherit" : "none"
|
|
1904
1905
|
};
|
|
1905
1906
|
}
|
|
1906
1907
|
}, {
|
|
@@ -1568,6 +1568,11 @@ var NodeUtiller = /*#__PURE__*/function (_Utiller) {
|
|
|
1568
1568
|
value: function isEmptyFile(path) {
|
|
1569
1569
|
return !this.isPathExist(path) || _lodash["default"].isEqual("", this.getFileContextInRaw(path).trim());
|
|
1570
1570
|
}
|
|
1571
|
+
}, {
|
|
1572
|
+
key: "isEmptyFolder",
|
|
1573
|
+
value: function isEmptyFolder(path) {
|
|
1574
|
+
return _fs["default"].readdirSync(path).length === 0;
|
|
1575
|
+
}
|
|
1571
1576
|
/** 把檔案弄得好看一點 */
|
|
1572
1577
|
|
|
1573
1578
|
}, {
|
package/package.json
CHANGED