bm-admin-ui 1.0.45-alpha → 1.0.46-alpha
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/es/components/button/index.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/editor/__test__/index.test.d.ts +1 -0
- package/es/components/editor/index.d.ts +1 -1
- package/es/components/editor/src/editor.vue.d.ts +1 -1
- package/es/components/float-table/index.d.ts +1 -1
- package/es/components/float-table/index.js +22 -11
- package/es/components/float-table/src/float-table.vue.d.ts +1 -1
- package/es/components/form-create/index.js +86 -81
- package/es/components/form-designer/index.js +59 -67
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/search-filter/index.d.ts +3 -3
- package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/es/components/select-all/index.d.ts +1 -1
- package/es/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/es/components/videoView/__test__/index.test.d.ts +1 -0
- package/es/components/videoView/index.d.ts +37 -0
- package/es/components/videoView/index.js +100 -0
- package/es/components/videoView/src/videoView.vue.d.ts +36 -0
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/editor/__test__/index.test.d.ts +1 -0
- package/lib/components/editor/index.d.ts +1 -1
- package/lib/components/editor/src/editor.vue.d.ts +1 -1
- package/lib/components/float-table/index.d.ts +1 -1
- package/lib/components/float-table/index.js +22 -11
- package/lib/components/float-table/src/float-table.vue.d.ts +1 -1
- package/lib/components/form-create/index.js +86 -82
- package/lib/components/form-designer/index.js +59 -67
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/search-filter/index.d.ts +3 -3
- package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/lib/components/select-all/index.d.ts +1 -1
- package/lib/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/lib/components/videoView/__test__/index.test.d.ts +1 -0
- package/lib/components/videoView/index.d.ts +37 -0
- package/lib/components/videoView/index.js +105 -0
- package/lib/components/videoView/src/videoView.vue.d.ts +36 -0
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/videoView.css +1 -0
- package/types/components/button/index.d.ts +1 -1
- package/types/components/button/src/button.vue.d.ts +1 -1
- package/types/components/editor/__test__/index.test.d.ts +1 -0
- package/types/components/editor/index.d.ts +1 -1
- package/types/components/editor/src/editor.vue.d.ts +1 -1
- package/types/components/float-table/index.d.ts +1 -1
- package/types/components/float-table/src/float-table.vue.d.ts +1 -1
- package/types/components/index.d.ts +1 -0
- package/types/components/search-filter/index.d.ts +3 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/types/components/select-all/index.d.ts +1 -1
- package/types/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/types/components/videoView/__test__/index.test.d.ts +1 -0
- package/types/components/videoView/index.d.ts +37 -0
- package/types/components/videoView/src/videoView.vue.d.ts +36 -0
- package/index.esm.js +0 -150081
- package/index.js +0 -150115
|
@@ -87,7 +87,7 @@ const _hoisted_1$f = {
|
|
|
87
87
|
};
|
|
88
88
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
89
89
|
__name: "drag-tool",
|
|
90
|
-
props: ["rule", "
|
|
90
|
+
props: ["rule", "activeRuleField", "parentRule"],
|
|
91
91
|
emits: [
|
|
92
92
|
"copy",
|
|
93
93
|
"delete",
|
|
@@ -98,7 +98,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
98
98
|
],
|
|
99
99
|
setup(__props, { emit: emits }) {
|
|
100
100
|
const props = __props;
|
|
101
|
-
const isActive = computed(() => props.rule.field === props.
|
|
101
|
+
const isActive = computed(() => props.rule.field === props.activeRuleField);
|
|
102
102
|
const option = computed(() => ({
|
|
103
103
|
form: {
|
|
104
104
|
layout: "vertical"
|
|
@@ -106,6 +106,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
submitBtn: {
|
|
107
107
|
show: false
|
|
108
108
|
},
|
|
109
|
+
global: {
|
|
110
|
+
"*": {
|
|
111
|
+
props: {
|
|
112
|
+
activeRuleField: props.activeRuleField
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
109
116
|
parentType: props.parentRule?.type,
|
|
110
117
|
childRules: props.parentRule?.config?.childRules
|
|
111
118
|
}));
|
|
@@ -136,16 +143,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
136
143
|
props.rule.config.isHover = true;
|
|
137
144
|
}
|
|
138
145
|
function handleNestSetActiveRule(element, parentRule) {
|
|
139
|
-
emits("setActiveRule", element, parentRule
|
|
146
|
+
emits("setActiveRule", element, parentRule);
|
|
140
147
|
}
|
|
141
|
-
function
|
|
142
|
-
emitCopyEvt(rule,
|
|
148
|
+
function handleNestCopy(rule, parentRule) {
|
|
149
|
+
emitCopyEvt(rule, parentRule);
|
|
143
150
|
}
|
|
144
|
-
function
|
|
145
|
-
emitDeleteEvt(rule,
|
|
151
|
+
function handleNestDelete(rule, parentRule) {
|
|
152
|
+
emitDeleteEvt(rule, parentRule);
|
|
146
153
|
}
|
|
147
|
-
function handleNestAdd(rule) {
|
|
148
|
-
emits("widgetAdd", rule,
|
|
154
|
+
function handleNestAdd(rule, parentRule) {
|
|
155
|
+
emits("widgetAdd", rule, parentRule);
|
|
149
156
|
}
|
|
150
157
|
return (_ctx, _cache) => {
|
|
151
158
|
const _component_FormCreate = resolveComponent("FormCreate");
|
|
@@ -170,8 +177,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
170
177
|
onNestMouseenter: handleRowWidgetMouseenter,
|
|
171
178
|
onNestMouseleave: handleRowWidgetMouseleave,
|
|
172
179
|
onNestSetActiveRule: handleNestSetActiveRule,
|
|
173
|
-
onNestCopy:
|
|
174
|
-
onNestDelete:
|
|
180
|
+
onNestCopy: handleNestCopy,
|
|
181
|
+
onNestDelete: handleNestDelete,
|
|
175
182
|
onNestAdd: handleNestAdd
|
|
176
183
|
}, null, 8, ["option", "rule"])) : (openBlock(), createBlock(WidgetInstruction, {
|
|
177
184
|
key: 1,
|
|
@@ -246,7 +253,7 @@ const _hoisted_2$a = {
|
|
|
246
253
|
};
|
|
247
254
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
248
255
|
__name: "widget-row",
|
|
249
|
-
props: ["
|
|
256
|
+
props: ["activeRuleField", "formCreateInject"],
|
|
250
257
|
emits: [
|
|
251
258
|
"mouseenter",
|
|
252
259
|
"mouseleave",
|
|
@@ -257,32 +264,35 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
257
264
|
],
|
|
258
265
|
setup(__props, { emit: emits }) {
|
|
259
266
|
const props = __props;
|
|
260
|
-
const
|
|
267
|
+
const rowRule = computed(() => props.formCreateInject.rule);
|
|
268
|
+
const childRules = computed(() => rowRule.value.config.childRules);
|
|
261
269
|
function handleMouseenter() {
|
|
262
270
|
emits("mouseenter");
|
|
263
271
|
}
|
|
264
272
|
function handleMouseleave() {
|
|
265
273
|
emits("mouseleave");
|
|
266
274
|
}
|
|
267
|
-
function emitSetActiveRuleEvt(rule, parentRule
|
|
275
|
+
function emitSetActiveRuleEvt(rule, parentRule) {
|
|
268
276
|
emits("set-active-rule", rule, parentRule);
|
|
269
277
|
}
|
|
270
278
|
function handleClick(element) {
|
|
271
|
-
emitSetActiveRuleEvt(element);
|
|
279
|
+
emitSetActiveRuleEvt(element, rowRule.value);
|
|
272
280
|
}
|
|
273
281
|
function handleRowWidgetAdd({ newIndex }) {
|
|
274
|
-
emits("add", childRules.value[newIndex]);
|
|
282
|
+
emits("add", childRules.value[newIndex], rowRule.value);
|
|
275
283
|
}
|
|
276
284
|
function handleRowWidgetUpdate({ newIndex }) {
|
|
277
285
|
const rule = childRules.value[newIndex];
|
|
278
286
|
if (rule)
|
|
279
|
-
emitSetActiveRuleEvt(rule);
|
|
287
|
+
emitSetActiveRuleEvt(rule, rowRule.value);
|
|
280
288
|
}
|
|
281
|
-
function handleCopy(rule) {
|
|
282
|
-
|
|
289
|
+
function handleCopy(rule, parentRule) {
|
|
290
|
+
parentRule = parentRule || rowRule.value;
|
|
291
|
+
emits("copy", rule, parentRule);
|
|
283
292
|
}
|
|
284
|
-
function handleDelete(rule) {
|
|
285
|
-
|
|
293
|
+
function handleDelete(rule, parentRule) {
|
|
294
|
+
parentRule = parentRule || rowRule.value;
|
|
295
|
+
emits("delete", rule, parentRule);
|
|
286
296
|
}
|
|
287
297
|
function handleWidgetInTableActive(rule, parentRule) {
|
|
288
298
|
emitSetActiveRuleEvt(rule, parentRule);
|
|
@@ -319,7 +329,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
319
329
|
default: withCtx(() => [
|
|
320
330
|
createVNode(DragTool, {
|
|
321
331
|
rule: element,
|
|
322
|
-
"active-rule": __props.
|
|
332
|
+
"active-rule-field": __props.activeRuleField,
|
|
323
333
|
"parent-rule": __props.formCreateInject.rule,
|
|
324
334
|
onMouseenter: handleMouseenter,
|
|
325
335
|
onMouseleave: handleMouseleave,
|
|
@@ -327,7 +337,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
327
337
|
onCopy: handleCopy,
|
|
328
338
|
onDelete: handleDelete,
|
|
329
339
|
onSetActiveRule: handleWidgetInTableActive
|
|
330
|
-
}, null, 8, ["rule", "active-rule", "parent-rule", "onClick"]),
|
|
340
|
+
}, null, 8, ["rule", "active-rule-field", "parent-rule", "onClick"]),
|
|
331
341
|
createVNode(DragPlaceholder)
|
|
332
342
|
]),
|
|
333
343
|
_: 2
|
|
@@ -1795,7 +1805,7 @@ const _hoisted_17 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
|
|
|
1795
1805
|
const _hoisted_18 = /* @__PURE__ */ createElementVNode("a", null, "\u5220\u9664", -1);
|
|
1796
1806
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1797
1807
|
__name: "widget-table",
|
|
1798
|
-
props: ["formCreateInject", "
|
|
1808
|
+
props: ["formCreateInject", "activeRuleField"],
|
|
1799
1809
|
emits: [
|
|
1800
1810
|
"add",
|
|
1801
1811
|
"mouseenter",
|
|
@@ -1806,16 +1816,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1806
1816
|
],
|
|
1807
1817
|
setup(__props, { emit: emits }) {
|
|
1808
1818
|
const props = __props;
|
|
1809
|
-
const
|
|
1810
|
-
const childRules = computed(() =>
|
|
1819
|
+
const tableRule = computed(() => props.formCreateInject.rule);
|
|
1820
|
+
const childRules = computed(() => tableRule.value.config.childRules);
|
|
1811
1821
|
const showDelete = computed(() => showFeature("delete"));
|
|
1812
1822
|
const showImport = computed(() => showFeature("import"));
|
|
1813
1823
|
const showCopy = computed(() => showFeature("copy"));
|
|
1814
1824
|
function showFeature(featureId) {
|
|
1815
|
-
return
|
|
1825
|
+
return tableRule.value.config.tableAdvancedFeatures.includes(featureId);
|
|
1816
1826
|
}
|
|
1817
1827
|
function handleAdd({ newIndex }) {
|
|
1818
|
-
emits("add", childRules.value[newIndex]);
|
|
1828
|
+
emits("add", childRules.value[newIndex], tableRule.value);
|
|
1819
1829
|
}
|
|
1820
1830
|
function handleMouseenter() {
|
|
1821
1831
|
emits("mouseenter");
|
|
@@ -1823,8 +1833,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1823
1833
|
function handleMouseleave() {
|
|
1824
1834
|
emits("mouseleave");
|
|
1825
1835
|
}
|
|
1826
|
-
function emitSetActiveRuleEvt(
|
|
1827
|
-
emits("set-active-rule",
|
|
1836
|
+
function emitSetActiveRuleEvt(rule) {
|
|
1837
|
+
emits("set-active-rule", rule, tableRule.value);
|
|
1828
1838
|
}
|
|
1829
1839
|
function handleClick(element) {
|
|
1830
1840
|
emitSetActiveRuleEvt(element);
|
|
@@ -1832,11 +1842,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1832
1842
|
function handleUpdate({ newIndex }) {
|
|
1833
1843
|
emitSetActiveRuleEvt(childRules.value[newIndex]);
|
|
1834
1844
|
}
|
|
1835
|
-
function handleCopy(
|
|
1836
|
-
emits("copy",
|
|
1845
|
+
function handleCopy(rule) {
|
|
1846
|
+
emits("copy", rule, tableRule.value);
|
|
1837
1847
|
}
|
|
1838
|
-
function handleDelete(
|
|
1839
|
-
emits("delete",
|
|
1848
|
+
function handleDelete(rule) {
|
|
1849
|
+
emits("delete", rule, tableRule.value);
|
|
1840
1850
|
}
|
|
1841
1851
|
return (_ctx, _cache) => {
|
|
1842
1852
|
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
@@ -1881,7 +1891,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1881
1891
|
unref(childRules).length ? (openBlock(), createElementBlock("div", _hoisted_5$1, _hoisted_8)) : (openBlock(), createElementBlock("div", _hoisted_9, "\u53EF\u62D6\u5165\u591A\u4E2A\u63A7\u4EF6")),
|
|
1882
1892
|
createVNode(unref(Draggable), {
|
|
1883
1893
|
"component-data": {
|
|
1884
|
-
field: unref(
|
|
1894
|
+
field: unref(tableRule).field,
|
|
1885
1895
|
type: unref(WidgetType).TableWidget
|
|
1886
1896
|
},
|
|
1887
1897
|
class: "bm-widget-table__drag-content",
|
|
@@ -1907,14 +1917,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1907
1917
|
}, [
|
|
1908
1918
|
createVNode(DragTool, {
|
|
1909
1919
|
rule: element,
|
|
1910
|
-
"active-rule": __props.
|
|
1920
|
+
"active-rule-field": __props.activeRuleField,
|
|
1911
1921
|
"parent-rule": __props.formCreateInject.rule,
|
|
1912
1922
|
onMouseenter: handleMouseenter,
|
|
1913
1923
|
onMouseleave: handleMouseleave,
|
|
1914
1924
|
onClick: withModifiers(($event) => handleClick(element), ["stop"]),
|
|
1915
1925
|
onCopy: handleCopy,
|
|
1916
1926
|
onDelete: handleDelete
|
|
1917
|
-
}, null, 8, ["rule", "active-rule", "parent-rule", "onClick"]),
|
|
1927
|
+
}, null, 8, ["rule", "active-rule-field", "parent-rule", "onClick"]),
|
|
1918
1928
|
createVNode(DragPlaceholder)
|
|
1919
1929
|
], 4)
|
|
1920
1930
|
]),
|
|
@@ -3984,22 +3994,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3984
3994
|
function setActiveRule(rule, parentRule = void 0) {
|
|
3985
3995
|
activeRule.value = rule;
|
|
3986
3996
|
activeParentRule.value = parentRule;
|
|
3987
|
-
widgetFormRules.forEach((item) => {
|
|
3988
|
-
if (item.type === WidgetType.RowWidget || item.type === WidgetType.TableWidget) {
|
|
3989
|
-
nextTick(() => {
|
|
3990
|
-
item.props.activeRule = rule;
|
|
3991
|
-
});
|
|
3992
|
-
if (item.type === WidgetType.RowWidget && item?.config?.childRules?.length) {
|
|
3993
|
-
item.config.childRules.forEach((childRule) => {
|
|
3994
|
-
if (childRule.type === WidgetType.TableWidget) {
|
|
3995
|
-
nextTick(() => {
|
|
3996
|
-
childRule.props.activeRule = rule;
|
|
3997
|
-
});
|
|
3998
|
-
}
|
|
3999
|
-
});
|
|
4000
|
-
}
|
|
4001
|
-
}
|
|
4002
|
-
});
|
|
4003
3997
|
if (!cacheProps[rule.field]) {
|
|
4004
3998
|
cacheProps[rule.field] = makePropRule(rule, parentRule);
|
|
4005
3999
|
}
|
|
@@ -4056,20 +4050,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4056
4050
|
}
|
|
4057
4051
|
}
|
|
4058
4052
|
function getFormRule() {
|
|
4059
|
-
return widgetFormRules.map((rule) =>
|
|
4060
|
-
const ruleParsed = parseRule(rule);
|
|
4061
|
-
const childRules = rule?.config?.childRules;
|
|
4062
|
-
if (childRules?.length) {
|
|
4063
|
-
const childRulesParsed = ruleParsed.config.childRules = [];
|
|
4064
|
-
childRules.forEach((ruleItem) => {
|
|
4065
|
-
childRulesParsed.push(parseRule(ruleItem));
|
|
4066
|
-
});
|
|
4067
|
-
}
|
|
4068
|
-
return ruleParsed;
|
|
4069
|
-
});
|
|
4053
|
+
return widgetFormRules.map((rule) => parseRule(rule));
|
|
4070
4054
|
}
|
|
4071
4055
|
function parseRule(rule) {
|
|
4072
|
-
|
|
4056
|
+
const ruleParsed = rule.config.config.parse(rule);
|
|
4057
|
+
const childRules = rule?.config?.childRules;
|
|
4058
|
+
if (childRules?.length) {
|
|
4059
|
+
const childRulesParsed = ruleParsed.config.childRules = [];
|
|
4060
|
+
childRules.forEach((ruleItem) => {
|
|
4061
|
+
childRulesParsed.push(parseRule(ruleItem));
|
|
4062
|
+
});
|
|
4063
|
+
}
|
|
4064
|
+
return ruleParsed;
|
|
4073
4065
|
}
|
|
4074
4066
|
function edit(formRules) {
|
|
4075
4067
|
widgetFormRules.splice(0);
|
|
@@ -4261,7 +4253,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4261
4253
|
createElementVNode("div", _hoisted_4, [
|
|
4262
4254
|
createVNode(DragTool, {
|
|
4263
4255
|
rule: element,
|
|
4264
|
-
"active-rule": activeRule.value,
|
|
4256
|
+
"active-rule-field": activeRule.value.field,
|
|
4265
4257
|
style: normalizeStyle({
|
|
4266
4258
|
width: element.config.fieldRatio
|
|
4267
4259
|
}),
|
|
@@ -4270,7 +4262,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4270
4262
|
onClick: ($event) => handleFormItemClick(element),
|
|
4271
4263
|
onSetActiveRule: setActiveRule,
|
|
4272
4264
|
onWidgetAdd: handleWidgetAdd
|
|
4273
|
-
}, null, 8, ["rule", "active-rule", "style", "onClick"]),
|
|
4265
|
+
}, null, 8, ["rule", "active-rule-field", "style", "onClick"]),
|
|
4274
4266
|
createVNode(DragPlaceholder)
|
|
4275
4267
|
])
|
|
4276
4268
|
]),
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.js
CHANGED
|
@@ -115,7 +115,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
115
115
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>>;
|
|
118
|
-
emits: (event: "
|
|
118
|
+
emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
|
|
119
119
|
isExpand: import("vue").Ref<boolean>;
|
|
120
120
|
searchResetBtnRule: {
|
|
121
121
|
type: string;
|
|
@@ -156,7 +156,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
156
156
|
handleResize: () => void;
|
|
157
157
|
expandRule: import("vue").ComputedRef<unknown[]>;
|
|
158
158
|
handleChangeExpand: (value: any) => void;
|
|
159
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
159
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset" | "update:value" | "expand")[], "submit" | "reset" | "update:value" | "expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
160
160
|
showExpandBtn: {
|
|
161
161
|
type: BooleanConstructor;
|
|
162
162
|
default: boolean;
|
|
@@ -217,8 +217,8 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
217
217
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
value: Record<string, any>;
|
|
221
220
|
loading: boolean;
|
|
221
|
+
value: Record<string, any>;
|
|
222
222
|
showExpandBtn: boolean;
|
|
223
223
|
showSearchIcon: boolean;
|
|
224
224
|
expandPlacement: "left" | "right";
|
|
@@ -115,7 +115,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
115
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>>;
|
|
118
|
-
emits: (event: "
|
|
118
|
+
emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
|
|
119
119
|
isExpand: import("vue").Ref<boolean>;
|
|
120
120
|
searchResetBtnRule: {
|
|
121
121
|
type: string;
|
|
@@ -156,7 +156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
156
|
handleResize: () => void;
|
|
157
157
|
expandRule: import("vue").ComputedRef<unknown[]>;
|
|
158
158
|
handleChangeExpand: (value: any) => void;
|
|
159
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
159
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset" | "update:value" | "expand")[], "submit" | "reset" | "update:value" | "expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
160
160
|
showExpandBtn: {
|
|
161
161
|
type: BooleanConstructor;
|
|
162
162
|
default: boolean;
|
|
@@ -217,8 +217,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
value: Record<string, any>;
|
|
221
220
|
loading: boolean;
|
|
221
|
+
value: Record<string, any>;
|
|
222
222
|
showExpandBtn: boolean;
|
|
223
223
|
showSearchIcon: boolean;
|
|
224
224
|
expandPlacement: "left" | "right";
|
|
@@ -210,7 +210,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const BmVideo: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
src: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
src: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
width: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
}>> & {}>>;
|
|
21
|
+
visible: import("vue").Ref<boolean>;
|
|
22
|
+
play: () => void;
|
|
23
|
+
PlayCircleFilled: import("@ant-design/icons-vue/lib/icons/PlayCircleFilled").PlayCircleFilledIconType;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
src: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
width: string;
|
|
35
|
+
}>>;
|
|
36
|
+
export { BmVideo };
|
|
37
|
+
export default BmVideo;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeStyle, withModifiers, createVNode, unref, withCtx } from 'vue';
|
|
3
|
+
import { PlayCircleFilled } from '@ant-design/icons-vue';
|
|
4
|
+
|
|
5
|
+
var _export_sfc = (sfc, props) => {
|
|
6
|
+
const target = sfc.__vccOpts || sfc;
|
|
7
|
+
for (const [key, val] of props) {
|
|
8
|
+
target[key] = val;
|
|
9
|
+
}
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const _hoisted_1 = ["onClick"];
|
|
14
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "mask" }, null, -1);
|
|
15
|
+
const _hoisted_3 = ["src"];
|
|
16
|
+
const _hoisted_4 = ["src"];
|
|
17
|
+
const _hoisted_5 = ["src"];
|
|
18
|
+
const _hoisted_6 = ["src"];
|
|
19
|
+
const _hoisted_7 = ["src"];
|
|
20
|
+
const _hoisted_8 = ["src"];
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
|
+
__name: "videoView",
|
|
23
|
+
props: {
|
|
24
|
+
src: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
width: {
|
|
29
|
+
type: String || Number,
|
|
30
|
+
default: 102
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const visible = ref(false);
|
|
36
|
+
const play = () => {
|
|
37
|
+
visible.value = true;
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
const _component_a_modal = resolveComponent("a-modal");
|
|
41
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
42
|
+
createElementVNode("div", {
|
|
43
|
+
class: "my_video",
|
|
44
|
+
style: normalizeStyle({ width: `${props.width}px`, height: `${props.width}px` }),
|
|
45
|
+
onClick: withModifiers(play, ["prevent"])
|
|
46
|
+
}, [
|
|
47
|
+
_hoisted_2,
|
|
48
|
+
createVNode(unref(PlayCircleFilled), { class: "play" }),
|
|
49
|
+
createElementVNode("video", {
|
|
50
|
+
src: props.src,
|
|
51
|
+
muted: "",
|
|
52
|
+
class: "video"
|
|
53
|
+
}, [
|
|
54
|
+
createElementVNode("source", {
|
|
55
|
+
src: props.src,
|
|
56
|
+
type: "video/mp4"
|
|
57
|
+
}, null, 8, _hoisted_4),
|
|
58
|
+
createElementVNode("source", {
|
|
59
|
+
src: props.src,
|
|
60
|
+
type: "video/mov"
|
|
61
|
+
}, null, 8, _hoisted_5)
|
|
62
|
+
], 8, _hoisted_3)
|
|
63
|
+
], 12, _hoisted_1),
|
|
64
|
+
createVNode(_component_a_modal, {
|
|
65
|
+
visible: visible.value,
|
|
66
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
67
|
+
"destroy-on-close": "",
|
|
68
|
+
centered: "",
|
|
69
|
+
class: "my_video_modal",
|
|
70
|
+
width: "1000px",
|
|
71
|
+
footer: null
|
|
72
|
+
}, {
|
|
73
|
+
default: withCtx(() => [
|
|
74
|
+
createElementVNode("video", {
|
|
75
|
+
style: { "margin-top": "20px" },
|
|
76
|
+
src: props.src,
|
|
77
|
+
autoplay: "",
|
|
78
|
+
controls: ""
|
|
79
|
+
}, [
|
|
80
|
+
createElementVNode("source", {
|
|
81
|
+
src: props.src,
|
|
82
|
+
type: "video/mp4"
|
|
83
|
+
}, null, 8, _hoisted_7),
|
|
84
|
+
createElementVNode("source", {
|
|
85
|
+
src: props.src,
|
|
86
|
+
type: "video/mov"
|
|
87
|
+
}, null, 8, _hoisted_8)
|
|
88
|
+
], 8, _hoisted_6)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["visible"])
|
|
92
|
+
], 64);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
var MyVideo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "videoView.vue"]]);
|
|
97
|
+
|
|
98
|
+
const BmVideo = withInstall(MyVideo);
|
|
99
|
+
|
|
100
|
+
export { BmVideo, BmVideo as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
src: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
src: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
width: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
}>> & {}>>;
|
|
21
|
+
visible: import("vue").Ref<boolean>;
|
|
22
|
+
play: () => void;
|
|
23
|
+
PlayCircleFilled: import("@ant-design/icons-vue/lib/icons/PlayCircleFilled").PlayCircleFilledIconType;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
src: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
width: string;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -293,8 +293,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
293
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
294
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
}, {
|
|
296
|
-
value: string;
|
|
297
296
|
disabled: boolean;
|
|
297
|
+
value: string;
|
|
298
298
|
options: {
|
|
299
299
|
[key: string]: any;
|
|
300
300
|
};
|
|
@@ -293,8 +293,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
294
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
}, {
|
|
296
|
-
value: string;
|
|
297
296
|
disabled: boolean;
|
|
297
|
+
value: string;
|
|
298
298
|
options: {
|
|
299
299
|
[key: string]: any;
|
|
300
300
|
};
|
|
@@ -58,7 +58,7 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
58
58
|
}>;
|
|
59
59
|
trNodes: import("vue").Ref<any>;
|
|
60
60
|
isInScroll: import("vue").Ref<boolean>;
|
|
61
|
-
|
|
61
|
+
inMaxScrollX: import("vue").Ref<boolean>;
|
|
62
62
|
floatRow: import("vue").Ref<{}>;
|
|
63
63
|
floatRowIndex: import("vue").Ref<undefined>;
|
|
64
64
|
floatHandleDomCol: import("vue").Ref<any>;
|