@web-utils/component 2.0.3 → 2.0.4

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.
@@ -159,7 +159,8 @@ const u = {
159
159
  bodyPadding: {
160
160
  type: Boolean,
161
161
  default: !0
162
- }
162
+ },
163
+ embed: Boolean
163
164
  },
164
165
  data() {
165
166
  return {
@@ -207,7 +208,7 @@ const u = {
207
208
  typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
208
209
  },
209
210
  hide(e) {
210
- e !== !1 && (this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
211
+ e !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
211
212
  },
212
213
  updatePopper() {
213
214
  this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
@@ -1,58 +1,19 @@
1
- import { dialog as o } from "@web-utils/core/dist/mixin/index";
2
- import { n as i } from "../../chunks/5d4282fb.js";
3
- var s = function() {
4
- var e = this, t = e.$createElement, l = e._self._c || t;
5
- return l("ElDialog", {
6
- directives: [{
7
- name: "dialog-drag",
8
- rawName: "v-dialog-drag:[fullScreen]",
9
- arg: e.fullScreen
10
- }],
1
+ import { n as l } from "../../chunks/5d4282fb.js";
2
+ var o = function() {
3
+ var e = this, t = e.$createElement, r = e._self._c || t;
4
+ return r("ElementDialog", {
11
5
  attrs: {
12
- "close-on-click-modal": !1,
6
+ "custom-class": "iframe-window",
7
+ embed: "",
13
8
  title: e.title,
14
- visible: e.show,
15
- top: "5vh",
16
- "custom-class": "el-dialog-resizeable iframe-window",
17
- center: "",
18
- fullscreen: e.fullScreen,
19
- "append-to-body": "",
20
- width: "60%"
21
- },
22
- on: {
23
- "update:visible": function(r) {
24
- e.show = r;
25
- },
26
- close: e.close,
27
- closed: e.closed
9
+ "show-full-screen": "",
10
+ visible: e.visible
28
11
  },
29
12
  scopedSlots: e._u([{
30
- key: "title",
31
- fn: function() {
32
- return [e._v(" " + e._s(e.title) + " "), l("ElButton", {
33
- staticClass: "fullscreen-btn",
34
- attrs: {
35
- type: "text",
36
- icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
37
- size: "medium",
38
- title: e.fullScreen ? "还原" : "最大化"
39
- },
40
- on: {
41
- click: e.toggleFullScreen
42
- }
43
- })];
44
- },
45
- proxy: !0
46
- }, {
47
13
  key: "default",
48
14
  fn: function() {
49
- return [l("div", {
50
- staticClass: "drag-mask"
51
- }), l("iframe", {
15
+ return [r("iframe", {
52
16
  staticClass: "iframe-window-iframe",
53
- style: {
54
- height: e.fullScreen ? "100%" : "70vh"
55
- },
56
17
  attrs: {
57
18
  src: e.url,
58
19
  frameborder: "0"
@@ -63,9 +24,8 @@ var s = function() {
63
24
  }])
64
25
  });
65
26
  }, a = [];
66
- const c = {
27
+ const i = {
67
28
  name: "IframeWindow",
68
- mixins: [o],
69
29
  props: {
70
30
  title: {
71
31
  type: String,
@@ -73,27 +33,28 @@ const c = {
73
33
  },
74
34
  url: {
75
35
  type: String,
76
- default: "https://www.baidu.com"
77
- }
36
+ default: "http://192.168.0.107:31221/wallboard"
37
+ },
38
+ visible: Boolean
78
39
  }
79
40
  }, n = {};
80
- var u = /* @__PURE__ */ i(
81
- c,
82
- s,
41
+ var s = /* @__PURE__ */ l(
42
+ i,
43
+ o,
83
44
  a,
84
45
  !1,
85
- f,
46
+ u,
86
47
  null,
87
48
  null,
88
49
  null
89
50
  );
90
- function f(e) {
51
+ function u(e) {
91
52
  for (let t in n)
92
53
  this[t] = n[t];
93
54
  }
94
- const _ = /* @__PURE__ */ function() {
95
- return u.exports;
55
+ const c = /* @__PURE__ */ function() {
56
+ return s.exports;
96
57
  }();
97
58
  export {
98
- _ as default
59
+ c as default
99
60
  };
@@ -1 +1 @@
1
- .iframe-window .iframe-window-iframe{width:100%;height:60vh}.iframe-window .el-dialog__body{position:relative;padding:0}
1
+ .iframe-window.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body{position:relative;padding:0}.iframe-window .iframe-window-iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:60vh;border:none}
package/dist/index.css CHANGED
@@ -985,14 +985,21 @@
985
985
  .icon-card.green .icon-card_color {
986
986
  color: #72c734;
987
987
  }
988
- .iframe-window .iframe-window-iframe {
989
- width: 100%;
990
- height: 60vh;
991
- }
992
- .iframe-window .el-dialog__body {
988
+ .iframe-window.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body {
993
989
  position: relative;
994
990
  padding: 0;
995
991
  }
992
+ .iframe-window .iframe-window-iframe {
993
+ position: absolute;
994
+ top: 0;
995
+ right: 0;
996
+ bottom: 0;
997
+ left: 0;
998
+ width: 100%;
999
+ height: 100%;
1000
+ min-height: 60vh;
1001
+ border: none;
1002
+ }
996
1003
  .el-input-number.input-number {
997
1004
  display: block;
998
1005
  }
package/dist/index.es.js CHANGED
@@ -3964,7 +3964,8 @@ const ElementDialog_vue_vue_type_style_index_0_lang = "", defaults = {
3964
3964
  bodyPadding: {
3965
3965
  type: Boolean,
3966
3966
  default: !0
3967
- }
3967
+ },
3968
+ embed: Boolean
3968
3969
  },
3969
3970
  data() {
3970
3971
  return {
@@ -4012,7 +4013,7 @@ const ElementDialog_vue_vue_type_style_index_0_lang = "", defaults = {
4012
4013
  typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
4013
4014
  },
4014
4015
  hide(e) {
4015
- e !== !1 && (this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
4016
+ e !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
4016
4017
  },
4017
4018
  updatePopper() {
4018
4019
  this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
@@ -7113,57 +7114,19 @@ const IconCard = /* @__PURE__ */ function() {
7113
7114
  }();
7114
7115
  var render$u = function() {
7115
7116
  var e = this, t = e.$createElement, s = e._self._c || t;
7116
- return s("ElDialog", {
7117
- directives: [{
7118
- name: "dialog-drag",
7119
- rawName: "v-dialog-drag:[fullScreen]",
7120
- arg: e.fullScreen
7121
- }],
7117
+ return s("ElementDialog", {
7122
7118
  attrs: {
7123
- "close-on-click-modal": !1,
7119
+ "custom-class": "iframe-window",
7120
+ embed: "",
7124
7121
  title: e.title,
7125
- visible: e.show,
7126
- top: "5vh",
7127
- "custom-class": "el-dialog-resizeable iframe-window",
7128
- center: "",
7129
- fullscreen: e.fullScreen,
7130
- "append-to-body": "",
7131
- width: "60%"
7132
- },
7133
- on: {
7134
- "update:visible": function(n) {
7135
- e.show = n;
7136
- },
7137
- close: e.close,
7138
- closed: e.closed
7122
+ "show-full-screen": "",
7123
+ visible: e.visible
7139
7124
  },
7140
7125
  scopedSlots: e._u([{
7141
- key: "title",
7142
- fn: function() {
7143
- return [e._v(" " + e._s(e.title) + " "), s("ElButton", {
7144
- staticClass: "fullscreen-btn",
7145
- attrs: {
7146
- type: "text",
7147
- icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
7148
- size: "medium",
7149
- title: e.fullScreen ? "还原" : "最大化"
7150
- },
7151
- on: {
7152
- click: e.toggleFullScreen
7153
- }
7154
- })];
7155
- },
7156
- proxy: !0
7157
- }, {
7158
7126
  key: "default",
7159
7127
  fn: function() {
7160
- return [s("div", {
7161
- staticClass: "drag-mask"
7162
- }), s("iframe", {
7128
+ return [s("iframe", {
7163
7129
  staticClass: "iframe-window-iframe",
7164
- style: {
7165
- height: e.fullScreen ? "100%" : "70vh"
7166
- },
7167
7130
  attrs: {
7168
7131
  src: e.url,
7169
7132
  frameborder: "0"
@@ -7176,7 +7139,6 @@ var render$u = function() {
7176
7139
  }, staticRenderFns$u = [];
7177
7140
  const IframeWindow_vue_vue_type_style_index_0_lang = "", __vue2_script$z = {
7178
7141
  name: "IframeWindow",
7179
- mixins: [dialog],
7180
7142
  props: {
7181
7143
  title: {
7182
7144
  type: String,
@@ -7184,8 +7146,9 @@ const IframeWindow_vue_vue_type_style_index_0_lang = "", __vue2_script$z = {
7184
7146
  },
7185
7147
  url: {
7186
7148
  type: String,
7187
- default: "https://www.baidu.com"
7188
- }
7149
+ default: "http://192.168.0.107:31221/wallboard"
7150
+ },
7151
+ visible: Boolean
7189
7152
  }
7190
7153
  }, __cssModules$z = {};
7191
7154
  var __component__$z = /* @__PURE__ */ normalizeComponent(
@@ -13074,7 +13037,7 @@ function __vue2_injectStyles(e) {
13074
13037
  }
13075
13038
  const XDialog = /* @__PURE__ */ function() {
13076
13039
  return __component__.exports;
13077
- }(), version = "2.0.3";
13040
+ }(), version = "2.0.4";
13078
13041
  function index(e) {
13079
13042
  e.component(AddressInput.name, AddressInput), e.component(AsideMenu.name, AsideMenu), e.component(AwesomeButton.name, AwesomeButton), e.component(CapsuleTab.name, CapsuleTab), e.component(ChunkFileUploader.name, ChunkFileUploader), e.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), e.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), e.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), e.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), e.component(ChunkFileUploaderList.name, ChunkFileUploaderList), e.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), e.component(CodeMirrorEditor.name, CodeMirrorEditor), e.component(ColorPicker.name, ColorPicker), e.component(Confirmable.name, Confirmable), e.component(ConfirmButton.name, ConfirmButton), e.component(ContextMenu.name, ContextMenu), e.component(CustomScrollbar.name, CustomScrollbar), e.component(DataTablePicker.name, DataTablePicker), e.component(DynamicTable.name, DynamicTable), e.component(ECharts.name, ECharts), e.component(EditableProgress.name, EditableProgress), e.component(EditableTree.name, EditableTree), e.component(EgdCollapse.name, EgdCollapse), e.component(EgdCollapseItem.name, EgdCollapseItem), e.component(ElementDialog.name, ElementDialog), e.component(EmptyView.name, EmptyView), e.component(ErrorView.name, ErrorView), e.component(FlexColumn.name, FlexColumn), e.component(FlexItem.name, FlexItem), e.component(FlexRow.name, FlexRow), e.component(FlexScroller.name, FlexScroller), e.component(FormButton.name, FormButton), e.component(FormCascader.name, FormCascader), e.component(FormCheckboxGroup.name, FormCheckboxGroup), e.component(FormDatePicker.name, FormDatePicker), e.component(FormHolder.name, FormHolder), e.component(FormInput.name, FormInput), e.component(FormInputEmail.name, FormInputEmail), e.component(FormInputIdCard.name, FormInputIdCard), e.component(FormInputNumber.name, FormInputNumber), e.component(FormInputPhoneNumber.name, FormInputPhoneNumber), e.component(FormInputTime.name, FormInputTime), e.component(FormItem.name, FormItem), e.component(FormItemConfigProvider.name, FormItemConfigProvider), e.component(FormItemGroup.name, FormItemGroup), e.component(FormRadioGroup.name, FormRadioGroup), e.component(FormSelect.name, FormSelect), e.component(FormSwitch.name, FormSwitch), e.component(FormTextarea.name, FormTextarea), e.component(FormView.name, FormView), e.component(GuideSteps.name, GuideSteps), e.component(IconCard.name, IconCard), e.component(IframeWindow.name, IframeWindow), e.component(InputNumber.name, InputNumber), e.component(InputNumberRange.name, InputNumberRange), e.component(JSXComponent.name, JSXComponent), e.component(KeepViewAlive.name, KeepViewAlive), e.component(LoadingView.name, LoadingView), e.component(NavBar.name, NavBar), e.component(NotImplement.name, NotImplement), e.component(Page.name, Page), e.component(PageableTable.name, PageableTable), e.component(PageableView.name, PageableView), e.component(PageHeader.name, PageHeader), e.component(PageIndex.name, PageIndex), e.component(PageIndexTop.name, PageIndexTop), e.component(PageSkeleton.name, PageSkeleton), e.component(PageSkeletonNew.name, PageSkeletonNew), e.component(PhotoSwipe.name, PhotoSwipe), e.component(ResizeObserver.name, ResizeObserver), e.component(SearchPopover.name, SearchPopover), e.component(SignPanel.name, SignPanel), e.component(SplitPane.name, SplitPane), e.component(Stateful.name, Stateful), e.component(StaticPageableTable.name, StaticPageableTable), e.component(Swiper.name, Swiper), e.component(Tab.name, Tab), e.component(TabItem.name, TabItem), e.component(TableColumn.name, TableColumn), e.component(TableView.name, TableView), e.component(TagRender.name, TagRender), e.component(TinymceEditor.name, TinymceEditor), e.component(TinymceWrapper.name, TinymceWrapper), e.component(Toolbar.name, Toolbar), e.component(ToolbarButton.name, ToolbarButton), e.component(Trigger.name, Trigger), e.component(VueTagsInput.name, VueTagsInput), e.component(Watermark.name, Watermark), e.component(XDialog.name, XDialog);
13080
13043
  }
package/package.json CHANGED
@@ -1,162 +1,163 @@
1
- {
2
- "name": "@web-utils/component",
3
- "version": "2.0.3",
4
- "type": "module",
5
- "private": false,
6
- "license": "MIT",
7
- "main": "./dist/index.es.js",
8
- "module": "./dist/index.es.js",
9
- "exports": {
10
- ".": {
11
- "require": "./dist/index.es.js",
12
- "import": "./dist/index.es.js"
13
- },
14
- "./*": "./*"
15
- },
16
- "files": [
17
- "dist",
18
- "web-types.json"
19
- ],
20
- "web-types": "web-types.json",
21
- "scripts": {
22
- "dev": "vite --host",
23
- "serve": "vite preview",
24
- "build": "vite build",
25
- "build:lib": "node scripts/build.js",
26
- "release": "npm run build:lib && npm publish --access public",
27
- "lint": "eslint src/**/*.{js,jsx,ts,vue} --fix",
28
- "stylelint": "stylelint src/**/*.{scss,css,vue} --fix"
29
- },
30
- "dependencies": {
31
- "@web-utils/core": "^2.0.6",
32
- "codemirror": "^5.65.11",
33
- "echarts": "^5.4.1",
34
- "element-ui": "2.15.6",
35
- "tinymce": "4.5.12",
36
- "@tinymce/tinymce-vue": "3.2.8",
37
- "simple-uploader.js": "^0.6.0",
38
- "lodash": "^4.17.21",
39
- "overlayscrollbars": "^1.13.3",
40
- "photoswipe": "^4.1.3",
41
- "resize-detector": "^0.3.0"
42
- },
43
- "devDependencies": {
44
- "@babel/preset-env": "^7.20.2",
45
- "@rollup/plugin-babel": "^6.0.3",
46
- "@types/lodash": "^4.14.191",
47
- "@types/node": "^16.18.10",
48
- "@types/qrcode": "^1.5.0",
49
- "@types/uuid": "^8.3.4",
50
- "@typescript-eslint/eslint-plugin": "^5.47.0",
51
- "@typescript-eslint/parser": "^5.47.0",
52
- "@vue/babel-preset-jsx": "^1.4.0",
53
- "@vue/eslint-config-typescript": "^11.0.2",
54
- "@web-utils/stylelint-config-scss": "^1.0.2",
55
- "chalk": "^5.2.0",
56
- "eslint": "^8.30.0",
57
- "eslint-plugin-vue": "^9.8.0",
58
- "globby": "^13.1.3",
59
- "sass": "^1.57.1",
60
- "slash": "^5.0.0",
61
- "stylelint": "^14.16.0",
62
- "typescript": "^4.6.4",
63
- "vite": "^4.0.3",
64
- "vite-plugin-inspect": "^0.7.11",
65
- "vite-plugin-style-import": "^1.4.1",
66
- "vite-plugin-vue2": "^2.0.3",
67
- "vue": "^2.7.14",
68
- "vue-docgen-api": "^4.56.2",
69
- "vue-router": "^3.6.5",
70
- "vue-template-compiler": "^2.7.14"
71
- },
72
- "stylelint": {
73
- "extends": [
74
- "@web-utils/stylelint-config-scss"
75
- ],
76
- "rules": {
77
- "max-nesting-depth": 6,
78
- "at-rule-no-unknown": [
79
- true,
80
- {
81
- "ignoreAtRules": [
82
- "function",
83
- "if",
84
- "return",
85
- "include",
86
- "extend",
87
- "mixin",
88
- "else",
89
- "while",
90
- "for",
91
- "use",
92
- "each"
93
- ]
94
- }
95
- ]
96
- }
97
- },
98
- "eslintConfig": {
99
- "root": true,
100
- "env": {
101
- "vue/setup-compiler-macros": true
102
- },
103
- "globals": {},
104
- "parser": "vue-eslint-parser",
105
- "parserOptions": {
106
- "parser": "@typescript-eslint/parser",
107
- "sourceType": "module",
108
- "ecmaVersion": 2020,
109
- "ecmaFeatures": {
110
- "jsx": true
111
- }
112
- },
113
- "extends": [
114
- "@vue/typescript",
115
- "plugin:vue/recommended"
116
- ],
117
- "rules": {
118
- "semi": [
119
- "error",
120
- "never"
121
- ],
122
- "quotes": [
123
- "error",
124
- "single"
125
- ],
126
- "vue/no-deprecated-dollar-listeners-api": "off",
127
- "vue/multi-word-component-names": "off",
128
- "vue/no-v-html": "off",
129
- "vue/require-default-prop": "off",
130
- "vue/no-deprecated-destroyed-lifecycle": "off",
131
- "vue/html-closing-bracket-newline": [
132
- "error",
133
- {
134
- "singleline": "never",
135
- "multiline": "never"
136
- }
137
- ],
138
- "vue/max-attributes-per-line": [
139
- "error",
140
- {
141
- "singleline": 1000,
142
- "multiline": 1
143
- }
144
- ],
145
- "vue/first-attribute-linebreak": [
146
- "error",
147
- {
148
- "singleline": "ignore",
149
- "multiline": "beside"
150
- }
151
- ],
152
- "vue/html-closing-bracket-spacing": [
153
- "error",
154
- {
155
- "startTag": "never",
156
- "endTag": "never",
157
- "selfClosingTag": "never"
158
- }
159
- ]
160
- }
161
- }
162
- }
1
+ {
2
+ "name": "@web-utils/component",
3
+ "version": "2.0.4",
4
+ "type": "module",
5
+ "private": false,
6
+ "license": "MIT",
7
+ "main": "./dist/index.es.js",
8
+ "module": "./dist/index.es.js",
9
+ "exports": {
10
+ ".": {
11
+ "require": "./dist/index.es.js",
12
+ "import": "./dist/index.es.js"
13
+ },
14
+ "./*": "./*"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "web-types.json"
19
+ ],
20
+ "web-types": "web-types.json",
21
+ "scripts": {
22
+ "dev": "vite --host",
23
+ "serve": "vite preview",
24
+ "build": "vite build",
25
+ "build:lib": "node scripts/build.js",
26
+ "release": "npm run build:lib && npm publish --access public",
27
+ "lint": "eslint src/**/*.{js,jsx,ts,vue} --fix",
28
+ "stylelint": "stylelint src/**/*.{scss,css,vue} --fix"
29
+ },
30
+ "dependencies": {
31
+ "@tinymce/tinymce-vue": "3.2.8",
32
+ "@web-utils/core": "^2.0.6",
33
+ "codemirror": "^5.65.11",
34
+ "echarts": "^5.4.1",
35
+ "element-ui": "2.15.6",
36
+ "lodash": "^4.17.21",
37
+ "overlayscrollbars": "^1.13.3",
38
+ "photoswipe": "^4.1.3",
39
+ "resize-detector": "^0.3.0",
40
+ "simple-uploader.js": "^0.6.0",
41
+ "tinymce": "4.5.12",
42
+ "viewerjs": "^1.11.1"
43
+ },
44
+ "devDependencies": {
45
+ "@babel/preset-env": "^7.20.2",
46
+ "@rollup/plugin-babel": "^6.0.3",
47
+ "@types/lodash": "^4.14.191",
48
+ "@types/node": "^16.18.10",
49
+ "@types/qrcode": "^1.5.0",
50
+ "@types/uuid": "^8.3.4",
51
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
52
+ "@typescript-eslint/parser": "^5.47.0",
53
+ "@vue/babel-preset-jsx": "^1.4.0",
54
+ "@vue/eslint-config-typescript": "^11.0.2",
55
+ "@web-utils/stylelint-config-scss": "^1.0.2",
56
+ "chalk": "^5.2.0",
57
+ "eslint": "^8.30.0",
58
+ "eslint-plugin-vue": "^9.8.0",
59
+ "globby": "^13.1.3",
60
+ "sass": "^1.57.1",
61
+ "slash": "^5.0.0",
62
+ "stylelint": "^14.16.0",
63
+ "typescript": "^4.6.4",
64
+ "vite": "^4.0.3",
65
+ "vite-plugin-inspect": "^0.7.11",
66
+ "vite-plugin-style-import": "^1.4.1",
67
+ "vite-plugin-vue2": "^2.0.3",
68
+ "vue": "^2.7.14",
69
+ "vue-docgen-api": "^4.56.2",
70
+ "vue-router": "^3.6.5",
71
+ "vue-template-compiler": "^2.7.14"
72
+ },
73
+ "stylelint": {
74
+ "extends": [
75
+ "@web-utils/stylelint-config-scss"
76
+ ],
77
+ "rules": {
78
+ "max-nesting-depth": 6,
79
+ "at-rule-no-unknown": [
80
+ true,
81
+ {
82
+ "ignoreAtRules": [
83
+ "function",
84
+ "if",
85
+ "return",
86
+ "include",
87
+ "extend",
88
+ "mixin",
89
+ "else",
90
+ "while",
91
+ "for",
92
+ "use",
93
+ "each"
94
+ ]
95
+ }
96
+ ]
97
+ }
98
+ },
99
+ "eslintConfig": {
100
+ "root": true,
101
+ "env": {
102
+ "vue/setup-compiler-macros": true
103
+ },
104
+ "globals": {},
105
+ "parser": "vue-eslint-parser",
106
+ "parserOptions": {
107
+ "parser": "@typescript-eslint/parser",
108
+ "sourceType": "module",
109
+ "ecmaVersion": 2020,
110
+ "ecmaFeatures": {
111
+ "jsx": true
112
+ }
113
+ },
114
+ "extends": [
115
+ "@vue/typescript",
116
+ "plugin:vue/recommended"
117
+ ],
118
+ "rules": {
119
+ "semi": [
120
+ "error",
121
+ "never"
122
+ ],
123
+ "quotes": [
124
+ "error",
125
+ "single"
126
+ ],
127
+ "vue/no-deprecated-dollar-listeners-api": "off",
128
+ "vue/multi-word-component-names": "off",
129
+ "vue/no-v-html": "off",
130
+ "vue/require-default-prop": "off",
131
+ "vue/no-deprecated-destroyed-lifecycle": "off",
132
+ "vue/html-closing-bracket-newline": [
133
+ "error",
134
+ {
135
+ "singleline": "never",
136
+ "multiline": "never"
137
+ }
138
+ ],
139
+ "vue/max-attributes-per-line": [
140
+ "error",
141
+ {
142
+ "singleline": 1000,
143
+ "multiline": 1
144
+ }
145
+ ],
146
+ "vue/first-attribute-linebreak": [
147
+ "error",
148
+ {
149
+ "singleline": "ignore",
150
+ "multiline": "beside"
151
+ }
152
+ ],
153
+ "vue/html-closing-bracket-spacing": [
154
+ "error",
155
+ {
156
+ "startTag": "never",
157
+ "endTag": "never",
158
+ "selfClosingTag": "never"
159
+ }
160
+ ]
161
+ }
162
+ }
163
+ }
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.0.3",
5
+ "version": "2.0.4",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -1545,6 +1545,14 @@
1545
1545
  "type": "boolean"
1546
1546
  },
1547
1547
  "default": "true"
1548
+ },
1549
+ {
1550
+ "name": "embed",
1551
+ "value": {
1552
+ "kind": "expression",
1553
+ "type": "boolean"
1554
+ },
1555
+ "default": ""
1548
1556
  }
1549
1557
  ],
1550
1558
  "events": [
@@ -7100,7 +7108,15 @@
7100
7108
  "kind": "expression",
7101
7109
  "type": "string"
7102
7110
  },
7103
- "default": "'https://www.baidu.com'"
7111
+ "default": "'http://192.168.0.107:31221/wallboard'"
7112
+ },
7113
+ {
7114
+ "name": "visible",
7115
+ "value": {
7116
+ "kind": "expression",
7117
+ "type": "boolean"
7118
+ },
7119
+ "default": ""
7104
7120
  }
7105
7121
  ]
7106
7122
  },