toggle-components-library 1.39.10 → 1.39.12-beta.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": "toggle-components-library",
3
- "version": "1.39.10",
3
+ "version": "1.39.12-beta.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,7 +5,7 @@
5
5
  {{label}}
6
6
  </label>
7
7
 
8
- <div class="input-holder">
8
+ <div>
9
9
  <multiselect v-model="inputVal" :options="options" :multiple="multiple" :close-on-select="true" :clear-on-select="false" :preserve-search="true" :placeholder="placeholder" label="label" track-by="value" :preselect-first="false">
10
10
  <template v-slot:afterList><slot name="afterList"></slot></template>
11
11
  </multiselect>
@@ -18,7 +18,7 @@
18
18
  :disabled="disabled"
19
19
  :style="`${fontFamily ? 'font-family: ' + fontFamily : ''}`"
20
20
  >
21
- <option value="">{{size == 'streamline' ? label : 'Select an option' }}</option>
21
+ <option value="">{{placeholder || (size == 'streamline' ? label : 'Select an option') }}</option>
22
22
  <option :value="option.value" v-for="(option, key) in options" v-bind:key="key">{{option.label}}</option>
23
23
  </select>
24
24
  </div>
@@ -83,6 +83,10 @@ export default {
83
83
  type: Boolean,
84
84
  required: false,
85
85
  default: false
86
+ },
87
+ placeholder: {
88
+ type: String,
89
+ required: false
86
90
  }
87
91
  },
88
92