123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <div class="com-panel-sand">
- <div class="com-panel-sand-header font-sm white">
- {{ title }}<span class="com-panel-sand-sub-title font-sm gray">{{ subTitle }}</span>
- </div>
- <div class="com-panel-body">
- <slot></slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "com-panel-sand",
- componentName: "com-panel-sand",
- props: {
- // 标题
- title: {
- type: String,
- default: "",
- },
- // 副标题
- subTitle: {
- type: String,
- default: "",
- },
- },
- };
- </script>
- <style lang="less">
- .com-panel-sand {
- background: #53626826;
- padding: 0 1.481vh 1.481vh 1.481vh;
- border-top: 1px solid #15a952;
- position: relative;
- &::after {
- content: "";
- position: absolute;
- width: 5px;
- height: 5px;
- background: #15a952;
- right: -2.5px;
- top: -2.5px;
- }
- .com-panel-sand-header {
- text-align: center;
- position: relative;
- padding: 0.833vh 0;
- border-bottom: 1px solid #15a95266;
- &::after,
- &::before {
- content: "";
- position: absolute;
- bottom: -1px;
- width: 15px;
- height: 1px;
- background: #15a952;
- }
- &::after {
- left: 0;
- }
- &::before {
- right: 0;
- }
- .com-panel-sand-sub-title {
- position: absolute;
- right: 0;
- top: 0.833vh;
- }
- }
- }
- </style>
|