@opendesign-plus-test/components 0.0.1-rc.307 → 0.0.1-rc.309

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 (98) hide show
  1. package/dist/components/article/OArticle.vue.d.ts +3 -0
  2. package/dist/components/article/components/DocTitle.vue.d.ts +2 -0
  3. package/dist/components/article/index.d.ts +6 -0
  4. package/dist/components/article/types.d.ts +1 -0
  5. package/dist/components/article-anchor/components/ArticleAnchorMobile.vue.d.ts +156 -1
  6. package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
  7. package/dist/components/community-updates/index.d.ts +178 -1
  8. package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -1
  9. package/dist/components/doc-layout/index.d.ts +15 -3
  10. package/dist/components/footer/OFooter.vue.d.ts +5 -1
  11. package/dist/components/footer/components/FooterList.vue.d.ts +5 -1
  12. package/dist/components/footer/components/FooterSimple.vue.d.ts +5 -1
  13. package/dist/components/footer/index.d.ts +13 -3
  14. package/dist/components/footer/types.d.ts +3 -1
  15. package/dist/components/html-viewer/utils.d.ts +1 -8
  16. package/dist/components.cjs.js +4 -4
  17. package/dist/components.css +1 -1
  18. package/dist/components.es.js +2049 -1915
  19. package/dist/components.umd.min.js +8 -0
  20. package/dist/treeshaking/assets/styles/element-plus.css +1 -0
  21. package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_0_lang.css +1 -0
  22. package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_1_lang.css +1 -0
  23. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
  24. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
  25. package/dist/treeshaking/components/article/OArticle.mjs +2 -2
  26. package/dist/treeshaking/components/article/OArticle.vue.d.ts +3 -0
  27. package/dist/treeshaking/components/article/OArticle.vue_vue_type_script_setup_true_lang.mjs +4 -1
  28. package/dist/treeshaking/components/article/{OArticle.vue_vue_type_style_index_0_scoped_f94c0e57_lang.css → OArticle.vue_vue_type_style_index_0_scoped_5f5f164f_lang.css} +11 -11
  29. package/dist/treeshaking/components/article/OArticleList.vue_vue_type_script_setup_true_lang.mjs +12 -4
  30. package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css +7 -7
  31. package/dist/treeshaking/components/article/components/DocTitle.mjs +2 -2
  32. package/dist/treeshaking/components/article/components/DocTitle.vue.d.ts +2 -0
  33. package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +48 -28
  34. package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_d7f11be9_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_f78bcf2d_lang.css} +94 -62
  35. package/dist/treeshaking/components/article/index.d.ts +6 -0
  36. package/dist/treeshaking/components/article/types.d.ts +1 -0
  37. package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
  38. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +4 -2
  39. package/dist/treeshaking/components/article-anchor/{OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css → OArticleAnchor.vue_vue_type_style_index_0_scoped_4f781be4_lang.css} +9 -9
  40. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
  41. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue.d.ts +156 -1
  42. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +73 -13
  43. package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_48812513_lang.css} +13 -10
  44. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
  45. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +1 -1
  46. package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_3618aaf9_lang.css} +16 -12
  47. package/dist/treeshaking/components/brand/OBrandFile.mjs +2 -2
  48. package/dist/treeshaking/components/brand/{OBrandFile.vue_vue_type_style_index_0_scoped_9919f662_lang.css → OBrandFile.vue_vue_type_style_index_0_scoped_8c067acb_lang.css} +30 -15
  49. package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +2 -2
  50. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
  51. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +9 -2
  52. package/dist/treeshaking/components/community-updates/{OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css → OCommunityUpdates.vue_vue_type_style_index_0_scoped_cdd7bf86_lang.css} +43 -29
  53. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +6 -6
  54. package/dist/treeshaking/components/community-updates/index.d.ts +178 -1
  55. package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
  56. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -1
  57. package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +14 -2
  58. package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_a143db47_lang.css} +69 -50
  59. package/dist/treeshaking/components/doc-layout/index.d.ts +15 -3
  60. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_0_lang.css +1 -0
  61. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_1_scoped_5fa9f6f1_lang.css +1 -0
  62. package/dist/treeshaking/components/footer/OFooter.mjs +2 -2
  63. package/dist/treeshaking/components/footer/OFooter.vue.d.ts +5 -1
  64. package/dist/treeshaking/components/footer/OFooter.vue_vue_type_script_setup_true_lang.mjs +9 -3
  65. package/dist/treeshaking/components/footer/{OFooter.vue_vue_type_style_index_0_scoped_41010b1f_lang.css → OFooter.vue_vue_type_style_index_0_scoped_f0f4e884_lang.css} +13 -13
  66. package/dist/treeshaking/components/footer/components/FooterList.mjs +2 -2
  67. package/dist/treeshaking/components/footer/components/FooterList.vue.d.ts +5 -1
  68. package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +45 -25
  69. package/dist/treeshaking/components/footer/components/{FooterList.vue_vue_type_style_index_0_scoped_0ed4bc5f_lang.css → FooterList.vue_vue_type_style_index_0_scoped_6946816d_lang.css} +110 -106
  70. package/dist/treeshaking/components/footer/components/FooterSimple.mjs +2 -2
  71. package/dist/treeshaking/components/footer/components/FooterSimple.vue.d.ts +5 -1
  72. package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +28 -8
  73. package/dist/treeshaking/components/footer/components/{FooterSimple.vue_vue_type_style_index_0_scoped_42242446_lang.css → FooterSimple.vue_vue_type_style_index_0_scoped_1dd6e901_lang.css} +29 -25
  74. package/dist/treeshaking/components/footer/index.d.ts +13 -3
  75. package/dist/treeshaking/components/footer/types.d.ts +3 -1
  76. package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +2 -2
  77. package/dist/treeshaking/components/html-viewer/{OHtmlViewer.vue_vue_type_style_index_0_scoped_d580315c_lang.css → OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css} +68 -79
  78. package/dist/treeshaking/components/html-viewer/utils.d.ts +1 -8
  79. package/dist/treeshaking/components/html-viewer/utils.mjs +8 -15
  80. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue_vue_type_style_index_0_lang.css +1 -0
  81. package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_0_lang.css +1 -0
  82. package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_1_lang.css +1 -0
  83. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
  84. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
  85. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_0_lang.css +1 -0
  86. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_1_lang.css +1 -0
  87. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_0_lang.css +1 -0
  88. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_1_lang.css +1 -0
  89. package/dist/treeshaking/components/search-result/OSearchResult.mjs +2 -2
  90. package/dist/treeshaking/components/search-result/{OSearchResult.vue_vue_type_style_index_0_scoped_f993da8c_lang.css → OSearchResult.vue_vue_type_style_index_0_scoped_da5b23ad_lang.css} +33 -30
  91. package/dist/treeshaking/components/section/OSection.mjs +2 -2
  92. package/dist/treeshaking/components/section/OSection.vue_vue_type_script_setup_true_lang.mjs +9 -9
  93. package/dist/treeshaking/components/section/OSection.vue_vue_type_style_index_0_scoped_885285f2_lang.css +133 -0
  94. package/dist/treeshaking/components/sig/OSigList.vue_vue_type_style_index_0_lang.css +1 -0
  95. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_0_scoped_7067a565_lang.css +1 -0
  96. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_1_lang.css +1 -0
  97. package/package.json +4 -2
  98. package/dist/treeshaking/components/section/OSection.vue_vue_type_style_index_0_scoped_dae37748_lang.css +0 -173
@@ -1,4 +1,4 @@
1
- import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref } from "vue";
1
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, withKeys, withModifiers } from "vue";
2
2
  import { ODivider } from "@opensig/opendesign";
3
3
  import { useScreen } from "@opendesign-plus/composables";
4
4
  // src/components/footer/components/FooterSimple.vue?vue&type=script&setup=true&lang.ts
@@ -7,8 +7,13 @@ var _hoisted_2 = { class: "copyright-text" };
7
7
  var _hoisted_3 = ["href"];
8
8
  var _hoisted_4 = { class: "filing" };
9
9
  var _hoisted_5 = ["src"];
10
- var _hoisted_6 = { class: "beian-info" };
11
- var _hoisted_7 = ["href", "target"];
10
+ var _hoisted_6 = ["href", "target"];
11
+ var _hoisted_7 = {
12
+ key: 1,
13
+ class: "beian-info"
14
+ };
15
+ var _hoisted_8 = ["onClick", "onKeydown"];
16
+ var _hoisted_9 = ["href", "target"];
12
17
  var FooterSimple_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
13
18
  __name: "FooterSimple",
14
19
  props: {
@@ -21,7 +26,9 @@ var FooterSimple_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
21
26
  qrcode: {},
22
27
  footerBgImg: {}
23
28
  },
24
- setup(__props) {
29
+ emits: ["action"],
30
+ setup(__props, { emit: __emit }) {
31
+ const emit = __emit;
25
32
  const { isPhone } = useScreen();
26
33
  const footerContentRef = ref();
27
34
  const footerLeftRef = ref();
@@ -80,18 +87,31 @@ var FooterSimple_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
80
87
  src: __props.footerOption.policeIcon,
81
88
  class: "filing-img",
82
89
  alt: ""
83
- }, null, 8, _hoisted_5), createElementVNode("p", _hoisted_6, toDisplayString(__props.footerOption.beianInfo2), 1)])
90
+ }, null, 8, _hoisted_5), __props.footerOption.beianLink2 ? (openBlock(), createElementBlock("a", {
91
+ key: 0,
92
+ href: __props.footerOption.beianLink2,
93
+ target: linkTarget(__props.footerOption.beianLink2),
94
+ class: "beian-info"
95
+ }, toDisplayString(__props.footerOption.beianInfo2), 9, _hoisted_6)) : (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(__props.footerOption.beianInfo2), 1))])
84
96
  ], 512)) : createCommentVNode("", true)], true) : createCommentVNode("", true), _ctx.$slots.right || __props.footerOption ? renderSlot(_ctx.$slots, "right", { key: 1 }, () => [__props.footerOption ? (openBlock(), createElementBlock("div", {
85
97
  key: 0,
86
98
  ref_key: "footerRightRef",
87
99
  ref: footerRightRef,
88
100
  class: "footer-right"
89
101
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.footerOption.children, (link, index) => {
90
- return openBlock(), createElementBlock(Fragment, { key: link.href }, [createElementVNode("a", {
102
+ return openBlock(), createElementBlock(Fragment, { key: link.href ?? link.action ?? link.title }, [link.action ? (openBlock(), createElementBlock("a", {
103
+ key: 0,
104
+ role: "button",
105
+ class: "action-link",
106
+ tabindex: "0",
107
+ onClick: ($event) => emit("action", link.action),
108
+ onKeydown: withKeys(withModifiers(($event) => emit("action", link.action), ["prevent"]), ["enter"])
109
+ }, toDisplayString(link.title), 41, _hoisted_8)) : (openBlock(), createElementBlock("a", {
110
+ key: 1,
91
111
  href: link.href,
92
112
  target: linkTarget(link.href, link?.target)
93
- }, toDisplayString(link.title), 9, _hoisted_7), index !== __props.footerOption.children.length - 1 ? (openBlock(), createBlock(unref(ODivider), {
94
- key: 0,
113
+ }, toDisplayString(link.title), 9, _hoisted_9)), index !== __props.footerOption.children.length - 1 ? (openBlock(), createBlock(unref(ODivider), {
114
+ key: 2,
95
115
  direction: "v"
96
116
  })) : createCommentVNode("", true)], 64);
97
117
  }), 128))], 512)) : createCommentVNode("", true)], true) : createCommentVNode("", true)], 2);
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-42242446] {
1
+ .hover-icon-rotate .o-icon[data-v-1dd6e901] {
2
2
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
3
  }
4
4
  @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon[data-v-42242446] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-1dd6e901] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- a[data-v-42242446] {
9
+ a[data-v-1dd6e901] {
10
10
  color: var(--o-color-info2);
11
11
  text-decoration: none;
12
12
  white-space: nowrap;
@@ -14,43 +14,47 @@ a[data-v-42242446] {
14
14
  line-height: 22px;
15
15
  }
16
16
  @media (min-width: 1201px) and (max-width: 1680px) {
17
- a[data-v-42242446] {
17
+ a[data-v-1dd6e901] {
18
18
  font-size: 14px;
19
19
  line-height: 18px;
20
20
  }
21
21
  }
22
22
  @media (min-width: 841px) and (max-width: 1200px) {
23
- a[data-v-42242446] {
23
+ a[data-v-1dd6e901] {
24
24
  font-size: 12px;
25
25
  line-height: 18px;
26
26
  }
27
27
  }
28
28
  @media (min-width: 601px) and (max-width: 840px) {
29
- a[data-v-42242446] {
29
+ a[data-v-1dd6e901] {
30
30
  font-size: 12px;
31
31
  line-height: 18px;
32
32
  }
33
33
  }
34
34
  @media (max-width: 600px) {
35
- a[data-v-42242446] {
35
+ a[data-v-1dd6e901] {
36
36
  font-size: 12px;
37
37
  line-height: 18px;
38
38
  }
39
39
  }
40
40
  @media (hover: hover) {
41
- a[data-v-42242446]:hover {
41
+ a[data-v-1dd6e901]:hover {
42
42
  color: var(--o-color-info1);
43
43
  }
44
44
  }
45
- a[data-v-42242446]:active {
45
+ a[data-v-1dd6e901]:active {
46
46
  color: var(--o-color-info1);
47
47
  }
48
- .footer-content[data-v-42242446] {
48
+ .action-link[data-v-1dd6e901] {
49
+ cursor: pointer;
50
+ outline-offset: 2px;
51
+ }
52
+ .footer-content[data-v-1dd6e901] {
49
53
  display: flex;
50
54
  align-items: center;
51
55
  justify-content: space-between;
52
56
  }
53
- .footer-left[data-v-42242446] {
57
+ .footer-left[data-v-1dd6e901] {
54
58
  display: flex;
55
59
  align-items: center;
56
60
  flex-wrap: nowrap; /* 内部不换行:放不下时整块切堆叠 */
@@ -60,65 +64,65 @@ a[data-v-42242446]:active {
60
64
  line-height: 22px;
61
65
  }
62
66
  @media (min-width: 1201px) and (max-width: 1680px) {
63
- .footer-left[data-v-42242446] {
67
+ .footer-left[data-v-1dd6e901] {
64
68
  font-size: 14px;
65
69
  line-height: 18px;
66
70
  }
67
71
  }
68
72
  @media (min-width: 841px) and (max-width: 1200px) {
69
- .footer-left[data-v-42242446] {
73
+ .footer-left[data-v-1dd6e901] {
70
74
  font-size: 12px;
71
75
  line-height: 18px;
72
76
  }
73
77
  }
74
78
  @media (min-width: 601px) and (max-width: 840px) {
75
- .footer-left[data-v-42242446] {
79
+ .footer-left[data-v-1dd6e901] {
76
80
  font-size: 12px;
77
81
  line-height: 18px;
78
82
  }
79
83
  }
80
84
  @media (max-width: 600px) {
81
- .footer-left[data-v-42242446] {
85
+ .footer-left[data-v-1dd6e901] {
82
86
  font-size: 12px;
83
87
  line-height: 18px;
84
88
  }
85
89
  }
86
- .footer-left .copyright-left[data-v-42242446] {
90
+ .footer-left .copyright-left[data-v-1dd6e901] {
87
91
  white-space: nowrap; /* 长版权文本不折行,保证溢出可被检测 */
88
92
  }
89
- .footer-left .copyright-left[data-v-42242446],
90
- .footer-left .filing[data-v-42242446] {
93
+ .footer-left .copyright-left[data-v-1dd6e901],
94
+ .footer-left .filing[data-v-1dd6e901] {
91
95
  display: flex;
92
96
  flex-wrap: nowrap;
93
97
  justify-content: center;
94
98
  }
95
- .footer-left .filing-img[data-v-42242446] {
99
+ .footer-left .filing-img[data-v-1dd6e901] {
96
100
  height: 18px;
97
101
  }
98
- .footer-left .beian-info[data-v-42242446] {
102
+ .footer-left .beian-info[data-v-1dd6e901] {
99
103
  margin-left: 4px;
100
104
  color: var(--o-color-info3);
101
105
  }
102
- .footer-right[data-v-42242446] {
106
+ .footer-right[data-v-1dd6e901] {
103
107
  display: flex;
104
108
  align-items: center;
105
109
  justify-content: center;
106
110
  flex-shrink: 0; /* 不压缩,scrollWidth 即自然行宽 */
107
111
  }
108
- .footer-right .o-divider[data-v-42242446] {
112
+ .footer-right .o-divider[data-v-1dd6e901] {
109
113
  height: 12px;
110
114
  --o-divider-label-gap: 0 8px;
111
115
  --o-divider-bd-color: var(--o-color-control1);
112
116
  }
113
- .footer-content.is-stacked[data-v-42242446] {
117
+ .footer-content.is-stacked[data-v-1dd6e901] {
114
118
  flex-direction: column-reverse;
115
119
  justify-content: center;
116
120
  row-gap: 8px;
117
121
  }
118
- .footer-content.is-stacked .footer-left[data-v-42242446] {
122
+ .footer-content.is-stacked .footer-left[data-v-1dd6e901] {
119
123
  flex-direction: column;
120
124
  align-items: center;
121
125
  }
122
- .footer-content.is-stacked .footer-left .filing[data-v-42242446] {
126
+ .footer-content.is-stacked .footer-left .filing[data-v-1dd6e901] {
123
127
  margin-top: 8px;
124
128
  }
@@ -1,6 +1,10 @@
1
1
  import { App } from 'vue';
2
2
  declare const OFooter: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').FooterT> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').FooterT> & Readonly<{
4
+ onAction?: ((action: string) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ action: (action: string) => any;
7
+ }, import('vue').PublicProps, {
4
8
  simple: boolean;
5
9
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
6
10
  P: {};
@@ -9,13 +13,19 @@ declare const OFooter: {
9
13
  C: {};
10
14
  M: {};
11
15
  Defaults: {};
12
- }, Readonly<import('./types').FooterT> & Readonly<{}>, {}, {}, {}, {}, {
16
+ }, Readonly<import('./types').FooterT> & Readonly<{
17
+ onAction?: ((action: string) => any) | undefined;
18
+ }>, {}, {}, {}, {}, {
13
19
  simple: boolean;
14
20
  }>;
15
21
  __isFragment?: never;
16
22
  __isTeleport?: never;
17
23
  __isSuspense?: never;
18
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').FooterT> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
24
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').FooterT> & Readonly<{
25
+ onAction?: ((action: string) => any) | undefined;
26
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ action: (action: string) => any;
28
+ }, string, {
19
29
  simple: boolean;
20
30
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
21
31
  $slots: {
@@ -6,8 +6,9 @@ export interface InfoT {
6
6
  }
7
7
  export interface ChildrenT {
8
8
  title: string;
9
- href: string;
9
+ href?: string;
10
10
  target?: string;
11
+ action?: string;
11
12
  }
12
13
  export interface QuickNavT {
13
14
  title: string;
@@ -30,6 +31,7 @@ export interface FooterOptionT {
30
31
  beianInfo1: string;
31
32
  beianInfo2: string;
32
33
  beianLink: string;
34
+ beianLink2?: string;
33
35
  policeIcon: string;
34
36
  }
35
37
  export interface QrcodeT {
@@ -1,7 +1,7 @@
1
1
  import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import OHtmlViewer_vue_vue_type_script_setup_true_lang_default from "./OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs";
3
- import './OHtmlViewer.vue_vue_type_style_index_0_scoped_d580315c_lang.css';
3
+ import './OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css';
4
4
  import './OHtmlViewer.vue_vue_type_style_index_1_lang.css';
5
5
  // src/components/html-viewer/OHtmlViewer.vue
6
- var OHtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OHtmlViewer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d580315c"]]);
6
+ var OHtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OHtmlViewer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-36fc9311"]]);
7
7
  export { OHtmlViewer_default as default };
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-d580315c] {
1
+ .hover-icon-rotate .o-icon[data-v-36fc9311] {
2
2
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
3
  }
4
4
  @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon[data-v-d580315c] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-36fc9311] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-html-viewer[data-v-d580315c] {
9
+ .o-html-viewer[data-v-36fc9311] {
10
10
  position: relative;
11
11
  width: 100%;
12
12
  --o-gap-1: 4px;
@@ -21,7 +21,7 @@
21
21
  --o-gap-10: 72px;
22
22
  }
23
23
  @media (max-width: 1680px) {
24
- .o-html-viewer[data-v-d580315c] {
24
+ .o-html-viewer[data-v-36fc9311] {
25
25
  --o-gap-1: 4px;
26
26
  --o-gap-2: 8px;
27
27
  --o-gap-3: 8px;
@@ -35,7 +35,7 @@
35
35
  }
36
36
  }
37
37
  @media (max-width: 1200px) {
38
- .o-html-viewer[data-v-d580315c] {
38
+ .o-html-viewer[data-v-36fc9311] {
39
39
  --o-gap-1: 4px;
40
40
  --o-gap-2: 8px;
41
41
  --o-gap-3: 8px;
@@ -49,7 +49,7 @@
49
49
  }
50
50
  }
51
51
  @media (max-width: 840px) {
52
- .o-html-viewer[data-v-d580315c] {
52
+ .o-html-viewer[data-v-36fc9311] {
53
53
  --o-gap-1: 4px;
54
54
  --o-gap-2: 8px;
55
55
  --o-gap-3: 8px;
@@ -63,7 +63,7 @@
63
63
  }
64
64
  }
65
65
  @media (max-width: 600px) {
66
- .o-html-viewer[data-v-d580315c] {
66
+ .o-html-viewer[data-v-36fc9311] {
67
67
  --o-gap-1: 4px;
68
68
  --o-gap-2: 8px;
69
69
  --o-gap-3: 8px;
@@ -76,7 +76,7 @@
76
76
  --o-gap-10: 32px;
77
77
  }
78
78
  }
79
- .o-html-viewer__status[data-v-d580315c] {
79
+ .o-html-viewer__status[data-v-36fc9311] {
80
80
  display: flex;
81
81
  align-items: center;
82
82
  justify-content: center;
@@ -86,207 +86,196 @@
86
86
  line-height: 22px;
87
87
  color: var(--o-color-info2);
88
88
  }
89
- .o-html-viewer__status.is-error[data-v-d580315c] {
89
+ .o-html-viewer__status.is-error[data-v-36fc9311] {
90
90
  color: var(--o-color-info3);
91
91
  }
92
- .o-html-viewer__body[data-v-d580315c] {
92
+ .o-html-viewer__body[data-v-36fc9311] {
93
93
  max-width: 880px;
94
94
  margin: 0 auto;
95
95
  font-size: var(--doc-base-size, var(--o-font_size-tip1, 14px));
96
- line-height: var(--doc-line-height, var(--o-line_height-tip1, 22px));
97
- color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
96
+ line-height: var(--doc-line-height, 1.8);
97
+ color: var(--o-color-info1);
98
98
  overflow-x: hidden;
99
99
  word-wrap: break-word;
100
100
  overflow-wrap: break-word;
101
101
  }
102
- .o-html-viewer__body[data-v-d580315c] .title_content {
103
- color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
102
+ .o-html-viewer__body[data-v-36fc9311] .title_content {
103
+ color: var(--o-color-info1);
104
104
  }
105
- .o-html-viewer__body[data-v-d580315c] .body_content {
105
+ .o-html-viewer__body[data-v-36fc9311] .body_content {
106
106
  padding: 0;
107
107
  }
108
- .o-html-viewer__body[data-v-d580315c] [style*='font-family' i] {
108
+ .o-html-viewer__body[data-v-36fc9311] [style*='font-family' i] {
109
109
  font-family: inherit !important;
110
110
  }
111
- .o-html-viewer__body[data-v-d580315c] .list_title {
111
+ .o-html-viewer__body[data-v-36fc9311] .list_title {
112
112
  font-size: 22px;
113
113
  line-height: 30px;
114
114
  }
115
115
  @media (min-width: 1201px) and (max-width: 1680px) {
116
- .o-html-viewer__body[data-v-d580315c] .list_title {
116
+ .o-html-viewer__body[data-v-36fc9311] .list_title {
117
117
  font-size: 18px;
118
118
  line-height: 26px;
119
119
  }
120
120
  }
121
121
  @media (min-width: 841px) and (max-width: 1200px) {
122
- .o-html-viewer__body[data-v-d580315c] .list_title {
122
+ .o-html-viewer__body[data-v-36fc9311] .list_title {
123
123
  font-size: 16px;
124
124
  line-height: 24px;
125
125
  }
126
126
  }
127
127
  @media (min-width: 601px) and (max-width: 840px) {
128
- .o-html-viewer__body[data-v-d580315c] .list_title {
128
+ .o-html-viewer__body[data-v-36fc9311] .list_title {
129
129
  font-size: 16px;
130
130
  line-height: 24px;
131
131
  }
132
132
  }
133
133
  @media (max-width: 600px) {
134
- .o-html-viewer__body[data-v-d580315c] .list_title {
134
+ .o-html-viewer__body[data-v-36fc9311] .list_title {
135
135
  font-size: 16px;
136
136
  line-height: 24px;
137
137
  }
138
138
  }
139
- .o-html-viewer__body[data-v-d580315c] .list_title {
140
- display: block;
141
- margin-bottom: var(--o-r-gap-4, 16px);
142
- }
143
- .o-html-viewer__body[data-v-d580315c] .ropa_base_information .content {
139
+ .o-html-viewer__body[data-v-36fc9311] .ropa_base_information .content {
144
140
  padding-left: 0;
145
141
  }
146
- .o-html-viewer__body[data-v-d580315c] .ropa_base_information .content ul, .o-html-viewer__body[data-v-d580315c] .ropa_base_information .content ol {
142
+ .o-html-viewer__body[data-v-36fc9311] .ropa_base_information .content ul, .o-html-viewer__body[data-v-36fc9311] .ropa_base_information .content ol {
147
143
  padding-left: 0;
148
144
  }
149
- .o-html-viewer__body[data-v-d580315c] :where(h1),
150
- .o-html-viewer__body[data-v-d580315c] .title_content {
145
+ .o-html-viewer__body[data-v-36fc9311] :where(h1),
146
+ .o-html-viewer__body[data-v-36fc9311] .title_content {
151
147
  font-weight: bold;
152
148
  text-align: center;
153
- margin: var(--o-r-gap-7, var(--o-gap-6, 32px)) 0 var(--doc-title-border-bottom-gap, var(--o-gap-6, 32px));
149
+ margin: var(--o-gap-6, 32px) 0 var(--doc-title-border-bottom-gap, var(--o-gap-6, 32px));
154
150
  padding-bottom: var(--doc-title-border-top-gap, var(--o-gap-6, 32px));
155
151
  border-bottom: 1px solid var(--o-color-control4);
156
152
  font-size: var(--doc-title-size, 32px);
157
153
  line-height: 44px;
158
154
  }
159
155
  @media (min-width: 1201px) and (max-width: 1680px) {
160
- .o-html-viewer__body[data-v-d580315c] :where(h1),
161
- .o-html-viewer__body[data-v-d580315c] .title_content {
156
+ .o-html-viewer__body[data-v-36fc9311] :where(h1),
157
+ .o-html-viewer__body[data-v-36fc9311] .title_content {
162
158
  font-size: 20px;
163
159
  line-height: 28px;
164
160
  }
165
161
  }
166
162
  @media (min-width: 841px) and (max-width: 1200px) {
167
- .o-html-viewer__body[data-v-d580315c] :where(h1),
168
- .o-html-viewer__body[data-v-d580315c] .title_content {
163
+ .o-html-viewer__body[data-v-36fc9311] :where(h1),
164
+ .o-html-viewer__body[data-v-36fc9311] .title_content {
169
165
  font-size: 20px;
170
166
  line-height: 28px;
171
167
  }
172
168
  }
173
169
  @media (min-width: 601px) and (max-width: 840px) {
174
- .o-html-viewer__body[data-v-d580315c] :where(h1),
175
- .o-html-viewer__body[data-v-d580315c] .title_content {
170
+ .o-html-viewer__body[data-v-36fc9311] :where(h1),
171
+ .o-html-viewer__body[data-v-36fc9311] .title_content {
176
172
  font-size: 18px;
177
173
  line-height: 26px;
178
174
  }
179
175
  }
180
176
  @media (max-width: 600px) {
181
- .o-html-viewer__body[data-v-d580315c] :where(h1),
182
- .o-html-viewer__body[data-v-d580315c] .title_content {
177
+ .o-html-viewer__body[data-v-36fc9311] :where(h1),
178
+ .o-html-viewer__body[data-v-36fc9311] .title_content {
183
179
  font-size: 16px;
184
180
  line-height: 24px;
185
181
  }
186
182
  }
187
- .o-html-viewer__body[data-v-d580315c] :where(h2) {
183
+ .o-html-viewer__body[data-v-36fc9311] :where(h2) {
188
184
  font-size: 18px;
189
185
  font-weight: bold;
190
- color: color-mix(in srgb, var(--o-color-primary1) 90%, transparent);
186
+ color: var(--o-color-primary1);
191
187
  padding-bottom: 0.3rem;
192
188
  line-height: 1.4;
193
189
  }
194
- .o-html-viewer__body[data-v-d580315c] :where(h3) {
190
+ .o-html-viewer__body[data-v-36fc9311] :where(h3) {
195
191
  font-size: 16px;
196
192
  font-weight: bold;
197
- color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
193
+ color: var(--o-color-info1);
198
194
  margin: 1.8rem 0 0.8rem;
199
195
  line-height: 1.5;
200
196
  }
201
- .o-html-viewer__body[data-v-d580315c] :where(h4) {
197
+ .o-html-viewer__body[data-v-36fc9311] :where(h4) {
202
198
  font-size: 15px;
203
199
  font-weight: bold;
204
- color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
200
+ color: var(--o-color-info1);
205
201
  margin: 1.5rem 0 0.6rem;
206
202
  line-height: 1.5;
207
203
  }
208
- .o-html-viewer__body[data-v-d580315c] :where(h5) {
204
+ .o-html-viewer__body[data-v-36fc9311] :where(h5) {
209
205
  font-size: 14px;
210
206
  font-weight: bold;
211
- color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
207
+ color: var(--o-color-info1);
212
208
  margin: 1.2rem 0 0.5rem;
213
209
  line-height: 1.5;
214
210
  }
215
- .o-html-viewer__body[data-v-d580315c] :where(h6) {
211
+ .o-html-viewer__body[data-v-36fc9311] :where(h6) {
216
212
  font-size: 14px;
217
213
  font-weight: bold;
218
- color: color-mix(in srgb, var(--o-color-info2) 90%, transparent);
214
+ color: var(--o-color-info2);
219
215
  margin: 1rem 0 0.4rem;
220
216
  line-height: 1.5;
221
217
  }
222
- .o-html-viewer__body[data-v-d580315c] :where(p) {
223
- margin-bottom: var(--o-gap-2, 8px) !important;
218
+ .o-html-viewer__body[data-v-36fc9311] :where(p) {
219
+ margin: 0.4rem 0;
224
220
  text-align: justify;
225
221
  }
226
- .o-html-viewer__body[data-v-d580315c] :where(a) {
222
+ .o-html-viewer__body[data-v-36fc9311] :where(a) {
227
223
  color: var(--o-color-primary1);
228
- text-decoration: none !important;
229
224
  }
230
- .o-html-viewer__body[data-v-d580315c] :where(a):hover {
231
- text-decoration: underline !important;
232
- }
233
- .o-html-viewer__body[data-v-d580315c] :where(h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p) {
225
+ .o-html-viewer__body[data-v-36fc9311] :where(h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p) {
234
226
  text-indent: 0;
235
227
  }
236
- .o-html-viewer__body[data-v-d580315c] :where(.table-wrap) {
228
+ .o-html-viewer__body[data-v-36fc9311] :where(.table-wrap) {
237
229
  overflow-x: auto;
238
230
  margin: 1rem 0;
239
231
  -webkit-overflow-scrolling: touch;
240
232
  }
241
- .o-html-viewer__body[data-v-d580315c] :where(table) {
233
+ .o-html-viewer__body[data-v-36fc9311] :where(table) {
242
234
  border-collapse: collapse;
243
235
  width: 100%;
244
236
  }
245
- .o-html-viewer__body[data-v-d580315c] :where(th, td) {
237
+ .o-html-viewer__body[data-v-36fc9311] :where(th, td) {
246
238
  border: 1px solid var(--o-color-control1);
247
239
  padding: 6px 10px;
248
240
  text-align: left;
249
241
  vertical-align: top;
250
242
  }
251
- .o-html-viewer__body[data-v-d580315c] :where(th) {
243
+ .o-html-viewer__body[data-v-36fc9311] :where(th) {
252
244
  background-color: var(--o-color-fill2);
253
245
  font-weight: bold;
254
246
  text-align: center;
255
247
  }
256
- .o-html-viewer__body[data-v-d580315c] :where(tr:nth-child(even)) {
248
+ .o-html-viewer__body[data-v-36fc9311] :where(tr:nth-child(even)) {
257
249
  background-color: var(--o-color-fill3);
258
250
  }
259
- .o-html-viewer__body[data-v-d580315c] :where(td p, th p) {
251
+ .o-html-viewer__body[data-v-36fc9311] :where(td p, th p) {
260
252
  text-indent: 0;
261
- margin: 0.2rem 0 !important;
253
+ margin: 0.2rem 0;
262
254
  }
263
- .o-html-viewer__body[data-v-d580315c] :where(ul, ol) {
255
+ .o-html-viewer__body[data-v-36fc9311] :where(ul, ol) {
264
256
  padding-left: 2em;
265
257
  margin: 0.5rem 0;
266
258
  }
267
- .o-html-viewer__body[data-v-d580315c] :where(ul > li) {
268
- list-style-type: disc;
269
- }
270
- .o-html-viewer__body[data-v-d580315c] :where(li) {
259
+ .o-html-viewer__body[data-v-36fc9311] :where(li) {
271
260
  margin-bottom: 0.3rem;
272
261
  }
273
- .o-html-viewer__body[data-v-d580315c] :where(li p) {
262
+ .o-html-viewer__body[data-v-36fc9311] :where(li p) {
274
263
  text-indent: 0;
275
264
  }
276
- .o-html-viewer__body[data-v-d580315c] :where(img) {
265
+ .o-html-viewer__body[data-v-36fc9311] :where(img) {
277
266
  max-width: 100%;
278
267
  height: auto;
279
268
  display: block;
280
269
  margin: 1rem auto;
281
270
  }
282
- .o-html-viewer__body[data-v-d580315c] :where(code) {
271
+ .o-html-viewer__body[data-v-36fc9311] :where(code) {
283
272
  font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
284
273
  background: var(--o-color-fill3);
285
274
  padding: 1px 4px;
286
275
  border-radius: 2px;
287
276
  font-size: 0.9em;
288
277
  }
289
- .o-html-viewer__body[data-v-d580315c] :where(pre) {
278
+ .o-html-viewer__body[data-v-36fc9311] :where(pre) {
290
279
  font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
291
280
  background: var(--o-color-fill3);
292
281
  padding: 12px 16px;
@@ -298,32 +287,32 @@
298
287
  max-width: 100%;
299
288
  -webkit-overflow-scrolling: touch;
300
289
  }
301
- .o-html-viewer__body[data-v-d580315c] :where(pre code) {
290
+ .o-html-viewer__body[data-v-36fc9311] :where(pre code) {
302
291
  background: none;
303
292
  padding: 0;
304
293
  }
305
- .o-html-viewer__body[data-v-d580315c] :where(blockquote) {
294
+ .o-html-viewer__body[data-v-36fc9311] :where(blockquote) {
306
295
  border-left: 3px solid var(--o-color-primary1);
307
296
  margin: 0.8rem 0;
308
297
  padding: 0.5rem 1rem;
309
- color: color-mix(in srgb, var(--o-color-info2) 90%, transparent);
298
+ color: var(--o-color-info2);
310
299
  background: var(--o-color-fill2);
311
300
  }
312
- .o-html-viewer__body[data-v-d580315c] :where(blockquote p) {
301
+ .o-html-viewer__body[data-v-36fc9311] :where(blockquote p) {
313
302
  text-indent: 0;
314
303
  }
315
- .o-html-viewer__body[data-v-d580315c] :where(hr) {
304
+ .o-html-viewer__body[data-v-36fc9311] :where(hr) {
316
305
  border: none;
317
306
  border-top: 1px solid var(--o-color-control4);
318
307
  margin: 1.5rem 0;
319
308
  }
320
309
  @media (max-width: 1200px) {
321
- .o-html-viewer__body[data-v-d580315c] {
310
+ .o-html-viewer__body[data-v-36fc9311] {
322
311
  font-size: var(--doc-base-size, 12px);
323
312
  }
324
313
  }
325
314
  @media (max-width: 840px) {
326
- .o-html-viewer__body[data-v-d580315c] {
315
+ .o-html-viewer__body[data-v-36fc9311] {
327
316
  padding: 24px 16px;
328
317
  }
329
318
  }
@@ -21,14 +21,7 @@ export interface ParsedDocT {
21
21
  * 解析完整 HTML 文档:
22
22
  * 1. 提取所有 `<style>` 块,将选择器限定在 scope 内后合并为 CSS 文本;
23
23
  * 2. 提取 `<body>` 内容(无 body 标签时使用原文),并移除其中的 style 块;
24
- * 3. 清理内联样式中的 color/background/font-size/line-height/text-decoration 声明,使文档跟随宿主主题与组件排版字号。
25
- * 其中 font-size/line-height 为从网页/Word 复制的固定 px(如正文 `line-height: 26px`),优先级高于继承,
26
- * 无法随断点/主题适配,移除后统一继承容器行高(--o-line_height-* token);
27
- * text-decoration 常以内联 `!important` 出现(如从网页复制的链接 `text-decoration: underline !important`),
28
- * 优先级高于任何样式表规则(含 `!important`),无法被组件 CSS 覆盖,必须在此移除;
29
- * 链接下划线统一由组件控制(默认无、hover 显示)。
30
- * list-style/list-style-type 仅移除空心圆(circle)声明——项目符号唯一需要强制为实心的场景;
31
- * 其余类型(disc/decimal/none 等)原样保留,不做多余修改。
24
+ * 3. 清理内联样式中的 color/background/font-size 声明,使文档跟随宿主主题与组件排版字号。
32
25
  *
33
26
  * 注意:`<style>` 是 head-only 元素,交给 DOMPurify 片段净化时会因被解析进 head 而丢失,
34
27
  * 因此调用方需将返回的 CSS 单独渲染,不要与 body 一起传入净化指令。