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

aCustomStatistic.html « component « html « web - github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: be20a39ab817708da34d3777c376aa151860b645 (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
{{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-content {
    color: var(--dark-color-text-primary)
  }

  .dark .ant-statistic-title {
    color: rgba(255, 255, 255, 0.55)
  }

  .ant-statistic-content {
    font-size: 16px;
  }
</style>

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