refactor: use tailwindcss replace unocss (#342)

* refactor: use `tailwindcss` replace `unocss`

* fix: update
This commit is contained in:
RealityBoy
2022-09-07 15:07:01 +08:00
committed by GitHub
parent 4dfde1bea6
commit 3683bd46a4
57 changed files with 550 additions and 808 deletions

View File

@@ -102,7 +102,7 @@ onMounted(() => {
v-for="(item, key) in titleLists"
:key="key"
:title="item.text"
class="dark:color-bg_color"
class="dark:text-bg_color"
@mouseenter.prevent="onEnter(key)"
@mouseleave.prevent="focusIndex = -1"
>

View File

@@ -35,7 +35,7 @@ const nodeDragNode = item => {
<!-- 左侧bpmn元素选择器 -->
<div class="node-panel">
<div
class="node-item dark:color-bg_color"
class="node-item dark:text-bg_color"
v-for="item in props.nodeList"
:key="item.text"
@mousedown="nodeDragNode(item)"

View File

@@ -118,7 +118,7 @@ watch(
</script>
<template>
<div class="selector w-350px">
<div class="selector w-[350px]">
<el-input v-model="inputValue" disabled>
<template #append>
<el-popover
@@ -132,7 +132,7 @@ watch(
>
<template #reference>
<div
class="w-40px h-32px cursor-pointer flex justify-center items-center"
class="w-[40px] h-[32px] cursor-pointer flex justify-center items-center"
@click="visible = !visible"
>
<IconifyIconOnline :icon="currentActiveType + icon" />
@@ -156,12 +156,12 @@ watch(
>
<el-divider class="tab-divider" border-style="dashed" />
<el-scrollbar height="220px">
<ul class="flex-wrap px-2 ml-2">
<ul class="flex flex-wrap px-2 ml-2">
<li
v-for="(item, key) in pageList"
:key="key"
:title="item"
class="icon-item p-2 w-1/10 cursor-pointer mr-2 mt-1 flex justify-center items-center border border-solid"
class="icon-item p-2 w-[1/10] cursor-pointer mr-2 mt-1 flex justify-center items-center border border-solid"
:style="iconItemStyle(item)"
@click="onChangeIcon(item)"
>

View File

@@ -117,12 +117,12 @@ export default defineComponent({
<>
<div
{...attrs}
class="w-99/100 mt-6 p-2 bg-white dark:bg-dark"
class="w-[99/100] mt-6 p-2 bg-white dark:bg-dark"
v-loading={props.loading}
element-loading-svg={loadingSvg}
element-loading-svg-view-box="-10, -10, 50, 50"
>
<div class="flex justify-between w-full h-60px p-4">
<div class="flex justify-between w-full h-[60px] p-4">
<p class="font-bold truncate">{props.title}</p>
<div class="flex items-center justify-around">
<div class="flex mr-4">{slots?.buttons()}</div>