Web Demo Mobile Demo Angular Demo Vue Demo React Demo
源代码
<template>
  <div>
		<h2>Tab Template</h2>
		<Tabs :headerHeight="64" style="height:250px">
			<TabPanel :title="'Tab1'">
				<template slot="header">
					<div class="tt-inner">
						<img src="https://www.jeasyui.com/demo/main/images/modem.png">
						<p>Modem</p>
					</div>
				</template>
				<p>A modem (modulator-demodulator) is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information.</p>
			</TabPanel>
			<TabPanel :title="'Tab1'">
				<template slot="header">
					<div class="tt-inner">
						<img src="https://www.jeasyui.com/demo/main/images/scanner.png">
						<p>Scanner</p>
					</div>
				</template>
				<p>In computing, an image scanner—often abbreviated to just scanner—is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image.</p>
			</TabPanel>
			<TabPanel :title="'Tab1'">
				<template slot="header">
					<div class="tt-inner">
						<img src="https://www.jeasyui.com/demo/main/images/pda.png">
						<p>Pda</p>
					</div>
				</template>
				<p>A personal digital assistant (PDA), also known as a palmtop computer, or personal data assistant, is a mobile device that functions as a personal information manager. PDAs are largely considered obsolete with the widespread adoption of smartphones.</p>
			</TabPanel>
			<TabPanel :title="'Tab1'">
				<template slot="header">
					<div class="tt-inner">
						<img src="https://www.jeasyui.com/demo/main/images/tablet.png">
						<p>Tablet</p>
					</div>
				</template>
				<p>A tablet computer, or simply tablet, is a one-piece mobile computer. Devices typically have a touchscreen, with finger or stylus gestures replacing the conventional computer mouse.</p>
			</TabPanel>
		</Tabs>
  </div>
</template>

<script>
export default {};
</script>
<style>
.tt-inner {
  line-height: 12px;
  padding-top: 5px;
  width: 80px;
}
.tt-inner img {
  border: 0;
  width: 32px;
  height: 32px;
}
.tt-inner p {
  margin: 0;
  padding: 0;
  font-size: 14px;
}
</style>