fix: document 引用 main.ts 以实现实时调试

This commit is contained in:
就眠儀式
2022-04-06 20:54:32 +08:00
parent 2accc9b024
commit 303256afa1
4 changed files with 23 additions and 18 deletions

View File

@@ -197,7 +197,7 @@ export default {
::: demo
<template>
<lay-page :limit="limit" :total="9999" :show-count="showCount" @limit="limit=$event" :show-page="showPage" :show-limit="showLimit" :show-refresh="showRefresh" showSkip="showSkip"></lay-page>
<lay-page :limit="limit1" :pages="pages1" :total="9999" :show-count="showCount1" @limit="limit1=$event" :show-page="showPage1" :show-limit="showLimit1" :show-refresh="showRefresh1" showSkip="showSkip1"></lay-page>
每页数量:{{limit}}
</template>
@@ -207,22 +207,24 @@ import { ref } from 'vue'
export default {
setup() {
const limit = ref(5)
const total = ref(9999)
const showCount = ref(true)
const showPage = ref(true)
const showLimit = ref(true)
const showRefresh = ref(true)
const showSkip = ref(true)
const limit1 = ref(5)
const total1 = ref(9999)
const showCount1 = ref(true)
const showPage1 = ref(true)
const showLimit1 = ref(true)
const showRefresh1 = ref(true)
const showSkip1 = ref(true)
const pages1 = ref(3);
return {
limit,
total,
showCount,
showPage,
showLimit,
showRefresh,
showSkip
limit1,
total1,
pages1,
showCount1,
showPage1,
showLimit1,
showRefresh1,
showSkip1
}
}
}

View File

@@ -2,9 +2,8 @@ import Layout from "./App.vue";
import { App, createApp as _createApp } from "vue";
import { createRouter } from "./router/index";
import { Router } from "vue-router";
import layui from "@layui/layui-vue";
import Store from "./store";
import "@layui/layui-vue/lib/index.css";
import layui from '../../component/src/index'
import LayCode from "./components/LayCode.vue";
import LaySearch from "./components/LaySearch.vue";
import LayTableBox from "./components/LayTableBox.vue";