@deskhero/dh_ui 1.36.0 → 1.36.2
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/dist/dh_ui.es.js +20 -5
- package/dist/dh_ui.umd.js +1 -1
- package/dist/src/components/ExpansionPanel.vue.d.ts +10 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dh_ui.es.js
CHANGED
|
@@ -24167,12 +24167,24 @@ const _sfc_main$c = defineComponent({
|
|
|
24167
24167
|
title: {
|
|
24168
24168
|
type: String,
|
|
24169
24169
|
default: "Advanced"
|
|
24170
|
+
},
|
|
24171
|
+
isAdvancedSettingsOpen: {
|
|
24172
|
+
type: Boolean,
|
|
24173
|
+
default: false
|
|
24170
24174
|
}
|
|
24171
24175
|
},
|
|
24172
24176
|
data() {
|
|
24173
24177
|
return {
|
|
24174
|
-
|
|
24178
|
+
isAdvancedSettingsCurrentlyOpen: false
|
|
24175
24179
|
};
|
|
24180
|
+
},
|
|
24181
|
+
watch: {
|
|
24182
|
+
isAdvancedSettingsOpen: function(newVal) {
|
|
24183
|
+
this.isAdvancedSettingsCurrentlyOpen = newVal;
|
|
24184
|
+
}
|
|
24185
|
+
},
|
|
24186
|
+
mounted() {
|
|
24187
|
+
this.isAdvancedSettingsCurrentlyOpen = this.isAdvancedSettingsOpen;
|
|
24176
24188
|
}
|
|
24177
24189
|
});
|
|
24178
24190
|
const _hoisted_1$c = { class: "dh-body-1-medium" };
|
|
@@ -24181,18 +24193,21 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24181
24193
|
const _component_dh_icon = resolveComponent("dh-icon");
|
|
24182
24194
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24183
24195
|
createElementVNode("div", {
|
|
24184
|
-
class: normalizeClass(["advanced-panel-header clickable", {
|
|
24196
|
+
class: normalizeClass(["advanced-panel-header clickable", {
|
|
24197
|
+
opened: _ctx.isAdvancedSettingsCurrentlyOpen,
|
|
24198
|
+
closed: !_ctx.isAdvancedSettingsCurrentlyOpen
|
|
24199
|
+
}]),
|
|
24185
24200
|
"data-e2e": "expansion-panel-button",
|
|
24186
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
24201
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.isAdvancedSettingsCurrentlyOpen = !_ctx.isAdvancedSettingsCurrentlyOpen)
|
|
24187
24202
|
}, [
|
|
24188
24203
|
createElementVNode("h4", _hoisted_1$c, toDisplayString(_ctx.title), 1),
|
|
24189
24204
|
createVNode(_component_dh_icon, {
|
|
24190
24205
|
class: "icon",
|
|
24191
|
-
"icon-name": _ctx.
|
|
24206
|
+
"icon-name": _ctx.isAdvancedSettingsCurrentlyOpen ? "arrow-up" : "arrow-down",
|
|
24192
24207
|
size: 24
|
|
24193
24208
|
}, null, 8, ["icon-name"])
|
|
24194
24209
|
], 2),
|
|
24195
|
-
_ctx.
|
|
24210
|
+
_ctx.isAdvancedSettingsCurrentlyOpen ? renderSlot(_ctx.$slots, "content", { key: 0 }, () => [
|
|
24196
24211
|
_hoisted_2$c
|
|
24197
24212
|
]) : createCommentVNode("", true)
|
|
24198
24213
|
], 64);
|