@otlab/form-generator 0.1.1 → 0.1.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/designer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Ve, b as qe, a as Ae, f as Te, c as dt, _ as Y, D as K, r as _t, e as pt, g as Ne, h as ft, i as vt, j as We, k as mt, l as gt, P as bt, u as ht, F as yt, m as kt, n as Ct, q as Re, o as Ee, p as wt, s as $t, t as Fe, v as St, w as Tt, x as xt, y as It } from "./field-default-BtCnB3aH.js";
1
+ import { d as Ve, b as qe, a as Ae, f as Te, c as dt, _ as Y, D as K, r as _t, e as pt, g as Ne, h as ft, i as vt, j as We, k as mt, l as gt, P as bt, u as ht, F as yt, m as kt, n as Ct, q as Re, o as Ee, p as wt, s as $t, t as Fe, v as St, w as Tt, x as xt, y as It } from "./field-default-BXJDGTUt.js";
2
2
  import { ref as V, computed as S, defineComponent as q, resolveComponent as o, openBlock as n, createBlock as D, withCtx as l, createElementVNode as y, createVNode as e, createTextVNode as x, createElementBlock as f, Fragment as E, renderList as H, toDisplayString as F, createCommentVNode as R, inject as G, markRaw as W, unref as M, resolveDynamicComponent as Ke, normalizeStyle as fe, normalizeClass as ke, pushScopeId as le, popScopeId as ae, watch as de, onBeforeUnmount as Ge, withModifiers as me, provide as Ut, onMounted as Ot, nextTick as Mt } from "vue";
3
3
  import { message as oe, Modal as Be } from "ant-design-vue";
4
4
  import { debounce as Dt } from "lodash";
@@ -902,7 +902,7 @@ function Ve(e, t) {
902
902
  function xe(e, t) {
903
903
  return u().get(s("phoneCode"), { params: { phoneNumber: e, formKey: t } });
904
904
  }
905
- const Ne = Symbol("formDesignReadOnly"), x = ["INPUT", "TEXTAREA", "RADIO", "CHECKBOX", "SELECT", "IMG_SELECT", "NUMBER"], N = ["RADIO", "CHECKBOX", "SELECT", "IMG_SELECT"];
905
+ const Ne = Symbol("formDesignReadOnly"), x = ["INPUT", "TEXTAREA", "RADIO", "CHECKBOX", "SELECT", "IMAGE_SELECT", "NUMBER"], N = ["RADIO", "CHECKBOX", "SELECT", "IMAGE_SELECT"];
906
906
  function Ue(e) {
907
907
  return !!e && N.includes(e);
908
908
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as Y, z as ge, A as Re, B as Le, g as Ne, C as De, n as qe, E as Ee, G as Ke, H as Ge, d as ue, I as We, J as He, K as Ye, q as ke, L as Te, M as Qe, p as Je, N as Xe, r as Ze, o as el, O as ll } from "./field-default-BtCnB3aH.js";
2
- import { D as Go, F as Wo, Q as Ho, a as Yo, R as Qo, b as Jo, c as Xo, m as Zo, S as en, T as ln, e as an, w as tn, U as on, t as nn, V as sn, f as rn, W as un, X as dn, Y as cn, Z as fn, $ as pn, v as mn, s as bn, x as vn, y as hn, u as _n } from "./field-default-BtCnB3aH.js";
1
+ import { _ as Y, z as ge, A as Re, B as Le, g as Ne, C as De, n as qe, E as Ee, G as Ke, H as Ge, d as ue, I as We, J as He, K as Ye, q as ke, L as Te, M as Qe, p as Je, N as Xe, r as Ze, o as el, O as ll } from "./field-default-BXJDGTUt.js";
2
+ import { D as Go, F as Wo, Q as Ho, a as Yo, R as Qo, b as Jo, c as Xo, m as Zo, S as en, T as ln, e as an, w as tn, U as on, t as nn, V as sn, f as rn, W as un, X as dn, Y as cn, Z as fn, $ as pn, v as mn, s as bn, x as vn, y as hn, u as _n } from "./field-default-BXJDGTUt.js";
3
3
  import { defineComponent as N, openBlock as p, createElementBlock as y, resolveComponent as w, createBlock as B, withCtx as $, createTextVNode as q, toDisplayString as T, createCommentVNode as R, createElementVNode as C, ref as O, computed as x, watch as te, createVNode as F, unref as Q, withModifiers as se, nextTick as $e, pushScopeId as me, popScopeId as be, Fragment as K, renderList as H, onBeforeUnmount as Ie, provide as al, inject as tl, onMounted as re, normalizeClass as ce, normalizeStyle as le, createSlots as Me, watchEffect as ol, withDirectives as Se, vShow as Ce, resolveDynamicComponent as nl, mergeProps as sl, reactive as Ve, toValue as ve } from "vue";
4
4
  import { EnvironmentOutlined as rl, DeleteOutlined as Be, PlusOutlined as Pe, ArrowUpOutlined as il, ArrowDownOutlined as ul } from "@ant-design/icons-vue";
5
5
  import { message as J, Upload as Oe } from "ant-design-vue";
@@ -6,10 +6,10 @@
6
6
  * - scoringType:1=唯一答案和分值(选择题);2=回答包含答案即得分;3=回答与答案完全相同(输入类)
7
7
  * - answer:选择题为选项 value 数组;输入类(单行/多行/数字)为字符串
8
8
  */
9
- /** 支持计分的题型(typeId,与上游 tduck 对齐) */
10
- export declare const EXAM_SUPPORTED_TYPE_IDS: readonly ["INPUT", "TEXTAREA", "RADIO", "CHECKBOX", "SELECT", "IMG_SELECT", "NUMBER"];
9
+ /** 支持计分的题型(typeId,与 item-contract 注册题型口径一致;图片选择题是 IMAGE_SELECT,曾误写为 IMG_SELECT) */
10
+ export declare const EXAM_SUPPORTED_TYPE_IDS: readonly ["INPUT", "TEXTAREA", "RADIO", "CHECKBOX", "SELECT", "IMAGE_SELECT", "NUMBER"];
11
11
  /** 选择题组(计分方式恒为 1 唯一答案;answer 为选项 value 数组) */
12
- export declare const EXAM_SELECT_TYPE_IDS: readonly ["RADIO", "CHECKBOX", "SELECT", "IMG_SELECT"];
12
+ export declare const EXAM_SELECT_TYPE_IDS: readonly ["RADIO", "CHECKBOX", "SELECT", "IMAGE_SELECT"];
13
13
  /** 输入类组(计分方式 2 包含 / 3 完全相同;answer 为字符串) */
14
14
  export declare const EXAM_INPUT_TYPE_IDS: readonly ["INPUT", "TEXTAREA", "NUMBER"];
15
15
  export interface ExamConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otlab/form-generator",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "otlab 问卷表单引擎:设计器 + 渲染层(Vue 3 + ant-design-vue)",
5
5
  "type": "module",
6
6
  "license": "MIT",