PolicyValueSelect
components/policy/ValueSelect.vue
A value set at this level of an enforcement cascade: compact grape-bordered select (UxSimpleSelect) with a "Config.." link and an optional ✕ delete button. Adding another value is the parent's concern — compose a ⊕ button alongside.
Scenarios
components/policy/ValueSelect.vue
Usage
<PolicyValueSelect
value = "—"
:options = "—"
:deletable = "false"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | String | — | Currently selected option (required) |
| options | Array | — | Option strings for the select (required) |
| deletable | Boolean | false | Show the ✕ button that emits `delete` |
Events
| Event | Description |
|---|---|
| update:value | When a different option is selected |
| delete | When the ✕ is clicked (only rendered with `deletable`) — clear this level's value, falling back to the inherited one |