5b64cad09c
修复table 布局问题 column 新增minWidth和ellipsisTooltip属性 ISSUES CLOSED: https://gitee.com/layui/layui-vue/issues/I58DWF
19 lines
4.7 KiB
JavaScript
19 lines
4.7 KiB
JavaScript
import{r as o,o as e,h as p,e as l,f as n,g as s}from"./vendor.e7911ee1.js";const c={class:"markdown-body"},u=n("br",null,null,-1),i=n("p",{style:{"margin-left":"24px","margin-bottom":"20px"}},"1. \u4F7F\u7528 npm \u4E0B\u8F7D",-1),k=n("div",{class:"language-"},[n("pre",null,[n("code",{"v-pre":""},`npm install @layui/layui-vue --save
|
|
`)])],-1),r=n("br",null,null,-1),g=n("p",{style:{"margin-left":"24px","margin-bottom":"20px"}},"2. \u5728 main.ts \u4E2D\u4F9D\u8D56",-1),d=n("div",{class:"language-js"},[n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token keyword"},"import"),s(" App "),n("span",{class:"token keyword"},"from"),s(),n("span",{class:"token string"},"'./App.vue'"),s(`
|
|
`),n("span",{class:"token keyword"},"import"),s(),n("span",{class:"token punctuation"},"{"),s(" createApp "),n("span",{class:"token punctuation"},"}"),s(),n("span",{class:"token keyword"},"from"),s(),n("span",{class:"token string"},"'vue'"),s(`
|
|
`),n("span",{class:"token keyword"},"import"),s(" Layui "),n("span",{class:"token keyword"},"from"),s(),n("span",{class:"token string"},"'@layui/layui-vue'"),s(`
|
|
`),n("span",{class:"token keyword"},"import"),s(),n("span",{class:"token string"},"'@layui/layui-vue/lib/index.css'"),s(`
|
|
|
|
`),n("span",{class:"token function"},"createApp"),n("span",{class:"token punctuation"},"("),s("App"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},"."),n("span",{class:"token function"},"use"),n("span",{class:"token punctuation"},"("),s("Layui"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},"."),n("span",{class:"token function"},"mount"),n("span",{class:"token punctuation"},"("),n("span",{class:"token string"},"'#app'"),n("span",{class:"token punctuation"},")"),s(`
|
|
`)])])],-1),y=n("br",null,null,-1),m=n("p",{style:{"margin-left":"24px","margin-bottom":"20px"}},"3. \u5728 index.vue \u4F7F\u7528",-1),_=n("div",{class:"language-html"},[n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-layout")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-header")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-logo")]),n("span",{class:"token punctuation"},">")]),s("Layui Admin"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-logo")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-header")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-side")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-side")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-body")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("router-view")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("router-view")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-body")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-footer")]),n("span",{class:"token punctuation"},">")]),s("pearadmin.com"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-footer")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-layout")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`)])])],-1),v=n("ul",null,[n("li",null,[s("\u524D\u5F80: "),n("a",{href:"https://gitee.com/layui-vue/layui-vue-sample"},"layui-vue-sample")])],-1),A={setup(f,{expose:a}){return a({frontmatter:{}}),(x,b)=>{const t=o("lay-field");return e(),p("div",c,[l(t,{title:"\u5FEB\u901F\u4E0A\u624B",style:{"margin-top":"20px","margin-bottom":"20px"}}),u,i,k,r,g,d,y,m,_,v])}}};export{A as default};
|