greeks-live-ui 0.0.20 → 0.0.21
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/index.css +1 -1
- package/es/components/chart/index.d.ts +28 -28
- package/es/components/chart/src/chart.vue.d.ts +28 -28
- package/es/components/chart-panel/index.d.ts +10 -10
- package/es/components/chart-panel/src/chart-panel.vue.d.ts +10 -10
- package/es/components/demo/index.d.ts +28 -28
- package/es/components/demo/src/demo.vue.d.ts +28 -28
- package/es/hooks/use-floating/index.d.ts +8 -8
- package/es/index.mjs +19 -19
- package/es/packages/components/button1/index.mjs +2 -2
- package/es/packages/components/button1/src/button1.mjs +5 -72
- package/es/packages/components/button1/src/button1.mjs.map +1 -1
- package/es/packages/components/button1/src/button12.mjs +72 -5
- package/es/packages/components/button1/src/button12.mjs.map +1 -1
- package/es/packages/components/chart/index.mjs +2 -2
- package/es/packages/components/chart/src/chart.mjs +12 -85
- package/es/packages/components/chart/src/chart.mjs.map +1 -1
- package/es/packages/components/chart/src/chart2.mjs +85 -12
- package/es/packages/components/chart/src/chart2.mjs.map +1 -1
- package/es/packages/components/checkbox/index.mjs +2 -2
- package/es/packages/components/checkbox/src/checkbox.mjs +5 -31
- package/es/packages/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/packages/components/checkbox/src/checkbox2.mjs +31 -5
- package/es/packages/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/packages/components/icon/index.mjs +2 -2
- package/es/packages/components/icon/src/icon.mjs +15 -48
- package/es/packages/components/icon/src/icon.mjs.map +1 -1
- package/es/packages/components/icon/src/icon2.mjs +48 -15
- package/es/packages/components/icon/src/icon2.mjs.map +1 -1
- package/es/packages/components/index.mjs +19 -19
- package/es/packages/components/menu/index.mjs +2 -2
- package/es/packages/components/menu/src/menu.mjs +5 -31
- package/es/packages/components/menu/src/menu.mjs.map +1 -1
- package/es/packages/components/menu/src/menu2.mjs +31 -5
- package/es/packages/components/menu/src/menu2.mjs.map +1 -1
- package/es/packages/components/menu-item/index.mjs +2 -2
- package/es/packages/components/menu-item/src/menu-item.mjs +5 -31
- package/es/packages/components/menu-item/src/menu-item.mjs.map +1 -1
- package/es/packages/components/menu-item/src/menu-item2.mjs +31 -5
- package/es/packages/components/menu-item/src/menu-item2.mjs.map +1 -1
- package/es/packages/components/page-turner/index.mjs +2 -2
- package/es/packages/components/page-turner/src/page-turner.mjs +12 -67
- package/es/packages/components/page-turner/src/page-turner.mjs.map +1 -1
- package/es/packages/components/page-turner/src/page-turner2.mjs +67 -12
- package/es/packages/components/page-turner/src/page-turner2.mjs.map +1 -1
- package/es/packages/components/panel/index.mjs +2 -2
- package/es/packages/components/panel/src/panel.mjs +82 -5
- package/es/packages/components/panel/src/panel.mjs.map +1 -1
- package/es/packages/components/panel/src/panel2.mjs +5 -82
- package/es/packages/components/panel/src/panel2.mjs.map +1 -1
- package/es/packages/components/panel-atm-iv/index.mjs +2 -2
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv.mjs +21 -886
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv.mjs.map +1 -1
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv2.mjs +886 -21
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv2.mjs.map +1 -1
- package/es/packages/components/panel-max-pain-price/index.mjs +2 -2
- package/es/packages/components/panel-max-pain-price/src/panel-max-pain-price.mjs +288 -22
- package/es/packages/components/panel-max-pain-price/src/panel-max-pain-price.mjs.map +1 -1
- package/es/packages/components/panel-max-pain-price/src/panel-max-pain-price2.mjs +22 -288
- package/es/packages/components/panel-max-pain-price/src/panel-max-pain-price2.mjs.map +1 -1
- package/es/packages/components/panel-option-open-interest/index.mjs +2 -2
- package/es/packages/components/panel-option-open-interest/src/panel-option-open-interest.mjs +378 -22
- package/es/packages/components/panel-option-open-interest/src/panel-option-open-interest.mjs.map +1 -1
- package/es/packages/components/panel-option-open-interest/src/panel-option-open-interest2.mjs +22 -378
- package/es/packages/components/panel-option-open-interest/src/panel-option-open-interest2.mjs.map +1 -1
- package/es/packages/components/panel-option-trade-volume/index.mjs +2 -2
- package/es/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.mjs +504 -22
- package/es/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.mjs.map +1 -1
- package/es/packages/components/panel-option-trade-volume/src/panel-option-trade-volume2.mjs +22 -504
- package/es/packages/components/panel-option-trade-volume/src/panel-option-trade-volume2.mjs.map +1 -1
- package/es/packages/components/panel-rv/index.mjs +2 -2
- package/es/packages/components/panel-rv/src/panel-rv.mjs +22 -741
- package/es/packages/components/panel-rv/src/panel-rv.mjs.map +1 -1
- package/es/packages/components/panel-rv/src/panel-rv2.mjs +741 -22
- package/es/packages/components/panel-rv/src/panel-rv2.mjs.map +1 -1
- package/es/packages/components/panel-rv-calc/index.mjs +2 -2
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc.mjs +8 -507
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc.mjs.map +1 -1
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc2.mjs +507 -8
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc2.mjs.map +1 -1
- package/es/packages/components/panel-skew/index.mjs +2 -2
- package/es/packages/components/panel-skew/src/panel-skew.mjs +21 -672
- package/es/packages/components/panel-skew/src/panel-skew.mjs.map +1 -1
- package/es/packages/components/panel-skew/src/panel-skew2.mjs +672 -21
- package/es/packages/components/panel-skew/src/panel-skew2.mjs.map +1 -1
- package/es/packages/components/panel-vrp/index.mjs +2 -2
- package/es/packages/components/panel-vrp/src/panel-vrp.mjs +22 -413
- package/es/packages/components/panel-vrp/src/panel-vrp.mjs.map +1 -1
- package/es/packages/components/panel-vrp/src/panel-vrp2.mjs +413 -22
- package/es/packages/components/panel-vrp/src/panel-vrp2.mjs.map +1 -1
- package/es/packages/components/select/index.mjs +2 -2
- package/es/packages/components/select/src/option.mjs +1 -1
- package/es/packages/components/select/src/select.mjs +10 -41
- package/es/packages/components/select/src/select.mjs.map +1 -1
- package/es/packages/components/select/src/select2.mjs +41 -10
- package/es/packages/components/select/src/select2.mjs.map +1 -1
- package/es/packages/components/table/index.mjs +2 -2
- package/es/packages/components/table/src/table.mjs +5 -37
- package/es/packages/components/table/src/table.mjs.map +1 -1
- package/es/packages/components/table/src/table2.mjs +37 -5
- package/es/packages/components/table/src/table2.mjs.map +1 -1
- package/es/packages/components/tooltip/index.mjs +2 -2
- package/es/packages/components/tooltip/src/tooltip.mjs +7 -33
- package/es/packages/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/packages/components/tooltip/src/tooltip2.mjs +33 -7
- package/es/packages/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/utils/vue/vnode.d.ts +6 -6
- package/lib/components/chart/index.d.ts +28 -28
- package/lib/components/chart/src/chart.vue.d.ts +28 -28
- package/lib/components/chart-panel/index.d.ts +10 -10
- package/lib/components/chart-panel/src/chart-panel.vue.d.ts +10 -10
- package/lib/components/demo/index.d.ts +28 -28
- package/lib/components/demo/src/demo.vue.d.ts +28 -28
- package/lib/hooks/use-floating/index.d.ts +8 -8
- package/lib/index.js +15 -15
- package/lib/packages/components/button1/index.js +2 -2
- package/lib/packages/components/button1/src/button1.js +6 -72
- package/lib/packages/components/button1/src/button1.js.map +1 -1
- package/lib/packages/components/button1/src/button12.js +72 -6
- package/lib/packages/components/button1/src/button12.js.map +1 -1
- package/lib/packages/components/chart-panel/index.js +2 -2
- package/lib/packages/components/chart-panel/src/chart-panel.js +273 -39
- package/lib/packages/components/chart-panel/src/chart-panel.js.map +1 -1
- package/lib/packages/components/chart-panel/src/chart-panel2.js +39 -273
- package/lib/packages/components/chart-panel/src/chart-panel2.js.map +1 -1
- package/lib/packages/components/checkbox-group/index.js +2 -2
- package/lib/packages/components/checkbox-group/src/checkbox-group.js +31 -6
- package/lib/packages/components/checkbox-group/src/checkbox-group.js.map +1 -1
- package/lib/packages/components/checkbox-group/src/checkbox-group2.js +6 -31
- package/lib/packages/components/checkbox-group/src/checkbox-group2.js.map +1 -1
- package/lib/packages/components/dropdown/index.js +2 -2
- package/lib/packages/components/dropdown/src/dropdown.js +34 -6
- package/lib/packages/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/packages/components/dropdown/src/dropdown2.js +6 -34
- package/lib/packages/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/packages/components/dropdown-button/index.js +2 -2
- package/lib/packages/components/dropdown-button/src/dropdown-button.js +39 -6
- package/lib/packages/components/dropdown-button/src/dropdown-button.js.map +1 -1
- package/lib/packages/components/dropdown-button/src/dropdown-button2.js +6 -39
- package/lib/packages/components/dropdown-button/src/dropdown-button2.js.map +1 -1
- package/lib/packages/components/index.js +15 -15
- package/lib/packages/components/menu/index.js +2 -2
- package/lib/packages/components/menu/src/menu.js +6 -31
- package/lib/packages/components/menu/src/menu.js.map +1 -1
- package/lib/packages/components/menu/src/menu2.js +31 -6
- package/lib/packages/components/menu/src/menu2.js.map +1 -1
- package/lib/packages/components/panel/index.js +2 -2
- package/lib/packages/components/panel/src/panel.js +82 -6
- package/lib/packages/components/panel/src/panel.js.map +1 -1
- package/lib/packages/components/panel/src/panel2.js +6 -82
- package/lib/packages/components/panel/src/panel2.js.map +1 -1
- package/lib/packages/components/panel-iv-skew/index.js +2 -2
- package/lib/packages/components/panel-iv-skew/src/panel-iv-skew.js +23 -398
- package/lib/packages/components/panel-iv-skew/src/panel-iv-skew.js.map +1 -1
- package/lib/packages/components/panel-iv-skew/src/panel-iv-skew2.js +398 -23
- package/lib/packages/components/panel-iv-skew/src/panel-iv-skew2.js.map +1 -1
- package/lib/packages/components/panel-option-open-interest/index.js +2 -2
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest.js +378 -23
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest.js.map +1 -1
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest2.js +23 -378
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest2.js.map +1 -1
- package/lib/packages/components/panel-option-trade-volume/index.js +2 -2
- package/lib/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.js +504 -23
- package/lib/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.js.map +1 -1
- package/lib/packages/components/panel-option-trade-volume/src/panel-option-trade-volume2.js +23 -504
- package/lib/packages/components/panel-option-trade-volume/src/panel-option-trade-volume2.js.map +1 -1
- package/lib/packages/components/panel-skew/index.js +2 -2
- package/lib/packages/components/panel-skew/src/panel-skew.js +672 -22
- package/lib/packages/components/panel-skew/src/panel-skew.js.map +1 -1
- package/lib/packages/components/panel-skew/src/panel-skew2.js +22 -672
- package/lib/packages/components/panel-skew/src/panel-skew2.js.map +1 -1
- package/lib/packages/components/panel-volatility-term-structure/index.js +2 -2
- package/lib/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure.js +23 -365
- package/lib/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure.js.map +1 -1
- package/lib/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure2.js +365 -23
- package/lib/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure2.js.map +1 -1
- package/lib/packages/components/radio/index.js +2 -2
- package/lib/packages/components/radio/src/radio-button.js +1 -1
- package/lib/packages/components/radio/src/radio-group.js +1 -1
- package/lib/packages/components/radio/src/radio.js +31 -6
- package/lib/packages/components/radio/src/radio.js.map +1 -1
- package/lib/packages/components/radio/src/radio2.js +6 -31
- package/lib/packages/components/radio/src/radio2.js.map +1 -1
- package/lib/packages/components/select/index.js +2 -2
- package/lib/packages/components/select/src/option.js +1 -1
- package/lib/packages/components/select/src/select.js +15 -41
- package/lib/packages/components/select/src/select.js.map +1 -1
- package/lib/packages/components/select/src/select2.js +41 -15
- package/lib/packages/components/select/src/select2.js.map +1 -1
- package/lib/packages/components/tooltip/index.js +2 -2
- package/lib/packages/components/tooltip/src/tooltip.js +33 -8
- package/lib/packages/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/packages/components/tooltip/src/tooltip2.js +8 -33
- package/lib/packages/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/utils/vue/vnode.d.ts +6 -6
- package/package.json +1 -1
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/g-antd.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/antd.scss +1 -2
- package/web-types.json +1 -1
|
@@ -2,282 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../../../
|
|
7
|
-
var chartPanel = require('./chart-panel.js');
|
|
8
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
10
|
-
var index$1 = require('../../../hooks/use-device-type/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
7
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
const chartPanelEmits = {
|
|
9
|
+
"update:currency": (currency) => true,
|
|
10
|
+
"update:exchange": (exchange) => true,
|
|
11
|
+
"operation": (operation) => true,
|
|
12
|
+
"line": (line) => true,
|
|
13
|
+
"bar": (bar) => true,
|
|
14
|
+
"calc": (calc) => true,
|
|
15
|
+
"search": (search) => true,
|
|
16
|
+
"toggle": (toggle) => true,
|
|
17
|
+
"refresh": (refresh) => true,
|
|
18
|
+
"fullscreen": (fullscreen) => true,
|
|
19
|
+
"setting": (setting) => true,
|
|
20
|
+
"share": (share) => true
|
|
20
21
|
};
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isDropdown: true
|
|
44
|
-
},
|
|
45
|
-
{ value: "XRP_USDC", label: "XRP", icon: "currency_xrp", isDropdown: true }
|
|
46
|
-
];
|
|
47
|
-
const iconMap = {
|
|
48
|
-
line: "chart_swtichtochart",
|
|
49
|
-
bar: "chart_bar_switch_to_bar",
|
|
50
|
-
calc: "chart_calculator_line",
|
|
51
|
-
calc_active: "chart_calculator_filled",
|
|
52
|
-
search: "chart_search_filter",
|
|
53
|
-
toggle: "chart_switchtotable",
|
|
54
|
-
refresh: "chart_reload",
|
|
55
|
-
fullscreen: "chart_fullscreen",
|
|
56
|
-
setting: "chart_settings",
|
|
57
|
-
share: "chart_share"
|
|
58
|
-
};
|
|
59
|
-
const state = vue.reactive({
|
|
60
|
-
isMobile,
|
|
61
|
-
isPC
|
|
62
|
-
});
|
|
63
|
-
const showOperations = vue.computed(
|
|
64
|
-
() => {
|
|
65
|
-
const defaultOperations = state.isPC ? ["refresh"] : ["refresh"];
|
|
66
|
-
return [...props.operations, ...defaultOperations].map((v) => {
|
|
67
|
-
return {
|
|
68
|
-
value: v,
|
|
69
|
-
icon: v === "calc" && props.showType === "calc" ? iconMap["calc_active"] : iconMap[v]
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
const handleClickIcon = (type) => {
|
|
75
|
-
emits(type, true);
|
|
76
|
-
emits("operation", type);
|
|
77
|
-
};
|
|
78
|
-
const getCurrencyIcon = (value) => {
|
|
79
|
-
var _a;
|
|
80
|
-
return ((_a = currencyList.find((v) => v.value === value)) == null ? void 0 : _a.icon) || "";
|
|
81
|
-
};
|
|
82
|
-
const currency = vue.computed({
|
|
83
|
-
get: () => props.currency || currencyList[0].value,
|
|
84
|
-
set: (newVal) => {
|
|
85
|
-
emits("update:currency", newVal);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
const exchange = vue.computed({
|
|
89
|
-
get: () => props.exchange || exchangeList[0].value,
|
|
90
|
-
set: (newVal) => {
|
|
91
|
-
emits("update:exchange", newVal);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
return (_ctx, _cache) => {
|
|
95
|
-
const _component_g_icon = vue.resolveComponent("g-icon");
|
|
96
|
-
const _component_g_radio_dropdown = vue.resolveComponent("g-radio-dropdown");
|
|
97
|
-
const _component_g_select_option = vue.resolveComponent("g-select-option");
|
|
98
|
-
const _component_g_select = vue.resolveComponent("g-select");
|
|
99
|
-
const _component_g_spin = vue.resolveComponent("g-spin");
|
|
100
|
-
const _component_g_panel = vue.resolveComponent("g-panel");
|
|
101
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
102
|
-
"div",
|
|
103
|
-
{
|
|
104
|
-
class: vue.normalizeClass([vue.unref(ns).b()])
|
|
105
|
-
},
|
|
106
|
-
[
|
|
107
|
-
vue.createVNode(
|
|
108
|
-
_component_g_panel,
|
|
109
|
-
null,
|
|
110
|
-
vue.createSlots({
|
|
111
|
-
body: vue.withCtx(() => [
|
|
112
|
-
vue.createVNode(_component_g_spin, {
|
|
113
|
-
spinning: props.loading
|
|
114
|
-
}, {
|
|
115
|
-
default: vue.withCtx(() => [
|
|
116
|
-
vue.renderSlot(_ctx.$slots, "body")
|
|
117
|
-
]),
|
|
118
|
-
_: 3
|
|
119
|
-
}, 8, ["spinning"])
|
|
120
|
-
]),
|
|
121
|
-
_: 2
|
|
122
|
-
}, [
|
|
123
|
-
vue.unref(isPC) ? {
|
|
124
|
-
name: "header",
|
|
125
|
-
fn: vue.withCtx(() => [
|
|
126
|
-
vue.createElementVNode("div", _hoisted_1, [
|
|
127
|
-
vue.createCommentVNode(' <g-select\n v-model:value="exchange"\n option-label-prop="children"\n disabled\n >\n <g-select-option\n v-for="item in exchangeList"\n :value="item.value"\n :key="item.value"\n >\n <g-icon :type="item.icon"></g-icon>\n </g-select-option>\n </g-select> '),
|
|
128
|
-
vue.createVNode(_component_g_radio_dropdown, {
|
|
129
|
-
modelValue: vue.unref(currency),
|
|
130
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(currency) ? currency.value = $event : null),
|
|
131
|
-
options: currencyList,
|
|
132
|
-
class: "currency-radio"
|
|
133
|
-
}, {
|
|
134
|
-
highlightIcon: vue.withCtx(() => [
|
|
135
|
-
vue.createVNode(_component_g_icon, {
|
|
136
|
-
type: getCurrencyIcon(vue.unref(currency)),
|
|
137
|
-
size: 18
|
|
138
|
-
}, null, 8, ["type"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}, 8, ["modelValue"]),
|
|
142
|
-
vue.createElementVNode("div", _hoisted_2, [
|
|
143
|
-
vue.renderSlot(_ctx.$slots, "title")
|
|
144
|
-
])
|
|
145
|
-
])
|
|
146
|
-
])
|
|
147
|
-
} : void 0,
|
|
148
|
-
vue.unref(isPC) ? {
|
|
149
|
-
name: "header-right",
|
|
150
|
-
fn: vue.withCtx(() => [
|
|
151
|
-
vue.renderSlot(_ctx.$slots, "header-right-filter"),
|
|
152
|
-
vue.createElementVNode("div", _hoisted_3, [
|
|
153
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
154
|
-
vue.Fragment,
|
|
155
|
-
null,
|
|
156
|
-
vue.renderList(vue.unref(showOperations), (item) => {
|
|
157
|
-
return vue.openBlock(), vue.createBlock(_component_g_icon, {
|
|
158
|
-
type: item.icon,
|
|
159
|
-
key: item.value,
|
|
160
|
-
onClick: ($event) => handleClickIcon(item.value)
|
|
161
|
-
}, null, 8, ["type", "onClick"]);
|
|
162
|
-
}),
|
|
163
|
-
128
|
|
164
|
-
))
|
|
165
|
-
])
|
|
166
|
-
])
|
|
167
|
-
} : void 0,
|
|
168
|
-
vue.unref(isPC) ? {
|
|
169
|
-
name: "tool",
|
|
170
|
-
fn: vue.withCtx(() => [
|
|
171
|
-
vue.renderSlot(_ctx.$slots, "tool")
|
|
172
|
-
])
|
|
173
|
-
} : void 0,
|
|
174
|
-
vue.unref(isMobile) ? {
|
|
175
|
-
name: "header",
|
|
176
|
-
fn: vue.withCtx(() => [
|
|
177
|
-
vue.createElementVNode("div", _hoisted_4, [
|
|
178
|
-
vue.renderSlot(_ctx.$slots, "title")
|
|
179
|
-
])
|
|
180
|
-
])
|
|
181
|
-
} : void 0,
|
|
182
|
-
vue.unref(isMobile) ? {
|
|
183
|
-
name: "header-right",
|
|
184
|
-
fn: vue.withCtx(() => [
|
|
185
|
-
vue.renderSlot(_ctx.$slots, "header-right-filter"),
|
|
186
|
-
vue.createElementVNode("div", _hoisted_5, [
|
|
187
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
188
|
-
vue.Fragment,
|
|
189
|
-
null,
|
|
190
|
-
vue.renderList(vue.unref(showOperations), (item) => {
|
|
191
|
-
return vue.openBlock(), vue.createBlock(_component_g_icon, {
|
|
192
|
-
type: item.icon,
|
|
193
|
-
key: item.value,
|
|
194
|
-
onClick: ($event) => handleClickIcon(item.value)
|
|
195
|
-
}, null, 8, ["type", "onClick"]);
|
|
196
|
-
}),
|
|
197
|
-
128
|
|
198
|
-
))
|
|
199
|
-
])
|
|
200
|
-
])
|
|
201
|
-
} : void 0,
|
|
202
|
-
vue.unref(isMobile) ? {
|
|
203
|
-
name: "tool",
|
|
204
|
-
fn: vue.withCtx(() => [
|
|
205
|
-
vue.createElementVNode("div", _hoisted_6, [
|
|
206
|
-
vue.createVNode(_component_g_select, {
|
|
207
|
-
value: vue.unref(exchange),
|
|
208
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => vue.isRef(exchange) ? exchange.value = $event : null),
|
|
209
|
-
"option-label-prop": "children"
|
|
210
|
-
}, {
|
|
211
|
-
default: vue.withCtx(() => [
|
|
212
|
-
(vue.openBlock(), vue.createElementBlock(
|
|
213
|
-
vue.Fragment,
|
|
214
|
-
null,
|
|
215
|
-
vue.renderList(exchangeList, (item) => {
|
|
216
|
-
return vue.createVNode(_component_g_select_option, {
|
|
217
|
-
value: item.value,
|
|
218
|
-
key: item.value
|
|
219
|
-
}, {
|
|
220
|
-
default: vue.withCtx(() => [
|
|
221
|
-
vue.createVNode(_component_g_icon, {
|
|
222
|
-
type: item.icon
|
|
223
|
-
}, null, 8, ["type"]),
|
|
224
|
-
vue.createCommentVNode(" {{ item.label }} ")
|
|
225
|
-
]),
|
|
226
|
-
_: 2
|
|
227
|
-
}, 1032, ["value"]);
|
|
228
|
-
}),
|
|
229
|
-
64
|
|
230
|
-
))
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
}, 8, ["value"]),
|
|
234
|
-
vue.createVNode(_component_g_select, {
|
|
235
|
-
value: vue.unref(currency),
|
|
236
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => vue.isRef(currency) ? currency.value = $event : null),
|
|
237
|
-
"option-label-prop": "children",
|
|
238
|
-
class: "currency-radio currency-radio-h5",
|
|
239
|
-
popupClassName: "currency-radio-popup"
|
|
240
|
-
}, {
|
|
241
|
-
default: vue.withCtx(() => [
|
|
242
|
-
(vue.openBlock(), vue.createElementBlock(
|
|
243
|
-
vue.Fragment,
|
|
244
|
-
null,
|
|
245
|
-
vue.renderList(currencyList, (periodItem) => {
|
|
246
|
-
return vue.createVNode(_component_g_select_option, {
|
|
247
|
-
value: periodItem.value
|
|
248
|
-
}, {
|
|
249
|
-
default: vue.withCtx(() => [
|
|
250
|
-
vue.createVNode(_component_g_icon, {
|
|
251
|
-
type: periodItem.icon,
|
|
252
|
-
class: "currency-radio-icon"
|
|
253
|
-
}, null, 8, ["type"]),
|
|
254
|
-
vue.createTextVNode(
|
|
255
|
-
" " + vue.toDisplayString(periodItem.label),
|
|
256
|
-
1
|
|
257
|
-
)
|
|
258
|
-
]),
|
|
259
|
-
_: 2
|
|
260
|
-
}, 1032, ["value"]);
|
|
261
|
-
}),
|
|
262
|
-
64
|
|
263
|
-
))
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
}, 8, ["value"]),
|
|
267
|
-
vue.renderSlot(_ctx.$slots, "tool")
|
|
268
|
-
])
|
|
269
|
-
])
|
|
270
|
-
} : void 0
|
|
271
|
-
]),
|
|
272
|
-
1024
|
|
273
|
-
)
|
|
274
|
-
],
|
|
275
|
-
2
|
|
276
|
-
);
|
|
277
|
-
};
|
|
22
|
+
const chartPanelProps = runtime.buildProps({
|
|
23
|
+
currency: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "BTC",
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
exchange: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false
|
|
31
|
+
},
|
|
32
|
+
operations: {
|
|
33
|
+
type: Array,
|
|
34
|
+
required: false,
|
|
35
|
+
default: []
|
|
36
|
+
},
|
|
37
|
+
loading: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
showType: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: false
|
|
278
44
|
}
|
|
279
45
|
});
|
|
280
|
-
var ChartPanel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/luobowen/Desktop/greeks/greeks-live-ui/packages/components/chart-panel/src/chart-panel.vue"]]);
|
|
281
46
|
|
|
282
|
-
exports
|
|
47
|
+
exports.chartPanelEmits = chartPanelEmits;
|
|
48
|
+
exports.chartPanelProps = chartPanelProps;
|
|
283
49
|
//# sourceMappingURL=chart-panel2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-panel2.js","sources":["../../../../../../../packages/components/chart-panel/src/chart-panel.
|
|
1
|
+
{"version":3,"file":"chart-panel2.js","sources":["../../../../../../../packages/components/chart-panel/src/chart-panel.ts"],"sourcesContent":["import { buildProps } from '@greeks-live-ui/utils'\nimport type ChartPanel from './chart-panel.vue'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\ntype OperationType =\n | 'line'\n | 'bar'\n | 'calc'\n | 'search'\n | 'toggle'\n | 'refresh'\n | 'fullscreen'\n | 'setting'\n | 'share';\n\nexport const chartPanelEmits = {\n 'update:currency': (currency: string) => true,\n 'update:exchange': (exchange: string) => true,\n 'operation': (operation: OperationType) => true,\n 'line': (line: boolean) => true,\n 'bar': (bar: boolean) => true,\n 'calc': (calc: boolean) => true,\n 'search': (search: boolean) => true,\n 'toggle': (toggle: boolean) => true,\n 'refresh': (refresh: boolean) => true,\n 'fullscreen': (fullscreen: boolean) => true,\n 'setting': (setting: boolean) => true,\n 'share': (share: boolean) => true,\n}\nexport type ChartPanelEmits = typeof chartPanelEmits\nexport const chartPanelProps = buildProps({\n currency: {\n type: String,\n default: 'BTC',\n required: true,\n },\n exchange: {\n type: String,\n required: false,\n },\n operations: {\n type: Array as PropType<OperationType[]>,\n required: false,\n default: [],\n },\n loading: {\n type: Boolean,\n required: false,\n },\n showType: {\n type: String,\n required: false,\n },\n})\nexport type ChartPanelProps = ExtractPropTypes<typeof chartPanelProps>\nexport type ChartPanelInstance = InstanceType<typeof ChartPanel>\n"],"names":["buildProps"],"mappings":";;;;;;;AAeO,MAAM,eAAkB,GAAA;AAAA,EAC7B,iBAAA,EAAmB,CAAC,QAAqB,KAAA,IAAA;AAAA,EACzC,iBAAA,EAAmB,CAAC,QAAqB,KAAA,IAAA;AAAA,EACzC,WAAA,EAAa,CAAC,SAA6B,KAAA,IAAA;AAAA,EAC3C,MAAA,EAAQ,CAAC,IAAkB,KAAA,IAAA;AAAA,EAC3B,KAAA,EAAO,CAAC,GAAiB,KAAA,IAAA;AAAA,EACzB,MAAA,EAAQ,CAAC,IAAkB,KAAA,IAAA;AAAA,EAC3B,QAAA,EAAU,CAAC,MAAoB,KAAA,IAAA;AAAA,EAC/B,QAAA,EAAU,CAAC,MAAoB,KAAA,IAAA;AAAA,EAC/B,SAAA,EAAW,CAAC,OAAqB,KAAA,IAAA;AAAA,EACjC,YAAA,EAAc,CAAC,UAAwB,KAAA,IAAA;AAAA,EACvC,SAAA,EAAW,CAAC,OAAqB,KAAA,IAAA;AAAA,EACjC,OAAA,EAAS,CAAC,KAAmB,KAAA,IAAA;AAC/B,EAAA;AAEO,MAAM,kBAAkBA,kBAAW,CAAA;AAAA,EACxC,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,IACT,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,KAAA;AAAA,GACZ;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,KAAA;AAAA,IACN,QAAU,EAAA,KAAA;AAAA,IACV,SAAS,EAAC;AAAA,GACZ;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,QAAU,EAAA,KAAA;AAAA,GACZ;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,KAAA;AAAA,GACZ;AACF,CAAC;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var checkboxGroup$1 = require('./src/checkbox-
|
|
7
|
-
var checkboxGroup = require('./src/checkbox-
|
|
6
|
+
var checkboxGroup$1 = require('./src/checkbox-group.js');
|
|
7
|
+
var checkboxGroup = require('./src/checkbox-group2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const GCheckboxGroup = install.withInstall(checkboxGroup$1["default"]);
|
|
@@ -2,12 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
5
|
+
var lib = require('ant-design-vue/lib');
|
|
6
|
+
var vue = require('vue');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var checkboxGroup = require('./checkbox-group2.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
11
|
|
|
8
|
-
const
|
|
9
|
-
|
|
12
|
+
const __default__ = {
|
|
13
|
+
name: "GCheckboxGroup"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: checkboxGroup.checkboxGroupProps,
|
|
18
|
+
emits: checkboxGroup.checkboxGroupEmits,
|
|
19
|
+
setup(__props, { emit: emits }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const ns = index.useNamespace("checkbox-group");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
const _component_a_checkbox_group = lib.CheckboxGroup;
|
|
24
|
+
return vue.openBlock(), vue.createBlock(_component_a_checkbox_group, vue.mergeProps({
|
|
25
|
+
class: [vue.unref(ns).b()]
|
|
26
|
+
}, props, vue.toHandlers(emits)), {
|
|
27
|
+
default: vue.withCtx(() => [
|
|
28
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 16, ["class"]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var CheckboxGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/luobowen/Desktop/greeks/greeks-live-ui/packages/components/checkbox-group/src/checkbox-group.vue"]]);
|
|
10
36
|
|
|
11
|
-
exports
|
|
12
|
-
exports.checkboxGroupProps = checkboxGroupProps;
|
|
37
|
+
exports["default"] = CheckboxGroup;
|
|
13
38
|
//# sourceMappingURL=checkbox-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.js","sources":["../../../../../../../packages/components/checkbox-group/src/checkbox-group.
|
|
1
|
+
{"version":3,"file":"checkbox-group.js","sources":["../../../../../../../packages/components/checkbox-group/src/checkbox-group.vue"],"sourcesContent":["<template>\n <a-checkbox-group\n :class=\"[ns.b()]\"\n v-bind=\"props\"\n v-on=\"emits\"\n >\n <slot></slot>\n </a-checkbox-group>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@greeks-live-ui/hooks'\nimport { checkboxGroupEmits, checkboxGroupProps } from './checkbox-group'\ndefineOptions({\n name: 'GCheckboxGroup',\n})\nconst ns = useNamespace('checkbox-group')\nconst props = defineProps(checkboxGroupProps)\nconst emits = defineEmits(checkboxGroupEmits)\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;;;;;;;;;;;AAeA,IAAA,MAAA,EAAA,GAAAA,kBAAA,CAAA,gBAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,37 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
require('../../../hooks/index.js');
|
|
8
|
-
var checkboxGroup = require('./checkbox-group.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
7
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
-
...__default__,
|
|
17
|
-
props: checkboxGroup.checkboxGroupProps,
|
|
18
|
-
emits: checkboxGroup.checkboxGroupEmits,
|
|
19
|
-
setup(__props, { emit: emits }) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const ns = index.useNamespace("checkbox-group");
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
const _component_a_checkbox_group = lib.CheckboxGroup;
|
|
24
|
-
return vue.openBlock(), vue.createBlock(_component_a_checkbox_group, vue.mergeProps({
|
|
25
|
-
class: [vue.unref(ns).b()]
|
|
26
|
-
}, props, vue.toHandlers(emits)), {
|
|
27
|
-
default: vue.withCtx(() => [
|
|
28
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
29
|
-
]),
|
|
30
|
-
_: 3
|
|
31
|
-
}, 16, ["class"]);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
var CheckboxGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/luobowen/Desktop/greeks/greeks-live-ui/packages/components/checkbox-group/src/checkbox-group.vue"]]);
|
|
8
|
+
const checkboxGroupEmits = {};
|
|
9
|
+
const checkboxGroupProps = runtime.buildProps({});
|
|
36
10
|
|
|
37
|
-
exports
|
|
11
|
+
exports.checkboxGroupEmits = checkboxGroupEmits;
|
|
12
|
+
exports.checkboxGroupProps = checkboxGroupProps;
|
|
38
13
|
//# sourceMappingURL=checkbox-group2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group2.js","sources":["../../../../../../../packages/components/checkbox-group/src/checkbox-group.
|
|
1
|
+
{"version":3,"file":"checkbox-group2.js","sources":["../../../../../../../packages/components/checkbox-group/src/checkbox-group.ts"],"sourcesContent":["import { buildProps } from '@greeks-live-ui/utils'\nimport type CheckboxGroup from './checkbox-group.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const checkboxGroupEmits = {}\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits\nexport const checkboxGroupProps = buildProps({})\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\nexport type CheckboxGroupInstance = InstanceType<typeof CheckboxGroup>\n"],"names":["buildProps"],"mappings":";;;;;;;AAIO,MAAM,qBAAqB,GAAC;AAEtB,MAAA,kBAAA,GAAqBA,kBAAW,CAAA,EAAE;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var dropdown$1 = require('./src/
|
|
7
|
-
var dropdown = require('./src/
|
|
6
|
+
var dropdown$1 = require('./src/dropdown.js');
|
|
7
|
+
var dropdown = require('./src/dropdown2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const GDropdown = install.withInstall(dropdown$1["default"]);
|
|
@@ -2,12 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
5
|
+
var lib = require('ant-design-vue/lib');
|
|
6
|
+
var vue = require('vue');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var dropdown = require('./dropdown2.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
11
|
|
|
8
|
-
const
|
|
9
|
-
|
|
12
|
+
const __default__ = {
|
|
13
|
+
name: "GDropdown"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: dropdown.dropdownProps,
|
|
18
|
+
emits: dropdown.dropdownEmits,
|
|
19
|
+
setup(__props, { emit: emits }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const ns = index.useNamespace("dropdown");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
const _component_a_dropdown = lib.Dropdown;
|
|
24
|
+
return vue.openBlock(), vue.createBlock(_component_a_dropdown, vue.mergeProps({
|
|
25
|
+
class: [vue.unref(ns).b()]
|
|
26
|
+
}, props, vue.toHandlers(emits)), {
|
|
27
|
+
overlay: vue.withCtx(() => [
|
|
28
|
+
_ctx.$slots.overlay ? vue.renderSlot(_ctx.$slots, "overlay", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
29
|
+
]),
|
|
30
|
+
default: vue.withCtx(() => [
|
|
31
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["class"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
var Dropdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/luobowen/Desktop/greeks/greeks-live-ui/packages/components/dropdown/src/dropdown.vue"]]);
|
|
10
39
|
|
|
11
|
-
exports
|
|
12
|
-
exports.dropdownProps = dropdownProps;
|
|
40
|
+
exports["default"] = Dropdown;
|
|
13
41
|
//# sourceMappingURL=dropdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.js","sources":["../../../../../../../packages/components/dropdown/src/dropdown.
|
|
1
|
+
{"version":3,"file":"dropdown.js","sources":["../../../../../../../packages/components/dropdown/src/dropdown.vue"],"sourcesContent":["<template>\n <a-dropdown :class=\"[ns.b()]\" v-bind=\"props\" v-on=\"emits\">\n <template #overlay>\n <slot v-if=\"$slots.overlay\" name=\"overlay\"></slot>\n </template>\n <slot></slot>\n </a-dropdown>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@greeks-live-ui/hooks'\nimport { dropdownEmits, dropdownProps } from './dropdown'\ndefineOptions({\n name: 'GDropdown',\n})\nconst ns = useNamespace('dropdown')\nconst props = defineProps(dropdownProps)\nconst emits = defineEmits(dropdownEmits)\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA,IAAA,MAAA,EAAA,GAAAA,kBAAA,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,40 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
require('../../../hooks/index.js');
|
|
8
|
-
var dropdown = require('./dropdown.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
7
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
-
...__default__,
|
|
17
|
-
props: dropdown.dropdownProps,
|
|
18
|
-
emits: dropdown.dropdownEmits,
|
|
19
|
-
setup(__props, { emit: emits }) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const ns = index.useNamespace("dropdown");
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
const _component_a_dropdown = lib.Dropdown;
|
|
24
|
-
return vue.openBlock(), vue.createBlock(_component_a_dropdown, vue.mergeProps({
|
|
25
|
-
class: [vue.unref(ns).b()]
|
|
26
|
-
}, props, vue.toHandlers(emits)), {
|
|
27
|
-
overlay: vue.withCtx(() => [
|
|
28
|
-
_ctx.$slots.overlay ? vue.renderSlot(_ctx.$slots, "overlay", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
29
|
-
]),
|
|
30
|
-
default: vue.withCtx(() => [
|
|
31
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
32
|
-
]),
|
|
33
|
-
_: 3
|
|
34
|
-
}, 16, ["class"]);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
var Dropdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/luobowen/Desktop/greeks/greeks-live-ui/packages/components/dropdown/src/dropdown.vue"]]);
|
|
8
|
+
const dropdownEmits = {};
|
|
9
|
+
const dropdownProps = runtime.buildProps({});
|
|
39
10
|
|
|
40
|
-
exports
|
|
11
|
+
exports.dropdownEmits = dropdownEmits;
|
|
12
|
+
exports.dropdownProps = dropdownProps;
|
|
41
13
|
//# sourceMappingURL=dropdown2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown2.js","sources":["../../../../../../../packages/components/dropdown/src/dropdown.
|
|
1
|
+
{"version":3,"file":"dropdown2.js","sources":["../../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["import { buildProps } from '@greeks-live-ui/utils'\nimport type Dropdown from './dropdown.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const dropdownEmits = {}\nexport type DropdownEmits = typeof dropdownEmits\nexport const dropdownProps = buildProps({})\nexport type DropdownProps = ExtractPropTypes<typeof dropdownProps>\nexport type DropdownInstance = InstanceType<typeof Dropdown>\n"],"names":["buildProps"],"mappings":";;;;;;;AAIO,MAAM,gBAAgB,GAAC;AAEjB,MAAA,aAAA,GAAgBA,kBAAW,CAAA,EAAE;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var dropdownButton$1 = require('./src/dropdown-
|
|
7
|
-
var dropdownButton = require('./src/dropdown-
|
|
6
|
+
var dropdownButton$1 = require('./src/dropdown-button.js');
|
|
7
|
+
var dropdownButton = require('./src/dropdown-button2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const GDropdownButton = install.withInstall(dropdownButton$1["default"]);
|