5b64cad09c
修复table 布局问题 column 新增minWidth和ellipsisTooltip属性 ISSUES CLOSED: https://gitee.com/layui/layui-vue/issues/I58DWF
63 lines
13 KiB
JavaScript
63 lines
13 KiB
JavaScript
import{r as e,o as y,h as _,e as a,d as s,z as c,g as t,t as f,f as n}from"./vendor.e7911ee1.js";const S={class:"markdown-body"},w=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-transfer")]),t(),n("span",{class:"token attr-name"},":dataSource"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("dataSource1"),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"},"</"),t("lay-transfer")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[t(`
|
|
`),n("span",{class:"token keyword"},"import"),t(),n("span",{class:"token punctuation"},"{"),t(" ref "),n("span",{class:"token punctuation"},"}"),t(),n("span",{class:"token keyword"},"from"),t(),n("span",{class:"token string"},"'vue'"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"export"),t(),n("span",{class:"token keyword"},"default"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"const"),t(" dataSource1 "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t("id"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'1'"),n("span",{class:"token punctuation"},","),t(" title"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'\u6613\u5927\u5E08'"),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),n("span",{class:"token punctuation"},"{"),t("id"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'2'"),n("span",{class:"token punctuation"},","),t(" title"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'\u6218\u4E89\u4E4B\u738B'"),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"return"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
dataSource1
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("script")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`)])],-1),x=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-transfer")]),t(),n("span",{class:"token attr-name"},":dataSource"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("dataSource2"),n("span",{class:"token punctuation"},'"')]),t(),n("span",{class:"token attr-name"},":title"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("title"),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"},"</"),t("lay-transfer")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[t(`
|
|
`),n("span",{class:"token keyword"},"import"),t(),n("span",{class:"token punctuation"},"{"),t(" ref "),n("span",{class:"token punctuation"},"}"),t(),n("span",{class:"token keyword"},"from"),t(),n("span",{class:"token string"},"'vue'"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"export"),t(),n("span",{class:"token keyword"},"default"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"const"),t(" dataSource2 "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t("id"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'1'"),n("span",{class:"token punctuation"},","),t(" title"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'\u6613\u5927\u5E08'"),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),n("span",{class:"token punctuation"},"{"),t("id"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'2'"),n("span",{class:"token punctuation"},","),t(" title"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'\u6218\u4E89\u4E4B\u738B'"),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
|
`),n("span",{class:"token keyword"},"const"),t(" title "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token string"},"'\u6211\u559C\u6B22\u7684'"),n("span",{class:"token punctuation"},","),n("span",{class:"token string"},"'\u6211\u4E0D\u559C\u6B22\u7684'"),n("span",{class:"token punctuation"},"]"),t(`
|
|
|
|
|
|
`),n("span",{class:"token keyword"},"return"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
dataSource2`),n("span",{class:"token punctuation"},","),t(`
|
|
title
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("script")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`)])],-1),v=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-transfer")]),t(),n("span",{class:"token attr-name"},":dataSource"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("dataSource1"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("template")]),t(),n("span",{class:"token attr-name"},[n("span",{class:"token namespace"},"v-slot:"),t("item")]),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("{ data }"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),t(`
|
|
{{data.id}}
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("lay-transfer")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
|
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[t(`
|
|
`),n("span",{class:"token keyword"},"import"),t(),n("span",{class:"token punctuation"},"{"),t(" ref "),n("span",{class:"token punctuation"},"}"),t(),n("span",{class:"token keyword"},"from"),t(),n("span",{class:"token string"},"'vue'"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"export"),t(),n("span",{class:"token keyword"},"default"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"const"),t(" dataSource1 "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t("id"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'1'"),n("span",{class:"token punctuation"},","),t(" title"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'\u6613\u5927\u5E08'"),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),n("span",{class:"token punctuation"},"{"),t("id"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'2'"),n("span",{class:"token punctuation"},","),t(" title"),n("span",{class:"token operator"},":"),n("span",{class:"token string"},"'\u6218\u4E89\u4E4B\u738B'"),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
|
|
|
`),n("span",{class:"token keyword"},"return"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
|
dataSource1
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("script")]),n("span",{class:"token punctuation"},">")]),t(`
|
|
`)])],-1),h=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"Name"),n("th",null,"Description"),n("th",null,"Accepted Values")])]),n("tbody",null,[n("tr",null,[n("td",null,"dataSource"),n("td",null,"\u6570\u636E\u6765\u6E90"),n("td",null,"\u2013")]),n("tr",null,[n("td",null,"title"),n("td",null,"\u6807\u9898"),n("td",null,"\u2013")]),n("tr",null,[n("td",null,"id"),n("td",null,"\u4E3B\u952E"),n("td",null,"\u2013")])])],-1),b=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"Name"),n("th",null,"Description"),n("th",null,"Accepted Values")])]),n("tbody",null,[n("tr",null,[n("td",null,"item"),n("td",null,"\u5217\u8868\u9879"),n("td",null,"{ data }")])])],-1),D={setup(q,{expose:i}){i({frontmatter:{}});let p=[{id:"1",title:"\u6613\u5927\u5E08"},{id:"2",title:"\u6218\u4E89\u4E4B\u738B"}],r=[{id:"1",title:"\u6613\u5927\u5E08"},{id:"2",title:"\u6218\u4E89\u4E4B\u738B"}],d=["\u6211\u559C\u6B22\u7684","\u6211\u4E0D\u559C\u6B22\u7684"];return p=[{id:"1",title:"\u6613\u5927\u5E08"},{id:"2",title:"\u6218\u4E89\u4E4B\u738B"}],(V,j)=>{const o=e("lay-field"),l=e("lay-transfer"),u=e("lay-code"),k=e("lay-table-box"),g=e("lay-comment");return y(),_("div",S,[a(o,{title:"\u57FA\u7840\u4F7F\u7528",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(u,null,{code:s(()=>[w]),default:s(()=>[a(l,{dataSource:c(p)},null,8,["dataSource"])]),_:1}),a(o,{title:"\u6307\u5B9A\u6807\u9898",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(u,null,{code:s(()=>[x]),default:s(()=>[a(l,{dataSource:c(r),title:c(d)},null,8,["dataSource","title"])]),_:1}),a(o,{title:"\u4F7F\u7528\u63D2\u69FD",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(u,null,{code:s(()=>[v]),default:s(()=>[a(l,{dataSource:c(p)},{item:s(({data:m})=>[t(f(m.id),1)]),_:1},8,["dataSource"])]),_:1}),a(o,{title:"transfer \u5C5E\u6027",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(k,null,{default:s(()=>[h]),_:1}),a(o,{title:"transfer \u63D2\u69FD",style:{"margin-top":"20px","margin-bottom":"20px"}}),a(k,null,{default:s(()=>[b]),_:1}),a(g)])}}};export{D as default};
|