Some checks failed
Lock Threads / action (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot EE docker images / merge (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot CE docker images / merge (push) Has been cancelled
Run Chatwoot CE spec / lint-backend (push) Has been cancelled
Run Chatwoot CE spec / lint-frontend (push) Has been cancelled
Run Chatwoot CE spec / frontend-tests (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (0, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (1, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (10, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (11, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (12, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (13, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (14, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (15, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (2, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (3, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (4, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (5, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (6, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (7, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (8, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (9, 16) (push) Has been cancelled
Run Linux nightly installer / nightly (push) Has been cancelled
- Add Logistics component with progress tracking - Add OrderDetail component for order information - Support data-driven steps and actions - Add blue color scale to widget SCSS - Fix node overflow and progress bar rendering issues - Add English translations for dashboard components Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
77 lines
1.3 KiB
Vue
77 lines
1.3 KiB
Vue
<script>
|
|
export default {
|
|
props: {
|
|
icon: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
icons: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
size: {
|
|
type: [String, Number],
|
|
default: '20',
|
|
},
|
|
type: {
|
|
type: String,
|
|
default: 'outline',
|
|
},
|
|
viewBox: {
|
|
type: String,
|
|
default: '0 0 24 24',
|
|
},
|
|
iconLib: {
|
|
type: String,
|
|
default: 'fluent',
|
|
},
|
|
},
|
|
|
|
computed: {
|
|
pathSource() {
|
|
// To support icons with multiple paths
|
|
const path = this.icons[`${this.icon}-${this.type}`];
|
|
if (path.constructor === Array) {
|
|
return path;
|
|
}
|
|
return [path];
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<svg
|
|
v-if="iconLib === 'fluent'"
|
|
:width="size"
|
|
:height="size"
|
|
fill="none"
|
|
:viewBox="viewBox"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
v-for="source in pathSource"
|
|
:key="source"
|
|
:d="source"
|
|
fill="currentColor"
|
|
/>
|
|
</svg>
|
|
<svg
|
|
v-else
|
|
:width="size"
|
|
:height="size"
|
|
fill="none"
|
|
:viewBox="viewBox"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<g v-for="(pathData, index) in pathSource" :key="index">
|
|
<path
|
|
:key="pathData"
|
|
:d="pathData"
|
|
stroke="currentColor"
|
|
stroke-width="1.66667"
|
|
/>
|
|
</g>
|
|
</svg>
|
|
</template>
|