Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
33e39cba
Commit
33e39cba
authored
Aug 22, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cooking config
update config
parent
019b325a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
27 deletions
+25
-27
packages/cascader/src/cascader.vue
packages/cascader/src/cascader.vue
+1
-1
packages/date-picker/src/picker.vue
packages/date-picker/src/picker.vue
+1
-1
packages/dropdown/src/dropdown-menu.vue
packages/dropdown/src/dropdown-menu.vue
+1
-1
packages/dropdown/src/dropdown.vue
packages/dropdown/src/dropdown.vue
+3
-2
packages/select-dropdown/src/select-dropdown.vue
packages/select-dropdown/src/select-dropdown.vue
+1
-1
packages/slider/src/main.vue
packages/slider/src/main.vue
+1
-1
scripts/cooking.component.js
scripts/cooking.component.js
+16
-19
src/utils/vue-popper.js
src/utils/vue-popper.js
+1
-1
No files found.
packages/cascader/src/cascader.vue
View file @
33e39cba
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
directives
:
{
directives
:
{
ElementClickoutside
:
require
(
'
vue-clickoutside
'
)
ElementClickoutside
:
require
(
'
main/utils/clickoutside
'
).
default
},
},
data
()
{
data
()
{
...
...
packages/date-picker/src/picker.vue
View file @
33e39cba
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
Clickoutside
from
'
main/utils/clickoutside
'
;
import
Clickoutside
from
'
main/utils/clickoutside
'
;
import
{
merge
,
formatDate
,
parseDate
,
getWeekNumber
}
from
'
./util
'
;
import
{
merge
,
formatDate
,
parseDate
,
getWeekNumber
}
from
'
./util
'
;
import
Popper
from
'
main/utils/popper
.js
'
;
import
Popper
from
'
main/utils/popper
'
;
const
FUNCTION_KEYS
=
[
13
,
16
,
17
,
18
,
19
,
20
,
27
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
];
const
FUNCTION_KEYS
=
[
13
,
16
,
17
,
18
,
19
,
20
,
27
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
];
const
RANGE_SEPARATOR
=
'
-
'
;
const
RANGE_SEPARATOR
=
'
-
'
;
...
...
packages/dropdown/src/dropdown-menu.vue
View file @
33e39cba
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
</ul>
</ul>
</
template
>
</
template
>
<
script
>
<
script
>
import
Popper
from
'
main/utils/popper
.js
'
;
import
Popper
from
'
main/utils/popper
'
;
export
default
{
export
default
{
data
()
{
data
()
{
...
...
packages/dropdown/src/dropdown.vue
View file @
33e39cba
...
@@ -42,8 +42,7 @@
...
@@ -42,8 +42,7 @@
import
ElButtonGroup
from
'
packages/button-group/index.js
'
;
import
ElButtonGroup
from
'
packages/button-group/index.js
'
;
import
ElDropdownMenu
from
'
./dropdown-menu.vue
'
;
import
ElDropdownMenu
from
'
./dropdown-menu.vue
'
;
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
VueClickoutside
from
'
main/utils/clickoutside.js
'
;
import
Clickoutside
from
'
main/utils/clickoutside
'
;
Vue
.
use
(
VueClickoutside
);
export
default
{
export
default
{
name
:
'
ElDropdown
'
,
name
:
'
ElDropdown
'
,
...
@@ -54,6 +53,8 @@
...
@@ -54,6 +53,8 @@
ElDropdownMenu
ElDropdownMenu
},
},
directives
:
{
Clickoutside
},
props
:
{
props
:
{
text
:
String
,
text
:
String
,
type
:
String
,
type
:
String
,
...
...
packages/select-dropdown/src/select-dropdown.vue
View file @
33e39cba
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</
template
>
</
template
>
<
script
type=
"text/babel"
>
<
script
type=
"text/babel"
>
import
Popper
from
'
main/utils/popper
.js
'
;
import
Popper
from
'
main/utils/popper
'
;
export
default
{
export
default
{
name
:
'
el-select-dropdown
'
,
name
:
'
el-select-dropdown
'
,
...
...
packages/slider/src/main.vue
View file @
33e39cba
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
Popper
from
'
main/utils/popper
.js
'
;
import
Popper
from
'
main/utils/popper
'
;
import
ElInputNumber
from
'
packages/input-number/index.js
'
;
import
ElInputNumber
from
'
packages/input-number/index.js
'
;
import
{
getStyle
}
from
'
wind-dom/src/style
'
;
import
{
getStyle
}
from
'
wind-dom/src/style
'
;
...
...
scripts/cooking.component.js
View file @
33e39cba
var
cooking
=
require
(
'
cooking
'
);
var
cooking
=
require
(
'
cooking
'
);
var
path
=
require
(
'
path
'
);
var
path
=
require
(
'
path
'
);
var
Components
=
require
(
'
../components.json
'
);
var
Components
=
require
(
'
../components.json
'
);
var
entries
=
{};
Object
.
keys
(
Components
).
forEach
(
function
(
key
)
{
const
compo
=
Components
[
key
];
compo
[
0
]
=
path
.
join
(
process
.
cwd
(),
compo
[
0
]);
entries
[
key
]
=
compo
;
});
cooking
.
set
({
cooking
.
set
({
entry
:
Components
.
map
(
function
(
compo
)
{
entry
:
entries
,
compo
[
0
]
=
path
.
join
(
process
.
cwd
(),
compo
[
0
]);
return
compo
;
}),
dist
:
'
./lib
'
,
dist
:
'
./lib
'
,
clean
:
tru
e
,
clean
:
fals
e
,
template
:
false
,
template
:
false
,
format
:
'
umd
'
,
format
:
'
cjs
'
,
moduleName
:
[
'
ELEMENT
'
,
'
[name]
'
],
extractCSS
:
'
[name]/style.css
'
,
extractCSS
:
'
[name]/style.css
'
,
extends
:
[
'
vue
'
]
extends
:
[
'
vue
'
]
});
});
...
@@ -26,18 +30,11 @@ cooking.add('resolve.alias', {
...
@@ -26,18 +30,11 @@ cooking.add('resolve.alias', {
var
externals
=
{};
var
externals
=
{};
Object
.
keys
(
Components
).
forEach
(
function
(
key
)
{
Object
.
keys
(
Components
).
forEach
(
function
(
key
)
{
externals
[
`packages/
${
key
}
/index.js`
]
=
{
externals
[
`packages/
${
key
}
/index.js`
]
=
`element-ui/lib/
${
key
}
`
;
root
:
`ELEMENT.
${
key
}
`
,
externals
[
`packages/
${
key
}
/style.css`
]
=
`element-ui/lib/
${
key
}
/style.css`
;
commonjs
:
`element-ui/lib/
${
key
}
`
,
externals
[
'
main/utils/clickoutside
'
]
=
'
element-ui/src/utils/clickoutside
'
;
commonjs2
:
`element-ui/lib/
${
key
}
`
,
externals
[
'
main/utils/popper
'
]
=
'
element-ui/src/utils/popper
'
;
amd
:
`element-ui/lib/
${
key
}
`
externals
[
'
main/utils/vue-popper
'
]
=
'
element-ui/src/utils/vue-popper
'
;
};
externals
[
`packages/
${
key
}
/style.css`
]
=
{
root
:
`ELEMENT.
${
key
}
/style.css`
,
commonjs
:
`element-ui/lib/
${
key
}
/style.css`
,
commonjs2
:
`element-ui/lib/
${
key
}
/style.css`
,
amd
:
`element-ui/lib/
${
key
}
/style.css`
};
});
});
cooking
.
add
(
'
externals
'
,
Object
.
assign
({
cooking
.
add
(
'
externals
'
,
Object
.
assign
({
...
...
src/utils/vue-popper.js
View file @
33e39cba
import
PopperJS
from
'
.
/popper
'
;
import
PopperJS
from
'
main/utils
/popper
'
;
/**
/**
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment