@saooti/octopus-sdk 32.0.39 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.39",
3
+ "version": "33.0.0",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -10,6 +10,7 @@
10
10
  v-model="textValue"
11
11
  :disabled="isDisabled"
12
12
  class="c-hand"
13
+ :style="getFontFamily"
13
14
  >
14
15
  <option
15
16
  v-for="option in options"
@@ -24,6 +25,7 @@
24
25
  </template>
25
26
  <script lang="ts">
26
27
  import { defineComponent } from 'vue';
28
+ import { displayMethods } from '../mixins/functions';
27
29
  export default defineComponent({
28
30
  name: 'ClassicSelect',
29
31
  props: {
@@ -40,6 +42,17 @@ export default defineComponent({
40
42
  textValue: undefined as string|undefined,
41
43
  };
42
44
  },
45
+ computed:{
46
+ getFontFamily(): string{
47
+ const item = this.options.find((x) => {
48
+ return this.textValue === x.value;
49
+ });
50
+ if(item && item.fontFamily){
51
+ return 'font-family:'+item.fontFamily;
52
+ }
53
+ return "";
54
+ }
55
+ },
43
56
  watch: {
44
57
  textValue(){
45
58
  if(this.textInit !== this.textValue){
@@ -54,7 +67,7 @@ export default defineComponent({
54
67
  }
55
68
  },
56
69
  },
57
- }
70
+ },
58
71
  });
59
72
  </script>
60
73
  <style lang="scss">