UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

145 lines (144 loc) 3.03 kB
import { resolveAppearance as n, createPropsResolver as s } from "../../components/dynamic-resolver/index.esm.js"; import a, { radioButtonProps as p } from "../../components/radio-button/index.esm.js"; import { defineComponent as d, createVNode as c, Fragment as l } from "vue"; import { withInstall as u } from "../../components/common/index.esm.js"; const f = { /** * 单选组枚举数组 */ enumData: { type: Array, default: [{ text: "1", active: !0 }] }, /** * 后缀 */ suffixValue: { type: String, default: "" }, /** * 返回值 */ onSelectedValueChanged: { type: Function, default: () => { } } }, o = /* @__PURE__ */ d({ name: "FRadioButtonDesign", props: f, emits: [""], setup(e, t) { return () => c(l, null, null); } }), y = /* @__PURE__ */ new Map([ ["appearance", n] ]); function g(e, t, i) { return t; } const m = "https://json-schema.org/draft/2020-12/schema", b = "https://farris-design.gitee.io/radio-button.schema.json", h = "radio-button", v = "A Farris Component", B = "object", R = { id: { description: "The unique identifier for radio-button", type: "string" }, type: { description: "The type string of radio-button", type: "string", default: "radio-button" }, appearance: { description: "", type: "object", properties: { class: { type: "string" }, style: { type: "string" } }, default: {} }, binding: { description: "", type: "object", default: {} }, disable: { type: "string", default: !1 }, editable: { description: "", type: "boolean", default: !0 }, placeholder: { description: "", type: "string", default: "" }, readonly: { description: "", type: "boolean", default: !1 }, require: { description: "", type: "boolean", default: !1 }, tabindex: { description: "", type: "number", default: -1 }, visible: { description: "", type: "boolean", default: !0 } }, $ = [ "id", "type" ], j = { $schema: m, $id: b, title: h, description: v, type: B, properties: R, required: $ }, x = "radio-button", F = "A Farris Component", C = "object", M = { basic: { description: "Basic Infomation", title: "基本信息", properties: { id: { description: "组件标识", title: "标识", type: "string", readonly: !0 }, type: { description: "组件类型", title: "控件类型", type: "select", editor: { type: "waiting for modification", enum: [] } } } } }, q = { title: x, description: F, type: C, categories: M }, r = s(p, j, y, g, q); o.register = (e, t, i, A) => { e["radio-button"] = a, t["radio-button"] = r; }; o.registerDesigner = (e, t, i) => { e["radio-button"] = o, t["radio-button"] = r; }; const V = u(o); export { o as FRadioButtonDesign, V as default, r as propsResolver };