style: 条码组件页面调整
This commit is contained in:
parent
18d17f987d
commit
eccac5d0a0
@ -1,13 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="snow-page">
|
<div class="snow-page">
|
||||||
<div class="snow-inner">
|
<div class="snow-inner">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="15">
|
||||||
<div class="code-box">
|
<div class="code-box">
|
||||||
<a-card v-for="item in codeList" :key="item.id" :title="item.docs" :style="{ width: '400px' }" hoverable>
|
<a-card v-for="item in codeList" :key="item.id" :title="item.docs" :style="{ width: '400px' }" hoverable>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<draw-barcode :text="item.text" :options="item.options" />
|
<draw-barcode :tag="item.tag" :text="item.text" :options="item.options" />
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="9">
|
||||||
|
<a-scrollbar style="height: 625px; overflow: auto">
|
||||||
|
<CodeView :code-json="codeJson" style="width: 100%" />
|
||||||
|
</a-scrollbar>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -16,6 +25,7 @@
|
|||||||
const codeList = ref([
|
const codeList = ref([
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
tag: "svg",
|
||||||
text: "SnowAdmin",
|
text: "SnowAdmin",
|
||||||
docs: "CODE128-默认条形码",
|
docs: "CODE128-默认条形码",
|
||||||
options: {
|
options: {
|
||||||
@ -25,6 +35,7 @@ const codeList = ref([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
|
tag: "svg",
|
||||||
text: "SnowAdmin",
|
text: "SnowAdmin",
|
||||||
docs: "自定义高度和颜色",
|
docs: "自定义高度和颜色",
|
||||||
options: {
|
options: {
|
||||||
@ -36,6 +47,7 @@ const codeList = ref([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
|
tag: "svg",
|
||||||
text: "SnowAdmin",
|
text: "SnowAdmin",
|
||||||
docs: "设置字体和倾斜",
|
docs: "设置字体和倾斜",
|
||||||
options: {
|
options: {
|
||||||
@ -47,6 +59,7 @@ const codeList = ref([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
|
tag: "svg",
|
||||||
text: "SnowAdmin",
|
text: "SnowAdmin",
|
||||||
docs: "CODE39-商品条形码",
|
docs: "CODE39-商品条形码",
|
||||||
options: {
|
options: {
|
||||||
@ -56,6 +69,7 @@ const codeList = ref([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
|
tag: "svg",
|
||||||
text: "6971318501227",
|
text: "6971318501227",
|
||||||
docs: "EAN13-商品条形码",
|
docs: "EAN13-商品条形码",
|
||||||
options: {
|
options: {
|
||||||
@ -65,6 +79,7 @@ const codeList = ref([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 6,
|
id: 6,
|
||||||
|
tag: "svg",
|
||||||
text: "123456789999",
|
text: "123456789999",
|
||||||
docs: "UPC-商品条形码",
|
docs: "UPC-商品条形码",
|
||||||
options: {
|
options: {
|
||||||
@ -73,6 +88,8 @@ const codeList = ref([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const codeJson = computed(() => JSON.stringify(codeList.value, null, "\t"));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user