layui/example/dist/assets/timeline.11bb73c2.js
dingyongya 5b64cad09c 🐛(component): table
修复table 布局问题
column 新增minWidth和ellipsisTooltip属性

ISSUES CLOSED: https://gitee.com/layui/layui-vue/issues/I58DWF
2022-05-21 17:11:28 +08:00

60 lines
16 KiB
JavaScript

import{r as e,o as g,h as r,e as t,d as s,f as n,g as a}from"./vendor.e7911ee1.js";const m={class:"markdown-body"},y=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("template")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("8\u670818\u65E5"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("p")]),n("span",{class:"token punctuation"},">")]),a(`
layui 2.0 \u7684\u4E00\u5207\u51C6\u5907\u5DE5\u4F5C\u4F3C\u4E4E\u90FD\u5DF2\u5230\u4F4D\u3002\u53D1\u5E03\u4E4B\u5F26\uFF0C\u4E00\u89E6\u5373\u53D1\u3002
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("br")]),n("span",{class:"token punctuation"},">")]),a(`\u4E0D\u6789\u8FD1\u767E\u4E2A\u65E5\u65E5\u591C\u591C\u4E0E\u4E4B\u4E3A\u4F34\u3002\u56E0\u5C0F\u800C\u5927\uFF0C\u56E0\u5F31\u800C\u5F3A\u3002
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("br")]),n("span",{class:"token punctuation"},">")]),a("\u65E0\u8BBA\u5B83\u80FD\u8D70\u591A\u8FDC\uFF0C\u6291\u6216\u5982\u4F55\u652F\u6491\uFF1F\u81F3\u5C11\u6211\u66FE\u503E\u6CE8\u5168\u5FC3\uFF0C\u65E0\u6028\u65E0\u6094 "),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("i")]),a(),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"},'"'),a("layui-icon"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),a("\uE650"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("i")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("p")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("8\u670816\u65E5"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("p")]),n("span",{class:"token punctuation"},">")]),a("\u675C\u752B\u7684\u601D\u60F3\u6838\u5FC3\u662F\u5112\u5BB6\u7684\u4EC1\u653F\u601D\u60F3\uFF0C\u4ED6\u6709"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("em")]),n("span",{class:"token punctuation"},">")]),a("\u201C\u81F4\u541B\u5C27\u821C\u4E0A\uFF0C\u518D\u4F7F\u98CE\u4FD7\u6DF3\u201D"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("em")]),n("span",{class:"token punctuation"},">")]),a("\u7684\u5B8F\u4F1F\u62B1\u8D1F\u3002"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("p")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("ul")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("li")]),n("span",{class:"token punctuation"},">")]),a("\u300A\u767B\u9AD8\u300B"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("li")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("li")]),n("span",{class:"token punctuation"},">")]),a("\u300A\u8305\u5C4B\u4E3A\u79CB\u98CE\u6240\u7834\u6B4C\u300B"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("li")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("ul")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("8\u670815\u65E5"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("p")]),n("span",{class:"token punctuation"},">")]),a(`
\u4E2D\u56FD\u4EBA\u6C11\u6297\u65E5\u6218\u4E89\u80DC\u5229\u65E5
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("br")]),n("span",{class:"token punctuation"},">")]),a(`\u94ED\u8BB0\u3001\u611F\u6069
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("br")]),n("span",{class:"token punctuation"},">")]),a(`\u6240\u6709\u4E3A\u4E2D\u534E\u6C11\u65CF\u6D74\u8840\u594B\u6218\u7684\u82F1\u96C4\u5C06\u58EB
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("br")]),n("span",{class:"token punctuation"},">")]),a(`\u6C38\u5782\u4E0D\u673D
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("p")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("template")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[a(`
`),n("span",{class:"token keyword"},"import"),a(),n("span",{class:"token punctuation"},"{"),a(" ref "),n("span",{class:"token punctuation"},"}"),a(),n("span",{class:"token keyword"},"from"),a(),n("span",{class:"token string"},"'vue'"),a(`
`),n("span",{class:"token keyword"},"export"),a(),n("span",{class:"token keyword"},"default"),a(),n("span",{class:"token punctuation"},"{"),a(`
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),a(),n("span",{class:"token punctuation"},"{"),a(`
`),n("span",{class:"token keyword"},"return"),a(),n("span",{class:"token punctuation"},"{"),a(`
`),n("span",{class:"token punctuation"},"}"),a(`
`),n("span",{class:"token punctuation"},"}"),a(`
`),n("span",{class:"token punctuation"},"}"),a(`
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("script")]),n("span",{class:"token punctuation"},">")]),a(`
`)])],-1),d=n("p",null,[a(" layui 2.0 \u7684\u4E00\u5207\u51C6\u5907\u5DE5\u4F5C\u4F3C\u4E4E\u90FD\u5DF2\u5230\u4F4D\u3002\u53D1\u5E03\u4E4B\u5F26\uFF0C\u4E00\u89E6\u5373\u53D1\u3002 "),n("br"),a("\u4E0D\u6789\u8FD1\u767E\u4E2A\u65E5\u65E5\u591C\u591C\u4E0E\u4E4B\u4E3A\u4F34\u3002\u56E0\u5C0F\u800C\u5927\uFF0C\u56E0\u5F31\u800C\u5F3A\u3002 "),n("br"),a("\u65E0\u8BBA\u5B83\u80FD\u8D70\u591A\u8FDC\uFF0C\u6291\u6216\u5982\u4F55\u652F\u6491\uFF1F\u81F3\u5C11\u6211\u66FE\u503E\u6CE8\u5168\u5FC3\uFF0C\u65E0\u6028\u65E0\u6094 "),n("i",{class:"layui-icon"},"\uE650")],-1),_=n("p",null,[a("\u675C\u752B\u7684\u601D\u60F3\u6838\u5FC3\u662F\u5112\u5BB6\u7684\u4EC1\u653F\u601D\u60F3\uFF0C\u4ED6\u6709"),n("em",null,"\u201C\u81F4\u541B\u5C27\u821C\u4E0A\uFF0C\u518D\u4F7F\u98CE\u4FD7\u6DF3\u201D"),a("\u7684\u5B8F\u4F1F\u62B1\u8D1F\u3002")],-1),f=n("ul",null,[n("li",null,"\u300A\u767B\u9AD8\u300B"),n("li",null,"\u300A\u8305\u5C4B\u4E3A\u79CB\u98CE\u6240\u7834\u6B4C\u300B")],-1),b=n("p",null,[a(" \u4E2D\u56FD\u4EBA\u6C11\u6297\u65E5\u6218\u4E89\u80DC\u5229\u65E5 "),n("br"),a("\u94ED\u8BB0\u3001\u611F\u6069 "),n("br"),a("\u6240\u6709\u4E3A\u4E2D\u534E\u6C11\u65CF\u6D74\u8840\u594B\u6218\u7684\u82F1\u96C4\u5C06\u58EB "),n("br"),a("\u6C38\u5782\u4E0D\u673D ")],-1),v=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("template")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("2021\u5E74\uFF0Clayui vue \u91CC\u7A0B\u7891\u7248\u672C 1.0 \u53D1\u5E03"),n("span",{class:"token punctuation"},'"')]),a(),n("span",{class:"token attr-name"},"simple"),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("2017\u5E74\uFF0Clayui \u91CC\u7A0B\u7891\u7248\u672C 2.0 \u53D1\u5E03"),n("span",{class:"token punctuation"},'"')]),a(),n("span",{class:"token attr-name"},"simple"),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("2016\u5E74\uFF0Clayui \u9996\u4E2A\u7248\u672C\u53D1\u5E03"),n("span",{class:"token punctuation"},'"')]),a(),n("span",{class:"token attr-name"},"simple"),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("lay-timeline-item")]),a(),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"},'"'),a("2015\u5E74\uFF0Clayui \u5B75\u5316"),n("span",{class:"token punctuation"},'"')]),a(),n("span",{class:"token attr-name"},"simple"),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline-item")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("lay-timeline")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("template")]),n("span",{class:"token punctuation"},">")]),a(`
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),a("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[a(`
`),n("span",{class:"token keyword"},"import"),a(),n("span",{class:"token punctuation"},"{"),a(" ref "),n("span",{class:"token punctuation"},"}"),a(),n("span",{class:"token keyword"},"from"),a(),n("span",{class:"token string"},"'vue'"),a(`
`),n("span",{class:"token keyword"},"export"),a(),n("span",{class:"token keyword"},"default"),a(),n("span",{class:"token punctuation"},"{"),a(`
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),a(),n("span",{class:"token punctuation"},"{"),a(`
`),n("span",{class:"token keyword"},"return"),a(),n("span",{class:"token punctuation"},"{"),a(`
`),n("span",{class:"token punctuation"},"}"),a(`
`),n("span",{class:"token punctuation"},"}"),a(`
`),n("span",{class:"token punctuation"},"}"),a(`
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),a("script")]),n("span",{class:"token punctuation"},">")]),a(`
`)])],-1),h=n("table",null,[n("thead",null,[n("tr",null,[n("th"),n("th"),n("th")])]),n("tbody",null,[n("tr",null,[n("td",null,"simple"),n("td",null,"\u7B80\u5355\u6A21\u5F0F"),n("td",null,"\u2013")]),n("tr",null,[n("td",null,"title"),n("td",null,"\u6807\u9898"),n("td",null,"\u2013")])])],-1),N={setup(x,{expose:u}){return u({frontmatter:{}}),(q,j)=>{const l=e("lay-field"),o=e("lay-timeline-item"),p=e("lay-timeline"),c=e("lay-code"),i=e("lay-table-box"),k=e("lay-comment");return g(),r("div",m,[t(l,{title:"\u57FA\u7840\u4F7F\u7528",style:{"margin-top":"20px","margin-bottom":"20px"}}),t(c,null,{code:s(()=>[y]),default:s(()=>[t(p,null,{default:s(()=>[t(o,{title:"8\u670818\u65E5"},{default:s(()=>[d]),_:1}),t(o,{title:"8\u670816\u65E5"},{default:s(()=>[_,f]),_:1}),t(o,{title:"8\u670815\u65E5"},{default:s(()=>[b]),_:1})]),_:1})]),_:1}),t(l,{title:"\u7B80\u5355\u6A21\u5F0F",style:{"margin-top":"20px","margin-bottom":"20px"}}),t(c,null,{code:s(()=>[v]),default:s(()=>[t(p,null,{default:s(()=>[t(o,{title:"2021\u5E74\uFF0Clayui vue \u91CC\u7A0B\u7891\u7248\u672C 1.0 \u53D1\u5E03",simple:""}),t(o,{title:"2017\u5E74\uFF0Clayui \u91CC\u7A0B\u7891\u7248\u672C 2.0 \u53D1\u5E03",simple:""}),t(o,{title:"2016\u5E74\uFF0Clayui \u9996\u4E2A\u7248\u672C\u53D1\u5E03",simple:""}),t(o,{title:"2015\u5E74\uFF0Clayui \u5B75\u5316",simple:""})]),_:1})]),_:1}),t(l,{title:"timeline-item attributes",style:{"margin-top":"20px","margin-bottom":"20px"}}),t(i,null,{default:s(()=>[h]),_:1}),t(k)])}}};export{N as default};