@cyprnet/node-red-contrib-uibuilder-formgen 0.4.12 → 0.4.13
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.
|
@@ -463,7 +463,7 @@ module.exports = function(RED) {
|
|
|
463
463
|
|
|
464
464
|
// Write runtime metadata
|
|
465
465
|
const runtimeData = {
|
|
466
|
-
generatorVersion: "0.4.
|
|
466
|
+
generatorVersion: "0.4.12",
|
|
467
467
|
timestamp: new Date().toISOString(),
|
|
468
468
|
instanceName: instanceName,
|
|
469
469
|
storageMode: storageMode,
|
package/package.json
CHANGED
|
@@ -333,8 +333,8 @@
|
|
|
333
333
|
<option
|
|
334
334
|
v-for="(opt, optIdx) in (field.options || [])"
|
|
335
335
|
:key="field.id + '-opt-' + optIdx"
|
|
336
|
-
:value="opt.value"
|
|
337
|
-
>{{opt.text}}</option>
|
|
336
|
+
:value="(typeof opt === 'string') ? opt : opt.value"
|
|
337
|
+
>{{ (typeof opt === 'string') ? opt : (opt.text || opt.label || opt.name || opt.value) }}</option>
|
|
338
338
|
</select>
|
|
339
339
|
|
|
340
340
|
<!-- Checkbox -->
|
|
@@ -361,11 +361,11 @@
|
|
|
361
361
|
class="custom-control-input"
|
|
362
362
|
:id="field.id + '-radio-' + optIdx"
|
|
363
363
|
:name="field.id"
|
|
364
|
-
:value="opt.value"
|
|
364
|
+
:value="(typeof opt === 'string') ? opt : opt.value"
|
|
365
365
|
v-model="formData[field.id]"
|
|
366
366
|
@change="validateField(field)"
|
|
367
367
|
>
|
|
368
|
-
<label class="custom-control-label" :for="field.id + '-radio-' + optIdx">{{opt.text}}</label>
|
|
368
|
+
<label class="custom-control-label" :for="field.id + '-radio-' + optIdx">{{ (typeof opt === 'string') ? opt : (opt.text || opt.label || opt.name || opt.value) }}</label>
|
|
369
369
|
</div>
|
|
370
370
|
</div>
|
|
371
371
|
|