starfish-form-custom 1.0.44 → 1.0.46

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.
Files changed (39) hide show
  1. package/.pnpm-debug.log +828 -828
  2. package/components.d.ts +0 -2
  3. package/dist/{formAction-48f1f081.mjs → formAction-b76664af.mjs} +44 -52
  4. package/dist/{index-e7b2d7c0.mjs → index-0aa74f91.mjs} +40 -93
  5. package/dist/{index-e8b18d70.mjs → index-7fc8db96.mjs} +17 -22
  6. package/dist/{index-c2fdc90f.mjs → index-d1c1ba4b.mjs} +55 -81
  7. package/dist/{main-c6aa3683.mjs → main-d99755be.mjs} +273 -518
  8. package/dist/{starfish-form-ac5dbff7.mjs → starfish-form-0baee1df.mjs} +13 -9
  9. package/dist/starfish-form.mjs +1 -1
  10. package/dist/style.css +23 -130
  11. package/dist/types/form/src/common/Loading.vue.d.ts +2 -2
  12. package/dist/types/form/src/main.d.ts +17 -10
  13. package/dist/types/form/src/starfish-form.vue.d.ts +17 -10
  14. package/dist/types/form/src/utils/fieldProps.d.ts +4 -0
  15. package/package.json +43 -52
  16. package/src/components/CheckBox/index.vue +2 -2
  17. package/src/components/Date/index.vue +2 -2
  18. package/src/components/DateTime/index.vue +2 -2
  19. package/src/components/InputNumber/index.vue +2 -2
  20. package/src/components/Radio/index.vue +9 -1
  21. package/src/components/RichText/index.vue +65 -180
  22. package/src/components/Rule/index.vue +2 -2
  23. package/src/components/Rule/rules.js +3 -3
  24. package/src/components/Selected/index.vue +2 -2
  25. package/src/components/Selecteds/index.vue +2 -2
  26. package/src/components/Switch/index.vue +1 -1
  27. package/src/components/Text/index.vue +2 -2
  28. package/src/components/TextArea/index.vue +2 -2
  29. package/src/starfish-form.vue +8 -3
  30. package/src/styles/formedit.scss +115 -115
  31. package/src/styles/keyvalueConfig.scss +56 -56
  32. package/src/utils/customHooks.ts +0 -1
  33. package/src/utils/fieldProps.ts +5 -1
  34. package/stats.html +2230 -2123
  35. package/dist/types/form/src/common/formAction.vue.d.ts +0 -85
  36. package/dist/types/form/src/components/RichText/MenuBar.vue.d.ts +0 -34
  37. package/dist/types/form/src/components/RichText/MenuItem.vue.d.ts +0 -42
  38. package/src/components/RichText/MenuBar.vue +0 -144
  39. package/src/components/RichText/MenuItem.vue +0 -98
@@ -3,7 +3,7 @@ import 'element-plus/es/components/base/style/css';
3
3
  import 'element-plus/es/components/form/style/css';
4
4
  import 'element-plus/es/components/form-item/style/css';
5
5
  import { defineComponent, getCurrentInstance, ref, onMounted, openBlock, createElementBlock, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, resolveDynamicComponent, createCommentVNode, toRaw } from 'vue';
6
- import { _ as _export_sfc } from './main-c6aa3683.mjs';
6
+ import { _ as _export_sfc } from './main-d99755be.mjs';
7
7
  import 'element-plus/es/components/icon/style/css';
8
8
  import 'element-plus/es/components/input/style/css';
9
9
  import 'element-plus/es/components/checkbox/style/css';
@@ -60,6 +60,10 @@ const _sfc_main = defineComponent({
60
60
  readonly: {
61
61
  type: Boolean,
62
62
  default: false
63
+ },
64
+ search: {
65
+ type: Boolean,
66
+ default: false
63
67
  }
64
68
  },
65
69
  setup(props, { emit }) {
@@ -107,14 +111,14 @@ const _sfc_main = defineComponent({
107
111
  function getRules(item2) {
108
112
  if (!item2.layout) {
109
113
  let rule = [];
110
- if (item2.data.required) {
114
+ if (item2.data.required && !props.search) {
111
115
  rule.push({
112
116
  required: true,
113
117
  message: "\u8BF7\u8F93\u5165" + item2.data.label,
114
118
  trigger: "blur"
115
119
  });
116
120
  }
117
- if (typeof item2.data.minLength === "number" && item2.data.minLength > 0) {
121
+ if (typeof item2.data.minLength === "number" && item2.data.minLength > 0 && !props.search) {
118
122
  rule.push({
119
123
  validator: (rule2, value, callback) => {
120
124
  if (typeof value === "string" && value.length < item2.data.minLength) {
@@ -167,7 +171,6 @@ const _sfc_main = defineComponent({
167
171
  }
168
172
  const handleControlChange = () => {
169
173
  const allFormLists = props.allFormList;
170
- console.log("---handleControlChange--", allFormLists, "props.allFormList", props.allFormList);
171
174
  allFormLists.forEach((item2) => {
172
175
  if (item2.data.showRule === "{}") {
173
176
  item2.show = true;
@@ -323,28 +326,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
323
326
  ref_for: true,
324
327
  ref: "controlObj",
325
328
  onChange: _ctx.handleControlChange
326
- }, _ctx.globalConfig, {
329
+ }, { ref_for: true }, _ctx.globalConfig, {
327
330
  readonly: _ctx.readonly,
331
+ search: _ctx.search,
328
332
  item: item2,
329
333
  data: _ctx.formResult || "{}",
330
334
  drag: false,
331
335
  size: "default"
332
- }), null, 16, ["onChange", "readonly", "item", "data"]))
336
+ }), null, 16, ["onChange", "readonly", "search", "item", "data"]))
333
337
  ]),
334
338
  _: 2
335
339
  }, 1032, ["prop"])) : item2.show ? (openBlock(), createBlock(resolveDynamicComponent(item2.ControlType), mergeProps({
336
- key: 1,
337
340
  ref_for: true,
338
341
  ref: "controlObj",
339
342
  onChange: _ctx.handleControlChange,
340
343
  key: item2.id
341
- }, _ctx.globalConfig, {
344
+ }, { ref_for: true }, _ctx.globalConfig, {
342
345
  readonly: _ctx.readonly,
346
+ search: _ctx.search,
343
347
  item: item2,
344
348
  data: _ctx.formResult || "{}",
345
349
  drag: false,
346
350
  size: "default"
347
- }), null, 16, ["onChange", "readonly", "item", "data"])) : createCommentVNode("", true)
351
+ }), null, 16, ["onChange", "readonly", "search", "item", "data"])) : createCommentVNode("", true)
348
352
  ], 64);
349
353
  }), 256))
350
354
  ]),
@@ -1,4 +1,4 @@
1
- export { D as Dynamicform, m as default } from './main-c6aa3683.mjs';
1
+ export { D as Dynamicform, m as default } from './main-d99755be.mjs';
2
2
  import 'vue';
3
3
  import 'element-plus/es';
4
4
  import 'element-plus/es/components/base/style/css';
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- @charset "UTF-8";.loading[data-v-2b901926] {
1
+ .loading[data-v-2b901926] {
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  min-height: 40px;
@@ -12,50 +12,7 @@
12
12
  .control > div[data-v-4ce4907e] {
13
13
  display: flex;
14
14
  align-items: center;
15
- }
16
- .menu-item[data-v-05298bcd] {
17
- display: flex;
18
- align-items: center;
19
- justify-content: center;
20
- width: 32px;
21
- height: 32px;
22
- background: white;
23
- border: 1px solid #ddd;
24
- border-radius: 4px;
25
- cursor: pointer;
26
- transition: all 0.2s ease;
27
- font-style: normal;
28
- }
29
- .menu-item[data-v-05298bcd]:hover {
30
- background-color: #f0f0f0;
31
- border-color: #999;
32
- }
33
- .menu-item.is-active[data-v-05298bcd] {
34
- background-color: #e0e0e0;
35
- border-color: #666;
36
- }
37
- .menu-icon[data-v-05298bcd] {
38
- font-size: 16px;
39
- color: #333;
40
- }
41
-
42
- .editor__header[data-v-714af93c] {
43
- display: flex;
44
- align-items: center;
45
- gap: 4px;
46
- padding: 8px 12px;
47
- border: 1px solid #DCDFE6;
48
- border-bottom: none;
49
- background-color: #f8f9fa;
50
- flex-wrap: wrap;
51
- }
52
- .divider[data-v-714af93c] {
53
- width: 1px;
54
- height: 20px;
55
- background-color: #DCDFE6;
56
- margin: 0 4px;
57
- }
58
- .starfish-editor .el-form-item__content,
15
+ }.starfish-editor .el-form-item__content,
59
16
  .starfish-form .el-form-item__content,
60
17
  .starfish-dynamicform .el-form-item__content {
61
18
  margin-left: 0 !important;
@@ -93,7 +50,7 @@
93
50
  .starfish-form .el-form-item__error,
94
51
  .starfish-dynamicform .el-form-item__error {
95
52
  top: 100%;
96
- left: 15px !important;
53
+ left: 120px !important;
97
54
  }
98
55
  .starfish-editor .el-form,
99
56
  .starfish-form .el-form,
@@ -467,96 +424,32 @@
467
424
  width: 100%;
468
425
  min-height: 60px;
469
426
  height: 100%;
470
- }
471
- .rich-text-editor[data-v-715a995e] {
427
+ }.rich-text-editor[data-v-244b11c8] {
472
428
  min-height: 200px;
429
+ position: relative;
430
+ z-index: 1;
473
431
  }
474
- [data-v-715a995e] .editor-content {
432
+ [data-v-244b11c8] .editor-content {
475
433
  min-height: 200px;
476
434
  }
477
- [data-v-715a995e] .ProseMirror {
478
- min-height: 180px;
479
- outline: none;
480
- padding: 12px;
481
- }
482
- [data-v-715a995e] .ProseMirror p.is-editor-empty:first-child::before {
483
- color: #adb5bd;
484
- content: attr(data-placeholder);
485
- float: left;
486
- height: 0;
487
- pointer-events: none;
488
- }
489
-
490
- /* 行内代码样式 */
491
- [data-v-715a995e] .ProseMirror .inline-code {
492
- background-color: #f3f4f6;
493
- color: #e53e3e;
494
- padding: 2px 6px;
495
- border-radius: 4px;
496
- font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
497
- font-size: 0.875em;
498
- border: 1px solid #e5e7eb;
499
- }
500
-
501
- /* 代码块样式 */
502
- [data-v-715a995e] .ProseMirror .code-block {
503
- background-color: #1f2937;
504
- color: #f9fafb;
505
- padding: 16px;
506
- border-radius: 8px;
507
- margin: 12px 0;
508
- font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
509
- font-size: 0.875em;
510
- line-height: 1.5;
435
+ [data-v-244b11c8] .editor-content .ql-toolbar {
436
+ z-index: 100;
437
+ background: white;
438
+ border: 1px solid #ccc;
439
+ border-top-left-radius: 4px;
440
+ border-top-right-radius: 4px;
511
441
  position: relative;
512
- border: 1px solid #374151;
513
- }
514
-
515
- /* 引用块样式 */
516
- [data-v-715a995e] .ProseMirror blockquote {
517
- border-left: 4px solid #3b82f6;
518
- background-color: #f8fafc;
519
- padding: 12px 16px;
520
- margin: 12px 0;
521
- border-radius: 0 8px 8px 0;
522
- font-style: italic;
523
- color: #4b5563;
524
- }
525
-
526
- /* 水平分割线样式 */
527
- [data-v-715a995e] .ProseMirror hr {
528
- border: none;
529
- border-top: 2px solid #e5e7eb;
530
- margin: 24px 0;
531
- }
532
-
533
- /* 列表样式 */
534
- [data-v-715a995e] .ProseMirror ul,[data-v-715a995e] .ProseMirror ol {
535
- padding-left: 24px;
536
- margin: 12px 0;
537
- }
538
- [data-v-715a995e] .ProseMirror ul {
539
- list-style: disc;
540
- }
541
- [data-v-715a995e] .ProseMirror ol {
542
- list-style: decimal;
543
- }
544
- [data-v-715a995e] .ProseMirror li {
545
- margin: 4px 0;
546
- }
547
-
548
- /* 标题样式 */
549
- [data-v-715a995e] .ProseMirror h1 {
550
- font-size: 1.875em;
551
- font-weight: bold;
552
- margin: 24px 0 16px 0;
553
- color: #111827;
554
442
  }
555
- [data-v-715a995e] .ProseMirror h2 {
556
- font-size: 1.5em;
557
- font-weight: bold;
558
- margin: 20px 0 12px 0;
559
- color: #111827;
443
+ [data-v-244b11c8] .editor-content .ql-container {
444
+ border: 1px solid #ccc;
445
+ border-top: none;
446
+ border-bottom-left-radius: 4px;
447
+ border-bottom-right-radius: 4px;
448
+ min-height: 200px;
449
+ z-index: 99;
450
+ }
451
+ [data-v-244b11c8] .shape .rich-text-editor {
452
+ pointer-events: auto !important;
560
453
  }.cm-gutters.cm-gutters-before {
561
454
  background: #133F63;
562
455
  }.el-collapse-item {
@@ -1,3 +1,3 @@
1
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
1
+ import type { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
3
  export default _default;
@@ -1,7 +1,5 @@
1
- import type { Ref } from '@vue/reactivity';
2
- import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
- import { App } from "vue";
4
- export declare const Dynamicform: DefineComponent<{
1
+ import type { DefineComponent, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, App } from 'vue';
2
+ export declare const Dynamicform: DefineComponent<ExtractPropTypes<{
5
3
  allFormList: {
6
4
  type: PropType<any>;
7
5
  default(): never[];
@@ -18,14 +16,18 @@ export declare const Dynamicform: DefineComponent<{
18
16
  type: BooleanConstructor;
19
17
  default: boolean;
20
18
  };
21
- }, {
19
+ search: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>, {
22
24
  rules: any;
23
- ruleForm: Ref<any>;
24
- controlObj: Ref<any>;
25
+ ruleForm: Ref<any, any>;
26
+ controlObj: Ref<any, any>;
25
27
  handleControlChange: () => void;
26
28
  reset: () => void;
27
29
  getValidate: () => Promise<unknown>;
28
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
29
31
  allFormList: {
30
32
  type: PropType<any>;
31
33
  default(): never[];
@@ -42,12 +44,17 @@ export declare const Dynamicform: DefineComponent<{
42
44
  type: BooleanConstructor;
43
45
  default: boolean;
44
46
  };
45
- }>>, {
47
+ search: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ }>> & Readonly<{}>, {
52
+ search: boolean;
46
53
  readonly: boolean;
47
54
  allFormList: any;
48
55
  formResult: Record<string, any>;
49
56
  globalConfig: Record<string, any>;
50
- }>;
57
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
51
58
  declare const _default: {
52
59
  install: (app: App<any>) => void;
53
60
  };
@@ -1,7 +1,5 @@
1
- import type { Ref } from '@vue/reactivity';
2
- import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
- import { PropType } from "vue";
4
- declare const _sfc_main: DefineComponent<{
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
5
3
  allFormList: {
6
4
  type: PropType<any>;
7
5
  default(): never[];
@@ -18,14 +16,18 @@ declare const _sfc_main: DefineComponent<{
18
16
  type: BooleanConstructor;
19
17
  default: boolean;
20
18
  };
21
- }, {
19
+ search: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>, {
22
24
  rules: any;
23
- ruleForm: Ref<any>;
24
- controlObj: Ref<any>;
25
+ ruleForm: Ref<any, any>;
26
+ controlObj: Ref<any, any>;
25
27
  handleControlChange: () => void;
26
28
  reset: () => void;
27
29
  getValidate: () => Promise<unknown>;
28
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
29
31
  allFormList: {
30
32
  type: PropType<any>;
31
33
  default(): never[];
@@ -42,10 +44,15 @@ declare const _sfc_main: DefineComponent<{
42
44
  type: BooleanConstructor;
43
45
  default: boolean;
44
46
  };
45
- }>>, {
47
+ search: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ }>> & Readonly<{}>, {
52
+ search: boolean;
46
53
  readonly: boolean;
47
54
  allFormList: any;
48
55
  formResult: Record<string, any>;
49
56
  globalConfig: Record<string, any>;
50
- }>;
57
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
51
58
  export default _sfc_main;
@@ -20,6 +20,10 @@ declare const _default: {
20
20
  type: BooleanConstructor;
21
21
  default: boolean;
22
22
  };
23
+ search: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
23
27
  labelalign: {
24
28
  type: StringConstructor;
25
29
  default: string;
package/package.json CHANGED
@@ -1,52 +1,43 @@
1
- {
2
- "name": "starfish-form-custom",
3
- "version": "1.0.44",
4
- "main": "dist/starfish-form.mjs",
5
- "style": "dist/style.css",
6
- "module": "dist/starfish-form.mjs",
7
- "types": "dist/types/starfish-form.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/starfish-form.mjs"
11
- },
12
- "./dist/style.css": {
13
- "import": "./dist/style.css"
14
- },
15
- "./*": "./*"
16
- },
17
- "scripts": {
18
- "build": "vite build",
19
- "prepublish": "npm version && npm run build"
20
- },
21
- "dependencies": {
22
- "@codemirror/lang-javascript": "6.0.2",
23
- "@element-plus/icons-vue": "^2.0.8",
24
- "@tiptap/extension-blockquote": "^3.10.7",
25
- "@tiptap/extension-code": "^3.10.7",
26
- "@tiptap/extension-code-block": "^3.13.0",
27
- "@tiptap/extension-code-block-lowlight": "^3.10.7",
28
- "@tiptap/extension-horizontal-rule": "^3.10.7",
29
- "@tiptap/extension-underline": "^3.10.7",
30
- "@tiptap/pm": "^3.10.7",
31
- "@tiptap/starter-kit": "^3.10.7",
32
- "@tiptap/vue-3": "^3.10.7",
33
- "codemirror": "6.0.1",
34
- "element-plus": "^2.2.12",
35
- "jsoneditor": "^9.9.0",
36
- "lowlight": "^3.3.0",
37
- "remixicon": "^4.7.0",
38
- "vue": "^3.2.25",
39
- "vue-codemirror": "6.1.1"
40
- },
41
- "devDependencies": {
42
- "@vitejs/plugin-vue": "^2.3.3",
43
- "rollup-plugin-visualizer": "^5.8.3",
44
- "sass": "^1.35.1",
45
- "typescript": "^4.5.4",
46
- "unplugin-auto-import": "^0.17.5",
47
- "unplugin-vue-components": "^0.26.0",
48
- "vite": "^4.5.2",
49
- "vite-plugin-dts": "^1.2.0",
50
- "vue-tsc": "^0.34.7"
51
- }
52
- }
1
+ {
2
+ "name": "starfish-form-custom",
3
+ "version": "1.0.46",
4
+ "main": "dist/starfish-form.mjs",
5
+ "style": "dist/style.css",
6
+ "module": "dist/starfish-form.mjs",
7
+ "types": "dist/types/starfish-form.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/starfish-form.mjs"
11
+ },
12
+ "./dist/style.css": {
13
+ "import": "./dist/style.css"
14
+ },
15
+ "./*": "./*"
16
+ },
17
+ "scripts": {
18
+ "build": "vite build",
19
+ "prepublish": "npm version && npm run build"
20
+ },
21
+ "dependencies": {
22
+ "@codemirror/lang-javascript": "6.0.2",
23
+ "@element-plus/icons-vue": "^2.0.8",
24
+ "@vueup/vue-quill": "^1.2.0",
25
+ "codemirror": "6.0.1",
26
+ "element-plus": "^2.2.12",
27
+ "jsoneditor": "^9.9.0",
28
+ "lowlight": "^3.3.0",
29
+ "vue": "^3.2.25",
30
+ "vue-codemirror": "6.1.1"
31
+ },
32
+ "devDependencies": {
33
+ "@vitejs/plugin-vue": "^2.3.3",
34
+ "rollup-plugin-visualizer": "^5.8.3",
35
+ "sass": "^1.35.1",
36
+ "typescript": "^4.5.4",
37
+ "unplugin-auto-import": "^0.17.5",
38
+ "unplugin-vue-components": "^0.26.0",
39
+ "vite": "^4.5.2",
40
+ "vite-plugin-dts": "^1.2.0",
41
+ "vue-tsc": "^0.34.7"
42
+ }
43
+ }
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="starfish-formitem" :class="{ formCover: drag, 'starfish-vertical': labelalign != 'top', [item.data.csslist?.join(' ')]: !!item.data.csslist}">
3
3
  <div class="label" :class="'label_' + labelalign" :style="{width: labelWidth + 'px'}">
4
- <span v-if="item.data.required && !readonly && item.data.state !== 'readonly'" class="item_require">*</span>
4
+ <span v-if="item.data.required && !readonly && item.data.state !== 'readonly' && !search" class="item_require">*</span>
5
5
  <label>{{ item.data.label }}{{suffix}}</label>
6
- <el-tooltip v-if="item.data.tip" class="item" effect="dark" :content="item.data.tip" placement="top">
6
+ <el-tooltip v-if="item.data.tip && !readonly && !search" class="item" effect="dark" :content="item.data.tip" placement="top">
7
7
  <span class="tip iconfontui icon-tishi"></span>
8
8
  </el-tooltip>
9
9
  </div>
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="starfish-formitem" :class="{ formCover: drag, 'starfish-vertical': labelalign != 'top', [item.data.csslist?.join(' ')]: !!item.data.csslist}">
3
3
  <div class="label" :class="'label_' + labelalign" :style="{width: labelWidth + 'px'}">
4
- <span v-if="item.data.required && !readonly && item.data.state !== 'readonly'" class="item_require">*</span>
4
+ <span v-if="item.data.required && !readonly && item.data.state !== 'readonly' && !search" class="item_require">*</span>
5
5
  <label>{{ item.data.label }}{{suffix}}</label>
6
- <el-tooltip v-if="item.data.tip" class="item" effect="dark" :content="item.data.tip" placement="top">
6
+ <el-tooltip v-if="item.data.tip && !readonly && !search" class="item" effect="dark" :content="item.data.tip" placement="top">
7
7
  <span class="tip iconfontui icon-tishi"></span>
8
8
  </el-tooltip>
9
9
  </div>
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="starfish-formitem" :class="{ formCover: drag, 'starfish-vertical': labelalign != 'top', [item.data.csslist?.join(' ')]: !!item.data.csslist}">
3
3
  <div class="label" :class="'label_' + labelalign" :style="{width: labelWidth + 'px'}">
4
- <span v-if="item.data.required && !readonly && item.data.state !== 'readonly'" class="item_require">*</span>
4
+ <span v-if="item.data.required && !readonly && item.data.state !== 'readonly' && !search" class="item_require">*</span>
5
5
  <label>{{ item.data.label }}{{suffix}}</label>
6
- <el-tooltip v-if="item.data.tip" class="item" effect="dark" :content="item.data.tip" placement="top">
6
+ <el-tooltip v-if="item.data.tip && !readonly && !search" class="item" effect="dark" :content="item.data.tip" placement="top">
7
7
  <span class="tip iconfontui icon-tishi"></span>
8
8
  </el-tooltip>
9
9
  </div>
@@ -12,10 +12,10 @@
12
12
  :class="'label_' + labelalign"
13
13
  :style="{ width: labelWidth + 'px' }"
14
14
  >
15
- <span v-if="item.data.required && !readonly && item.data.state !== 'readonly'" class="item_require">*</span>
15
+ <span v-if="item.data.required && !readonly && item.data.state !== 'readonly' && !search" class="item_require">*</span>
16
16
  <label>{{ item.data.label }}{{ suffix }}</label>
17
17
  <el-tooltip
18
- v-if="item.data.tip"
18
+ v-if="item.data.tip && !readonly && !search"
19
19
  class="item"
20
20
  effect="dark"
21
21
  :content="item.data.tip"
@@ -1,3 +1,11 @@
1
+ <!--
2
+ * @Author: chenwen chenwen@jiton.com
3
+ * @Date: 2025-07-25 15:26:40
4
+ * @LastEditors: chenwen chenwen@jiton.com
5
+ * @LastEditTime: 2025-12-24 16:07:50
6
+ * @FilePath: \vue-form-design\packages\form\src\components\Radio\index.vue
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ -->
1
9
  <template>
2
10
  <div
3
11
  class="starfish-formitem"
@@ -16,7 +24,7 @@
16
24
  <span v-if="item.data.required && !readonly && item.data.state !== 'readonly'" class="item_require">*</span>
17
25
  <label>{{ item.data.label }}{{ suffix }}</label>
18
26
  <el-tooltip
19
- v-if="item.data.tip"
27
+ v-if="item.data.tip && !readonly"
20
28
  class="item"
21
29
  effect="dark"
22
30
  :content="item.data.tip"