刷新页面后蒲公英-datatable1.1.1 + thymleaf有错误

时间:2016-03-16 09:45:49

标签: css twitter-bootstrap-3 datatable dandelion

使用相同的配置,使用v1.0.1是正常的,当它被v1.1.0和1.1.1-core替换时,它在刷新页面之前仍然可以,但在刷新后关闭(所有下拉菜单关闭,bootstrap-模态变得奇怪,数据表的样式改变了例如) 我的配置是这样的:

datatables.properties:
#File containing Dandelion Datatables properties
main.standalone=true
global.css.theme=bootstrap3
global.feature.displayLength=25
global.feature.pagingType=listbox
global.css.class=table table-bordered table-striped dataTable
global.feature.dom = '<"row"<"col-sm-6"l><"col-sm-6"0rf>><"row"<"col-sm-12"t>><"row"<"col-sm-5"i><"col-sm-7"p>>'
global.feature.autoWidth = false
global.feature.processing=false


dandelion.properties:
bundle.includes=dt-functions
asset.minification = true
asset.css.excludes = datatables

dt-functions.json:
{
    "bundle" : "dt-functions",
    "assets": [
        {
            "name": "dt-functions",
            "version": "0.1",
            "type": "js",
            "locations": {
                "classpath": "public/js/dt-functions.js"
            }
        },
        {
            "name": "datatable",
            "version": "1.10.7",
            "type": "js",
            "locations": {
                "classpath": "public/plugins/datatables/jquery.dataTables.min.js"
            }
        },
        {
            "name": "datatables",
            "version": "1.10.7",
            "type": "css",
            "locations": {
                "classpath": "public/plugins/datatables/jquery.dataTables.min.css"
            }
        },
        {
            "name": "bootstrap3-theme-js",
            "version": "1.10.7",
            "type": "js",
            "locations": {
                "classpath": "public/plugins/datatables/dataTables.bootstrap.min.js"
            }
        },
        {
            "name": "bootstrap3-theme-css",
            "version": "1.10.7",
            "type": "css",
            "locations": {
                "classpath": "public/plugins/datatables/dataTables.bootstrap.css"
            }
        }
    ]
}   

因为https://github.com/dandelion/dandelion/issues/66

我像这样使用maven:

 <properties>
        <dandelion.core.version>1.1.1</dandelion.core.version>
        <dandelion.datatable.version>1.1.0</dandelion.datatable.version>
    </properties>
    <dependency>
        <groupId>com.github.dandelion</groupId>
        <artifactId>datatables-thymeleaf</artifactId>
        <version>${dandelion.datatable.version}</version>
        <exclusions>
            <exclusion>
                <groupId>com.github.dandelion</groupId>
                <artifactId>dandelion-core</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>com.github.dandelion</groupId>
        <artifactId>datatables-spring3</artifactId>
        <version>${dandelion.datatable.version}</version>
        <exclusions>
            <exclusion>
                <groupId>com.github.dandelion</groupId>
                <artifactId>dandelion-core</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>com.github.dandelion</groupId>
        <artifactId>dandelion-core</artifactId>
        <version>${dandelion.core.version}</version>
    </dependency>

before refresh page

after refresh

0 个答案:

没有答案