You've already forked AstralRinth
forked from didirus/AstralRinth
Add TailwindCSS (#1252)
* Setup TailwindCSS * Fully setup configuration * Refactor some tailwind variables
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createTextVNode, isVNode, toDisplayString, type VNode } from 'vue'
|
||||
import { createTextVNode, isVNode, toDisplayString, type VNode } from "vue";
|
||||
|
||||
/**
|
||||
* Checks whether a specific child is a VNode. If not, converts it to a display
|
||||
@@ -9,7 +9,7 @@ import { createTextVNode, isVNode, toDisplayString, type VNode } from 'vue'
|
||||
* to a display string.
|
||||
*/
|
||||
function normalizeChild(child: any): VNode {
|
||||
return isVNode(child) ? child : createTextVNode(toDisplayString(child))
|
||||
return isVNode(child) ? child : createTextVNode(toDisplayString(child));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,5 +21,5 @@ function normalizeChild(child: any): VNode {
|
||||
* @returns Children with all of non-VNodes converted to display strings.
|
||||
*/
|
||||
export function normalizeChildren(children: any | any[]): VNode[] {
|
||||
return Array.isArray(children) ? children.map(normalizeChild) : [normalizeChild(children)]
|
||||
return Array.isArray(children) ? children.map(normalizeChild) : [normalizeChild(children)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user