@web-utils/component 2.7.15 → 2.7.16
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/photo-swipe/index.js +18 -11
- package/dist/index.es.js +12 -5
- package/package.json +10 -13
- package/web-types.json +9 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from "photoswipe";
|
|
2
2
|
import "photoswipe/dist/photoswipe.css";
|
|
3
3
|
import { n as d } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
function w(t) {
|
|
5
|
-
new
|
|
5
|
+
new g(t).init();
|
|
6
6
|
}
|
|
7
7
|
async function u(t, a, r = { selector: "chat-image" }) {
|
|
8
8
|
const o = t.target;
|
|
@@ -60,37 +60,44 @@ var p = function() {
|
|
|
60
60
|
alt: ""
|
|
61
61
|
},
|
|
62
62
|
on: {
|
|
63
|
-
click: t.
|
|
63
|
+
click: t.preview
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
+
}, {
|
|
68
|
+
urls: t.urls,
|
|
69
|
+
preview: t.preview
|
|
67
70
|
})], 2);
|
|
68
71
|
}, _ = [];
|
|
69
72
|
const b = {
|
|
70
73
|
name: "PhotoSwipe",
|
|
71
74
|
photoswipe: u,
|
|
72
75
|
props: {
|
|
73
|
-
urls: Array
|
|
76
|
+
urls: Array,
|
|
77
|
+
selector: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "img"
|
|
80
|
+
}
|
|
74
81
|
},
|
|
75
82
|
methods: {
|
|
76
|
-
async
|
|
77
|
-
await u(t, this.$refs.wrapper, { selector:
|
|
83
|
+
async preview(t) {
|
|
84
|
+
await u(t, this.$refs.wrapper, { selector: this.selector });
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
|
-
},
|
|
87
|
+
}, l = {};
|
|
81
88
|
var A = /* @__PURE__ */ d(
|
|
82
89
|
b,
|
|
83
90
|
p,
|
|
84
91
|
_,
|
|
85
92
|
!1,
|
|
86
|
-
|
|
93
|
+
v,
|
|
87
94
|
null,
|
|
88
95
|
null,
|
|
89
96
|
null
|
|
90
97
|
);
|
|
91
|
-
function
|
|
92
|
-
for (let a in
|
|
93
|
-
this[a] =
|
|
98
|
+
function v(t) {
|
|
99
|
+
for (let a in l)
|
|
100
|
+
this[a] = l[a];
|
|
94
101
|
}
|
|
95
102
|
const I = /* @__PURE__ */ function() {
|
|
96
103
|
return A.exports;
|
package/dist/index.es.js
CHANGED
|
@@ -31282,21 +31282,28 @@ var render$n = function() {
|
|
|
31282
31282
|
alt: ""
|
|
31283
31283
|
},
|
|
31284
31284
|
on: {
|
|
31285
|
-
click: t.
|
|
31285
|
+
click: t.preview
|
|
31286
31286
|
}
|
|
31287
31287
|
});
|
|
31288
31288
|
});
|
|
31289
|
+
}, {
|
|
31290
|
+
urls: t.urls,
|
|
31291
|
+
preview: t.preview
|
|
31289
31292
|
})], 2);
|
|
31290
31293
|
}, staticRenderFns$n = [];
|
|
31291
31294
|
const __vue2_script$r = {
|
|
31292
31295
|
name: "PhotoSwipe",
|
|
31293
31296
|
photoswipe,
|
|
31294
31297
|
props: {
|
|
31295
|
-
urls: Array
|
|
31298
|
+
urls: Array,
|
|
31299
|
+
selector: {
|
|
31300
|
+
type: String,
|
|
31301
|
+
default: "img"
|
|
31302
|
+
}
|
|
31296
31303
|
},
|
|
31297
31304
|
methods: {
|
|
31298
|
-
async
|
|
31299
|
-
await photoswipe(t, this.$refs.wrapper, { selector:
|
|
31305
|
+
async preview(t) {
|
|
31306
|
+
await photoswipe(t, this.$refs.wrapper, { selector: this.selector });
|
|
31300
31307
|
}
|
|
31301
31308
|
}
|
|
31302
31309
|
}, __cssModules$r = {};
|
|
@@ -36012,7 +36019,7 @@ function __vue2_injectStyles(t) {
|
|
|
36012
36019
|
}
|
|
36013
36020
|
const Watermark = /* @__PURE__ */ function() {
|
|
36014
36021
|
return __component__.exports;
|
|
36015
|
-
}(), version = "2.7.
|
|
36022
|
+
}(), version = "2.7.16";
|
|
36016
36023
|
function index(t) {
|
|
36017
36024
|
t.component(AddressInput.name, AddressInput), t.component(Affix.name, Affix), t.component(AsideMenu.name, AsideMenu), t.component(Avatar.name, Avatar), t.component(AwesomeButton.name, AwesomeButton), t.component(CapsuleTab.name, CapsuleTab), t.component(Card.name, Card), t.component(Carousel.name, Carousel), t.component(Chat.name, Chat), t.component(ChunkFileUploader.name, ChunkFileUploader), t.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), t.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), t.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), t.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), t.component(ChunkFileUploaderList.name, ChunkFileUploaderList), t.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), t.component(CodeMirrorEditor.name, CodeMirrorEditor), t.component(ColorPicker.name, ColorPicker), t.component(Column.name, Column), t.component(ColumnDefault.name, ColumnDefault), t.component(ColumnDynamic.name, ColumnDynamic), t.component(ColumnMenu.name, ColumnMenu), t.component(ColumnSlot.name, ColumnSlot), t.component(Comment.name, Comment), t.component(Confirmable.name, Confirmable), t.component(ConfirmButton.name, ConfirmButton), t.component(ContextMenu.name, ContextMenu), t.component(CountUp.name, CountUp), t.component(CustomScrollbar.name, CustomScrollbar), t.component(DataBox.name, DataBox), t.component(DataCard.name, DataCard), t.component(DataCardtext.name, DataCardtext), t.component(DataDisplay.name, DataDisplay), t.component(DataIcons.name, DataIcons), t.component(DataImgtext.name, DataImgtext), t.component(DataOperatext.name, DataOperatext), t.component(DataPanel.name, DataPanel), t.component(DataPay.name, DataPay), t.component(DataPrice.name, DataPrice), t.component(DataProgress.name, DataProgress), t.component(DataRotate.name, DataRotate), t.component(DataTablePicker.name, DataTablePicker), t.component(DataTabs.name, DataTabs), t.component(DialogColumn.name, DialogColumn), t.component(DialogExcel.name, DialogExcel), t.component(DialogFilter.name, DialogFilter), t.component(DialogForm.name, DialogForm), t.component(DynamicTable.name, DynamicTable), t.component(ECharts.name, ECharts), t.component(EditableProgress.name, EditableProgress), t.component(EditableTree.name, EditableTree), t.component(EgdCollapse.name, EgdCollapse), t.component(EgdCollapseItem.name, EgdCollapseItem), t.component(ElementDialog.name, ElementDialog), t.component(EmptyView.name, EmptyView), t.component(ErrorView.name, ErrorView), t.component(FlexColumn.name, FlexColumn), t.component(FlexItem.name, FlexItem), t.component(FlexRow.name, FlexRow), t.component(FlexScroller.name, FlexScroller), t.component(Flow.name, Flow), t.component(FlowNode.name, FlowNode), t.component(FormButton.name, FormButton), t.component(FormCascader.name, FormCascader), t.component(FormCheckboxGroup.name, FormCheckboxGroup), t.component(FormDatePicker.name, FormDatePicker), t.component(FormGroup.name, FormGroup), t.component(FormHolder.name, FormHolder), t.component(FormInput.name, FormInput), t.component(FormInputEmail.name, FormInputEmail), t.component(FormInputIdCard.name, FormInputIdCard), t.component(FormInputNumber.name, FormInputNumber), t.component(FormInputPhoneNumber.name, FormInputPhoneNumber), t.component(FormInputTime.name, FormInputTime), t.component(FormItem.name, FormItem), t.component(FormItemConfigProvider.name, FormItemConfigProvider), t.component(FormItemGroup.name, FormItemGroup), t.component(FormRadioGroup.name, FormRadioGroup), t.component(FormSelect.name, FormSelect), t.component(FormSwitch.name, FormSwitch), t.component(FormTemp.name, FormTemp), t.component(FormTextarea.name, FormTextarea), t.component(FormView.name, FormView), t.component(FyArray.name, FyArray), t.component(FyArticle.name, FyArticle), t.component(FyCascader.name, FyCascader), t.component(FyCheckbox.name, FyCheckbox), t.component(FyCode.name, FyCode), t.component(FyCurd.name, FyCurd), t.component(FyDate.name, FyDate), t.component(FyDialogForm.name, FyDialogForm), t.component(FyDraggable.name, FyDraggable), t.component(FyDynamic.name, FyDynamic), t.component(FyEmpty.name, FyEmpty), t.component(FyForm.name, FyForm), t.component(FyFormDesign.name, FyFormDesign), t.component(FyFormMenu.name, FyFormMenu), t.component(FyInput.name, FyInput), t.component(FyInputColor.name, FyInputColor), t.component(FyInputIcon.name, FyInputIcon), t.component(FyInputMap.name, FyInputMap), t.component(FyInputNumber.name, FyInputNumber), t.component(FyInputTable.name, FyInputTable), t.component(FyInputTree.name, FyInputTree), t.component(FyProgress.name, FyProgress), t.component(FyRadio.name, FyRadio), t.component(FyRate.name, FyRate), t.component(FySelect.name, FySelect), t.component(FySlider.name, FySlider), t.component(FySwitch.name, FySwitch), t.component(FyTabs.name, FyTabs), t.component(FyTime.name, FyTime), t.component(FyTitle.name, FyTitle), t.component(FyTree.name, FyTree), t.component(FyUEditor.name, FyUEditor), t.component(FyUpload.name, FyUpload), t.component(GuideSteps.name, GuideSteps), t.component(HeaderMenu.name, HeaderMenu), t.component(HeaderSearch.name, HeaderSearch), t.component(IconCard.name, IconCard), t.component(IconTemp.name, IconTemp), t.component(IframeWindow.name, IframeWindow), t.component(ImageCropper.name, ImageCropper), t.component(ImagePreview.name, ImagePreview), t.component(ImageViewer.name, ImageViewer), t.component(InputNumber.name, InputNumber), t.component(InputNumberRange.name, InputNumberRange), t.component(JSXComponent.name, JSXComponent), t.component(KeepViewAlive.name, KeepViewAlive), t.component(Keyboard.name, Keyboard), t.component(License.name, License), t.component(LoadingView.name, LoadingView), t.component(Login.name, Login), t.component(NameAvatar.name, NameAvatar), t.component(NavBar.name, NavBar), t.component(Notice.name, Notice), t.component(NotImplement.name, NotImplement), t.component(Page.name, Page), t.component(PageableTable.name, PageableTable), t.component(PageableView.name, PageableView), t.component(PageHeader.name, PageHeader), t.component(PageIndex.name, PageIndex), t.component(PageIndexTop.name, PageIndexTop), t.component(PageSkeleton.name, PageSkeleton), t.component(PageSkeletonNew.name, PageSkeletonNew), t.component(PhotoSwipe.name, PhotoSwipe), t.component(Queue.name, Queue), t.component(RecordVideo.name, RecordVideo), t.component(ResizeObserver.name, ResizeObserver), t.component(Search.name, Search), t.component(SearchPopover.name, SearchPopover), t.component(Sign.name, Sign), t.component(SignPanel.name, SignPanel), t.component(Skeleton.name, Skeleton), t.component(SplitPane.name, SplitPane), t.component(Stateful.name, Stateful), t.component(StaticPageableTable.name, StaticPageableTable), t.component(Swiper.name, Swiper), t.component(Tab.name, Tab), t.component(TabItem.name, TabItem), t.component(TableColumn.name, TableColumn), t.component(TablePage.name, TablePage), t.component(TableView.name, TableView), t.component(TagRender.name, TagRender), t.component(TextEllipsis.name, TextEllipsis), t.component(TinymceEditor.name, TinymceEditor), t.component(TinymceWrapper.name, TinymceWrapper), t.component(Toolbar.name, Toolbar), t.component(ToolbarButton.name, ToolbarButton), t.component(Trigger.name, Trigger), t.component(Verify.name, Verify), t.component(VueTagsInput.name, VueTagsInput), t.component(Watermark.name, Watermark);
|
|
36018
36025
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@tinymce/tinymce-vue": "3.2.8",
|
|
33
|
+
"@wangeditor/editor": "^5.1.23",
|
|
34
|
+
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
33
35
|
"@web-utils/core": "^2.0.15",
|
|
34
36
|
"codemirror": "^5.65.11",
|
|
35
37
|
"countup.js": "^2.3.2",
|
|
@@ -46,8 +48,6 @@
|
|
|
46
48
|
"vuedraggable": "^2.24.3"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
|
-
"@babel/preset-env": "^7.20.2",
|
|
50
|
-
"@rollup/plugin-babel": "^6.0.3",
|
|
51
51
|
"@types/lodash": "^4.14.191",
|
|
52
52
|
"@types/node": "^16.18.10",
|
|
53
53
|
"@types/qrcode": "^1.5.0",
|
|
@@ -56,25 +56,22 @@
|
|
|
56
56
|
"@typescript-eslint/parser": "^5.47.0",
|
|
57
57
|
"@vue/babel-preset-jsx": "^1.4.0",
|
|
58
58
|
"@vue/eslint-config-typescript": "^11.0.2",
|
|
59
|
-
"@wangeditor/editor": "^5.1.23",
|
|
60
|
-
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
61
59
|
"@web-utils/eslint-config-vue2": "^1.1.1",
|
|
62
60
|
"@web-utils/stylelint-config-scss": "^1.0.2",
|
|
63
|
-
"chalk": "^5.2.0",
|
|
64
61
|
"element-ui": "^2.15.12",
|
|
65
|
-
"eslint": "^8.
|
|
66
|
-
"eslint-plugin-vue": "^9.
|
|
62
|
+
"eslint": "^8.33.0",
|
|
63
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
67
64
|
"globby": "^13.1.3",
|
|
68
|
-
"sass": "^1.
|
|
65
|
+
"sass": "^1.58.0",
|
|
69
66
|
"slash": "^5.0.0",
|
|
70
|
-
"stylelint": "^14.16.
|
|
67
|
+
"stylelint": "^14.16.1",
|
|
71
68
|
"typescript": "^4.6.4",
|
|
72
|
-
"vite": "^4.
|
|
73
|
-
"vite-plugin-inspect": "^0.7.
|
|
69
|
+
"vite": "^4.1.1",
|
|
70
|
+
"vite-plugin-inspect": "^0.7.15",
|
|
74
71
|
"vite-plugin-style-import": "^1.4.1",
|
|
75
72
|
"vite-plugin-vue2": "^2.0.3",
|
|
76
73
|
"vue": "2.6.14",
|
|
77
|
-
"vue-docgen-api": "^4.56.
|
|
74
|
+
"vue-docgen-api": "^4.56.4",
|
|
78
75
|
"vue-router": "^3.6.5",
|
|
79
76
|
"vue-template-compiler": "2.6.14"
|
|
80
77
|
},
|
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.7.
|
|
5
|
+
"version": "2.7.16",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -18143,6 +18143,14 @@
|
|
|
18143
18143
|
"type": "array"
|
|
18144
18144
|
},
|
|
18145
18145
|
"default": ""
|
|
18146
|
+
},
|
|
18147
|
+
{
|
|
18148
|
+
"name": "selector",
|
|
18149
|
+
"value": {
|
|
18150
|
+
"kind": "expression",
|
|
18151
|
+
"type": "string"
|
|
18152
|
+
},
|
|
18153
|
+
"default": "'img'"
|
|
18146
18154
|
}
|
|
18147
18155
|
],
|
|
18148
18156
|
"slots": [
|