@web-utils/component 1.2.2 → 1.2.3
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/components/watermark/index.js +1 -1
- package/dist/index.es.js +27 -5
- package/package.json +162 -162
- package/web-types.json +46 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as
|
|
1
|
+
import{n as c}from"../../chunks/6499de3a.js";const i={name:"Watermark",functional:!0,props:{text:{type:String,default:""},width:{type:Number,default:200},height:{type:Number,default:150},rotate:{type:Number,default:-30},color:{type:String,default:"rgba(0,0,0,0.15)"},backgroundColor:{type:String,default:"rgba(0,0,0,0)"}},render(a,{props:{width:t,height:n,text:o,backgroundColor:u,rotate:s,color:_}}){const r=document.createElement("canvas");r.width=t,r.height=n;const e=r.getContext("2d");return e.font="15px Verdana",e.fillStyle=u,e.fillRect(0,0,t,n),e.translate(t/2,n/2),e.rotate(s*Math.PI/180),e.fillStyle=_,e.textAlign="center",e.textBaseline="middle",e.fillText(o,0,0),a("div",{class:"watermark",style:{background:`url(${r.toDataURL("image/png")}) left top repeat`}})}};let p,d;const l={};var f=c(i,p,d,!1,m,null,null,null);function m(a){for(let t in l)this[t]=l[t]}var g=function(){return f.exports}();export{g as default};
|
package/dist/index.es.js
CHANGED
|
@@ -12150,13 +12150,35 @@ const __vue2_script$1 = {
|
|
|
12150
12150
|
text: {
|
|
12151
12151
|
type: String,
|
|
12152
12152
|
default: ""
|
|
12153
|
+
},
|
|
12154
|
+
width: {
|
|
12155
|
+
type: Number,
|
|
12156
|
+
default: 200
|
|
12157
|
+
},
|
|
12158
|
+
height: {
|
|
12159
|
+
type: Number,
|
|
12160
|
+
default: 150
|
|
12161
|
+
},
|
|
12162
|
+
rotate: {
|
|
12163
|
+
type: Number,
|
|
12164
|
+
default: -30
|
|
12165
|
+
},
|
|
12166
|
+
color: {
|
|
12167
|
+
type: String,
|
|
12168
|
+
default: "rgba(0,0,0,0.15)"
|
|
12169
|
+
},
|
|
12170
|
+
backgroundColor: {
|
|
12171
|
+
type: String,
|
|
12172
|
+
default: "rgba(0,0,0,0)"
|
|
12153
12173
|
}
|
|
12154
12174
|
},
|
|
12155
|
-
render(e, { props: t }) {
|
|
12156
|
-
const
|
|
12157
|
-
|
|
12175
|
+
render(e, { props: { width: t, height: s, text: r, backgroundColor: i, rotate: n, color: o } }) {
|
|
12176
|
+
const a = document.createElement("canvas");
|
|
12177
|
+
a.width = t, a.height = s;
|
|
12178
|
+
const l = a.getContext("2d");
|
|
12179
|
+
return l.font = "15px Verdana", l.fillStyle = i, l.fillRect(0, 0, t, s), l.translate(t / 2, s / 2), l.rotate(n * Math.PI / 180), l.fillStyle = o, l.textAlign = "center", l.textBaseline = "middle", l.fillText(r, 0, 0), e("div", {
|
|
12158
12180
|
class: "watermark",
|
|
12159
|
-
style: { background: `url(${
|
|
12181
|
+
style: { background: `url(${a.toDataURL("image/png")}) left top repeat` }
|
|
12160
12182
|
});
|
|
12161
12183
|
}
|
|
12162
12184
|
};
|
|
@@ -12328,7 +12350,7 @@ function __vue2_injectStyles(e) {
|
|
|
12328
12350
|
var XDialog = /* @__PURE__ */ function() {
|
|
12329
12351
|
return __component__.exports;
|
|
12330
12352
|
}();
|
|
12331
|
-
const version = "1.2.
|
|
12353
|
+
const version = "1.2.3";
|
|
12332
12354
|
function index(e) {
|
|
12333
12355
|
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(ElColorPickerDropdown.name, ElColorPickerDropdown), 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);
|
|
12334
12356
|
}
|
package/package.json
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@web-utils/component",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "./dist/index.es.js",
|
|
7
|
-
"module": "./dist/index.es.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"require": "./dist/index.es.js",
|
|
11
|
-
"import": "./dist/index.es.js"
|
|
12
|
-
},
|
|
13
|
-
"./*": "./*"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist",
|
|
17
|
-
"web-types.json"
|
|
18
|
-
],
|
|
19
|
-
"web-types": "web-types.json",
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "vite --host",
|
|
22
|
-
"serve": "vite preview",
|
|
23
|
-
"build": "vite build",
|
|
24
|
-
"build:lib": "node scripts/build.js",
|
|
25
|
-
"release": "npm run build:lib && npm publish --access public",
|
|
26
|
-
"lint": "eslint src/**/*.{js,jsx,ts,vue} --fix",
|
|
27
|
-
"stylelint": "stylelint src/**/*.{scss,css,vue} --fix"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@web-utils/core": "^1.4.12",
|
|
31
|
-
"codemirror": "^5.65.3",
|
|
32
|
-
"echarts": "^5.3.2",
|
|
33
|
-
"element-ui": "2.15.6",
|
|
34
|
-
"tinymce": "4.5.12",
|
|
35
|
-
"@tinymce/tinymce-vue": "3.2.8",
|
|
36
|
-
"simple-uploader.js": "^0.6.0",
|
|
37
|
-
"lodash": "^4.17.21",
|
|
38
|
-
"overlayscrollbars": "^1.13.1",
|
|
39
|
-
"photoswipe": "^4.1.3",
|
|
40
|
-
"resize-detector": "^0.3.0"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@babel/preset-env": "^7.17.10",
|
|
44
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
45
|
-
"@types/lodash": "^4.14.182",
|
|
46
|
-
"@types/node": "^12.20.37",
|
|
47
|
-
"@types/qrcode": "^1.4.2",
|
|
48
|
-
"@types/uuid": "^8.3.4",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
50
|
-
"@typescript-eslint/parser": "^5.22.0",
|
|
51
|
-
"@vue/babel-preset-jsx": "^1.2.4",
|
|
52
|
-
"@vue/eslint-config-typescript": "^10.0.0",
|
|
53
|
-
"@web-utils/stylelint-config-scss": "^1.0.1",
|
|
54
|
-
"chalk": "^4.1.2",
|
|
55
|
-
"eslint": "^8.15.0",
|
|
56
|
-
"eslint-plugin-vue": "^8.7.1",
|
|
57
|
-
"execa": "^5.0.0",
|
|
58
|
-
"globby": "^11.1.0",
|
|
59
|
-
"sass": "^1.51.0",
|
|
60
|
-
"slash": "^3.0.0",
|
|
61
|
-
"stylelint": "^14.8.2",
|
|
62
|
-
"typescript": "^4.6.4",
|
|
63
|
-
"vite": "^2.9.8",
|
|
64
|
-
"vite-plugin-inspect": "^0.5.0",
|
|
65
|
-
"vite-plugin-style-import": "^1.4.1",
|
|
66
|
-
"vite-plugin-vue2": "^2.0.0",
|
|
67
|
-
"vue": "^2.6.14",
|
|
68
|
-
"vue-docgen-api": "^4.46.0",
|
|
69
|
-
"vue-router": "^3.5.3",
|
|
70
|
-
"vue-template-compiler": "^2.6.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": "1.2.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "./dist/index.es.js",
|
|
7
|
+
"module": "./dist/index.es.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/index.es.js",
|
|
11
|
+
"import": "./dist/index.es.js"
|
|
12
|
+
},
|
|
13
|
+
"./*": "./*"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"web-types.json"
|
|
18
|
+
],
|
|
19
|
+
"web-types": "web-types.json",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite --host",
|
|
22
|
+
"serve": "vite preview",
|
|
23
|
+
"build": "vite build",
|
|
24
|
+
"build:lib": "node scripts/build.js",
|
|
25
|
+
"release": "npm run build:lib && npm publish --access public",
|
|
26
|
+
"lint": "eslint src/**/*.{js,jsx,ts,vue} --fix",
|
|
27
|
+
"stylelint": "stylelint src/**/*.{scss,css,vue} --fix"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@web-utils/core": "^1.4.12",
|
|
31
|
+
"codemirror": "^5.65.3",
|
|
32
|
+
"echarts": "^5.3.2",
|
|
33
|
+
"element-ui": "2.15.6",
|
|
34
|
+
"tinymce": "4.5.12",
|
|
35
|
+
"@tinymce/tinymce-vue": "3.2.8",
|
|
36
|
+
"simple-uploader.js": "^0.6.0",
|
|
37
|
+
"lodash": "^4.17.21",
|
|
38
|
+
"overlayscrollbars": "^1.13.1",
|
|
39
|
+
"photoswipe": "^4.1.3",
|
|
40
|
+
"resize-detector": "^0.3.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@babel/preset-env": "^7.17.10",
|
|
44
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
45
|
+
"@types/lodash": "^4.14.182",
|
|
46
|
+
"@types/node": "^12.20.37",
|
|
47
|
+
"@types/qrcode": "^1.4.2",
|
|
48
|
+
"@types/uuid": "^8.3.4",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
50
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
51
|
+
"@vue/babel-preset-jsx": "^1.2.4",
|
|
52
|
+
"@vue/eslint-config-typescript": "^10.0.0",
|
|
53
|
+
"@web-utils/stylelint-config-scss": "^1.0.1",
|
|
54
|
+
"chalk": "^4.1.2",
|
|
55
|
+
"eslint": "^8.15.0",
|
|
56
|
+
"eslint-plugin-vue": "^8.7.1",
|
|
57
|
+
"execa": "^5.0.0",
|
|
58
|
+
"globby": "^11.1.0",
|
|
59
|
+
"sass": "^1.51.0",
|
|
60
|
+
"slash": "^3.0.0",
|
|
61
|
+
"stylelint": "^14.8.2",
|
|
62
|
+
"typescript": "^4.6.4",
|
|
63
|
+
"vite": "^2.9.8",
|
|
64
|
+
"vite-plugin-inspect": "^0.5.0",
|
|
65
|
+
"vite-plugin-style-import": "^1.4.1",
|
|
66
|
+
"vite-plugin-vue2": "^2.0.0",
|
|
67
|
+
"vue": "^2.6.14",
|
|
68
|
+
"vue-docgen-api": "^4.46.0",
|
|
69
|
+
"vue-router": "^3.5.3",
|
|
70
|
+
"vue-template-compiler": "^2.6.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
|
+
}
|
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": "1.2.
|
|
5
|
+
"version": "1.2.3",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -9610,6 +9610,51 @@
|
|
|
9610
9610
|
"type": "string"
|
|
9611
9611
|
},
|
|
9612
9612
|
"default": "''"
|
|
9613
|
+
},
|
|
9614
|
+
{
|
|
9615
|
+
"name": "width",
|
|
9616
|
+
"description": "宽度",
|
|
9617
|
+
"value": {
|
|
9618
|
+
"kind": "expression",
|
|
9619
|
+
"type": "number"
|
|
9620
|
+
},
|
|
9621
|
+
"default": "200"
|
|
9622
|
+
},
|
|
9623
|
+
{
|
|
9624
|
+
"name": "height",
|
|
9625
|
+
"description": "高度",
|
|
9626
|
+
"value": {
|
|
9627
|
+
"kind": "expression",
|
|
9628
|
+
"type": "number"
|
|
9629
|
+
},
|
|
9630
|
+
"default": "150"
|
|
9631
|
+
},
|
|
9632
|
+
{
|
|
9633
|
+
"name": "rotate",
|
|
9634
|
+
"description": "旋转角度 0 到 360",
|
|
9635
|
+
"value": {
|
|
9636
|
+
"kind": "expression",
|
|
9637
|
+
"type": "number"
|
|
9638
|
+
},
|
|
9639
|
+
"default": "-30"
|
|
9640
|
+
},
|
|
9641
|
+
{
|
|
9642
|
+
"name": "color",
|
|
9643
|
+
"description": "文字颜色",
|
|
9644
|
+
"value": {
|
|
9645
|
+
"kind": "expression",
|
|
9646
|
+
"type": "string"
|
|
9647
|
+
},
|
|
9648
|
+
"default": "'rgba(0,0,0,0.15)'"
|
|
9649
|
+
},
|
|
9650
|
+
{
|
|
9651
|
+
"name": "backgroundColor",
|
|
9652
|
+
"description": "背景颜色",
|
|
9653
|
+
"value": {
|
|
9654
|
+
"kind": "expression",
|
|
9655
|
+
"type": "string"
|
|
9656
|
+
},
|
|
9657
|
+
"default": "'rgba(0,0,0,0)'"
|
|
9613
9658
|
}
|
|
9614
9659
|
]
|
|
9615
9660
|
},
|