Welcome to mirror list, hosted at ThFree Co, Russian Federation.

aCustomStatistic.html « component « xui « html « web - github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 41695e90500d4f19caa59e4e91cb2a8d87f0bea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{{define "component/customStatistic"}}
<template>
    <a-statistic :title="title" :value="value">
        <template #prefix>
            <slot name="prefix"></slot>
        </template>
        <template #suffix>
            <slot name="suffix"></slot>
        </template>
    </a-statistic>
</template>
{{end}}

{{define "component/aCustomStatistic"}}
<style>
    .dark .ant-statistic-title,
    .dark .ant-statistic-content {
        color: var(--dark-color-text-primary) !important
    }

    .dark .ant-statistic-title {
        user-select: none;
        opacity: 0.55;
    }
    
    .ant-statistic-title {
        margin-bottom: 0 !important;
    }

    .ant-statistic-content-prefix {
        margin-right: 6px !important;
    }

    .ant-statistic-content-prefix,
    .ant-statistic-content-value {
        font-size: 1.05rem;
    }
</style>

<script>
  Vue.component('a-custom-statistic', {
    props: {
      'title': {
        type: String,
        required: false,
      },
      'value': {
        type: String,
        required: false
      }
    },
    template: `{{template "component/customStatistic"}}`,
  });
</script>
{{end}}