cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
51 lines (50 loc) • 1.1 kB
JavaScript
import { defineComponent, toRefs, h } from "vue";
import "./index.vue_vue_type_style_index_0_scoped_true_lang.mjs";
import _export_sfc from "../../_virtual/plugin-vue_export-helper.mjs";
const _sfc_main = defineComponent({
name: "CoLabelStd",
props: {
value: {
type: String,
required: true
},
color: {
type: String,
default: "#333"
},
fontSize: {
type: [Number, String],
default: 16
},
fontWeight: {
type: Boolean,
default: false
},
textAlign: {
type: String,
default: "center"
}
},
setup(props) {
return {
...toRefs(props)
};
},
render() {
return h(
"span",
{
class: "co-label-std",
style: {
color: this.color,
"font-size": +this.fontSize + "px",
"font-weight": this.fontWeight ? "bold" : "unset",
"text-align": this.textAlign
}
},
[`${this.value}`]
);
}
});
var Label = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-84311cfe"]]);
export { Label as default };