Merge pull request #174 from Tencent/feat/upgrade/0.16.0

feat: upgrade 0.16.0
This commit is contained in:
yuyang 2022-06-17 16:44:20 +08:00 committed by GitHub
commit fa1e54a12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 19 deletions

View File

@ -25,7 +25,7 @@
"pinia": "^2.0.11", "pinia": "^2.0.11",
"qrcode.vue": "^3.2.2", "qrcode.vue": "^3.2.2",
"tdesign-icons-vue-next": "^0.0.6", "tdesign-icons-vue-next": "^0.0.6",
"tdesign-vue-next": "^0.15.4", "tdesign-vue-next": "^0.16.0",
"tvision-color": "^1.3.1", "tvision-color": "^1.3.1",
"vue": "^3.2.31", "vue": "^3.2.31",
"vue-clipboard3": "^2.0.0", "vue-clipboard3": "^2.0.0",

View File

@ -4,11 +4,10 @@
<t-card title="统计数据" :subtitle="`(万元)${currentMonth}`" class="dashboard-chart-card"> <t-card title="统计数据" :subtitle="`(万元)${currentMonth}`" class="dashboard-chart-card">
<template #option> <template #option>
<div class="dashboard-chart-title-container"> <div class="dashboard-chart-title-container">
<t-date-picker <t-date-range-picker
class="card-date-picker-container" class="card-date-picker-container"
theme="primary" theme="primary"
mode="date" mode="date"
range
:default-value="LAST_7_DAYS" :default-value="LAST_7_DAYS"
@change="onCurrencyChange" @change="onCurrencyChange"
/> />

View File

@ -9,11 +9,10 @@
:class="{ 'dashboard-overview-card': true, 'overview-panel': true }" :class="{ 'dashboard-overview-card': true, 'overview-panel': true }"
> >
<template #actions> <template #actions>
<t-date-picker <t-date-range-picker
class="card-date-picker-container" class="card-date-picker-container"
theme="primary" theme="primary"
mode="date" mode="date"
range
:default-value="LAST_7_DAYS" :default-value="LAST_7_DAYS"
@change="onStokeDataChange" @change="onStokeDataChange"
/> />

View File

@ -20,12 +20,11 @@
<t-col :xs="12" :xl="9"> <t-col :xs="12" :xl="9">
<t-card class="dashboard-detail-card" title="采购商品申请趋势" subtitle="(件)"> <t-card class="dashboard-detail-card" title="采购商品申请趋势" subtitle="(件)">
<template #actions> <template #actions>
<t-date-picker <t-date-range-picker
class="card-date-picker-container" class="card-date-picker-container"
:default-value="LAST_7_DAYS" :default-value="LAST_7_DAYS"
theme="primary" theme="primary"
mode="date" mode="date"
range
style="width: 240px" style="width: 240px"
@change="onMaterialChange" @change="onMaterialChange"
/> />
@ -44,12 +43,11 @@
</t-row> </t-row>
<t-card :class="['dashboard-detail-card', 'row-margin']" title="采购商品满意度分布"> <t-card :class="['dashboard-detail-card', 'row-margin']" title="采购商品满意度分布">
<template #actions> <template #actions>
<t-date-picker <t-date-range-picker
class="card-date-picker-container" class="card-date-picker-container"
:default-value="LAST_7_DAYS" :default-value="LAST_7_DAYS"
theme="primary" theme="primary"
mode="date" mode="date"
range
style="display: inline-block; margin-right: 8px; width: 240px" style="display: inline-block; margin-right: 8px; width: 240px"
@change="onSatisfyChange" @change="onSatisfyChange"
/> />

View File

@ -204,6 +204,8 @@ const deleteClickOp = (e) => {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import url('../base/index.less');
.detail-deploy { .detail-deploy {
:deep(.t-card) { :deep(.t-card) {
padding: 8px; padding: 8px;

View File

@ -12,7 +12,7 @@
<t-row> <t-row>
<t-col :span="10"> <t-col :span="10">
<t-row :gutter="[16, 24]"> <t-row :gutter="[16, 24]">
<t-col :flex="1"> <t-col :span="4">
<t-form-item label="合同名称" name="name"> <t-form-item label="合同名称" name="name">
<t-input <t-input
v-model="formData.name" v-model="formData.name"
@ -23,7 +23,7 @@
/> />
</t-form-item> </t-form-item>
</t-col> </t-col>
<t-col :flex="1"> <t-col :span="4">
<t-form-item label="合同状态" name="status"> <t-form-item label="合同状态" name="status">
<t-select <t-select
v-model="formData.status" v-model="formData.status"
@ -33,7 +33,7 @@
/> />
</t-form-item> </t-form-item>
</t-col> </t-col>
<t-col :flex="1"> <t-col :span="4">
<t-form-item label="合同编号" name="no"> <t-form-item label="合同编号" name="no">
<t-input <t-input
v-model="formData.no" v-model="formData.no"
@ -43,10 +43,11 @@
/> />
</t-form-item> </t-form-item>
</t-col> </t-col>
<t-col :flex="1"> <t-col :span="4">
<t-form-item label="合同类型" name="type"> <t-form-item label="合同类型" name="type">
<t-select <t-select
v-model="formData.type" v-model="formData.type"
style="display: inline-block"
class="form-item-content" class="form-item-content"
:options="CONTRACT_TYPE_OPTIONS" :options="CONTRACT_TYPE_OPTIONS"
placeholder="请选择合同类型" placeholder="请选择合同类型"

View File

@ -35,12 +35,11 @@
<t-tab-panel value="second" label="内容列表"> <t-tab-panel value="second" label="内容列表">
<t-card :bordered="false" class="card-padding-no" title="主页访问数据" describe="(次)"> <t-card :bordered="false" class="card-padding-no" title="主页访问数据" describe="(次)">
<template #actions> <template #actions>
<t-date-picker <t-date-range-picker
class="card-date-picker-container" class="card-date-picker-container"
:default-value="LAST_7_DAYS" :default-value="LAST_7_DAYS"
theme="primary" theme="primary"
mode="date" mode="date"
range
@change="onLineChange" @change="onLineChange"
/> />
</template> </template>

View File

@ -68,10 +68,6 @@ p {
} }
} }
.t-button + .t-button {
margin-left: var(--tdvns-spacer);
}
.container-base-margin-top { .container-base-margin-top {
margin-top: 16px; margin-top: 16px;
} }

View File

@ -11,6 +11,26 @@
margin-left: var(--tdvns-spacer); margin-left: var(--tdvns-spacer);
} }
.t-jumper-jumper {
.t-button + .t-button {
margin-left: 0
}
}
.tdesign-starter-link {
color: var(--td-brand-color);
text-decoration: none;
margin-right: 24px;
cursor: pointer;
transition: color .2s cubic-bezier(.38,0,.24,1);
}
.left-operation-container,.operation-container {
.t-button + .t-button {
margin-left: var(--tdvns-spacer);
}
}
.t-layout.t-layout--with-sider { .t-layout.t-layout--with-sider {
> .t-layout { > .t-layout {
flex: 1; flex: 1;