5b64cad09c
修复table 布局问题 column 新增minWidth和ellipsisTooltip属性 ISSUES CLOSED: https://gitee.com/layui/layui-vue/issues/I58DWF
53 lines
8.4 KiB
JavaScript
53 lines
8.4 KiB
JavaScript
import{r as o,o as i,h as r,e as a,d as t,f as n,g as s}from"./vendor.e7911ee1.js";const d={class:"markdown-body"},g=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("template")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-container")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("div")]),s(),n("span",{class:"token attr-name"},"class"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),s("container-demo"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("div")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-container")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("template")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[s(`
|
|
`),n("span",{class:"token keyword"},"import"),s(),n("span",{class:"token punctuation"},"{"),s(" ref "),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"},"export"),s(),n("span",{class:"token keyword"},"default"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
|
|
`),n("span",{class:"token keyword"},"return"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("script")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("style")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token style"},[n("span",{class:"token language-css"},[s(`
|
|
`),n("span",{class:"token selector"},".container-demo"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
`),n("span",{class:"token property"},"width"),n("span",{class:"token punctuation"},":"),s("100%"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token property"},"height"),n("span",{class:"token punctuation"},":"),s(" 300px"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token property"},"background"),n("span",{class:"token punctuation"},":"),s(" #79C48C"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token property"},"border-radius"),n("span",{class:"token punctuation"},":"),s(" 2px"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("style")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`)])],-1),_=n("div",{class:"container-demo"},null,-1),m=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("template")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("lay-container")]),s(),n("span",{class:"token attr-name"},"fluid"),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("div")]),s(),n("span",{class:"token attr-name"},"class"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),s("container-demo"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("div")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("lay-container")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("template")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[s(`
|
|
`),n("span",{class:"token keyword"},"import"),s(),n("span",{class:"token punctuation"},"{"),s(" ref "),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"},"export"),s(),n("span",{class:"token keyword"},"default"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
|
|
`),n("span",{class:"token keyword"},"return"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("script")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),s("style")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token style"},[n("span",{class:"token language-css"},[s(`
|
|
`),n("span",{class:"token selector"},".container-demo"),s(),n("span",{class:"token punctuation"},"{"),s(`
|
|
`),n("span",{class:"token property"},"width"),n("span",{class:"token punctuation"},":"),s("100%"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token property"},"height"),n("span",{class:"token punctuation"},":"),s(" 300px"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token property"},"background"),n("span",{class:"token punctuation"},":"),s(" #79C48C"),n("span",{class:"token punctuation"},";"),s(`
|
|
`),n("span",{class:"token punctuation"},"}"),s(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),s("style")]),n("span",{class:"token punctuation"},">")]),s(`
|
|
`)])],-1),y=n("div",{class:"container-demo"},null,-1),f=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"\u5C5E\u6027"),n("th",null,"\u63CF\u8FF0"),n("th",null,"\u53EF\u9009\u503C")])]),n("tbody",null,[n("tr",null,[n("td",null,"fluid"),n("td",null,"\u6D41\u6A21\u5F0F"),n("td",null,[n("code",null,"true"),s(),n("code",null,"false")])])])],-1),C={setup(h,{expose:l}){return l({frontmatter:{}}),(x,w)=>{const e=o("lay-field"),c=o("lay-container"),p=o("lay-code"),u=o("lay-table-box"),k=o("lay-comment");return i(),r("div",d,[a(e,{title:"\u666E\u901A\u5BB9\u5668",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(p,null,{code:t(()=>[g]),default:t(()=>[a(c,null,{default:t(()=>[_]),_:1})]),_:1}),a(e,{title:"\u6D41\u5F0F\u5BB9\u5668",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(p,null,{code:t(()=>[m]),default:t(()=>[a(c,{fluid:""},{default:t(()=>[y]),_:1})]),_:1}),a(e,{title:"\u5BB9\u5668\u5C5E\u6027",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(u,null,{default:t(()=>[f]),_:1}),a(k)])}}};export{C as default};
|