♻️(document): 统一 component 与 layer 的 md 位置
This commit is contained in:
parent
33ad94f2b7
commit
3fd35cf2ad
@ -85,7 +85,7 @@ const changeVisible = () => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const msg = function() {
|
const msg = function() {
|
||||||
layer.msg("普通消息", { time: 1000 })
|
layer.msg("普通消息", { time: 1000 })
|
||||||
@ -124,7 +124,7 @@ const info = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const load1 = function() {
|
const load1 = function() {
|
||||||
layer.load(0, {time: 2000})
|
layer.load(0, {time: 2000})
|
||||||
@ -166,7 +166,7 @@ const load4 = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const open = function() {
|
const open = function() {
|
||||||
layer.open({
|
layer.open({
|
||||||
@ -284,7 +284,7 @@ const openBtns = function(){
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const openConfirm1 = function() {
|
const openConfirm1 = function() {
|
||||||
layer.confirm("layui-vue 1.0.0 已经发布")
|
layer.confirm("layui-vue 1.0.0 已经发布")
|
||||||
@ -314,7 +314,7 @@ const openConfirm2 = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const openTop = function() {
|
const openTop = function() {
|
||||||
layer.drawer({
|
layer.drawer({
|
||||||
@ -399,7 +399,7 @@ const groupImg = function() {
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, h, resolveComponent } from 'vue'
|
import { reactive, h, resolveComponent } from 'vue'
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
remark: "信息"
|
remark: "信息"
|
||||||
@ -425,7 +425,7 @@ const openComponent1 = () => {
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, h, resolveComponent } from 'vue'
|
import { reactive, h, resolveComponent } from 'vue'
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const prop = reactive({})
|
const prop = reactive({})
|
||||||
const numb = ref(1000)
|
const numb = ref(1000)
|
||||||
@ -496,7 +496,7 @@ const closeAll = function() {
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive, h } from 'vue'
|
import { ref, reactive, h } from 'vue'
|
||||||
import { LayLayer } from "../../../layer/src/index"
|
import { layer } from "../../index"
|
||||||
|
|
||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
const changeVisible = () => {
|
const changeVisible = () => {
|
@ -9,7 +9,7 @@ const zhCN = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/zh-CN/index",
|
path: "/zh-CN/index",
|
||||||
component: () => import("../../docs/zh-CN/index.md"),
|
component: () => import("../document/zh-CN/index.md"),
|
||||||
|
|
||||||
meta: { title: "指南" },
|
meta: { title: "指南" },
|
||||||
},
|
},
|
||||||
|
@ -486,7 +486,7 @@ const enterActiveClass = computed(() => {
|
|||||||
* @param isOutAnim 离场动画
|
* @param isOutAnim 离场动画
|
||||||
*/
|
*/
|
||||||
const leaveActiveClass = computed(() => {
|
const leaveActiveClass = computed(() => {
|
||||||
if (props.type === "drawer") {
|
if (type === 4) {
|
||||||
return getDrawerAnimationClass(props.offset, true);
|
return getDrawerAnimationClass(props.offset, true);
|
||||||
}
|
}
|
||||||
return props.isOutAnim ? `layer-anim-close` : "";
|
return props.isOutAnim ? `layer-anim-close` : "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user