add: full multi-tenancy control
This commit is contained in:
69
storage/framework/views/519c1b7909e3ba8de0a02909068db720.php
Executable file
69
storage/framework/views/519c1b7909e3ba8de0a02909068db720.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<v-charts-doughnut <?php echo e($attributes); ?>></v-charts-doughnut>
|
||||
|
||||
<?php if (! $__env->hasRenderedOnce('f3013e83-e69b-4a08-b739-f04830f0e8d6')): $__env->markAsRenderedOnce('f3013e83-e69b-4a08-b739-f04830f0e8d6');
|
||||
$__env->startPush('scripts'); ?>
|
||||
<!-- SEO Vue Component Template -->
|
||||
<script
|
||||
type="text/x-template"
|
||||
id="v-charts-doughnut-template"
|
||||
>
|
||||
<canvas
|
||||
:id="$.uid + '_chart'"
|
||||
class="flex w-full max-w-full items-end"
|
||||
></canvas>
|
||||
</script>
|
||||
|
||||
<script type="module">
|
||||
app.component('v-charts-doughnut', {
|
||||
template: '#v-charts-doughnut-template',
|
||||
|
||||
props: {
|
||||
labels: {
|
||||
type: Array,
|
||||
default: [],
|
||||
},
|
||||
|
||||
datasets: {
|
||||
type: Array,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
chart: undefined,
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.prepare();
|
||||
},
|
||||
|
||||
methods: {
|
||||
prepare() {
|
||||
if (this.chart) {
|
||||
this.chart.destroy();
|
||||
}
|
||||
|
||||
this.chart = new Chart(document.getElementById(this.$.uid + '_chart'), {
|
||||
type: 'doughnut',
|
||||
|
||||
data: {
|
||||
labels: this.labels,
|
||||
|
||||
datasets: this.datasets,
|
||||
},
|
||||
|
||||
options: {
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
},
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php $__env->stopPush(); endif; ?><?php /**PATH /var/www/html/packages/Webkul/Admin/src/Resources/views/components/charts/doughnut.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user