quasar-ui-danx 0.4.18 → 0.4.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/danx.es.js +2 -4
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +2 -2
- package/dist/danx.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/formats.ts +2 -4
package/package.json
CHANGED
package/src/helpers/formats.ts
CHANGED
@@ -228,8 +228,8 @@ export function fShortSize(value: string | number) {
|
|
228
228
|
return Math.round(n / div) + " " + power.unit;
|
229
229
|
}
|
230
230
|
|
231
|
-
export function fBoolean(value
|
232
|
-
return value ? "Yes" : "No";
|
231
|
+
export function fBoolean(value?: boolean) {
|
232
|
+
return (value === undefined || value === null) ? "-" : (value ? "Yes" : "No");
|
233
233
|
}
|
234
234
|
|
235
235
|
/**
|
@@ -378,8 +378,6 @@ export function fMarkdownCode(type: string, string: string | object): string {
|
|
378
378
|
string = stringifyYAML(typeof string === "string" ? JSON.parse(string) : string);
|
379
379
|
break;
|
380
380
|
case "ts":
|
381
|
-
string = "";
|
382
|
-
break;
|
383
381
|
default:
|
384
382
|
string = fJSON(string);
|
385
383
|
}
|