68 lines
1.9 KiB
Vue
68 lines
1.9 KiB
Vue
<script>
|
|
/** 添加磁盘的展示入口;只发出 add 事件,磁盘上限、默认容量和价格由父级配置组件决定。 */
|
|
import "~/assets/styles/ConfigDiskAdd.C92e9ZuF.css";
|
|
import { toDisplayString } from "vue";
|
|
import { createCommentVNode } from "vue";
|
|
import { createElementBlock } from "vue";
|
|
import { createElementVNode } from "vue";
|
|
import { defineComponent } from "vue";
|
|
import { openBlock } from "vue";
|
|
import { t as _plugin_vue_export_helper_t } from "~/lib/_plugin-vue_export-helper.js";
|
|
var s = [`disabled`],
|
|
c = {
|
|
key: 0,
|
|
},
|
|
l = Object.assign(
|
|
_plugin_vue_export_helper_t(
|
|
defineComponent({
|
|
__name: `ConfigDiskAdd`,
|
|
props: {
|
|
disabled: {
|
|
type: Boolean,
|
|
},
|
|
hint: {},
|
|
},
|
|
emits: [`add`],
|
|
setup(i) {
|
|
return (o, l) => (
|
|
openBlock(),
|
|
createElementBlock(
|
|
`button`,
|
|
{
|
|
class: `storage-add`,
|
|
type: `button`,
|
|
disabled: i.disabled,
|
|
onClick: (l[0] ||= (e) => o.$emit(`add`)),
|
|
},
|
|
[
|
|
(l[1] ||= createElementVNode(
|
|
`i`,
|
|
{
|
|
class: `pi pi-plus`,
|
|
"aria-hidden": `true`,
|
|
},
|
|
null,
|
|
-1,
|
|
)),
|
|
(l[2] ||= createElementVNode(`span`, null, `添加数据盘`, -1)),
|
|
i.hint
|
|
? (openBlock(),
|
|
createElementBlock(`small`, c, toDisplayString(i.hint), 1))
|
|
: createCommentVNode(``, !0),
|
|
],
|
|
8,
|
|
s,
|
|
)
|
|
);
|
|
},
|
|
}),
|
|
[[`__scopeId`, `data-v-68361f8e`]],
|
|
),
|
|
{
|
|
__name: `ConfigDiskAdd`,
|
|
},
|
|
);
|
|
export {};
|
|
export default l;
|
|
</script>
|